/* ============================================================
   GALERİ SAYFASI
   ============================================================ */

/* ---- Filtre butonları ---- */
.galeri-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 40px;
}

.galeri-filter-btn {
    padding: 8px 20px;
    border-radius: 100px;
    border: 1.5px solid rgba(116,89,68,0.25);
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: #745944;
    cursor: pointer;
    transition: background 0.25s, color 0.25s, border-color 0.25s;
    font-family: var(--font-primary, 'Poppins', sans-serif);
}
.galeri-filter-btn:hover,
.galeri-filter-btn.active {
    background: #745944;
    color: #fff;
    border-color: #745944;
}

/* ---- Masonry grid ---- */
.galeri-grid {
    columns: 4 220px;
    column-gap: 12px;
}

.galeri-item {
    break-inside: avoid;
    margin-bottom: 12px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    cursor: zoom-in;
}

.galeri-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease;
}
.galeri-item:hover img { transform: scale(1.04); }

/* Video play ikonu */
.galeri-play-icon {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.25);
    border-radius: 12px;
    pointer-events: none;
}
.galeri-play-icon i {
    font-size: 36px;
    color: #fff;
    filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}

/* ---- Sayfalama ---- */
.galeri-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.galeri-arrow {
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1.5px solid rgba(116,89,68,0.25);
    background: transparent;
    color: #745944;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; font-size: 14px;
    transition: background 0.25s, color 0.25s, border-color 0.25s, opacity 0.25s;
}
.galeri-arrow:hover:not(:disabled) {
    background: #BE601B; color: #fff; border-color: #BE601B;
}
.galeri-arrow:disabled { opacity: 0.3; cursor: default; }

.galeri-page-info {
    font-size: 14px; font-weight: 500;
    color: #745944; opacity: 0.65;
    min-width: 48px; text-align: center;
}

/* ============================================================
   LİGHTBOX
   ============================================================ */
#galeriLightbox {
    display: none;                    /* kapalıyken tamamen gizli */
    position: fixed;
    inset: 0;
    z-index: 99999;
    align-items: center;
    justify-content: center;
}
#galeriLightbox.open {
    display: flex;                    /* açıkken flex */
}

#lbBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(15, 8, 3, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

#lbMedia {
    position: relative;
    z-index: 2;
    max-width: 88vw;
    max-height: 88vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
#lbMedia img,
#lbMedia video {
    max-width: 88vw;
    max-height: 84vh;
    border-radius: 12px;
    box-shadow: 0 32px 80px rgba(0,0,0,0.6);
    object-fit: contain;
    display: block;
}

/* Butonlar */
#lbClose,
#lbPrev,
#lbNext {
    position: absolute;
    z-index: 3;
    width: 48px; height: 48px;
    border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.3);
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 16px;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    backdrop-filter: blur(4px);
    transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
#lbClose:hover, #lbPrev:hover, #lbNext:hover {
    background: #BE601B;
    border-color: #BE601B;
    transform: scale(1.1);
}

#lbClose { top: 20px;  right: 20px; }
#lbPrev  { left: 20px; top: 50%; transform: translateY(-50%); }
#lbNext  { right: 20px; top: 50%; transform: translateY(-50%); }

#lbPrev:hover, #lbNext:hover { transform: translateY(-50%) scale(1.1); }

#lbCounter {
    position: absolute;
    bottom: 20px; left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
    font-family: var(--font-primary, 'Poppins', sans-serif);
    white-space: nowrap;
}

/* ---- Responsive ---- */
@media (max-width: 767px) {
    .galeri-grid { columns: 2 160px; }
    #lbPrev { left: 10px; }
    #lbNext { right: 10px; }
    #lbClose { top: 10px; right: 10px; width: 38px; height: 38px; }
    #lbPrev, #lbNext { width: 38px; height: 38px; }
}