
/* =====================================================
   VESCA GALLERY
   Theme: Black - Dark Navy - Royal Blue
===================================================== */

.gallery-page {
    --gallery-black: #000000;
    --gallery-dark: #020617;
    --gallery-navy: #0a1a3a;
    --gallery-blue: #1e3a8a;
    --gallery-accent: #60a5fa;
    --gallery-text: #111827;
    --gallery-muted: #64748b;

    color: var(--gallery-text);
    background: #ffffff;
    overflow: hidden;
}

.gallery-page *,
.gallery-page *::before,
.gallery-page *::after {
    box-sizing: border-box;
}

/* ================= HERO ================= */

.gallery-hero {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    padding: 100px 24px 95px;
    color: #ffffff;
    text-align: center;

    background: linear-gradient(
        120deg,
        #000000 0%,
        #020617 40%,
        #0a1a3a 75%,
        #1e3a8a 100%
    );
}

.gallery-hero::before,
.gallery-hero::after {
    position: absolute;
    z-index: -1;
    content: "";
    pointer-events: none;
    border-radius: 50%;
    filter: blur(2px);
}

.gallery-hero::before {
    width: 480px;
    height: 480px;
    top: -270px;
    right: -100px;
    background: radial-gradient(
        circle,
        rgba(96, 165, 250, 0.25),
        transparent 70%
    );
}

.gallery-hero::after {
    width: 400px;
    height: 400px;
    bottom: -300px;
    left: -100px;
    background: radial-gradient(
        circle,
        rgba(30, 58, 138, 0.4),
        transparent 70%
    );
}

.gallery-hero-content {
    position: relative;
    max-width: 850px;
    margin: 0 auto;
}

.gallery-eyebrow {
    display: inline-block;
    margin-bottom: 20px;
    color: var(--gallery-accent);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.gallery-hero h1 {
    margin: 0 0 20px;
    color: #ffffff;
    font-size: clamp(32px, 5vw, 54px);
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: -1px;
}

.gallery-hero h1 span {
    color: var(--gallery-accent);
}

.gallery-hero p {
    max-width: 650px;
    margin: 0 auto;
    color: #cbd5e1;
    font-size: 15px;
    line-height: 1.9;
}

/* ================= CONTAINER ================= */

.gallery-container {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
}

.gallery-section {
    padding-top: 65px;
    padding-bottom: 80px;
}

.gallery-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.gallery-section-heading h2 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -0.6px;
}

.gallery-section-heading p {
    margin: 0;
    color: var(--gallery-muted);
    font-size: 14px;
    line-height: 1.8;
}

/* Garis aksen */

.gallery-heading-line {
    width: 65px;
    height: 4px;
    margin-bottom: 17px;
    border-radius: 10px;
    background: linear-gradient(
        90deg,
        #020617,
        #1e3a8a,
        #60a5fa
    );
}

/* ================= FILTER ================= */

.gallery-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 35px;
}

.gallery-filter {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 19px;

    border: 1px solid #e2e8f0;
    border-radius: 6px;

    background: #ffffff;
    color: #475569;

    font-family: inherit;
    font-size: 13px;
    font-weight: 650;

    cursor: pointer;
    transition:
        color 0.25s ease,
        background 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.gallery-filter:hover {
    border-color: #1e3a8a;
    color: #1e3a8a;
}

.gallery-filter.active {
    border-color: transparent;
    background: linear-gradient(
        120deg,
        #020617,
        #0a1a3a 55%,
        #1e3a8a
    );
    color: #ffffff;
    box-shadow: 0 5px 15px rgba(30, 58, 138, 0.18);
}

.gallery-filter:focus-visible,
.gallery-image:focus-visible,
.gallery-lightbox-close:focus-visible {
    outline: 3px solid #60a5fa;
    outline-offset: 4px;
}

/* ================= GALLERY GRID ================= */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
}

.gallery-card[hidden] {
    display: none !important;
}

.gallery-card {
    min-width: 0;
    overflow: hidden;

    border: 1px solid #e5e7eb;
    border-radius: 10px;
    background: #ffffff;

    box-shadow: 0 5px 22px rgba(2, 6, 23, 0.045);

    transition:
        transform 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.3s ease;
}

.gallery-card:hover {
    transform: translateY(-5px);
    border-color: #cbd5e1;
    box-shadow: 0 15px 35px rgba(2, 6, 23, 0.12);
}

/* ================= IMAGE ================= */

.gallery-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
    cursor: zoom-in;
}

.gallery-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;

    transition: transform 0.5s ease;
}

.gallery-card:hover .gallery-image img {
    transform: scale(1.055);
}

/* Overlay */

