/* =========================================================
   CLUBHORSERACE
   ========================================================= */

:root {
    --green: #9cff00;
    --black: #050505;
    --white: #f7f7f7;
    --grey: #777;
    --border: rgba(0, 0, 0, 0.16);
    --black-border: rgba(255, 255, 255, 0.15);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}


html {
    scroll-behavior: smooth;
}


body {
    background: var(--black);
    color: var(--black);
    font-family: Arial, Helvetica, sans-serif;
    overflow-x: hidden;
}


body.menu-open {
    overflow: hidden;
}


button,
a {
    font: inherit;
}


a {
    color: inherit;
    text-decoration: none;
}


img {
    display: block;
    max-width: 100%;
}


/* =========================================================
   HEADER
   ========================================================= */

.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 58px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    padding: 0 28px;

    background: transparent;
    color: var(--black);

    z-index: 1000;

    border-bottom: 1px solid transparent;

    transition:
        background 0.25s ease,
        border-color 0.25s ease;
}

body.logo-scrolled .header {
    background: var(--green);
    border-bottom-color: rgba(0, 0, 0, 0.12);
}


.logo-text {
    justify-self: start;

    font-size: 12px;
    font-weight: 800;
    letter-spacing: -0.03em;
}


.menu-button {
    justify-self: end;

    border: 0;
    padding: 0;

    background: transparent;
    color: var(--black);

    font-size: 12px;
    font-weight: 800;
    line-height: 1;

    cursor: pointer;

    appearance: none;
    -webkit-appearance: none;
}


.menu-button:hover {
    color: var(--green);
}


/* =========================================================
   MOBILE MENU
   ========================================================= */

.mobile-menu {
    position: fixed;
    inset: 0;

    background: var(--black);
    color: var(--white);

    z-index: 2000;

    display: flex;
    flex-direction: column;
    justify-content: space-between;

    padding: 80px 28px 28px;

    transform: translateX(100%);
    transition: transform 0.3s ease;
}


.mobile-menu.active {
    transform: translateX(0);
}


.close-button {
    position: absolute;
    top: 20px;
    right: 28px;

    background: transparent;
    border: 0;

    color: var(--white);

    font-size: 12px;
    font-weight: 800;

    cursor: pointer;
}


.menu-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}


.menu-links a {
    font-size: clamp(42px, 12vw, 90px);
    font-weight: 800;
    line-height: 0.88;
    letter-spacing: -0.06em;
}


.menu-links a:hover {
    color: var(--green);
}


.menu-socials {
    display: flex;
    flex-direction: column;
    gap: 7px;
}


.menu-socials a {
    font-size: 12px;
    font-weight: 800;
}


.menu-socials a:hover {
    color: var(--green);
}


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

.hero {
    min-height: 100vh;

    background: var(--green);

    position: relative;

    padding: 95px 38px 32px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;



    overflow: hidden;
}


.horse-logo {
    position: fixed;

    top: 50%;
    left: 50%;

    width: min(58vw, 620px);

    transform: translate(-50%, -50%);

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

    z-index: 1001;

    pointer-events: none;

    will-change: top, width;
}


.horse-logo img {
    width: 100%;
    height: auto;
}


.hero-bottom {
    position: absolute;

    left: 38px;
    right: 38px;
    bottom: 32px;

    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}


.small-label {
    font-size: 10px;
    font-weight: 800;

    margin-bottom: 8px;
}


.hero h1 {
    font-size: clamp(76px, 13vw, 190px);

    line-height: 0.82;

    letter-spacing: -0.075em;

    font-weight: 900;
}


.scroll-indicator {
    font-size: 30px;
    line-height: 1;
}


/* =========================================================
   GENERAL SECTION
   ========================================================= */

section {
    width: 100%;
}


.section-label {
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
}


/* =========================================================
   NEXT EVENT
   ========================================================= */

.next-event {
    background: var(--white);

    padding: 95px 38px 110px;

    min-height: auto;
}


.next-event-container {
    margin-top: 28px;

    display: grid;
    grid-template-columns: minmax(260px, 430px) 1fr;

    gap: 50px;

    align-items: end;
}


