/* Uses the variables and shared components from styles.css. */


/* ==================================================
   ACCESSIBILITY
================================================== */

.visually-hidden {
    position: absolute;

    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;

    overflow: hidden;

    clip: rect(0, 0, 0, 0);
    white-space: nowrap;

    border: 0;
}


/* ==================================================
   MODAL PAGE LOCK
================================================== */

body.modal-open {
    overflow: hidden;
}


/* ==================================================
   EVENTS CONTAINER
================================================== */

.events-container {
    width: min(1120px, calc(100% - 48px));
    margin: 0 auto;
}


/* ==================================================
   EVENTS PAGE
================================================== */

.events-page {
    position: relative;
    z-index: 3;

    min-height: 100vh;
    padding-top: var(--header-height);

    background-color: #ffffff;
}


/* ==================================================
   COMPACT TITLE BAR
================================================== */

.events-title-bar {
    padding: 25px 20px;

    background-color: var(--mid-grey);

    text-align: center;
}

.events-title-bar h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin: 0;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.5rem, 2.6vw, 2rem);
    font-weight: 400;
    line-height: 1.2;
}

.events-title-bar h1 > span:first-child {
    color: var(--navy);
}

.events-title-bar h1 strong {
    color: var(--orange);

    font-weight: 400;
}

.title-divider {
    color: rgba(0, 0, 0, 0.18);
}


/* ==================================================
   EVENTS CALENDAR
================================================== */

.events-calendar {
    padding: 50px 0 35px;

    background-color: #ffffff;
}


/* ==================================================
   SEARCH TOOLBAR
================================================== */

.events-toolbar {
    display: grid;
    grid-template-columns:
        minmax(230px, 1fr)
        auto
        auto;

    min-height: 56px;

    overflow: hidden;

    background-color: #ffffff;
    border: 1px solid rgba(0, 0, 0, 0.12);
}

.events-search-field {
    display: flex;
    align-items: center;

    gap: 12px;

    min-width: 0;

    padding: 0 17px;
}

.events-search-field svg {
    flex: 0 0 auto;

    width: 21px;
    height: 21px;

    fill: none;

    stroke: #666666;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.events-search-field input {
    width: 100%;
    min-width: 0;

    padding: 0;

    border: 0;
    outline: 0;

    background-color: transparent;
    color: var(--text);

    font-size: 13px;
    line-height: 1.4;
}

.events-search-field input::placeholder {
    color: #666666;
}


/* ==================================================
   FIND EVENTS BUTTON
================================================== */

.find-events-button {
    min-width: 165px;

    padding: 0 23px;

    border: 0;

    background-color: var(--orange);
    color: #ffffff;

    cursor: pointer;

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.13em;

    text-transform: uppercase;

    transition:
        background-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.find-events-button:hover,
.find-events-button:focus-visible {
    background-color: var(--gold);
    color: var(--navy);

    transform: translateY(-1px);
}

.find-events-button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: -3px;
}


/* ==================================================
   VIEW CONTROLS
================================================== */

.events-view-controls {
    display: flex;
    align-items: stretch;

    padding: 0 6px;

    background-color: var(--light-grey);
}

.events-view-button {
    min-width: 58px;

    padding: 0 8px;

    border: 0;

    background-color: transparent;
    color: #666666;

    cursor: pointer;

    font-size: 12px;

    transition:
        color 0.2s ease,
        background-color 0.2s ease;
}

.events-view-button:hover,
.events-view-button.active,
.events-view-button[aria-pressed="true"] {
    color: var(--orange);
}

.events-view-button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: -3px;
}


/* ==================================================
   EVENT NAVIGATION
================================================== */

.events-navigation {
    display: flex;
    align-items: center;

    gap: 18px;

    padding: 26px 0;
}

.events-navigation-left {
    display: flex;
    align-items: center;

    gap: 4px;
}


/* ==================================================
   EVENT ARROWS
================================================== */

