/* =====================
   EVENT GRID
===================== */

.events-archive-grid {
    display: grid;

    grid-template-columns: repeat(
        auto-fit,
        minmax(280px, 360px)
    );

    gap: 32px;

    justify-content: start;

    width: 100%;
}


/* =====================
   EVENT CARD
===================== */

.event-archive-card {
    width: 100%;
    max-width: 360px;

    background: #ffffff;

    border: 1px solid #dddddd;
    border-radius: 8px;

    overflow: hidden;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease;
}

.event-archive-card-link {
    display: block;
    height: 100%;

    color: #000000;
    text-decoration: none;
}


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

.event-archive-card-image {
    width: 100%;
    aspect-ratio: 16 / 9;

    margin: 0;

    overflow: hidden;
}

.event-archive-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;
}


/* =====================
   EVENT CONTENT
===================== */

.event-archive-card-content {
    padding: 20px;
}

.event-archive-card-date {
    margin: 0 0 8px;

    color: #C9A84C;

    font-size: 0.8rem;
    font-weight: 500;
}

.event-archive-card-title {
    margin: 0 0 10px;

    font-size: 1.35rem;
    line-height: 1.2;
}

.event-archive-card-location {
    margin: 0 0 18px;

    color: rgba(0, 0, 0, 0.6);

    font-size: 0.9rem;
}

.event-archive-card-more {
    display: inline-block;

    font-size: 0.85rem;
    font-weight: 700;

    transition:
        color 0.2s ease,
        transform 0.2s ease;
}
/* =====================
   HOVER
===================== */

.event-archive-card-link:hover {
    color: #000000;
}

.event-archive-card-link:hover .event-archive-card-more {
    color: #C9A84C;
    transform: translateX(4px);
}


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

/*
 * Keep past events clearly part of the same
 * design system. Only slightly subdue the image.
 */

.event-archive-card--past .event-archive-card-image img {
    opacity: 0.78;

    transition: opacity 0.2s ease;
}

.event-archive-card--past:hover .event-archive-card-image img {
    opacity: 1;
}

/* =====================
   SPACE BEFORE FOOTER
===================== */

.events-archive {
    padding-bottom: 80px;
}


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

@media (max-width: 768px) {

    .events-archive {
        padding-bottom: 56px;
    }

    .events-archive-section {
        margin-top: 60px;
        margin-bottom: 70px;
    }

    .events-archive-heading {
        padding-bottom: 14px;
        font-size: 1.7rem;
    }

    .events-archive-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .event-archive-card {
        width: 100%;
        max-width: 100%;
        padding: 0;
    }

    .event-archive-card-title {
        font-size: 1.4rem;
    }
}
}
@media (max-width: 768px) {

    .events-archive {
        padding-bottom: 56px;
    }
}
/* =====================
   EVENTS ARCHIVE SPACING POLISH
===================== */


/* The page already has the large EVENTS title,
   so don't repeat "Events" above the meter. */

.events-archive .event-meter-heading {
    display: none;
}


/* Give the meter room before the event listings */

.events-archive .event-meter {
    margin-bottom: 80px;
}


/* Remove unreliable collapsing margins and
   control section spacing explicitly */

.events-archive-section {
    margin: 0;
    padding: 0 0 80px;
}


/* Clear separation between Upcoming and Past */

.events-archive-section + .events-archive-section {
    padding-top: 70px;

    border-top: 1px solid #e2e2e2;
}


/* Section titles */

.events-archive-heading {
    margin: 0 0 30px;
    padding-bottom: 16px;

    border-bottom: 2px solid #C9A84C;

    font-size: 2rem;
    line-height: 1.15;
}


/* Keep cards neatly separated from heading */

.events-archive-grid {
    margin-top: 0;
}


/* Reliable space before footer */

.events-archive {
    padding-bottom: 80px;
}


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

@media (max-width: 768px) {

    .events-archive .event-meter {
        margin-bottom: 56px;
    }

    .events-archive-section {
        padding-bottom: 56px;
    }

    .events-archive-section + .events-archive-section {
        padding-top: 48px;
    }

    .events-archive-heading {
        margin-bottom: 24px;
        padding-bottom: 12px;

        font-size: 1.7rem;
    }

    .events-archive {
        padding-bottom: 56px;
    }
}
}