/* =========================================================
   GALLERY DETAIL
========================================================= */

.gallery-detail-page {
    --gallery-green: #01ff00;
    --gallery-orange: #ff6500;
    --gallery-dark: #111111;
    --gallery-text: #303030;
    --gallery-muted: #777777;
    --gallery-light: #f7f8f6;
    --gallery-border: #e8e8e8;
    --gallery-radius: 18px;

    color: var(--gallery-text);
}


/* =========================================================
   CONTAINER
========================================================= */

.gallery-detail-page .gallery-container {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}


/* =========================================================
   HERO
========================================================= */

.gallery-detail-hero {
    position: relative;

    min-height: 370px;

    display: flex;
    align-items: center;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #101510 0%,
            #1b271b 55%,
            #101010 100%
        );
}


.gallery-detail-hero::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    top: -245px;
    right: -80px;

    background: rgba(1, 255, 0, .10);

    border-radius: 50%;

    filter: blur(8px);
}


.gallery-detail-hero::after {
    content: "";

    position: absolute;

    width: 330px;
    height: 330px;

    bottom: -235px;
    left: -120px;

    background: rgba(255, 101, 0, .12);

    border-radius: 50%;

    filter: blur(8px);
}


.gallery-detail-hero__overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            90deg,
            rgba(0, 0, 0, .55),
            rgba(0, 0, 0, .08)
        );

    pointer-events: none;
}


.gallery-detail-hero .gallery-container {
    position: relative;
    z-index: 2;
}


.gallery-detail-hero__content {
    max-width: 800px;

    padding: 105px 0 70px;
}


.gallery-detail-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 17px;

    color: var(--gallery-green);

    font-size: 12px;
    font-weight: 800;

    letter-spacing: .12em;
    text-transform: uppercase;
}


.gallery-detail-hero__eyebrow-line {
    width: 32px;
    height: 2px;

    background: var(--gallery-orange);

    border-radius: 2px;
}


.gallery-detail-hero h1 {
    margin: 0 0 16px;

    color: #ffffff;

    font-size: clamp(38px, 5vw, 58px);
    line-height: 1.08;

    font-weight: 800;

    letter-spacing: -.03em;
}


.gallery-detail-hero p {
    max-width: 720px;

    margin: 0;

    color: rgba(255, 255, 255, .80);

    font-size: 16px;
    line-height: 1.75;
}


.gallery-detail-hero__meta {
    display: flex;
    align-items: center;

    margin-top: 24px;
}


.gallery-detail-hero__meta span {
    display: inline-flex;
    align-items: center;
    gap: 8px;

    padding: 8px 13px;

    color: #ffffff;

    background: rgba(255, 255, 255, .10);

    border: 1px solid rgba(255, 255, 255, .16);

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;

    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}


.gallery-detail-hero__meta svg {
    width: 15px;
    height: 15px;

    fill: currentColor;
}


/* =========================================================
   BREADCRUMB
========================================================= */

.gallery-detail-breadcrumb-wrap {
    background: #ffffff;

    border-bottom: 1px solid var(--gallery-border);
}


/*
 * Menggunakan style breadcrumb Gallery utama
 * supaya konsisten.
 */

.gallery-detail-breadcrumb-wrap .gallery-breadcrumb {
    min-height: 58px;

    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 8px;

    font-size: 13px;
}


.gallery-detail-breadcrumb-wrap .gallery-breadcrumb a {
    color: #777777;

    text-decoration: none;

    transition: color .2s ease;
}


.gallery-detail-breadcrumb-wrap .gallery-breadcrumb a:hover {
    color: var(--gallery-orange);
}


.gallery-detail-breadcrumb-wrap
.gallery-breadcrumb__separator {
    color: #bcbcbc;
}


.gallery-detail-breadcrumb-wrap
.gallery-breadcrumb__current {
    color: #222222;
    font-weight: 600;
}


/* =========================================================
   CONTENT
========================================================= */

