/* ======================================================================
   MOT15 INDONESIA V2 — GALLERY PAGE UI (v2.29.72)
   Editorial album archive in the existing public website design language.
   Static UI only: no gallery backend, album detail, or upload workflow.
   ====================================================================== */

.gallery-page {
    isolation: isolate;
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 15%, rgba(230, 184, 63, 0.052), transparent 28%),
        radial-gradient(circle at 12% 86%, rgba(230, 184, 63, 0.024), transparent 30%),
        linear-gradient(135deg, #0c0f0d 0%, #070908 54%, #050706 100%);
}

.gallery-page--touring {
    background:
        radial-gradient(circle at 15% 20%, rgba(230, 184, 63, 0.038), transparent 28%),
        linear-gradient(145deg, #090c0a 0%, #050706 72%);
}

.gallery-page--event {
    background:
        radial-gradient(circle at 82% 72%, rgba(230, 184, 63, 0.042), transparent 29%),
        linear-gradient(126deg, #0a0d0b 0%, #050706 69%);
}

.gallery-page--social {
    background:
        radial-gradient(circle at 22% 76%, rgba(230, 184, 63, 0.042), transparent 27%),
        linear-gradient(140deg, #0b0e0c 0%, #050706 67%);
}

.gallery-page__pattern {
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    opacity: 0.4;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: linear-gradient(90deg, transparent, #000 17%, #000 86%, transparent);
}

.gallery-page__inner {
    width: min(calc(100% - 84px), 1180px);
    min-height: 100vh;
    min-height: 100svh;
    margin: 0 auto;
    padding: 104px 0 56px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.gallery-page__heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    margin-bottom: 22px;
}

.gallery-page__heading > div {
    min-width: 0;
}

.gallery-page__eyebrow {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--site-gold-bright);
    font-size: 9px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 1.8px;
}

.gallery-page__eyebrow > span {
    width: 25px;
    height: 1px;
    background: linear-gradient(90deg, var(--site-gold-bright), rgba(230, 184, 63, 0.16));
}

.gallery-page__title {
    margin: 11px 0 0;
    color: #f4f4f2;
    font-size: clamp(38px, 4.2vw, 62px);
    line-height: 0.95;
    letter-spacing: -2.7px;
    font-weight: 900;
}

.gallery-page__title strong {
    color: var(--site-gold-bright);
    font-weight: 900;
}

.gallery-page__lead {
    max-width: 620px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.62);
    font-size: 13px;
    line-height: 1.55;
}

.gallery-page__heading-note {
    flex: 0 0 auto;
    padding-bottom: 4px;
    color: rgba(255, 255, 255, 0.34);
    font-size: 8px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.55px;
}

.gallery-page__featured-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.12fr) minmax(320px, 0.88fr);
    gap: 14px;
    height: clamp(390px, 48vh, 500px);
    min-height: 0;
}

.gallery-page__mosaic {
    display: grid;
    grid-template-columns: minmax(0, 1.36fr) minmax(160px, 0.64fr);
    grid-template-rows: 1fr 0.86fr;
    gap: 10px;
    min-width: 0;
}

.gallery-page__mosaic-photo,
.gallery-page__featured-card,
.gallery-page__album {
    position: relative;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    background: linear-gradient(145deg, rgba(20, 24, 20, 0.82), rgba(8, 10, 9, 0.74));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.gallery-page__mosaic-photo {
    margin: 0;
    border-radius: 18px;
}

.gallery-page__mosaic-photo:first-child {
    grid-row: 1 / 3;
}

.gallery-page__mosaic-photo::after,
.gallery-page__album::after {
    content: '';
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(160deg, transparent 34%, rgba(0, 0, 0, 0.68) 100%);
}

.gallery-page__mosaic-photo img,
.gallery-page__album img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: saturate(0.78) contrast(1.04) brightness(0.78);
}

.gallery-page__mosaic-photo:nth-child(1) img { object-position: 40% center; }
.gallery-page__mosaic-photo:nth-child(2) img { object-position: 68% 48%; }
.gallery-page__mosaic-photo:nth-child(3) img { object-position: 18% 54%; }