.events-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 29px;
    height: 38px;

    padding: 0;

    border: 0;

    background-color: transparent;
    color: var(--navy);

    cursor: pointer;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.events-arrow svg {
    width: 23px;
    height: 23px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.7;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.events-arrow:hover {
    color: var(--orange);

    transform: translateX(-1px);
}

.events-arrow:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}

.events-arrow-disabled,
.events-arrow:disabled {
    color: rgba(0, 0, 0, 0.13);

    cursor: default;
}

.events-arrow-disabled:hover,
.events-arrow:disabled:hover {
    color: rgba(0, 0, 0, 0.13);

    transform: none;
}


/* ==================================================
   TODAY BUTTON
================================================== */

.events-today-button {
    margin-left: 8px;

    padding: 8px 15px;

    border: 1px solid rgba(0, 0, 0, 0.14);

    background-color: #ffffff;
    color: var(--navy);

    cursor: pointer;

    font-size: 12px;

    transition:
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.events-today-button:hover,
.events-today-button:focus-visible {
    border-color: var(--orange);

    color: var(--orange);

    transform: translateY(-1px);
}

.events-today-button:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 2px;
}


/* ==================================================
   EVENTS PERIOD
================================================== */

.events-period {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin: 0;

    color: var(--navy);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.4rem, 2.8vw, 1.8rem);
    line-height: 1;
}

.events-period svg {
    width: 16px;
    height: 16px;

    fill: none;

    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ==================================================
   UPCOMING EVENTS
================================================== */

.upcoming-events-list {
    width: 100%;
}


/* ==================================================
   EMPTY UPCOMING EVENTS
================================================== */

.events-empty-state {
    padding: 18px;

    background-color: var(--light-grey);
    color: #666666;

    text-align: center;
}

.events-empty-state p {
    margin: 0;

    font-size: 13px;
    line-height: 1.5;
}

.events-empty-state[hidden] {
    display: none;
}


/* ==================================================
   PAST EVENTS
================================================== */

.past-events {
    padding: 30px 0 75px;

    background-color: #ffffff;
}

.past-events-title {
    margin-bottom: 30px;
}

.past-events-title h2 {
    margin: 0;

    color: var(--navy);

    font-family: Arial, Helvetica, sans-serif;
    font-size: clamp(1.55rem, 3vw, 2rem);
    font-weight: 700;
    line-height: 1.2;
}

.past-events-list {
    width: min(920px, 100%);
}


/* ==================================================
   EVENT ROWS
================================================== */

.event-row {
    display: grid;

    grid-template-columns:
        90px
        3px
        minmax(0, 1fr);

    align-items: stretch;

    gap: 18px;

    padding: 28px 0;

    background-color: #ffffff;

    opacity: 1;

    transform: translateY(0);
}

.event-row + .event-row {
    margin-top: 45px;
}


/* ==================================================
   CLICKABLE EVENT ROWS
================================================== */

.event-row-link {
    position: relative;

    cursor: pointer;

    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.event-row-link:hover {
    background-color: rgba(247, 247, 247, 0.75);

    box-shadow:
        0 10px 28px
        rgba(0, 0, 0, 0.05);

    transform: translateY(-3px);
}

.event-row-link:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 6px;
}

.event-row-link.animate-in {
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.event-row-link.animate-in:hover {
    transform: translateY(-3px);
}


/* ==================================================
   EVENT DATE BLOCK
================================================== */

.event-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    align-self: start;

    width: 90px;
    min-width: 90px;
    height: 90px;

    padding: 8px;

    background-color: var(--orange);
    color: var(--navy);

    text-align: center;
    text-decoration: none;

    transition:
        background-color 0.25s ease,
        color 0.25s ease;
}

.event-row-link:hover .event-date,
.event-row-link:focus-visible .event-date {
    background-color: var(--gold);
}

.event-month {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.1;

    text-transform: uppercase;
}

.event-day {
    margin: 4px 0 2px;

    font-family: Georgia, "Times New Roman", serif;
    font-size: 2.3rem;
    font-weight: 700;
    line-height: 0.82;
}

.event-year {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1;
}


/* ==================================================
   EVENT ACCENT
================================================== */

.event-accent {
    width: 3px;

    min-height: 100%;

    background-color: var(--orange);

    transition:
        background-color 0.25s ease,
        transform 0.25s ease;
}

.event-row-link:hover .event-accent,
.event-row-link:focus-visible .event-accent {
    background-color: var(--gold);

    transform: scaleY(1.03);
}


/* ==================================================
   EVENT DETAILS
================================================== */

.event-details {
    align-self: center;

    min-width: 0;
}

.event-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;

    gap: 6px;

    margin-bottom: 8px;

    color: var(--navy);

    font-size: 12px;
    line-height: 1.4;
}

