/* ==========================================================================
   Galeri (photo_gallery) sayfasına özel stiller
   Not: feature-tile, icon-bubble, cta-strip, section-*, hero-* gibi ortak
   sınıflar global style.css içindedir; burada TEKRAR edilmez.
   Bu dosya style.css'ten SONRA yüklenir (libraries.php > photo_gallery).
   ========================================================================== */

.glass-tile {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 1rem;
    padding: 1rem;
}

/* Filtre çipleri */
.filter-chip {
    border: 1px solid rgba(2, 6, 23, .08);
    background: #fff;
    color: var(--nr-ink-2);
    font-weight: 700;
    border-radius: 999px;
    padding: .75rem 1rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    cursor: pointer;
    transition: .18s ease;
}

.filter-chip:hover,
.filter-chip.active {
    background: var(--nr-brand);
    border-color: var(--nr-brand);
    color: #fff;
    transform: translateY(-1px);
}

/* Galeri ızgarası */
.gallery-shell {
    position: relative;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 24px;
    min-height: 220px;
    cursor: pointer;
    border: 1px solid rgba(2, 6, 23, .08);
    background: #dfe8ea;
    box-shadow: 0 12px 30px rgba(2, 6, 23, .08);
    isolation: isolate;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease, filter .35s ease;
}

.gallery-item::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(7, 17, 37, .04), rgba(7, 17, 37, .68));
    opacity: .92;
    transition: opacity .25s ease;
}

.gallery-item:hover img {
    transform: scale(1.06);
    filter: saturate(1.05) contrast(1.04);
}

.gallery-item:hover::after {
    opacity: 1;
}

.gallery-caption {
    position: absolute;
    inset: auto 0 0 0;
    padding: 1.1rem;
    z-index: 1;
    color: #fff;
}

.gallery-caption .tag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .65rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .78rem;
    font-weight: 700;
    margin-bottom: .65rem;
}

.gallery-caption h3 {
    font-size: 1.06rem;
    font-weight: 800;
    margin-bottom: .35rem;
}

.gallery-caption p {
    margin: 0;
    color: rgba(255, 255, 255, .82);
    font-size: .9rem;
}

.gallery-item .zoom-btn {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 1;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .14);
    color: #fff;
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, .18);
}

/* Boyut varyantları — dinamik veride tüm öğeler 'wide' sınıfıyla gelir.
   NOT: eski `.wide { min-width:300px }` + 12 kolonluk rijit grid, öğeleri
   track genişliğinden taşırıp YATAY SCROLL'a yol açıyordu. min-width ve
   grid-column span'leri kaldırıldı; grid artık auto-fill ile responsive sarıyor.
   Varyantlar yalnızca yükseklik ipucu verir (genişliği grid track belirler). */
.gallery-item.wide,
.gallery-item.feature {
    min-height: 300px;
}

.gallery-item.tall {
    min-height: 360px;
}

.gallery-item.standard {
    min-height: 240px;
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    .gallery-item,
    .gallery-item.wide,
    .gallery-item.tall,
    .gallery-item.standard,
    .gallery-item.feature {
        min-height: 240px;
        border-radius: 20px;
    }
}

/* Galeriye özel metrik kartı */
.metric-card {
    background: #fff;
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: 1.2rem;
    padding: 1.15rem;
    height: 100%;
}

.metric-card .value {
    font-size: 1.85rem;
    font-weight: 850;
    line-height: 1;
}

/* Lightbox (görsel büyütme modalı) */
.modal-content {
    border-radius: 1.4rem;
    overflow: hidden;
}

.lightbox-stage {
    background: #050b18;
    min-height: 50vh;
    position: relative;
    display: grid;
    place-items: center;
}

.lightbox-stage img {
    max-width: 100%;
    max-height: 58vh;
    object-fit: contain;
}

.lightbox-meta {
    background: #fff;
}

/* Küçük önizleme şeridi: TEK SATIR yatay kaydırma (çok foto olsa da alt satıra sarıp taşmaz) */
.thumb-strip {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 6px;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(2, 6, 23, .35) transparent;
}
.thumb-strip::-webkit-scrollbar { height: 8px; }
.thumb-strip::-webkit-scrollbar-thumb { background: rgba(2, 6, 23, .28); border-radius: 999px; }
.thumb-strip::-webkit-scrollbar-track { background: transparent; }

.thumb-btn {
    flex: 0 0 auto;
    width: 104px;
    border: 1px solid rgba(2, 6, 23, .08);
    border-radius: 14px;
    overflow: hidden;
    padding: 0;
    background: #fff;
    cursor: pointer;
    scroll-snap-align: center;
}

.thumb-btn img {
    width: 100%;
    height: 70px;
    object-fit: cover;
    display: block;
}

.thumb-btn.active {
    outline: 2px solid var(--nr-brand);
    outline-offset: 2px;
}

@media (max-width: 767px) {
    .thumb-btn { width: 84px; }
    .thumb-btn img { height: 58px; }
}
