/* =========================================================
   GALERI.CSS — Batik Ratih Gallery Page
   Style: Premium Lookbook · Editorial · Industrial
   ========================================================= */

/* ── PAGE HERO BAR ────────────────────────────────────── */
.gl-hero {
    background: #0f0a05;
    padding: 120px 0 0;
    position: relative;
    overflow: hidden;
}

.gl-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse 60% 50% at 80% 20%, rgba(243,136,20,0.08) 0%, transparent 70%),
        radial-gradient(ellipse 40% 60% at 10% 80%, rgba(243,136,20,0.05) 0%, transparent 70%);
    pointer-events: none;
}

.gl-hero-ornament {
    position: absolute;
    top: 0; right: 0;
    width: 420px;
    height: 420px;
    opacity: 0.06;
    pointer-events: none;
}

.gl-hero-inner {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 40px;
    padding-bottom: 56px;
}

.gl-hero-left {
    flex: 1;
}

.gl-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 24px;
}

.gl-breadcrumb a {
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.15em;
    color: rgba(255,255,255,0.4);
    text-decoration: none;
    text-transform: uppercase;
    transition: color 0.2s;
}

.gl-breadcrumb a:hover { color: #f38814; }

.gl-breadcrumb .sep {
    color: rgba(255,255,255,0.2);
    font-size: 11px;
}

.gl-breadcrumb .current {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    color: #f38814;
    text-transform: uppercase;
}

.gl-hero-heading {
    font-family: 'Inter', sans-serif;
    font-size: clamp(52px, 7vw, 96px);
    font-weight: 900;
    line-height: 0.9;
    letter-spacing: -0.03em;
    color: #fff;
    margin: 0 0 28px;
}

.gl-hero-heading .outline-text {
    -webkit-text-stroke: 1.5px rgba(255,255,255,0.25);
    color: transparent;
}

.gl-hero-heading .orange-accent {
    color: #f38814;
}

.gl-hero-desc {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,255,0.5);
    line-height: 1.7;
    max-width: 420px;
    margin: 0;
}

.gl-hero-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 20px;
    padding-bottom: 8px;
}

.gl-hero-stats {
    display: flex;
    gap: 32px;
}

.gl-stat {
    text-align: right;
}

.gl-stat-num {
    display: block;
    font-size: 32px;
    font-weight: 800;
    color: #f38814;
    letter-spacing: -0.02em;
    line-height: 1;
}

.gl-stat-label {
    display: block;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    color: rgba(255,255,255,0.4);
    text-transform: uppercase;
    margin-top: 4px;
}

/* ── MARQUEE STRIP ────────────────────────────────────── */
.gl-marquee-strip {
    background: #f38814;
    overflow: hidden;
    padding: 12px 0;
    white-space: nowrap;
}

.gl-marquee-track {
    display: inline-flex;
    animation: marqueeScroll 22s linear infinite;
}

.gl-marquee-track span {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #1a0f00;
    text-transform: uppercase;
    padding: 0 28px;
}

.gl-marquee-track .dot {
    color: rgba(26,15,0,0.5);
    font-size: 8px;
    vertical-align: middle;
    padding: 0;
}

@keyframes marqueeScroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ── FILTER BAR ───────────────────────────────────────── */
.gl-filter-section {
    background: #fff;
    padding: 0;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    position: sticky;
    top: 72px;
    z-index: 80;
}

.gl-filter-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px;
}

.gl-filter-tabs {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
}

.gl-filter-tabs::-webkit-scrollbar { display: none; }

.gl-filter-btn {
    background: none;
    border: none;
    padding: 18px 22px;
    font-family: 'Inter', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.12em;
    color: #888;
    text-transform: uppercase;
    cursor: pointer;
    position: relative;
    transition: color 0.25s;
    white-space: nowrap;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}

