/* --- Galeri Sayfası Stilleri --- */

/* Genel Sayfa Başlığı Alanı */
.page-header-section {
    /* Arka plan resmi yolu güncellendi. ../ ifadesi, assets klasöründen bir üste çıkıp uploads klasörüne girmesini sağlar. */
    background: linear-gradient(rgba(17, 24, 39, 0.8), rgba(17, 24, 39, 0.8)), url('../uploads/galeri.png') no-repeat center center/cover;
    padding-top: calc(6rem + 118px);
    padding-bottom: 6rem;
    text-align: center;
    color: #ffffff;
}

.page-header-section h1 {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

.breadcrumb a {
    color: #d1d5db;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb a:hover {
    color: #f97116;
}

/* Galeri Alanı */
.gallery-section {
    padding: 6rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    aspect-ratio: 1 / 1; /* Kare oran */
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-color: #e5e7eb;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.1);
}

.item-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(17, 24, 39, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .item-overlay {
    opacity: 1;
}

.item-overlay svg {
    width: 50px;
    height: 50px;
    color: #ffffff;
}

/* Lightbox Stilleri */
.lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: none; /* Başlangıçta gizli */
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 2rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: #fff;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
}

.lightbox-content {
    max-width: 90vw;
    max-height: 90vh;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    display: none; /* Başlangıçta gizli */
}

/* Responsive Ayarlar */
@media screen and (max-width: 768px) {
    .page-header-section {
        padding-top: calc(4rem + 118px);
        padding-bottom: 4rem;
    }
    .page-header-section h1 {
        font-size: 2.5rem;
    }
    .gallery-section {
        padding: 4rem 0;
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }
}

