/* Latest Events Section */
/* ------------------------------------------------- */

section.latest-events {
    padding: var(--space-11) 0;
}

section.latest-events--related {
    background: var(--neutral-50);
}

section.latest-events .wrap {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.latest-events-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.latest-events-posts {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-5);
}

.latest-events-post {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    overflow: hidden;
}

.latest-events-post-image {
    aspect-ratio: 5/3;
    overflow: hidden;
}

.latest-events-post-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.latest-events-post:hover .latest-events-post-image img {
    transform: scale(1.05);
}

.latest-events-post-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    padding: var(--space-6) 0 0;
}

.latest-events-post-date,
.latest-events-post-location {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    color: var(--neutral-500);
}

.latest-events-post-date svg,
.latest-events-post-location svg {
    flex-shrink: 0;
}

.latest-events-post-content .heading-5 {
    color: var(--neutral-950);
}

.latest-events-post-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    font-size: 14px;
    font-weight: 450;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--neutral-950);
    margin-top: auto;
    border: 1px solid var(--neutral-950);
    padding: var(--space-3) var(--space-5);
    text-decoration: none;
    width: fit-content;
}

.latest-events-top-row .latest-events-post-button {
    margin-left: auto;
    margin-top: 0;
}

@media (max-width: 960px) {
    .latest-events-posts {
        grid-template-columns: 1fr;
    }
}