.event-image {
    width: 100%;
    aspect-ratio: 3 / 4;

    background: #e5e5e5;

    overflow: hidden;
}


.event-image img {
    width: 100%;
    height: 100%;

    object-fit: contain;

    background: #e5e5e5;
}


.event-placeholder {
    width: 100%;
    height: 100%;

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

    color: #777;

    font-size: 11px;
    font-weight: 800;
}


.event-info {
    padding-bottom: 8px;
}


.event-date {
    font-size: 12px;
    font-weight: 800;

    margin-bottom: 10px;
}


.event-info h2 {
    max-width: 900px;

    font-size: clamp(36px, 6vw, 90px);

    line-height: 0.92;

    letter-spacing: -0.06em;

    margin-bottom: 14px;
}


.event-location {
    font-size: 11px;
    font-weight: 800;

    text-transform: uppercase;

    margin-bottom: 25px;
}


.button {
    display: inline-flex;

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

    padding: 13px 18px;

    background: var(--black);
    color: var(--white);

    font-size: 11px;
    font-weight: 800;

    transition:
        background 0.15s ease,
        color 0.15s ease;
}


.button:hover {
    background: var(--green);
    color: var(--black);
}


/* =========================================================
   EVENTS
   ========================================================= */

.events {
    background: var(--black);
    color: var(--white);

    padding: 95px 38px 110px;
}


.section-heading {
    display: flex;
    align-items: baseline;

    gap: 14px;

    margin-bottom: 45px;
}


.section-heading span {
    font-size: 9px;
    color: #777;

    font-weight: 800;
}


.section-heading h2 {
    font-size: clamp(42px, 7vw, 100px);

    line-height: 0.85;

    letter-spacing: -0.07em;

    font-weight: 900;
}


.event-list {
    border-top: 1px solid var(--black-border);
}


.event-row {
    min-height: 66px;

    display: grid;
    grid-template-columns: 90px 1fr 30px;

    align-items: center;

    gap: 20px;

    border-bottom: 1px solid var(--black-border);

    color: var(--white);

    cursor: pointer;

    transition:
        color 0.15s ease,
        padding-left 0.2s ease;
}


.event-row:hover {
    color: var(--green);
    padding-left: 8px;
}


.event-row > span:first-child {
    font-size: 11px;
    font-weight: 800;
}


.event-row strong {
    font-size: 14px;
    font-weight: 800;

    letter-spacing: -0.02em;
}


.event-row > span:last-child {
    text-align: right;

    font-size: 16px;
}


.event-loading {
    cursor: default;
}


.event-loading:hover {
    color: var(--white);
    padding-left: 0;
}


/* =========================================================
   ARTISTS
   ========================================================= */

.artists {
    background: var(--black);
    color: var(--white);

    padding: 95px 38px 110px;
}


.artists-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 28px 14px;
}


.artist-card {
    min-width: 0;
}


.artist-image {
    display: block;

    width: 100%;
    aspect-ratio: 1 / 1;

    border: 0;
    padding: 0;

    background: #171717;

    overflow: hidden;

    cursor: pointer;
}


.artist-image img {
    width: 100%;
    height: auto;
    max-height: calc(100vh - 48px);

    object-fit: contain;

    transition: transform 0.35s ease;
}


.artist-image:hover img {
    transform: scale(1.03);
}


.artist-image-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;

    color: #777;

    font-size: 10px;
    font-weight: 800;
    cursor: default;
}


.artist-card-content {
    padding-top: 15px;
}


.artist-card h3 {
    font-size: 24px;
    line-height: 0.95;
    letter-spacing: -0.04em;
    font-weight: 900;

    margin-bottom: 12px;
}


.artist-bio {
    max-width: 430px;
}


.artist-bio p {
    margin: 0;

    font-size: 12px;
    line-height: 1.3;
    font-weight: 400;
    color: #bdbdbd;
}


.artist-bio-full {
    color: var(--white) !important;
}


.artist-read-more {
    margin-top: 10px;

    border: 0;
    padding: 0;

    background: transparent;
    color: var(--green);

    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.02em;

    cursor: pointer;
}