.gallery-detail-content {
    padding: 72px 0 90px;

    background: #ffffff;
}


/* =========================================================
   SECTION HEADING
========================================================= */

.gallery-detail-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;

    gap: 30px;

    margin-bottom: 30px;
}


.gallery-detail-heading__left {
    display: flex;
    align-items: flex-start;

    gap: 17px;
}


.gallery-detail-heading__line {
    flex: 0 0 auto;

    width: 4px;
    height: 70px;

    background:
        linear-gradient(
            to bottom,
            var(--gallery-orange) 0 48%,
            var(--gallery-green) 48% 100%
        );

    border-radius: 4px;
}


.gallery-detail-heading__label {
    display: block;

    margin-bottom: 6px;

    color: var(--gallery-orange);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .12em;
    text-transform: uppercase;
}


.gallery-detail-heading h2 {
    margin: 0;

    color: #171717;

    font-size: clamp(28px, 4vw, 40px);
    line-height: 1.18;

    font-weight: 800;

    letter-spacing: -.025em;
}


.gallery-detail-heading__count {
    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;

    min-height: 38px;

    padding: 0 14px;

    color: #444444;

    background: #f5f5f5;

    border: 1px solid #e8e8e8;

    border-radius: 999px;

    font-size: 12px;
    font-weight: 700;
}


/* =========================================================
   PHOTO GRID
========================================================= */

.gallery-detail-grid {
    display: grid;

    grid-template-columns:
        repeat(3, minmax(0, 1fr));

    gap: 22px;
}


/* =========================================================
   PHOTO ITEM
========================================================= */

.gallery-detail-item {
    min-width: 0;

    margin: 0;
}


.gallery-detail-item__button {
    position: relative;

    display: block;

    width: 100%;

    padding: 0;

    overflow: hidden;

    border: 0;

    background: #eeeeee;

    border-radius: 16px;

    cursor: pointer;

    aspect-ratio: 3 / 2;

    isolation: isolate;
}


.gallery-detail-item picture {
    display: block;

    width: 100%;
    height: 100%;
}


.gallery-detail-item img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform .65s cubic-bezier(.2, .7, .2, 1);
}


/* =========================================================
   PHOTO OVERLAY
========================================================= */

.gallery-detail-item__overlay {
    position: absolute;
    inset: 0;

    z-index: 2;

    display: flex;
    align-items: center;
    justify-content: center;

    background: rgba(0, 0, 0, .0);

    opacity: 0;

    transition:
        opacity .3s ease,
        background .3s ease;

    pointer-events: none;
}


.gallery-detail-item__zoom {
    width: 52px;
    height: 52px;

    display: flex;
    align-items: center;
    justify-content: center;

    color: #111111;

    background: var(--gallery-green);

    border-radius: 50%;

    transform: translateY(10px) scale(.85);

    transition:
        transform .3s ease;
}


.gallery-detail-item__zoom svg {
    width: 21px;
    height: 21px;

    fill: currentColor;
}


/* =========================================================
   PHOTO HOVER
========================================================= */

.gallery-detail-item__button:hover img {
    transform: scale(1.07);
}


.gallery-detail-item__button:hover
.gallery-detail-item__overlay {
    opacity: 1;

    background: rgba(0, 0, 0, .30);
}


.gallery-detail-item__button:hover
.gallery-detail-item__zoom {
    transform: translateY(0) scale(1);
}


/* =========================================================
   FOCUS
========================================================= */

.gallery-detail-item__button:focus-visible {
    outline: 3px solid var(--gallery-orange);
    outline-offset: 4px;
}


/* =========================================================
   CAPTION
========================================================= */

.gallery-detail-item figcaption {
    margin-top: 9px;
    padding: 0 3px;

    color: #777777;

    font-size: 12px;
    line-height: 1.5;
}


/* =========================================================
   EMPTY STATE
========================================================= */