.gl-filter-btn::after {
    content: '';
    position: absolute;
    bottom: -1px; left: 22px; right: 22px;
    height: 2px;
    background: #f38814;
    transform: scaleX(0);
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.gl-filter-btn:hover { color: #1a1a1a; }

.gl-filter-btn.active {
    color: #f38814;
}

.gl-filter-btn.active::after {
    transform: scaleX(1);
}

.gl-filter-count {
    font-size: 10px;
    font-weight: 700;
    color: rgba(243,136,20,0.6);
    margin-left: 6px;
}

/* ── MAIN GALLERY GRID ────────────────────────────────── */
.gl-main {
    background: #f7f4f0;
    padding: 60px 0 100px;
}

.gl-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    grid-auto-rows: 240px;
    gap: 12px;
}

/* Bento layout rules */
.gl-item { position: relative; overflow: hidden; cursor: pointer; }
.gl-item--w2  { grid-column: span 6; }
.gl-item--w3  { grid-column: span 8; }
.gl-item--w4  { grid-column: span 4; }
.gl-item--w1  { grid-column: span 4; }
.gl-item--tall { grid-row: span 2; }
.gl-item--hero { grid-column: span 8; grid-row: span 2; }
.gl-item--sq   { grid-column: span 4; grid-row: span 2; }

.gl-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.7s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.gl-item:hover img {
    transform: scale(1.05);
}

/* Overlay */
.gl-item-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(10,5,0,0.85) 0%,
        rgba(10,5,0,0.2) 45%,
        transparent 70%
    );
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 24px;
}

.gl-item:hover .gl-item-overlay {
    opacity: 1;
}

.gl-item-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #f38814;
    text-transform: uppercase;
    margin-bottom: 6px;
    transform: translateY(8px);
    transition: transform 0.35s ease;
}