.event-featured {
    color: var(--orange);

    font-weight: 700;
}

.event-featured::before {
    content: "◆";

    margin-right: 5px;

    font-size: 6px;

    vertical-align: middle;
}

.event-details h3 {
    margin: 0 0 10px;

    color: var(--navy);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.45rem, 2.8vw, 2rem);
    font-weight: 400;
    line-height: 1.2;

    text-transform: uppercase;

    transition: color 0.2s ease;
}

.event-row-link:hover .event-details h3,
.event-row-link:focus-visible .event-details h3 {
    color: var(--orange);
}

.event-location {
    margin: 10px 0;

    color: var(--text);

    font-size: 13px;
    font-weight: 700;
    line-height: 1.4;
}

.event-description {
    max-width: 620px;

    margin: 0;

    color: #666666;

    font-size: 15px;
    line-height: 1.7;
}


/* ==================================================
   VIEW EVENT LABEL
================================================== */

.event-read-more {
    display: inline-flex;
    align-items: center;

    gap: 6px;

    margin-top: 13px;

    color: var(--orange);

    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.12em;
    line-height: 1.3;

    text-transform: uppercase;

    opacity: 0;

    transform: translateX(-5px);

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}

.event-read-more span {
    font-size: 16px;
    line-height: 1;
}

.event-row-link:hover .event-read-more,
.event-row-link:focus-visible .event-read-more {
    opacity: 1;

    transform: translateX(0);
}


/* ==================================================
   CONTACT NOTE
================================================== */

.events-contact-note {
    width: min(920px, 100%);

    margin-top: 35px;

    padding-top: 18px;

    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.events-contact-note p {
    margin: 0;

    color: #666666;

    font-size: 12px;
    line-height: 1.6;
}

.events-contact-note a {
    color: var(--orange);

    font-weight: 700;
    text-decoration: none;

    transition: color 0.2s ease;
}

.events-contact-note a:hover,
.events-contact-note a:focus-visible {
    color: var(--navy);
}


/* ==================================================
   VIEW STATES
================================================== */

.upcoming-events-list[data-view="month"] {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 16px;
}

.upcoming-events-list[data-view="day"]
.event-row:not(:first-child) {
    display: none;
}


/* ==================================================
   SCROLL REVEAL
================================================== */

.js-enabled
.event-row.reveal-ready:not(.animate-in) {
    opacity: 0;

    transform:
        translateY(18px)
        scale(0.992);
}

.event-row.reveal-ready {
    transition:
        opacity 1s ease,
        transform 1.15s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );
}