.artist-read-more:hover {
    color: var(--white);
}


.artist-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 12px;
}


.artist-links a {
    color: var(--green);

    font-size: 10px;
    font-weight: 800;
}


.artist-links a:hover {
    color: var(--white);
}


.artist-loading {
    font-size: 10px;
    font-weight: 800;
    color: #777;
}


/* =========================================================
   ARCHIVE
   ========================================================= */

.archive {
    background: var(--white);
    color: var(--black);

    padding: 95px 38px 110px;
}


.archive-grid {
    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    gap: 12px;
}


.archive-item {
    aspect-ratio: 1 / 1;

    background: #ddd;

    overflow: hidden;

    cursor: pointer;

    position: relative;
}


.archive-item img {
    width: 100%;
    height: 100%;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.archive-item:hover img {
    transform: scale(1.04);
}


.archive-loading {
    display: flex;

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

    font-size: 10px;
    font-weight: 800;

    color: #777;
}


/* =========================================================
   ABOUT
   ========================================================= */

.about {
    background: var(--green);
    color: var(--black);

    padding: 95px 38px 110px;
}


.about-text {
    max-width: 1050px;
}


.about-text p {
    font-size: clamp(20px, 3vw, 40px);

    line-height: 1.08;

    letter-spacing: -0.04em;

    font-weight: 700;

    margin-bottom: 28px;
}


.about-text p:last-child {
    margin-bottom: 0;
}


.about-tagline {
    margin-top: 55px;

    font-size: clamp(26px, 3.8vw, 52px) !important;

    font-weight: 900 !important;
}


/* =========================================================
   FOOTER
   ========================================================= */

footer {
    background: var(--black);
    color: var(--white);

    padding: 85px 38px 30px;

    min-height: 500px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
}


.footer-logo {
    font-size: clamp(58px, 8vw, 105px);

    line-height: 0.82;

    letter-spacing: -0.075em;

    font-weight: 900;

    margin-bottom: 65px;
}


.footer-links {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-bottom: auto;
}


.footer-links a {
    font-size: 11px;
    font-weight: 800;
}


.footer-links a:hover {
    color: var(--green);
}


.copyright {
    color: #666;

    font-size: 10px;
    font-weight: 700;

    margin-top: 55px;
}


/* =========================================================
   EVENT MODAL
   ========================================================= */

.event-modal {
    position: fixed;
    inset: 0;

    z-index: 3000;

    display: none;

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

    padding: 24px;
}

.event-modal.active {
    display: flex;
}

.event-modal-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.72);

    backdrop-filter: blur(8px);
    overflow: hidden;
}

.event-modal-content {
    position: relative;

    width: min(1180px, 100%);
    max-height: calc(100vh - 48px);

    overflow-y: auto;

    background: var(--white);
    color: var(--black);

    border: 1px solid rgba(255, 255, 255, 0.25);

    z-index: 1;
}

.modal-close {
    position: absolute;

    top: 18px;
    right: 20px;

    width: 36px;
    height: 36px;

    border: 0;
    background: transparent;

    color: var(--black);

    font-size: 28px;
    line-height: 1;

    cursor: pointer;

    z-index: 3;
}

.modal-close:hover {
    color: #777;
}

.event-detail {
    display: grid;

    grid-template-columns: minmax(340px, 45%) 1fr;

    min-height: 650px;
}

.event-detail-poster {
    width: 100%;

    background: #111;

    overflow: hidden;

    cursor: zoom-in;

    position: relative;

    display: flex;
    align-items: flex-start;
    justify-content: center;

    isolation: isolate;
}

.event-detail-poster::before {
    content: "";
    position: absolute;
    inset: -36px;

    background-image: var(--event-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;

    filter: blur(28px);
    transform: scale(1.08);
    opacity: 0.82;

    z-index: -2;
}

.event-detail-poster::after {
    content: "";

    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.22);

    z-index: -1;

    pointer-events: none;
}