.gallery-page__featured-card {
    min-height: 0;
    border-radius: 20px;
    padding: clamp(22px, 2.2vw, 32px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    background:
        radial-gradient(circle at 76% 18%, rgba(230, 184, 63, 0.10), transparent 28%),
        linear-gradient(145deg, rgba(23, 27, 22, 0.88), rgba(8, 10, 9, 0.78));
}

.gallery-page__tag {
    width: max-content;
    min-height: 23px;
    display: inline-flex;
    align-items: center;
    padding: 0 9px;
    border: 1px solid rgba(230, 184, 63, 0.28);
    border-radius: 999px;
    background: rgba(5, 7, 6, 0.44);
    color: var(--site-gold-bright);
    font-size: 7px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: 1.05px;
}

.gallery-page__featured-card h2 {
    max-width: 510px;
    margin: 15px 0 0;
    color: rgba(255, 255, 255, 0.96);
    font-size: clamp(27px, 2.65vw, 39px);
    line-height: 0.98;
    letter-spacing: -1.65px;
    font-weight: 900;
}

.gallery-page__featured-card > p {
    max-width: 470px;
    margin: 13px 0 0;
    color: rgba(255, 255, 255, 0.58);
    font-size: 11px;
    line-height: 1.5;
}

.gallery-page__meta {
    display: block;
    margin-top: 13px;
    color: rgba(255, 255, 255, 0.46);
    font-size: 8px;
    line-height: 1.35;
    font-weight: 700;
    letter-spacing: 0.45px;
}

.gallery-page__album-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.28fr) minmax(0, 0.86fr) minmax(0, 0.86fr);
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 11px;
    height: clamp(390px, 48vh, 500px);
    min-height: 0;
}

.gallery-page__album {
    border-radius: 17px;
}

.gallery-page__album--featured {
    grid-row: 1 / 3;
}

.gallery-page__album img {
    transition: transform 320ms var(--site-ease), filter 320ms var(--site-ease);
}

.gallery-page__album:nth-child(1) img { object-position: 38% center; }
.gallery-page__album:nth-child(2) img { object-position: 76% center; }
.gallery-page__album:nth-child(3) img { object-position: 20% 50%; }
.gallery-page__album:nth-child(4) img { object-position: 58% 44%; }
.gallery-page__album:nth-child(5) img { object-position: 32% 62%; }

.gallery-page__album-number {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 13px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 7px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1px;
}

.gallery-page__album-copy {
    position: absolute;
    z-index: 2;
    left: 14px;
    right: 14px;
    bottom: 13px;
}

.gallery-page__album-copy strong {
    display: block;
    color: rgba(255, 255, 255, 0.95);
    font-size: 12px;
    line-height: 1.16;
    font-weight: 850;
    letter-spacing: -0.2px;
}

.gallery-page__album--featured .gallery-page__album-copy {
    left: 20px;
    right: 20px;
    bottom: 18px;
}

.gallery-page__album--featured .gallery-page__album-copy strong {
    max-width: 420px;
    font-size: clamp(21px, 2.05vw, 29px);
    line-height: 1.02;
    letter-spacing: -0.9px;
}

.gallery-page__album-copy small {
    display: block;
    margin-top: 7px;
    color: rgba(255, 255, 255, 0.52);
    font-size: 7.5px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: 0.4px;
}

.gallery-page__index {
    position: absolute;
    z-index: 3;
    right: 42px;
    bottom: 24px;
    color: rgba(255, 255, 255, 0.23);
    font-size: 8.5px;
    line-height: 1;
    font-weight: 800;
    letter-spacing: 1.25px;
}

@media (min-width: 1181px) and (max-height: 820px) {
    .gallery-page__inner {
        padding-top: 92px;
        padding-bottom: 42px;
    }

    .gallery-page__heading {
        margin-bottom: 17px;
    }

    .gallery-page__featured-layout,
    .gallery-page__album-grid {
        height: 390px;
    }
}

@media (max-width: 1180px) and (min-width: 761px) {
    .gallery-page__inner {
        width: min(calc(100% - 54px), 1040px);
    }

    .gallery-page__featured-layout {
        grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
    }

    .gallery-page__album-grid {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.925fr) minmax(0, 0.925fr);
    }
}