.gallery-image::after {
    position: absolute;
    inset: 0;
    content: "";
    pointer-events: none;

    background: linear-gradient(
        to top,
        rgba(2, 6, 23, 0.4),
        transparent 50%
    );

    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-card:hover .gallery-image::after {
    opacity: 1;
}

.gallery-zoom {
    position: absolute;
    z-index: 2;
    right: 15px;
    bottom: 15px;

    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;

    background: rgba(2, 6, 23, 0.85);
    color: #ffffff;

    opacity: 0;
    transform: translateY(5px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.gallery-card:hover .gallery-zoom {
    opacity: 1;
    transform: translateY(0);
}

.gallery-image-fallback {
    position: absolute;
    inset: 0;
    padding: 20px;

    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 10px;

    color: #64748b;
    text-align: center;
}

/* ================= CARD INFORMATION ================= */

.gallery-info {
    padding: 22px;
}

.gallery-category {
    display: inline-block;
    margin-bottom: 12px;
    color: #1e40af;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.4px;
    text-transform: uppercase;
}

.gallery-info h3 {
    margin: 0 0 10px;
    color: #0f172a;
    font-size: 18px;
    font-weight: 750;
    line-height: 1.45;
}

.gallery-info p {
    margin: 0;
    color: #64748b;
    font-size: 13px;
    line-height: 1.85;
}

/* ================= EMPTY STATE ================= */

.gallery-empty {
    grid-column: 1 / -1;
    padding: 50px 20px;
    border: 1px dashed #cbd5e1;
    border-radius: 10px;
    color: #64748b;
    text-align: center;
}

/* ================= CONTACT CTA ================= */

.gallery-cta {
    position: relative;
    isolation: isolate;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;

    margin-top: 70px;
    padding: 40px;

    overflow: hidden;
    border-radius: 12px;

    background: linear-gradient(
        120deg,
        #000000 0%,
        #020617 40%,
        #0a1a3a 75%,
        #1e3a8a 100%
    );

    color: #ffffff;
}

.gallery-cta h2 {
    margin: 0 0 10px;
    color: #ffffff;
    font-size: clamp(21px, 3vw, 27px);
    font-weight: 800;
}

.gallery-cta p {
    max-width: 650px;
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.9;
}

.gallery-cta a {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    padding: 14px 22px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 6px;

    background: #ffffff;
    color: #0a1a3a;

    font-size: 13px;
    font-weight: 750;
    text-decoration: none;

    transition:
        background 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.gallery-cta a:hover {
    transform: translateY(-2px);
    background: #dbeafe;
}

/* ================= LIGHTBOX ================= */

.gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 99999;

    display: none;
    align-items: center;
    justify-content: center;

    padding: 25px;
    background: rgba(0, 0, 0, 0.94);
}

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

.gallery-lightbox-content {
    width: min(100%, 1000px);
    max-height: 100%;
    text-align: center;
}

.gallery-lightbox img {
    display: block;
    max-width: 100%;
    max-height: 75vh;
    margin: 0 auto;
    border-radius: 5px;
    object-fit: contain;
}

.gallery-lightbox h3 {
    margin: 20px 0 8px;
    color: #ffffff;
    font-size: 21px;
    font-weight: 750;
}

.gallery-lightbox p {
    margin: 0;
    color: #cbd5e1;
    font-size: 13px;
    line-height: 1.8;
}

.gallery-lightbox-close {
    position: absolute;
    top: 22px;
    right: 25px;

    display: grid;
    width: 45px;
    height: 45px;
    place-items: center;

    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;

    cursor: pointer;
    font-size: 27px;
    line-height: 1;

    transition: background 0.2s ease;
}

.gallery-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

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

@media (max-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .gallery-hero {
        padding: 80px 24px;
    }

    .gallery-section {
        padding-top: 50px;
    }
}

@media (max-width: 768px) {
    .gallery-container {
        width: calc(100% - 36px);
    }

    .gallery-section-heading {
        align-items: flex-start;
        flex-direction: column;
        gap: 12px;
    }

    .gallery-filters {
        gap: 8px;
        margin-bottom: 25px;
    }

    .gallery-filter {
        min-height: 39px;
        padding: 9px 13px;
        font-size: 12px;
    }

    .gallery-cta {
        align-items: flex-start;
        flex-direction: column;
        padding: 30px 24px;
    }

    .gallery-zoom {
        opacity: 1;
        transform: none;
    }
}

@media (max-width: 560px) {
    .gallery-hero {
        padding: 65px 20px;
    }

    .gallery-eyebrow {
        font-size: 10px;
        letter-spacing: 2px;
    }

    .gallery-hero h1 {
        font-size: 32px;
        letter-spacing: -0.5px;
    }

    .gallery-hero p {
        font-size: 13px;
    }

    .gallery-container {
        width: calc(100% - 30px);
    }

    .gallery-section {
        padding-top: 40px;
        padding-bottom: 50px;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-info {
        padding: 19px;
    }

    .gallery-cta {
        margin-top: 45px;
        padding: 25px 20px;
    }

    .gallery-cta a {
        width: 100%;
    }

    .gallery-lightbox {
        padding: 18px;
    }

    .gallery-lightbox img {
        max-height: 65vh;
    }

    .gallery-lightbox-close {
        top: 12px;
        right: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page *,
    .gallery-page *::before,
    .gallery-page *::after {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}