.event-detail-poster .event-open-label {
    position: absolute;
    left: 18px;
    bottom: 16px;

    padding: 6px 8px;

    background: var(--green);
    color: var(--black);

    font-size: 8px;
    font-weight: 900;
    letter-spacing: .04em;

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

    transition: opacity .2s ease, transform .2s ease;

    pointer-events: none;
    z-index: 3;
}

.event-detail-poster:hover .event-open-label {
    opacity: 1;
    transform: translateY(0);
}

.event-detail-poster img {
    width: 100%;
    height: auto;

    object-fit: contain;
}

.event-detail-info {
    display: flex;
    flex-direction: column;
    align-items: stretch;

    padding: 42px 44px 46px;

    min-width: 0;
}

.event-detail-date {
    margin-bottom: 14px;

    font-family: "Courier New", Courier, monospace;
    font-size: 10px;
    font-weight: 700;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-detail-title {
    max-width: 760px;

    font-size: clamp(42px, 5.2vw, 92px);

    line-height: .84;

    letter-spacing: -.075em;

    font-weight: 900;

    margin-bottom: 18px;

    word-break: normal;
    overflow-wrap: normal;
    hyphens: none;
}

.event-detail-location {
    margin-bottom: 28px;

    font-size: 10px;
    font-weight: 900;

    letter-spacing: .04em;
    text-transform: uppercase;
}

.event-detail-lineup {
    margin-top: 4px;

    padding-top: 16px;

    border-top: 2px solid var(--black);
}

.event-detail-lineup-head {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 5px;
}

.event-detail-eyebrow,


.event-detail-lineup-list {
    display: flex;
    flex-direction: column;
}

.event-detail-lineup-row {
    display: grid;
    grid-template-columns: 26px 1fr;

    gap: 8px;

    align-items: baseline;

    padding: 9px 0;

    border-bottom: 1px solid var(--border);
}

.event-detail-lineup-row:last-child {
    border-bottom: 0;
}

.event-detail-lineup-number {
    font-family: "Courier New", Courier, monospace;

    font-size: 8px;
    font-weight: 700;

    color: #777;
}

.event-detail-lineup-name {
    font-size: clamp(22px, 2.2vw, 34px);
    line-height: .9;

    letter-spacing: -.055em;

    font-weight: 900;
}

.event-links {
    display: flex;
    flex-wrap: wrap;

    gap: 6px;

    margin-top: 24px;
}

.event-links a {
    background: var(--black);
    color: var(--white);

    padding: 10px 12px;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 9px;
    font-weight: 800;

    letter-spacing: .02em;
}

.event-links a:hover {
    background: var(--green);
    color: var(--black);
}

.event-detail-description {
    margin-top: 32px;

    max-width: 760px;

    padding-top: 18px;

    border-top: 1px solid var(--border);

    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    line-height: 1.55;
    letter-spacing: -.01em;
    font-weight: 600;

    white-space: pre-wrap;

    color: #202020;
}

.event-detail-media {
    grid-column: 1 / -1;

    display: grid;

    grid-template-columns:
        repeat(5, minmax(0, 1fr));

    gap: 8px;

    padding: 8px;

    border-top: 1px solid var(--border);
}

.event-detail-media img {
    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    cursor: pointer;
}

.event-detail-media img:hover {
    opacity: .82;
}


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

.lightbox {
    position: fixed;
    inset: 0;

    z-index: 4000;

    display: none;

    align-items: center;
    justify-content: center;
}


.lightbox.active {
    display: flex;
}


.lightbox-backdrop {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.95);
}


.lightbox-image-wrap {
    position: relative;

    z-index: 2;

    width: calc(100vw - 180px);
    height: calc(100vh - 100px);

    display: flex;

    align-items: center;
    justify-content: center;
}


.lightbox-image-wrap img {
    max-width: 100%;
    max-height: 100%;

    width: auto;
    height: auto;

    object-fit: contain;

    user-select: none;
}


.lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    z-index: 5;

    border: 0;
    background: transparent;

    color: var(--white);

    font-size: 40px;

    line-height: 1;

    cursor: pointer;
}


.lightbox-arrow {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    z-index: 5;

    width: 55px;
    height: 55px;

    border: 1px solid rgba(255, 255, 255, 0.4);

    background: rgba(0, 0, 0, 0.3);

    color: var(--white);

    cursor: pointer;

    font-size: 22px;
}