.gallery-detail-empty {
    max-width: 620px;

    margin: 0 auto;

    padding: 70px 30px;

    text-align: center;

    background: #fafafa;

    border: 1px solid var(--gallery-border);

    border-radius: 18px;
}


.gallery-detail-empty__icon {
    width: 64px;
    height: 64px;

    display: flex;
    align-items: center;
    justify-content: center;

    margin: 0 auto 20px;

    background:
        linear-gradient(
            135deg,
            rgba(1, 255, 0, .25),
            rgba(255, 101, 0, .18)
        );

    border-radius: 50%;
}


.gallery-detail-empty__icon svg {
    width: 28px;
    height: 28px;

    fill: #222222;
}


.gallery-detail-empty h2 {
    margin: 0 0 10px;

    color: #222222;

    font-size: 25px;
}


.gallery-detail-empty p {
    margin: 0 0 24px;

    color: #777777;

    font-size: 14px;
    line-height: 1.7;
}


.gallery-detail-empty__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 46px;

    padding: 0 20px;

    color: #111111;

    background: var(--gallery-green);

    border-radius: 9px;

    font-size: 13px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .2s ease,
        color .2s ease,
        transform .2s ease;
}


.gallery-detail-empty__button:hover {
    color: #ffffff;

    background: var(--gallery-orange);

    transform: translateY(-2px);
}


/* =========================================================
   CTA
========================================================= */

.gallery-detail-cta {
    padding: 0 0 90px;

    background: #ffffff;
}


.gallery-detail-cta__box {
    position: relative;

    overflow: hidden;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 35px;

    padding: 45px 50px;

    background:
        linear-gradient(
            135deg,
            #151915,
            #202820
        );

    border-radius: 22px;

    box-shadow:
        0 16px 45px rgba(0, 0, 0, .10);
}


.gallery-detail-cta__box::before {
    content: "";

    position: absolute;

    width: 280px;
    height: 280px;

    top: -150px;
    right: -100px;

    background: rgba(1, 255, 0, .10);

    border-radius: 50%;
}


.gallery-detail-cta__box::after {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    bottom: -110px;
    left: -90px;

    background: rgba(255, 101, 0, .12);

    border-radius: 50%;
}


.gallery-detail-cta__content {
    position: relative;
    z-index: 2;

    max-width: 720px;
}


.gallery-detail-cta__label {
    display: block;

    margin-bottom: 9px;

    color: var(--gallery-green);

    font-size: 11px;
    font-weight: 800;

    letter-spacing: .11em;
    text-transform: uppercase;
}


.gallery-detail-cta h2 {
    margin: 0 0 12px;

    color: #ffffff;

    font-size: clamp(27px, 4vw, 38px);
    line-height: 1.2;

    font-weight: 800;
}


.gallery-detail-cta p {
    margin: 0;

    color: rgba(255, 255, 255, .72);

    font-size: 15px;
    line-height: 1.7;
}


.gallery-detail-cta__button {
    position: relative;
    z-index: 2;

    flex: 0 0 auto;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding: 0 24px;

    color: #111111;

    background: var(--gallery-green);

    border-radius: 10px;

    font-size: 14px;
    font-weight: 800;

    text-decoration: none;

    transition:
        background .25s ease,
        color .25s ease,
        transform .25s ease;
}


