/* ============================================================
   Langit Biru — galeri-carousel.css
   Menggantikan seluruh CSS galeri di custom.css:
   .lb-galeri-*, .lb-wix-*, .lb-lightbox-*

   Gaya baru: Carousel 3-foto Wix-style + Lightbox fullscreen putih
   ============================================================ */


/* ============================================================
   SECTION WRAPPER — tidak berubah dari sebelumnya
   ============================================================ */
.lb-galeri-section {
    padding: 100px 0 80px;
    background: #ffffff;
    font-family: var(--font-body, 'Open Sans', sans-serif);
    overflow: hidden; /* Cegah scroll horizontal karena carousel */
}

.lb-galeri-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 5%;
}

/* ============================================================
   HEADER SECTION — tidak berubah
   ============================================================ */
.lb-galeri-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-end;
    margin-bottom: 48px;
    gap: 30px;
}

.lb-galeri-header-kiri { flex: 1; min-width: 280px; }

.lb-galeri-label {
    font-family: var(--font-display, 'Raleway', sans-serif);
    font-size: 13px;
    font-weight: 700;
    color: var(--orange, #e8601a);
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 8px;
}

.lb-galeri-judul {
    font-family: var(--font-display, 'Raleway', sans-serif);
    font-size: clamp(2rem, 3vw, 2.8rem);
    font-weight: 800;
    color: #1a2b4b;
    line-height: 1.2;
    margin: 0;
}

.lb-galeri-judul span { color: var(--orange, #e8601a); }

.lb-galeri-header-kanan { flex: 0 0 350px; }

.lb-galeri-desc {
    font-size: 0.95rem;
    color: #666;
    line-height: 1.7;
    margin: 0;
}

/* ============================================================
   CAROUSEL WRAPPER
   Posisi relative agar tombol prev/next bisa absolute
   ============================================================ */
.lb-carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 0;
}

/* ============================================================
   TOMBOL NAVIGASI CAROUSEL — panah kiri & kanan
   Posisi: menempel di tepi luar track, vertikal tengah
   ============================================================ */
.lb-carousel-btn {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    padding: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.lb-carousel-btn:hover {
    color: var(--orange, #e8601a);
    background: rgba(255, 255, 255, 1);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
}

/* ============================================================
   TRACK WRAPPER — overflow hidden agar slide terpotong
   ============================================================ */
.lb-carousel-track-wrap {
    flex: 1;
    overflow: hidden;
    cursor: grab;
}

.lb-carousel-track-wrap:active { cursor: grabbing; }

/* ============================================================
   TRACK — container flex semua slide
   ============================================================ */
.lb-carousel-track {
    display: flex;
    gap: 20px;
    will-change: transform;
    /* Transition diatur via JS goTo() */
    user-select: none;
    -webkit-user-select: none;
}

/* ============================================================
   SLIDE INDIVIDUAL
   Lebar diatur JS secara dinamis agar responsif
   ============================================================ */
.lb-carousel-slide {
    flex-shrink: 0;
    position: relative;
    aspect-ratio: 3 / 2; /* Sama dengan spesifikasi sebelumnya */
    overflow: hidden;
    cursor: zoom-in;
    background: #e0e0e0;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.lb-carousel-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
    pointer-events: none; /* Cegah drag gambar mengganggu carousel drag */
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.lb-carousel-slide:hover .lb-carousel-img {
    transform: scale(1.04);
}

/* ============================================================
   INDIKATOR DOT
   ============================================================ */
.lb-carousel-dots {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 28px;
}

.lb-carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ccc;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: background 0.25s ease, transform 0.25s ease;
}

.lb-carousel-dot.aktif {
    background: var(--orange, #e8601a);
    transform: scale(1.3);
}

/* ============================================================
   LIGHTBOX FULLSCREEN — WIX STYLE
   Background: putih bersih
   Layout: gambar kiri (~60%) | teks kanan (~40%)
   ============================================================ */
.lb-wix-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    /* Tersembunyi secara default */
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lb-wix-lightbox.is-open {
    opacity: 1;
    visibility: visible;
}

/* ---- Tombol expand (pojok kiri atas) ---- */
.lb-wl-expand {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.lb-wl-expand:hover { color: var(--orange, #e8601a); }

/* ---- Tombol tutup X (pojok kanan atas) ---- */
.lb-wl-tutup {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 36px; height: 36px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.lb-wl-tutup:hover { color: var(--orange, #e8601a); }

/* ---- Tombol navigasi tepi layar ---- */
.lb-wl-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 44px; height: 80px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #888;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease;
}

.lb-wl-nav:hover { color: #111; }
.lb-wl-prev { left: 0; }
.lb-wl-next { right: 0; }

/* ---- Panel konten (gambar + teks) ---- */
.lb-wl-panel {
    display: flex;
    width: calc(100% - 120px); /* Sisakan ruang untuk tombol nav */
    max-width: 1100px;
    height: 75vh;
    max-height: 640px;
    align-items: stretch;
    gap: 0;
}

/* ---- Sisi kiri: gambar ---- */
.lb-wl-kiri {
    flex: 0 0 60%;
    overflow: hidden;
    background: #000000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lb-wl-gambar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: opacity 0.18s ease;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* ---- Sisi kanan: teks ---- */
.lb-wl-kanan {
    flex: 0 0 40%;
    padding: 56px 48px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0;
    background: #ffffff;
    overflow-y: auto;
}

.lb-wl-judul {
    font-family: var(--font-display, 'Raleway', sans-serif);
    font-size: clamp(1.6rem, 2.5vw, 2.4rem);
    font-weight: 800;
    color: #111;
    line-height: 1.2;
    margin: 0 0 20px 0;
    letter-spacing: -0.3px;
}

.lb-wl-desc {
    font-family: var(--font-body, 'Open Sans', sans-serif);
    font-size: 0.95rem;
    color: #555;
    line-height: 1.8;
    margin: 0 0 32px 0;
}

/* Tombol CTA di lightbox */
.lb-wl-cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display, 'Raleway', sans-serif);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: #fff;
    background: var(--orange, #e8601a);
    text-decoration: none;
    padding: 12px 24px;
    align-self: flex-start;
    transition: background 0.25s ease, transform 0.25s ease;
}

.lb-wl-cta:hover {
    background: var(--orange-hover, #d45210);
    color: #fff;
    text-decoration: none;
    transform: translateX(4px);
}

/* ============================================================
   RESPONSIVE
   ============================================================ */

/* Tablet: 2 foto di carousel */
@media (max-width: 992px) {
    .lb-wl-panel {
        width: calc(100% - 80px);
        height: 80vh;
    }
    .lb-wl-kiri  { flex: 0 0 55%; }
    .lb-wl-kanan { flex: 0 0 45%; padding: 36px 28px; }
}

/* Mobile: 1 foto di carousel, lightbox full column */
@media (max-width: 640px) {
    .lb-galeri-section { padding: 70px 0 60px; }

    .lb-carousel-btn {
        width: 32px;
        color: #999;
    }

    /* Lightbox: layout kolom di mobile */
    .lb-wix-lightbox { overflow-y: auto; }

    .lb-wl-panel {
        flex-direction: column;
        width: 100%;
        height: auto;
        max-height: none;
        padding-top: 56px; /* Ruang untuk tombol expand & X */
    }

    .lb-wl-kiri {
        flex: none;
        width: 100%;
        height: 55vw;
        min-height: 240px;
    }

    .lb-wl-kanan {
        flex: none;
        width: 100%;
        padding: 28px 24px 32px;
        justify-content: flex-start;
    }

    .lb-wl-nav {
        top: auto;
        bottom: 0;
        height: 56px;
        transform: none;
    }

    .lb-wl-prev { left: 0; }
    .lb-wl-next { right: 0; }
}