.lightbox-arrow:hover {
    background: var(--green);
    color: var(--black);
}


.lightbox-prev {
    left: 25px;
}


.lightbox-next {
    right: 25px;
}


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

@media (max-width: 800px) {

    .header {
        height: 54px;
        padding: 0 18px;
    }


    .logo-text {
        font-size: 10px;
    }


    .menu-button {
        font-size: 10px;
    }


    .hero {
        min-height: 100svh;

        padding:
            80px
            18px
            24px;
    }


    .horse-logo {
        width: 78vw;
    }


    .hero h1 {
        font-size: clamp(64px, 20vw, 120px);
    }


    .small-label {
        font-size: 8px;
    }


    .scroll-indicator {
        font-size: 22px;
    }


    .next-event,
    .events,
    .artists,
    .archive,
    .about {
        padding:
            70px
            18px
            80px;
    }


    .next-event-container {
        display: block;

        margin-top: 22px;
    }


    .event-image {
        width: min(78vw, 390px);

        margin-bottom: 28px;
    }


    .event-info h2 {
        font-size: clamp(38px, 11vw, 64px);
    }


    .event-row {
        min-height: 72px;

        grid-template-columns:
            65px
            1fr
            20px;

        gap: 10px;
    }


    .event-row strong {
        font-size: 12px;
    }


    .archive-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 7px;
    }


    .artists-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        gap: 26px 8px;
    }


    .artist-card-content {
        padding-top: 11px;
    }


    .artist-card h3 {
        font-size: 18px;
    }


    .artist-bio p {
        font-size: 11px;
        line-height: 1.28;
    }


    .artist-read-more,
    .artist-links a {
        font-size: 9px;
    }


    .section-heading {
        margin-bottom: 30px;
    }


    .section-heading h2 {
        font-size: 50px;
    }


    .about-text p {
        font-size: clamp(20px, 5vw, 32px);
        line-height: 1.08;
        margin-bottom: 24px;
    }


    .about-tagline {
        margin-top: 45px;
    }


    footer {
        min-height: 430px;

        padding:
            65px
            18px
            25px;
    }


    .footer-logo {
        font-size: 68px;
        margin-bottom: 55px;
    }


    /* Event modal */

    .event-modal {
        padding: 10px;
    }


    .event-modal-content {
        max-height: 94vh;

        padding: 20px;
    }


    .event-detail {
        display: block;
    }


    .event-detail-poster {
        width: 100%;
        margin: 0 auto 28px;
    }


    .event-detail-title {
        font-size: 45px;
    }


    .event-detail-lineup {
        margin-top: 28px;
    }


    .event-detail-lineup-list {
        grid-template-columns: 1fr;
        gap: 4px;
    }


    .event-detail-lineup-name {
        font-size: 26px;
    }


    .event-detail-description {
        font-family: Arial, Helvetica, sans-serif;
        font-size: 16px;
        line-height: 1.5;
        font-weight: 600;
    }


    .event-detail-media {
        grid-template-columns:
            repeat(3, minmax(0, 1fr));

        margin-top: 30px;
    }


    /* Lightbox */

    .lightbox-image-wrap {
        width: 100vw;
        height: 100vh;

        padding: 45px 18px;
    }


    .lightbox-arrow {
        display: none;
    }


    .lightbox-close {
        top: 15px;
        right: 18px;

        font-size: 34px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 420px) {

    .hero h1 {
        font-size: 64px;
    }


    .horse-logo {
        width: 82vw;
    }


    .event-image {
        width: 82vw;
    }


    .event-detail-media {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }

}
.event-modal-description {
    white-space: pre-wrap;
    line-height: 1.45;
}


/* =========================================================
   EVENT-BASED ARCHIVE
   ========================================================= */

.archive-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    align-items: start;
}

.archive-album,
.archive-more {
    display: block;
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--black);
    text-align: left;
    cursor: pointer;
}

.archive-album-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #ddd;
}

.archive-album-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .35s ease;
}