.event-row.animate-in {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/*
   Restore quicker transitions once
   the entrance animation has completed.
*/

.event-row-link.reveal-ready.animate-in {
    transition:
        background-color 0.25s ease,
        box-shadow 0.25s ease,
        transform 0.25s ease;
}

.event-row-link.reveal-ready.animate-in:hover {
    transform: translateY(-3px);
}


/* ==================================================
   EVENT MODAL
================================================== */

.event-modal {
    position: fixed;
    inset: 0;
    z-index: 3000;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 24px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.45s ease,
        visibility 0s linear 0.45s;
}

.event-modal.open {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;

    transition:
        opacity 0.45s ease,
        visibility 0s;
}


/* ==================================================
   EVENT MODAL OVERLAY
================================================== */

.event-modal-overlay {
    position: absolute;
    inset: 0;

    background-color: rgba(0, 0, 0, 0.74);

    cursor: pointer;

    opacity: 0;

    transition:
        opacity 0.45s ease;
}

.event-modal.open
.event-modal-overlay {
    opacity: 1;
}


/* ==================================================
   EVENT MODAL CONTENT
================================================== */

.event-modal-content {
    position: relative;
    z-index: 1;

    width: min(660px, 100%);

    max-height:
        calc(
            100dvh - 48px
        );

    overflow-y: auto;

    padding:
        58px
        54px
        52px;

    background-color: #ffffff;

    border-top: 5px solid var(--orange);

    text-align: center;

    box-shadow:
        0 26px 70px
        rgba(0, 0, 0, 0.34);

    opacity: 0;

    transform:
        translateY(30px)
        scale(0.96);

    transition:
        opacity 0.45s ease,
        transform 0.55s
        cubic-bezier(
            0.22,
            1,
            0.36,
            1
        );

    overscroll-behavior: contain;

    -webkit-overflow-scrolling: touch;
}

.event-modal.open
.event-modal-content {
    opacity: 1;

    transform:
        translateY(0)
        scale(1);
}


/* ==================================================
   MODAL CLOSE BUTTON
================================================== */

.event-modal-close {
    position: absolute;

    top: 13px;
    right: 15px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;

    background-color: transparent;
    color: var(--navy);

    cursor: pointer;

    font-family: Arial, Helvetica, sans-serif;
    font-size: 31px;
    font-weight: 300;
    line-height: 1;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}

.event-modal-close:hover {
    color: var(--orange);

    transform: rotate(5deg);
}

.event-modal-close:focus-visible {
    outline: 2px solid var(--orange);
    outline-offset: 1px;
}


/* ==================================================
   MODAL TEXT
================================================== */

.event-modal-kicker {
    margin: 0 0 8px;

    color: var(--orange);

    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.4;

    text-transform: uppercase;
}

.event-modal-content h2 {
    margin: 0;

    color: var(--navy);

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.9rem, 4vw, 2.8rem);
    font-weight: 400;
    line-height: 1.18;
}

.event-modal-date {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;

    gap: 6px;

    margin: 15px 0 0;

    color: #666666;

    font-size: 14px;
    line-height: 1.5;
}

.event-modal-separator {
    width: 90px;
    height: 1px;

    margin: 25px auto;

    background-color: var(--orange);
}

.event-modal-description {
    max-width: 520px;

    margin: 0 auto 31px;

    color: #666666;

    font-size: 15px;
    line-height: 1.75;
}


/* ==================================================
   MODAL CALL BUTTON
================================================== */

.event-modal .primary-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    padding: 14px 28px;

    border: 2px solid var(--orange);

    background-color: var(--orange);
    color: #ffffff;

    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.4;

    text-align: center;
    text-decoration: none;
    text-transform: uppercase;

    transition:
        background-color 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}

.event-modal .primary-button:hover,
.event-modal .primary-button:focus-visible {
    background-color: var(--gold);

    border-color: var(--gold);

    color: var(--navy);

    transform: translateY(-2px);
}

.event-modal .primary-button:focus-visible {
    outline: 3px solid var(--gold);
    outline-offset: 4px;
}


/* ==================================================
   TABLET
   SAME DESKTOP DESIGN, SCALED DOWN
================================================== */