.gallery-detail-cta__button svg {
    width: 18px;
    height: 18px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.gallery-detail-cta__button:hover {
    color: #ffffff;

    background: var(--gallery-orange);

    transform: translateY(-2px);
}


/* =========================================================
   LIGHTBOX
========================================================= */

.gallery-lightbox {
    position: fixed;

    inset: 0;

    z-index: 9999;

    display: none;

    align-items: center;
    justify-content: center;

    padding: 30px;

    visibility: hidden;
}


.gallery-lightbox.is-open {
    display: flex;

    visibility: visible;
}


/* Backdrop */

.gallery-lightbox__backdrop {
    position: absolute;

    inset: 0;

    background: rgba(0, 0, 0, .92);

    cursor: pointer;
}


/* Inner */

.gallery-lightbox__inner {
    position: relative;

    z-index: 2;

    width: min(1200px, 100%);

    height: min(90vh, 850px);

    display: flex;
    align-items: center;
    justify-content: center;
}


/* Media */

.gallery-lightbox__media {
    position: relative;

    max-width: calc(100% - 130px);
    max-height: 100%;

    display: flex;
    flex-direction: column;
    align-items: center;
}


.gallery-lightbox__media img {
    display: block;

    max-width: 100%;
    max-height: 78vh;

    width: auto;
    height: auto;

    object-fit: contain;

    border-radius: 8px;

    box-shadow:
        0 20px 70px rgba(0, 0, 0, .45);
}


/* Caption */

.gallery-lightbox__caption {
    max-width: 700px;

    margin-top: 12px;

    color: rgba(255, 255, 255, .85);

    font-size: 13px;

    line-height: 1.5;

    text-align: center;
}


/* Close */

.gallery-lightbox__close {
    position: absolute;

    top: 4px;
    right: 4px;

    z-index: 5;

    width: 46px;
    height: 46px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #ffffff;

    background: rgba(255, 255, 255, .10);

    border: 1px solid rgba(255, 255, 255, .16);

    border-radius: 50%;

    cursor: pointer;

    transition:
        background .2s ease,
        transform .2s ease;
}


.gallery-lightbox__close svg {
    width: 21px;
    height: 21px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
}


.gallery-lightbox__close:hover {
    background: var(--gallery-orange);

    transform: rotate(90deg);
}


/* Navigation */

.gallery-lightbox__nav {
    position: absolute;

    z-index: 5;

    top: 50%;

    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0;

    color: #ffffff;

    background: rgba(255, 255, 255, .10);

    border: 1px solid rgba(255, 255, 255, .16);

    border-radius: 50%;

    cursor: pointer;

    transform: translateY(-50%);

    transition:
        background .2s ease,
        transform .2s ease;
}


.gallery-lightbox__nav svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;

    stroke-width: 2;

    stroke-linecap: round;
    stroke-linejoin: round;
}


.gallery-lightbox__prev {
    left: 8px;
}


.gallery-lightbox__next {
    right: 8px;
}


.gallery-lightbox__prev:hover {
    background: var(--gallery-green);

    color: #111111;

    transform:
        translate(-3px, -50%);
}


.gallery-lightbox__next:hover {
    background: var(--gallery-green);

    color: #111111;

    transform:
        translate(3px, -50%);
}


/* Counter */

