/* =========================================================
   assets/css/galeri-tour.css
   Gaya Pameran Virtual, Bingkai Pigura, Spotlight & Lightbox
   ========================================================= */

.galeri-page-wrapper {
    background-color: var(--gallery-bg, #0b0f19);
    min-height: 85vh;
    color: #f8fafc;
    transition: background-color 0.4s ease;
}

.pameran-intro {
    padding-top: 1.5rem;
}

.badge-kurasi {
    display: inline-block;
    padding: 4px 14px;
    background: rgba(20, 184, 166, 0.15);
    color: #2dd4bf;
    border: 1px solid rgba(20, 184, 166, 0.3);
    border-radius: 9999px;
    font-size: 0.75rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.pameran-title {
    font-size: 1.85rem;
    font-weight: 800;
    color: #ffffff;
    margin-bottom: 0.35rem;
    letter-spacing: -0.02em;
}

.pameran-sub {
    color: #94a3b8;
    font-size: 0.9rem;
    max-width: 650px;
    margin: 0 auto 1.5rem auto;
}

/* Mode Switcher Nav */
.gallery-mode-nav {
    display: inline-flex;
    gap: 6px;
    background: #1e293b;
    padding: 5px;
    border-radius: 14px;
    border: 1px solid #334155;
}

.mode-btn {
    border: none;
    background: transparent;
    color: #cbd5e1;
    padding: 8px 16px;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.mode-btn.active {
    background: #0d9488;
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

.gallery-view-section {
    display: none;
}

.gallery-view-section.active {
    display: block;
}

/* =========================================
   TOUR PAMERAN (HORIZONTAL SCROLL)
   ========================================= */
.tour-container-box {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,0.1);
    box-shadow: 0 25px 60px rgba(0,0,0,0.6);
    background-size: cover;
    background-position: center;
    position: relative;
    user-select: none;
}

.tour-top-bar {
    padding: 14px 20px;
    background: rgba(11, 15, 25, 0.85);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tour-tip {
    font-size: 0.78rem;
    color: #2dd4bf;
    font-weight: 500;
}

.tour-nav-btns .t-btn {
    background: rgba(255,255,255,0.1);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    padding: 4px 12px;
    font-size: 0.75rem;
    border-radius: 8px;
    cursor: pointer;
    margin-left: 6px;
    transition: background 0.2s;
}

.tour-nav-btns .t-btn:hover {
    background: rgba(255,255,255,0.25);
}

/* Lorong Scroll Horizontal */
.tour-hall-scrollable {
    display: flex;
    align-items: center;
    gap: 4rem;
    padding: 4rem 3rem;
    overflow-x: auto;
    scroll-behavior: smooth;
    min-height: 520px;
}

.tour-hall-scrollable::-webkit-scrollbar {
    display: none;
}

.exhibition-welcome-card {
    flex-shrink: 0;
    width: 320px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 18px;
    padding: 1.75rem;
    backdrop-filter: blur(12px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.5);
}

.exhibition-welcome-card .ent-tag {
    font-size: 0.65rem;
    letter-spacing: 2px;
    color: #f59e0b;
    font-weight: 800;
}

.exhibition-welcome-card h2 {
    font-size: 1.35rem;
    margin: 4px 0 10px 0;
    color: #fff;
}

.exhibition-welcome-card p {
    font-size: 0.8rem;
    color: #cbd5e1;
    line-height: 1.5;
}

.exhibition-welcome-card small {
    display: block;
    margin-top: 12px;
    font-size: 0.72rem;
    color: #2dd4bf;
}

/* Item Slot & Spotlight */
.exhibition-item-slot {
    flex-shrink: 0;
    width: 360px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.spotlight-cone {
    position: absolute;
    top: -50px;
    left: 50%;
    transform: translateX(-50%);
    width: 200px;
    height: 120px;
    background: radial-gradient(ellipse at top, rgba(253, 230, 138, 0.35) 0%, rgba(253, 230, 138, 0) 75%);
    pointer-events: none;
    z-index: 1;
}

/* Bingkai Pigura */
.art-frame {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    z-index: 2;
}

.art-frame:hover {
    transform: translateY(-8px) scale(1.02);
}

/* Gaya Bingkai Kayu Jati */
.frame-kayu_jati {
    background: linear-gradient(135deg, #271406, #5c3317, #271406);
    padding: 14px;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.85);
    border: 4px solid #3b220c;
}

/* Gaya Bingkai Emas Klasik */
.frame-emas_klasik {
    background: linear-gradient(135deg, #b45309, #fde047, #d97706);
    padding: 12px;
    border-radius: 14px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.85);
    border: 4px solid #b45309;
}

/* Gaya Bingkai Modern Minimal */
.frame-modern_minimal {
    background: #0f172a;
    padding: 10px;
    border-radius: 10px;
    box-shadow: 0 20px 45px rgba(0,0,0,0.7);
    border: 2px solid #334155;
}

/* Gaya Bingkai Ornamen Santri */
.frame-pesantren_ornament {
    background: linear-gradient(135deg, #064e3b, #047857, #064e3b);
    padding: 12px;
    border-radius: 16px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.85);
    border: 4px solid #059669;
}

.passe-partout {
    background: #020617;
    padding: 8px;
    border-radius: 6px;
    position: relative;
    overflow: hidden;
}

.passe-partout img {
    width: 320px;
    height: 230px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.zoom-hover-badge {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #2dd4bf;
    font-size: 0.8rem;
    font-weight: 700;
    opacity: 0;
    transition: opacity 0.2s;
    backdrop-filter: blur(2px);
}

.art-frame:hover .zoom-hover-badge {
    opacity: 1;
}

/* Plakat Kuningan */
.brass-plaque {
    margin-top: 18px;
    width: 320px;
    background: linear-gradient(180deg, #1e293b, #0f172a);
    border: 1px solid rgba(245, 158, 11, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}

.plaque-top {
    display: flex;
    justify-content: space-between;
    font-size: 0.68rem;
    font-family: monospace;
    color: #f59e0b;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    padding-bottom: 4px;
    margin-bottom: 6px;
}

.plaque-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 4px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.plaque-desc {
    font-size: 0.72rem;
    color: #94a3b8;
    margin: 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Progress Lorong */
.tour-bottom-status {
    padding: 10px 20px;
    background: rgba(11, 15, 25, 0.85);
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 0.75rem;
    color: #94a3b8;
    border-top: 1px solid rgba(255,255,255,0.08);
}

.tour-progress-bar {
    flex: 1;
    background: #1e293b;
    height: 6px;
    border-radius: 9999px;
    overflow: hidden;
}

.progress-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #0d9488, #f59e0b);
    transition: width 0.15s ease;
}

/* =========================================
   LIGHTBOX ZOOM MODAL
   ========================================= */
.lightbox-modal {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: none;
    align-items: center;
    justify-content: center;
    user-select: none;
}

.lightbox-modal.open {
    display: flex;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(2, 6, 23, 0.95);
    backdrop-filter: blur(8px);
}

.lb-top-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.lb-counter {
    background: rgba(255,255,255,0.1);
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 700;
}

.lb-zoom-tools {
    display: flex;
    align-items: center;
    gap: 8px;
    background: rgba(15, 23, 42, 0.9);
    padding: 6px 16px;
    border-radius: 999px;
    border: 1px solid #334155;
}

.lb-zoom-tools button {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 1.1rem;
    cursor: pointer;
    padding: 0 6px;
}

.lb-close-btn {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    font-size: 1.8rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.lb-stage {
    position: relative;
    z-index: 5;
    max-width: 90vw;
    max-height: 75vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-stage img {
    max-width: 85vw;
    max-height: 70vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.9);
    transition: transform 0.2s ease-out;
}

.lb-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(15, 23, 42, 0.8);
    border: 1px solid #334155;
    color: #fff;
    font-size: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
}

.lb-arrow.prev { left: 20px; }
.lb-arrow.next { right: 20px; }

.lb-bottom-plaque {
    position: absolute;
    bottom: 20px;
    left: 20px;
    right: 20px;
    max-width: 600px;
    margin: 0 auto;
    background: rgba(15, 23, 42, 0.95);
    border: 1px solid #334155;
    padding: 12px 18px;
    border-radius: 14px;
    z-index: 10;
    text-align: center;
}

.lb-bottom-plaque h3 { margin: 0 0 4px 0; font-size: 0.95rem; color: #fff; }
.lb-bottom-plaque p { margin: 0 0 6px 0; font-size: 0.78rem; color: #cbd5e1; }
.lb-meta { font-size: 0.72rem; color: #2dd4bf; }

/* =========================================================
   TAMBAHAN (versi perbaikan): kisi foto, halaman foto, dll
   ========================================================= */
.galeri-page-wrapper { padding-bottom: 3rem; }
.galeri-page-wrapper .pameran-intro { padding-bottom: 1.25rem; }
.galeri-page-wrapper .text-center { text-align: center; }
.galeri-kosong { text-align: center; color: #94a3b8; padding: 3rem 0; }
.gallery-mode-nav .mode-btn { font-family: inherit; }
.tour-hall-scrollable { -ms-overflow-style: none; scrollbar-width: none; }
.lb-meta a { color: #f59e0b; text-decoration: none; margin-left: 4px; }
.lb-meta a:hover { text-decoration: underline; }

/* Kisi Foto (mode grid) */
.grid-gallery-wrap { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 18px; }
.grid-gallery-card { position: relative; border-radius: 14px; overflow: hidden; background: #1e293b;
    border: 1px solid rgba(255,255,255,.08); cursor: pointer; aspect-ratio: 4 / 3;
    transition: transform .25s ease, box-shadow .25s ease; }
.grid-gallery-card:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(0,0,0,.55); }
.grid-gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.grid-gallery-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 12px 10px;
    background: linear-gradient(0deg, rgba(2,6,23,.92), transparent); color: #fff; font-size: .8rem; line-height: 1.35; }
.grid-gallery-caption strong { display: block; font-size: .88rem; }
.grid-gallery-caption span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: #cbd5e1; }

/* Slider Sorotan di dalam tema gelap */
.galeri-page-wrapper .foto-slider { margin-bottom: 0; }

/* Halaman foto (foto.php) */
.foto-detail { padding: 34px 0 50px; }
.foto-detail .container { max-width: 900px; }
.foto-detail-back a, .foto-detail-nav a { color: var(--warna-primer, #066965); font-weight: 600; text-decoration: none; }
.foto-detail-back a:hover, .foto-detail-nav a:hover { text-decoration: underline; }
.foto-detail-figure { margin: 14px 0 22px; background: #0b1a19; border-radius: 16px; overflow: hidden;
    box-shadow: 0 14px 34px rgba(0,0,0,.18); text-align: center; }
.foto-detail-figure img { max-width: 100%; max-height: 75vh; width: auto; height: auto; display: inline-block; }
.foto-detail-info h1 { font-size: 1.7rem; margin: 0 0 10px; color: var(--warna-primer, #066965); }
.foto-detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.foto-tag { background: #e6f4f3; color: #066965; border-radius: 999px; padding: 3px 12px; font-size: .78rem; font-weight: 600; }
.foto-detail-desc { font-size: 1rem; line-height: 1.75; margin-bottom: 16px; }
.foto-detail-kurator { border-left: 4px solid var(--warna-sekunder, #53d4cc); background: #fff; padding: 12px 16px;
    border-radius: 8px; margin: 0 0 18px; font-size: .92rem; color: #334155; }
.foto-detail-nav { display: flex; justify-content: space-between; padding-top: 14px; border-top: 1px solid #dfe7e6; }
.foto-detail-notice { background: #fff3cd; border: 1px solid #ffe69c; border-radius: 8px; padding: 10px 14px; margin-bottom: 14px; font-size: .9rem; }
.foto-detail-kosong { text-align: center; padding: 60px 0; }

@media (max-width: 640px) {
    .tour-hall-scrollable { padding: 2.5rem 1.25rem; gap: 2.5rem; min-height: 460px; }
    .exhibition-item-slot { width: 300px; }
    .passe-partout img { width: 260px; height: 190px; }
    .brass-plaque { width: 270px; }
    .exhibition-welcome-card { width: 270px; }
    .tour-tip { display: none; }
    .lb-zoom-tools { display: none; }
}