@media (max-width: 900px) {

    .events-container {
        width: min(
            900px,
            calc(100% - 36px)
        );
    }


    /* ==================================================
       TOOLBAR
    ================================================== */

    .events-toolbar {
        grid-template-columns:
            minmax(180px, 1fr)
            138px
            auto;

        min-height: 54px;
    }

    .events-search-field {
        gap: 10px;

        padding: 0 14px;
    }

    .events-search-field svg {
        width: 20px;
        height: 20px;
    }

    .find-events-button {
        min-width: 138px;

        padding: 0 16px;

        font-size: 10px;
    }

    .events-view-controls {
        padding: 0 4px;
    }

    .events-view-button {
        min-width: 50px;

        padding: 0 6px;

        font-size: 11px;
    }


    /* ==================================================
       EVENT NAVIGATION
    ================================================== */

    .events-navigation {
        gap: 15px;

        padding: 24px 0;
    }


    /* ==================================================
       EVENT ROWS
    ================================================== */

    .event-row {
        grid-template-columns:
            82px
            3px
            minmax(0, 1fr);

        gap: 16px;

        padding: 26px 0;
    }

    .event-row + .event-row {
        margin-top: 38px;
    }

    .event-date {
        width: 82px;
        min-width: 82px;
        height: 82px;
    }

    .event-day {
        font-size: 2.05rem;
    }

    .event-details h3 {
        font-size:
            clamp(
                1.35rem,
                3vw,
                1.85rem
            );
    }

    .event-description {
        max-width: 590px;

        font-size: 14px;
    }


    /* ==================================================
       MODAL
    ================================================== */

    .event-modal {
        align-items: center;

        padding: 22px;
    }

    .event-modal-content {
        width: min(620px, 100%);

        max-height:
            calc(
                100dvh - 44px
            );

        padding:
            54px
            44px
            46px;
    }

}


/* ==================================================
   SMALL TABLET
================================================== */

@media (max-width: 760px) {

    .events-toolbar {
        grid-template-columns:
            minmax(150px, 1fr)
            120px
            auto;
    }

    .find-events-button {
        min-width: 120px;

        padding: 0 12px;

        font-size: 9px;

        letter-spacing: 0.1em;
    }

    .events-view-button {
        min-width: 44px;

        font-size: 10px;
    }

    .event-row {
        grid-template-columns:
            74px
            3px
            minmax(0, 1fr);

        gap: 14px;
    }

    .event-date {
        width: 74px;
        min-width: 74px;
        height: 74px;
    }

}


/* ==================================================
   MOBILE
   DESKTOP STRUCTURE IS RETAINED
================================================== */