@media (max-width: 760px) {
    .gallery-page {
        overflow: hidden;
    }

    .gallery-page__pattern {
        opacity: 0.31;
        background-size: 42px 42px;
    }

    .gallery-page__inner {
        width: 100%;
        min-height: 100vh;
        min-height: 100svh;
        justify-content: flex-start;
        padding: 86px 16px 28px;
    }

    .gallery-page__heading {
        display: block;
        margin-bottom: 14px;
    }

    .gallery-page__eyebrow {
        gap: 8px;
        font-size: 7.5px;
        letter-spacing: 1.35px;
    }

    .gallery-page__eyebrow > span {
        width: 19px;
    }

    .gallery-page__title {
        margin-top: 8px;
        font-size: clamp(32px, 9.4vw, 40px);
        line-height: 0.96;
        letter-spacing: -1.65px;
    }

    .gallery-page__lead {
        max-width: 350px;
        margin-top: 9px;
        font-size: 10px;
        line-height: 1.45;
    }

    .gallery-page__desktop-only {
        display: none !important;
    }

    .gallery-page__featured-layout {
        display: block;
        height: auto;
    }

    .gallery-page__mosaic {
        grid-template-columns: minmax(0, 1.28fr) minmax(92px, 0.72fr);
        grid-template-rows: 112px 88px;
        gap: 8px;
    }

    .gallery-page__mosaic-photo {
        border-radius: 14px;
    }

    .gallery-page__featured-card {
        min-height: 188px;
        margin-top: 9px;
        padding: 15px;
        border-radius: 17px;
    }

    .gallery-page__tag {
        min-height: 21px;
        padding-inline: 8px;
        font-size: 6.4px;
    }

    .gallery-page__featured-card h2 {
        max-width: 340px;
        margin-top: 10px;
        font-size: 21px;
        line-height: 1.02;
        letter-spacing: -0.8px;
    }

    .gallery-page__featured-card > p {
        max-width: 335px;
        margin-top: 8px;
        font-size: 9px;
        line-height: 1.4;
    }

    .gallery-page__meta {
        margin-top: 9px;
        font-size: 7.3px;
    }

    .gallery-page__album-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: 246px 142px;
        gap: 9px;
        height: auto;
    }

    .gallery-page__album {
        border-radius: 15px;
    }

    .gallery-page__album--featured {
        grid-column: 1 / -1;
        grid-row: auto;
    }

    .gallery-page__album:nth-child(n + 4) {
        display: none;
    }

    .gallery-page__album--featured .gallery-page__album-copy {
        left: 15px;
        right: 15px;
        bottom: 14px;
    }

    .gallery-page__album--featured .gallery-page__album-copy strong {
        max-width: 330px;
        font-size: 20px;
        line-height: 1.03;
        letter-spacing: -0.65px;
    }

    .gallery-page__album-copy {
        left: 10px;
        right: 10px;
        bottom: 10px;
    }

    .gallery-page__album-copy strong {
        font-size: 9.5px;
        line-height: 1.15;
    }

    .gallery-page__album-copy small {
        margin-top: 5px;
        font-size: 6.6px;
    }

    .gallery-page__album-number {
        top: 9px;
        right: 10px;
        font-size: 6.5px;
    }

    .gallery-page__index {
        right: 16px;
        bottom: 13px;
        font-size: 7px;
        letter-spacing: 0.9px;
    }
}

@media (max-width: 380px) {
    .gallery-page__inner {
        padding-inline: 13px;
    }

    .gallery-page__mosaic {
        grid-template-rows: 103px 80px;
    }

    .gallery-page__featured-card {
        min-height: 176px;
    }

    .gallery-page__album-grid {
        grid-template-rows: 224px 130px;
    }
}

@media (max-width: 760px) and (max-height: 720px) {
    .gallery-page__inner {
        padding-top: 79px;
        padding-bottom: 20px;
    }

    .gallery-page__heading {
        margin-bottom: 10px;
    }

    .gallery-page__title {
        font-size: 30px;
    }

    .gallery-page__lead {
        margin-top: 7px;
        font-size: 9px;
    }

    .gallery-page__mosaic {
        grid-template-rows: 94px 72px;
    }

    .gallery-page__featured-card {
        min-height: 162px;
        padding: 13px;
    }

    .gallery-page__featured-card h2 {
        font-size: 18px;
    }

    .gallery-page__featured-card > p {
        display: none;
    }

    .gallery-page__album-grid {
        grid-template-rows: 204px 116px;
    }

    .gallery-page__album--featured .gallery-page__album-copy strong {
        font-size: 18px;
    }
}

@media (hover: hover) and (pointer: fine) {
    .gallery-page__album:hover img {
        transform: scale(1.018);
        filter: saturate(0.82) contrast(1.05) brightness(0.81);
    }
}

@media (prefers-reduced-motion: reduce) {
    .gallery-page__album img {
        transition: none;
    }
}