.archive-album:hover .archive-album-image img {
    transform: scale(1.035);
}

.archive-album-info {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding-top: 12px;
}

.archive-album-info strong {
    font-size: clamp(15px, 1.5vw, 22px);
    line-height: .95;
    letter-spacing: -.04em;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-album-info > span {
    font-size: 9px;
    font-weight: 800;
    color: #666;
}

.archive-more {
    position: relative;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--white);
    background: #111;
    text-align: center;
}

.archive-more img {
    position: absolute;
    inset: -12px;
    width: calc(100% + 24px);
    height: calc(100% + 24px);
    object-fit: cover;
    filter: blur(9px);
    transform: scale(1.08);
    opacity: .75;
}

.archive-more-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.48);
}

.archive-more strong,
.archive-more small {
    position: relative;
    z-index: 1;
}

.archive-more strong {
    color: var(--green);
    font-size: clamp(32px, 5vw, 68px);
    line-height: .85;
    font-weight: 900;
    letter-spacing: -.07em;
}

.archive-more small {
    margin-top: 12px;
    font-size: 9px;
    font-weight: 900;
    letter-spacing: .04em;
}

.archive-empty {
    grid-column: 1 / -1;
    min-height: 120px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    justify-content: center;
    font-size: 10px;
    font-weight: 800;
}

.archive-modal {
    position: fixed;
    inset: 0;
    z-index: 3500;
    display: none;
    align-items: stretch;
    justify-content: center;
    padding: 0;
}

.archive-modal.active {
    display: flex;
}

.archive-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.94);
}

.archive-modal-panel {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    background: var(--white);
    color: var(--black);
    padding: 26px 38px 50px;
}

.archive-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 42px;
    margin-bottom: 30px;
}

.archive-modal-back,
.archive-modal-close {
    border: 0;
    border-radius: 0;
    padding: 0;
    background: transparent;
    color: var(--black);
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
}

.archive-modal-back.is-hidden {
    visibility: hidden;
}

.archive-modal-close {
    font-size: 32px;
    line-height: 1;
}

.archive-modal-title {
    margin-bottom: 30px;
}

.archive-modal-title > span {
    display: block;
    margin-bottom: 12px;
    font-size: 9px;
    font-weight: 900;
    color: #777;
}

.archive-modal-title h2 {
    font-size: clamp(42px, 8vw, 100px);
    line-height: .82;
    letter-spacing: -.07em;
    font-weight: 900;
    text-transform: uppercase;
}

.archive-modal-albums {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px 12px;
}

.archive-photo-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
}

.archive-photo {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #ddd;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    cursor: zoom-in;
}

.archive-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.archive-photo:hover img {
    transform: scale(1.035);
}

@media (max-width: 800px) {
    .archive-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-modal-panel {
        padding: 20px 18px 35px;
    }

    .archive-modal-albums,
    .archive-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px 8px;
    }
}

@media (max-width: 420px) {
    .archive-grid {
        gap: 18px 7px;
    }

    .archive-album-info strong {
        font-size: 14px;
    }

    .archive-modal-title h2 {
        font-size: 46px;
    }
}


/* =========================================================
   NEXT EVENT — EMPTY STATE ONLY
   Keep the normal upcoming-event layout unchanged.
   ========================================================= */

.next-event.has-no-upcoming-event {
    padding-bottom: 72px;
}

.next-event-container:has(.event-info-empty) {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    min-height: 0;
    margin-top: 24px;
    gap: 0;
}

.next-event-container .event-info-empty {
    width: 100%;
    padding: 0;
    text-align: left;
}

.next-event-container .event-info-empty h2 {
    max-width: none;
    font-size: clamp(42px, 7vw, 100px);
    line-height: 0.85;
    letter-spacing: -0.07em;
    font-weight: 900;
    margin-bottom: 14px;
}

.next-event-container .event-info-empty .event-location {
    margin: 0;
}

@media (max-width: 800px) {
    .next-event.has-no-upcoming-event {
        padding: 70px 18px 58px;
    }

    .next-event-container:has(.event-info-empty) {
        display: flex;
        margin-top: 22px;
    }
}