.gl-item-name {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
    line-height: 1.2;
    transform: translateY(12px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.gl-item-expand {
    position: absolute;
    top: 16px; right: 16px;
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.15);
    backdrop-filter: blur(8px);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: opacity 0.35s ease, transform 0.35s ease;
    border: 1px solid rgba(255,255,255,0.2);
}

.gl-item-expand svg {
    width: 14px; height: 14px;
    stroke: #fff;
}

.gl-item:hover .gl-item-cat,
.gl-item:hover .gl-item-name {
    transform: translateY(0);
}

.gl-item:hover .gl-item-expand {
    opacity: 1;
    transform: scale(1);
}

/* Item number badge */
.gl-item-num {
    position: absolute;
    top: 14px; left: 14px;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: rgba(255,255,255,0.5);
    background: rgba(0,0,0,0.3);
    backdrop-filter: blur(6px);
    padding: 4px 8px;
    border-radius: 3px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gl-item:hover .gl-item-num { opacity: 1; }

/* Hidden state for filter */
.gl-item.hidden {
    display: none;
}

/* Reveal animation */
.gl-item {
    opacity: 0;
    transform: translateY(24px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease,
        display 0s;
}

.gl-item.revealed {
    opacity: 1;
    transform: translateY(0);
}

/* ── CTA STRIP ────────────────────────────────────────── */
.gl-cta-strip {
    background: linear-gradient(135deg, #1a0f00 0%, #2d1a05 50%, #1a0f00 100%);
    padding: 80px 0;
    position: relative;
    overflow: hidden;
}

.gl-cta-strip::before {
    content: '';
    position: absolute;
    inset: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23f38814' fill-opacity='0.04'%3E%3Ccircle cx='30' cy='30' r='20'/%3E%3Ccircle cx='30' cy='30' r='12'/%3E%3Ccircle cx='30' cy='30' r='4'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    pointer-events: none;
}

.gl-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    position: relative;
    z-index: 1;
}

.gl-cta-tag {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: #f38814;
    text-transform: uppercase;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.gl-cta-tag::before {
    content: '';
    display: inline-block;
    width: 30px; height: 1px;
    background: #f38814;
}

.gl-cta-heading {
    font-size: clamp(28px, 4vw, 48px);
    font-weight: 800;
    color: #fff;
    line-height: 1.1;
    letter-spacing: -0.02em;
    margin: 0;
}

.gl-cta-heading strong {
    color: #f38814;
}

.gl-cta-actions {
    display: flex;
    gap: 16px;
    flex-shrink: 0;
    align-items: center;
}

.gl-cta-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #f38814;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 32px;
    border-radius: 3px;
    transition: background 0.25s, transform 0.2s;
}

.gl-cta-btn-primary:hover {
    background: #e07a08;
    transform: translateY(-2px);
}

.gl-cta-btn-outline {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: transparent;
    color: rgba(255,255,255,0.7);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-decoration: none;
    padding: 16px 24px;
    border: 1px solid rgba(255,255,255,0.2);
    border-radius: 3px;
    transition: border-color 0.25s, color 0.25s;
}

.gl-cta-btn-outline:hover {
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

/* ── LIGHTBOX ─────────────────────────────────────────── */
.gl-lightbox {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.gl-lightbox.active {
    opacity: 1;
    pointer-events: all;
}

.gl-lb-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(8, 4, 0, 0.95);
    backdrop-filter: blur(12px);
    cursor: pointer;
}

.gl-lb-panel {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    transform: scale(0.92);
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.gl-lightbox.active .gl-lb-panel {
    transform: scale(1);
}

.gl-lb-img-wrap {
    position: relative;
    max-width: 1000px;
    width: 100%;
}

.gl-lb-img-wrap img {
    width: 100%;
    max-height: 75vh;
    object-fit: contain;
    display: block;
    border-radius: 4px;
}

.gl-lb-info {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 16px 0 0;
}

.gl-lb-meta { flex: 1; }

.gl-lb-cat {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.18em;
    color: #f38814;
    text-transform: uppercase;
    margin-bottom: 4px;
}

.gl-lb-title {
    font-size: 16px;
    font-weight: 700;
    color: #fff;
}

.gl-lb-close {
    background: none;
    border: 1px solid rgba(255,255,255,0.2);
    color: rgba(255,255,255,0.6);
    width: 40px; height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: border-color 0.2s, color 0.2s;
    flex-shrink: 0;
}

.gl-lb-close:hover {
    border-color: #f38814;
    color: #f38814;
}

.gl-lb-close svg {
    width: 16px; height: 16px;
    stroke: currentColor;
}

/* Prev/Next arrows */
.gl-lb-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    color: #fff;
    width: 48px; height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
    z-index: 2;
}

.gl-lb-nav:hover { background: rgba(243,136,20,0.3); border-color: #f38814; }

.gl-lb-prev { left: -70px; }
.gl-lb-next { right: -70px; }

.gl-lb-nav svg { width: 18px; height: 18px; stroke: currentColor; }

/* ── RESPONSIVE ───────────────────────────────────────── */

/* ── Tablet landscape ─────────────────────────────────── */
@media (max-width: 1100px) {
    .gl-grid {
        grid-template-columns: repeat(6, 1fr);
        grid-auto-rows: 220px;
    }
    .gl-item--hero { grid-column: span 6; grid-row: span 2; }
    .gl-item--w3   { grid-column: span 4; }
    .gl-item--w2   { grid-column: span 3; }
    .gl-item--w4   { grid-column: span 2; }
    .gl-item--w1   { grid-column: span 2; }
    .gl-item--sq   { grid-column: span 3; }

    .gl-hero-heading { font-size: clamp(44px, 6vw, 72px); }
}

/* ── Tablet portrait ──────────────────────────────────── */
@media (max-width: 768px) {
    /* Hero */
    .gl-hero { padding: 88px 0 0; }

    .gl-hero-ornament { width: 200px; height: 200px; }

    .gl-hero-inner {
        flex-direction: column;
        align-items: flex-start;
        gap: 24px;
        padding-bottom: 36px;
    }

    .gl-hero-heading {
        font-size: clamp(40px, 10vw, 64px);
        line-height: 0.92;
    }

    .gl-hero-desc { font-size: 13px; max-width: 100%; }

    .gl-hero-right { align-items: flex-start; width: 100%; }

    .gl-hero-stats { gap: 20px; flex-wrap: wrap; }
    .gl-stat { text-align: left; }
    .gl-stat-num { font-size: 26px; }

    /* Filter bar */
    .gl-filter-section { top: 64px; }

    .gl-filter-inner { flex-direction: column; align-items: flex-start; padding: 0; }

    .gl-filter-tabs { width: 100%; padding: 0 16px; }

    .gl-filter-btn { padding: 14px 16px; font-size: 10px; }

    /* Gallery grid — 2 columns */
    .gl-main { padding: 32px 0 64px; }

    .gl-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 190px;
        gap: 6px;
    }

    .gl-item--hero,
    .gl-item--w3,
    .gl-item--w2,
    .gl-item--w4,
    .gl-item--w1,
    .gl-item--sq,
    .gl-item--tall {
        grid-column: span 2 !important;
        grid-row: span 1 !important;
    }

    .gl-item--hero { grid-row: span 2 !important; }

    /* Touch — always show overlay info at bottom */
    .gl-item-overlay {
        opacity: 1;
        background: linear-gradient(
            to top,
            rgba(10,5,0,0.8) 0%,
            rgba(10,5,0,0.1) 55%,
            transparent 75%
        );
    }

    .gl-item-cat { transform: translateY(0); font-size: 9px; }
    .gl-item-name { transform: translateY(0); font-size: 13px; }
    .gl-item-expand { opacity: 1; transform: scale(1); width: 30px; height: 30px; top: 12px; right: 12px; }

    /* CTA strip */
    .gl-cta-strip { padding: 56px 0; }

    .gl-cta-inner {
        flex-direction: column;
        text-align: center;
        gap: 28px;
    }

    .gl-cta-tag { justify-content: center; }

    .gl-cta-actions {
        flex-direction: column;
        width: 100%;
        gap: 12px;
    }

    .gl-cta-btn-primary,
    .gl-cta-btn-outline {
        justify-content: center;
        width: 100%;
        padding: 16px 20px;
    }

    /* Lightbox — arrows inside on mobile */
    .gl-lb-panel { max-width: 95vw; }

    .gl-lb-nav { width: 36px; height: 36px; }
    .gl-lb-nav svg { width: 14px; height: 14px; }
    .gl-lb-prev { left: 8px; top: auto; bottom: 60px; transform: none; }
    .gl-lb-next { right: 8px; top: auto; bottom: 60px; transform: none; }

    .gl-lb-img-wrap img { max-height: 65vh; }

    .gl-lb-title { font-size: 13px; }
}

/* ── Mobile ───────────────────────────────────────────── */
@media (max-width: 480px) {
    /* Hero */
    .gl-hero { padding: 80px 0 0; }

    .gl-hero-heading {
        font-size: clamp(36px, 12vw, 54px);
        line-height: 0.9;
    }

    .gl-hero-heading .outline-text {
        -webkit-text-stroke: 1px rgba(255,255,255,0.2);
    }

    .gl-hero-stats { gap: 16px; }
    .gl-stat-num { font-size: 22px; }
    .gl-stat-label { font-size: 9px; }

    /* Gallery — single column */
    .gl-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 240px;
        gap: 6px;
    }

    .gl-item--hero,
    .gl-item--w3,
    .gl-item--w2,
    .gl-item--w4,
    .gl-item--w1,
    .gl-item--sq,
    .gl-item--tall {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

    .gl-item--hero { grid-row: span 2 !important; }

    .gl-item-name { font-size: 14px; }

    /* CTA */
    .gl-cta-heading { font-size: 24px; }

    /* Lightbox fullscreen feel */
    .gl-lb-panel { max-width: 100vw; }
    .gl-lb-img-wrap img { max-height: 60vh; border-radius: 0; }

    .gl-lb-info { padding: 12px 0 0; }
    .gl-lb-cat { font-size: 9px; }
    .gl-lb-title { font-size: 12px; }
    .gl-lb-close { width: 34px; height: 34px; }

    /* Filter */
    .gl-filter-btn { padding: 12px 12px; font-size: 9.5px; letter-spacing: 0.08em; }
    .gl-filter-count { display: none; }

    /* Main padding */
    .gl-main { padding: 24px 0 52px; }
}

/* ── Very small screens (320px) ───────────────────────── */
@media (max-width: 360px) {
    .gl-hero-heading { font-size: 32px; }

    .gl-grid { grid-auto-rows: 200px; }

    .gl-hero-stats { flex-direction: column; gap: 10px; }
}