@media (max-width: 650px) {

    .events-page {
        padding-top: var(--header-height);
    }

    .events-container {
        width: calc(100% - 28px);
    }


    /* ==================================================
       TITLE BAR
    ================================================== */

    .events-title-bar {
        padding: 20px 14px;
    }

    .events-title-bar h1 {
        gap: 4px;

        font-size: 1.35rem;
    }


    /* ==================================================
       EVENTS CALENDAR
    ================================================== */

    .events-calendar {
        padding: 36px 0 28px;
    }


    /* ==================================================
       TOOLBAR
    ================================================== */

    .events-toolbar {
        grid-template-columns:
            minmax(0, 1fr)
            102px;

        min-height: 50px;
    }

    .events-search-field {
        min-height: 50px;

        gap: 8px;

        padding: 0 11px;
    }

    .events-search-field svg {
        width: 18px;
        height: 18px;
    }

    .events-search-field input {
        font-size: 12px;
    }

    .find-events-button {
        min-width: 102px;

        padding: 0 10px;

        font-size: 8px;

        letter-spacing: 0.09em;
    }


    /*
       The three view buttons stay beneath the search
       field without becoming a different design.
    */

    .events-view-controls {
        grid-column: 1 / -1;

        min-height: 40px;

        padding: 0;

        border-top:
            1px solid
            rgba(0, 0, 0, 0.08);
    }

    .events-view-button {
        flex: 1;

        min-width: 0;

        font-size: 10px;
    }


    /* ==================================================
       EVENT NAVIGATION
    ================================================== */

    .events-navigation {
        display: flex;
        align-items: center;
        justify-content: flex-start;

        flex-direction: row;
        flex-wrap: wrap;

        gap: 10px 14px;

        padding: 21px 0;
    }

    .events-navigation-left {
        flex: 0 0 auto;
    }

    .events-arrow {
        width: 27px;
        height: 36px;
    }

    .events-arrow svg {
        width: 21px;
        height: 21px;
    }

    .events-today-button {
        margin-left: 5px;

        padding: 7px 12px;

        font-size: 11px;
    }

    .events-period {
        font-size: 1.35rem;
    }


    /* ==================================================
       PAST EVENTS
    ================================================== */

    .past-events {
        padding: 25px 0 55px;
    }

    .past-events-title {
        margin-bottom: 20px;
    }

    .past-events-title h2 {
        font-size: 1.5rem;
    }


    /* ==================================================
       EVENT ROWS
    ================================================== */

    .event-row {
        grid-template-columns:
            64px
            3px
            minmax(0, 1fr);

        gap: 11px;

        padding: 20px 0;
    }

    .event-row + .event-row {
        margin-top: 27px;
    }

    .event-date {
        width: 64px;
        min-width: 64px;
        height: 68px;

        padding: 5px;
    }

    .event-month,
    .event-year {
        font-size: 8px;
    }

    .event-day {
        margin: 3px 0 1px;

        font-size: 1.65rem;
    }

    .event-meta {
        gap: 4px;

        margin-bottom: 7px;

        font-size: 10px;
    }

    .event-details h3 {
        margin-bottom: 7px;

        font-size:
            clamp(
                1.05rem,
                5vw,
                1.22rem
            );
    }

    .event-location {
        margin: 7px 0;

        font-size: 11px;
    }

    .event-description {
        font-size: 12px;
        line-height: 1.55;
    }


    /*
       Phones do not have true hover, so the label is
       permanently visible while keeping the same style.
    */

    .event-read-more {
        margin-top: 9px;

        opacity: 1;

        transform: none;
    }


    /* ==================================================
       CONTACT NOTE
    ================================================== */

    .events-contact-note {
        margin-top: 28px;

        padding-top: 16px;
    }


    /* ==================================================
       MODAL
    ================================================== */

    .event-modal {
        align-items: center;
        justify-content: center;

        padding: 14px;
    }

    .event-modal-content {
        width: min(100%, 580px);

        max-height:
            calc(
                100dvh - 28px
            );

        padding:
            50px
            24px
            32px;

        border-top-width: 5px;

        transform:
            translateY(24px)
            scale(0.97);
    }

    .event-modal.open
    .event-modal-content {
        transform:
            translateY(0)
            scale(1);
    }

    .event-modal-close {
        top: 8px;
        right: 10px;

        width: 38px;
        height: 38px;

        font-size: 28px;
    }

    .event-modal-kicker {
        font-size: 10px;
    }

    .event-modal-content h2 {
        font-size:
            clamp(
                1.65rem,
                8vw,
                2.2rem
            );
    }

    .event-modal-date {
        margin-top: 12px;

        font-size: 12px;
    }

    .event-modal-separator {
        width: 70px;

        margin:
            21px
            auto;
    }

    .event-modal-description {
        margin-bottom: 25px;

        font-size: 13px;
        line-height: 1.65;
    }

    .event-modal .primary-button {
        width: auto;
        max-width: 100%;

        padding:
            13px
            22px;

        font-size: 10px;
    }

}


/* ==================================================
   EXTRA SMALL MOBILE
================================================== */