.gallery-lightbox__counter {
    position: absolute;

    left: 50%;
    bottom: 4px;

    z-index: 5;

    padding: 7px 12px;

    color: rgba(255, 255, 255, .85);

    background: rgba(0, 0, 0, .40);

    border-radius: 999px;

    font-size: 11px;
    font-weight: 700;

    transform: translateX(-50%);
}


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 980px) {

    .gallery-detail-page .gallery-container {
        width: min(100% - 32px, 760px);
    }


    .gallery-detail-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 20px;
    }


    .gallery-detail-hero {
        min-height: 340px;
    }


    .gallery-detail-hero__content {
        padding: 60px 0;
    }


    .gallery-detail-cta__box {
        padding: 40px;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 640px) {

    .gallery-detail-page .gallery-container {
        width: calc(100% - 30px);
    }


    /* Hero */

    .gallery-detail-hero {
        min-height: 320px;
    }


    .gallery-detail-hero__content {
        padding: 78px 0 52px;
    }


    .gallery-detail-hero__eyebrow {
        margin-bottom: 13px;

        font-size: 10px;
    }


    .gallery-detail-hero__eyebrow-line {
        width: 25px;
    }


    .gallery-detail-hero h1 {
        margin-bottom: 13px;

        font-size: 34px;
    }


    .gallery-detail-hero p {
        font-size: 14px;

        line-height: 1.65;
    }


    .gallery-detail-hero__meta {
        margin-top: 18px;
    }


    .gallery-detail-hero__meta span {
        padding: 7px 11px;

        font-size: 11px;
    }


    /* Breadcrumb */

    .gallery-detail-breadcrumb-wrap
    .gallery-breadcrumb {
        min-height: 50px;

        font-size: 12px;
    }


    /* Content */

    .gallery-detail-content {
        padding: 52px 0 65px;
    }


    /* Heading */

    .gallery-detail-heading {
        align-items: flex-start;

        gap: 14px;

        margin-bottom: 23px;
    }


    .gallery-detail-heading__left {
        gap: 12px;
    }


    .gallery-detail-heading__line {
        width: 3px;
        height: 58px;
    }


    .gallery-detail-heading__label {
        margin-bottom: 5px;

        font-size: 10px;
    }


    .gallery-detail-heading h2 {
        font-size: 27px;
    }


    .gallery-detail-heading__count {
        min-height: 32px;

        padding: 0 10px;

        font-size: 10px;
    }


    /* Photo Grid */

    .gallery-detail-grid {
        grid-template-columns: 1fr;

        gap: 18px;
    }


    .gallery-detail-item__button {
        border-radius: 15px;
    }


    .gallery-detail-item__zoom {
        width: 46px;
        height: 46px;
    }


    .gallery-detail-item figcaption {
        margin-top: 7px;

        font-size: 11px;
    }


    /* CTA */

    .gallery-detail-cta {
        padding-bottom: 65px;
    }


    .gallery-detail-cta__box {
        flex-direction: column;
        align-items: flex-start;

        gap: 24px;

        padding: 30px 24px;

        border-radius: 17px;
    }


    .gallery-detail-cta__label {
        font-size: 10px;
    }


    .gallery-detail-cta h2 {
        font-size: 27px;
    }


    .gallery-detail-cta p {
        font-size: 13px;

        line-height: 1.65;
    }


    .gallery-detail-cta__button {
        width: 100%;
    }


    /* =====================================================
       LIGHTBOX MOBILE
    ====================================================== */

    .gallery-lightbox {
        padding: 15px;
    }


    .gallery-lightbox__inner {
        width: 100%;
        height: 100%;
    }


    .gallery-lightbox__media {
        max-width: calc(100% - 10px);

        max-height: calc(100% - 120px);
    }


    .gallery-lightbox__media img {
        max-width: 100%;
        max-height: 70vh;

        border-radius: 5px;
    }


    .gallery-lightbox__close {
        top: 0;
        right: 0;

        width: 42px;
        height: 42px;
    }


    .gallery-lightbox__nav {
        width: 42px;
        height: 42px;

        top: auto;
        bottom: 30px;

        transform: none;
    }


    .gallery-lightbox__prev {
        left: 18px;
    }


    .gallery-lightbox__next {
        right: 18px;
    }


    .gallery-lightbox__prev:hover,
    .gallery-lightbox__next:hover {
        transform: none;
    }


    .gallery-lightbox__counter {
        bottom: 43px;
    }


    .gallery-lightbox__caption {
        max-width: 280px;

        font-size: 11px;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .gallery-detail-page .gallery-container {
        width: calc(100% - 24px);
    }


    .gallery-detail-hero h1 {
        font-size: 31px;
    }


    .gallery-detail-heading h2 {
        font-size: 25px;
    }


    .gallery-lightbox__media {
        max-width: 100%;
    }

}


/* =========================================================
   REDUCED MOTION
========================================================= */

@media (prefers-reduced-motion: reduce) {

    .gallery-detail-item img,
    .gallery-detail-item__overlay,
    .gallery-detail-item__zoom,
    .gallery-detail-cta__button,
    .gallery-detail-empty__button,
    .gallery-lightbox__close,
    .gallery-lightbox__nav {
        transition: none;
    }

}