/* ==========================================================================
   FOTOĞRAF GALERİSİ SAYFASI - TÜM STİLLER VE LIGHTBOX MODAL
   ========================================================================== */

.galeri-page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background-color: #fcfdfd;
    padding-bottom: 120px;
    font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ==========================================================================
   📍 BANNER SECTION (Kurumsal Birebir Yapısı & uploads/resimgaleri/arkaplan/arkaplan.png)
   ========================================================================== */

.inner-page-banner {
    position: relative;
    width: 100%;
    min-height: 360px;
    padding: 140px 24px 70px 24px;
    
    /* Belirtilen klasördeki arka plan görseli */
    background-image: url('../uploads/resimgaleri/arkaplan/arkaplan.png');
    background-size: 100% 100%;
    background-position: center;
    background-repeat: no-repeat;
    
    text-align: center;
    margin-bottom: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.banner-container {
    position: relative;
    z-index: 2;
    max-width: 820px;
    margin: 0 auto;
}

/* Navigasyon / Breadcrumb */
.breadcrumb-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    padding: 6px 22px;
    border-radius: 50px;
    font-size: 13.5px;
    font-weight: 700;
    margin-bottom: 18px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.breadcrumb-badge a {
    color: #a3e635;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.breadcrumb-badge a:hover {
    opacity: 0.85;
}

.breadcrumb-separator {
    color: rgba(255, 255, 255, 0.6);
}

.breadcrumb-current {
    color: #ffffff;
}

/* Başlık & Alt Başlık */
.banner-title {
    font-size: 44px;
    font-weight: 900;
    letter-spacing: -0.5px;
    margin: 0 0 12px 0;
    color: #ffffff;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}

.banner-subtitle {
    font-size: 18px;
    color: #f0fdf4;
    font-weight: 600;
    margin: 0;
    line-height: 1.5;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* ==========================================================================
   🌿 İÇERİK BAŞLIĞI VE GALERİ CONTAINER
   ========================================================================== */

.galeri-container {
    max-width: 1320px;
    margin: 0 auto;
    padding: 20px 24px 0 24px;
}

.intro-heading-box {
    text-align: center;
    max-width: 760px;
    margin: 0 auto 50px auto;
}

.life-tag {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 2px;
    color: #2e5927;
    margin-bottom: 12px;
    text-transform: uppercase;
}

.tag-line {
    width: 24px;
    height: 2px;
    background-color: #7ba668;
    border-radius: 2px;
}

.main-heading {
    font-size: 36px;
    font-weight: 900;
    color: #1b3e1a;
    margin: 0 0 14px 0;
    line-height: 1.2;
}

.main-heading .highlight-green {
    color: #488b33;
}

.section-desc {
    font-size: 15.5px;
    color: #475569;
    line-height: 1.6;
    margin: 0;
}

/* ==========================================================================
   🖼️ GALERİ GRID & YAPRAK FORMUNDA KARTLAR
   ========================================================================== */

.galeri-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.galeri-item {
    cursor: pointer;
}

.galeri-card-inner {
    background-color: #ffffff;
    border-radius: 24px;
    padding: 10px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 8px 20px rgba(27, 62, 26, 0.05);
    transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.galeri-item:hover .galeri-card-inner {
    transform: translateY(-6px);
    box-shadow: 0 18px 36px rgba(27, 62, 26, 0.12);
    border-color: #a3e635;
}

/* Yaprak Kıvrımlı Görsel Kutusu */
.galeri-image-box {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
    /* Yaprak Formu Kıvrımı */
    border-radius: 45px 8px 45px 8px;
    background-color: #f1f5f9;
    transition: border-radius 0.5s ease;
}

.galeri-item:hover .galeri-image-box {
    border-radius: 8px 45px 8px 45px;
}

.galeri-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.galeri-item:hover .galeri-image-box img {
    transform: scale(1.08);
}

/* Overlay & Büyüteç Rozeti */
.galeri-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(17, 40, 16, 0.85) 0%, rgba(17, 40, 16, 0.2) 60%, transparent 100%);
    opacity: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    text-align: center;
    transition: opacity 0.35s ease;
}

.galeri-item:hover .galeri-overlay {
    opacity: 1;
}

.zoom-badge {
    width: 50px;
    height: 50px;
    background: #a3e635;
    color: #112810;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    transform: scale(0.7);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
}

.galeri-item:hover .zoom-badge {
    transform: scale(1);
}

.zoom-badge svg {
    width: 24px;
    height: 24px;
}

.overlay-title {
    color: #ffffff;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.3;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Bos Galeri Uyarisi */
.empty-gallery-box {
    text-align: center;
    padding: 80px 20px;
    background: #ffffff;
    border-radius: 28px;
    border: 2px dashed #cbd5e1;
}

.empty-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.empty-gallery-box h3 {
    font-size: 22px;
    color: #1e293b;
    margin: 0 0 8px 0;
}

.empty-gallery-box p {
    color: #64748b;
    margin: 0;
}

/* ==========================================================================
   🔍 TAM BÖY LIGHTBOX MODAL STİLLERİ
   ========================================================================== */

.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox-modal.active {
    opacity: 1;
    visibility: visible;
}

.lightbox-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(10, 22, 9, 0.92);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lightbox-content {
    position: relative;
    z-index: 2;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper {
    max-width: 100%;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrapper img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
    border: 2px solid rgba(255, 255, 255, 0.15);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lightbox-modal.active .lightbox-img-wrapper img {
    transform: scale(1);
}

/* Butonlar */
.lightbox-close {
    position: fixed;
    top: 24px;
    right: 24px;
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-close:hover {
    background: #a3e635;
    color: #112810;
    transform: rotate(90deg);
}

.lightbox-close svg {
    width: 24px;
    height: 24px;
}

.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 54px;
    height: 54px;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.lightbox-nav:hover {
    background: #a3e635;
    color: #112810;
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav svg {
    width: 28px;
    height: 28px;
}

.lightbox-prev {
    left: 24px;
}

.lightbox-next {
    right: 24px;
}

/* Caption & Counter */
.lightbox-caption {
    margin-top: 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffffff;
    text-align: center;
}

.caption-title {
    font-size: 16px;
    font-weight: 700;
}

.caption-counter {
    background: rgba(163, 230, 53, 0.2);
    color: #a3e635;
    border: 1px solid rgba(163, 230, 53, 0.4);
    font-size: 13px;
    font-weight: 800;
    padding: 4px 12px;
    border-radius: 20px;
}

/* ==========================================================================
   📱 MOBİL VE TABLET UYUMLULUK
   ========================================================================== */

@media (max-width: 1200px) {
    .galeri-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .galeri-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }

    .galeri-image-box {
        height: 220px;
    }
}

@media (max-width: 768px) {
    .inner-page-banner {
        min-height: 300px;
        padding: 110px 20px 50px 20px;
        background-size: cover;
    }

    .banner-title {
        font-size: 32px;
    }

    .banner-subtitle {
        font-size: 15px;
    }

    .galeri-container {
        padding-top: 20px;
    }

    .main-heading {
        font-size: 26px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 520px) {
    .galeri-grid {
        grid-template-columns: 1fr;
    }

    .galeri-image-box {
        height: 240px;
        border-radius: 35px 8px 35px 8px;
    }
}