@media (max-width: 430px) {

    .events-container {
        width: calc(100% - 22px);
    }


    /* ==================================================
       TITLE BAR
    ================================================== */

    .events-title-bar {
        padding: 18px 10px;
    }

    .events-title-bar h1 {
        font-size: 1.2rem;
    }


    /* ==================================================
       TOOLBAR
    ================================================== */

    .events-toolbar {
        grid-template-columns:
            minmax(0, 1fr)
            88px;
    }

    .events-search-field {
        padding: 0 9px;
    }

    .events-search-field input {
        font-size: 11px;
    }

    .find-events-button {
        min-width: 88px;

        padding: 0 7px;

        font-size: 7.5px;

        letter-spacing: 0.07em;
    }


    /* ==================================================
       NAVIGATION
    ================================================== */

    .events-navigation {
        gap: 8px 10px;
    }

    .events-arrow {
        width: 24px;
    }

    .events-today-button {
        padding: 6px 10px;

        font-size: 10px;
    }

    .events-period {
        font-size: 1.2rem;
    }


    /* ==================================================
       EVENT ROWS
    ================================================== */

    .event-row {
        grid-template-columns:
            57px
            3px
            minmax(0, 1fr);

        gap: 9px;
    }

    .event-date {
        width: 57px;
        min-width: 57px;
        height: 62px;
    }

    .event-day {
        font-size: 1.45rem;
    }

    .event-meta {
        font-size: 9px;
    }

    .event-details h3 {
        font-size: 1rem;
    }

    .event-description {
        font-size: 11.5px;
    }

    .event-read-more {
        font-size: 9px;
    }


    /* ==================================================
       MODAL
    ================================================== */

    .event-modal {
        padding: 10px;
    }

    .event-modal-content {
        max-height:
            calc(
                100dvh - 20px
            );

        padding:
            46px
            19px
            27px;
    }

    .event-modal-description {
        font-size: 12.5px;
    }

}


/* ==================================================
   VERY SMALL MOBILE
================================================== */

@media (max-width: 360px) {

    .events-toolbar {
        grid-template-columns:
            minmax(0, 1fr)
            80px;
    }

    .find-events-button {
        min-width: 80px;

        padding: 0 5px;

        font-size: 7px;
    }

    .events-search-field svg {
        width: 16px;
        height: 16px;
    }

    .events-search-field input {
        font-size: 10.5px;
    }

    .event-row {
        grid-template-columns:
            53px
            2px
            minmax(0, 1fr);

        gap: 8px;
    }

    .event-date {
        width: 53px;
        min-width: 53px;
        height: 59px;
    }

    .event-month,
    .event-year {
        font-size: 7px;
    }

    .event-day {
        font-size: 1.35rem;
    }

    .event-details h3 {
        font-size: 0.95rem;
    }

}


/* ==================================================
   TOUCH DEVICES
================================================== */

@media (hover: none) {

    .event-read-more {
        opacity: 1;

        transform: none;
    }


    /*
       Remove false hover movement caused by some
       touch browsers while keeping the layout intact.
    */

    .event-row-link:hover,
    .event-row-link.animate-in:hover,
    .event-row-link.reveal-ready.animate-in:hover {
        background-color: #ffffff;

        box-shadow: none;

        transform: none;
    }

    .event-row-link:hover
    .event-date {
        background-color: var(--orange);
    }

    .event-row-link:hover
    .event-accent {
        background-color: var(--orange);

        transform: none;
    }

    .event-row-link:hover
    .event-details h3 {
        color: var(--navy);
    }

}


/* ==================================================
   REDUCED MOTION
================================================== */

@media (prefers-reduced-motion: reduce) {

    .event-row,
    .event-row.reveal-ready,
    .event-row.reveal-ready:not(.animate-in),
    .event-row-link,
    .event-date,
    .event-accent,
    .event-read-more,
    .event-modal,
    .event-modal-overlay,
    .event-modal-content,
    .find-events-button,
    .events-arrow,
    .events-today-button,
    .events-view-button {
        transition: none;
    }


    .event-row,
    .event-row.reveal-ready:not(.animate-in) {
        opacity: 1;

        transform: none;
    }


    .event-read-more {
        opacity: 1;

        transform: none;
    }


    .event-modal.open,
    .event-modal.open
    .event-modal-overlay,
    .event-modal.open
    .event-modal-content {
        opacity: 1;
    }


    .event-modal.open
    .event-modal-content {
        transform: none;
    }

}