/* Galeri Grid CSS - Bozulmayan, Sade Hali */
.my-gallery-card {
    background: #ece3df;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    margin-bottom: 20px;
}

.my-gallery-card .thumb {
    display: block;
    overflow: hidden;
}

.my-gallery-card .thumb img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.3s ease;
    display: block;
}

.my-gallery-card:hover .thumb img {
    transform: scale(1.05);
}

/* Modal Arkaplanı */
#mySimpleModal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#mySimpleModal.show-modal {
    display: flex;
    opacity: 1;
}

/* Fotoğrafı ve X butonunu bir arada tutan KAPSAYICI */
.my-modal-wrapper {
    position: relative;
    display: inline-block;
    max-width: 90vw;
    max-height: 85vh;
    transform: translateY(-50px);
    transition: transform 0.3s ease-out;
}

#mySimpleModal.show-modal .my-modal-wrapper {
    transform: translateY(0);
}

/* Fotoğraf ayarları */
#myModalImg {
    width: auto !important;
    height: auto !important;
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5);
    display: block;
}

/* Kapatma Butonu (X) */
.my-close-btn {
    position: absolute;
    top: -15px;
    right: -15px;
    color: white;
    background-color: rgba(45, 40, 38, 0.95); /* Koyu füme/siyah tonu */
    font-size: 22px;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 100000;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
    border: 2px solid #fff;
    transition: background-color 0.3s ease; /* Hover geçişi yumuşak olsun */
}

/* PEMBE RENK BURADAN KALDIRILDI - Videolar sayfasıyla uyumlu yapıldı */
.my-close-btn:hover {
    background-color: #000; /* Üzerine gelince tam siyah olur */
}