/* PZKO 9.11.82 – wide upcoming events + year-separated archive */

/* Upcoming events: use the whole content width and place copy beside the image. */
.event-grid.event-grid--wide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
}

.event-grid--wide .event-card {
    display: grid !important;
    grid-template-columns: minmax(300px, 38%) minmax(0, 1fr);
    width: 100%;
    min-height: 260px;
    overflow: hidden;
}

.event-grid--wide .event-card__media {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 260px;
    aspect-ratio: auto !important;
    overflow: hidden;
}

.event-grid--wide .event-card__media img,
.event-grid--wide .event-card__media .media-placeholder {
    width: 100%;
    height: 100%;
    min-height: 260px;
    object-fit: cover;
}

.event-grid--wide .event-card__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    padding: 28px 32px;
}

.event-grid--wide .event-card__body > p:not(.event-place) {
    max-width: 760px;
}

/* Archive: visually separate individual years. */
.event-history-year {
    display: flex;
    align-items: center;
    gap: 18px;
    margin: 34px 0 14px;
    color: #9f0d25;
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .02em;
}

.event-history-year:first-child {
    margin-top: 0;
}

.event-history-year::after {
    content: "";
    height: 1px;
    flex: 1 1 auto;
    background: rgba(159, 13, 37, .22);
}

/* Current-year archive rows retain a useful miniature preview. */
.event-history__row.event-history__row--current-year {
    display: grid !important;
    grid-template-columns: 64px 118px minmax(0, 1fr) auto;
    align-items: center;
    gap: 18px;
}

.event-history__thumb {
    display: block;
    width: 118px;
    height: 74px;
    overflow: hidden;
    border-radius: 10px;
    background: #f4e8eb;
}

.event-history__thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-history__thumb-placeholder {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    color: #a75a68;
    font-size: 12px;
    font-weight: 700;
    text-align: center;
}

@media (max-width: 760px) {
    .event-grid--wide .event-card {
        grid-template-columns: minmax(0, 1fr);
        min-height: 0;
    }

    .event-grid--wide .event-card__media {
        height: auto;
        min-height: 0;
        aspect-ratio: 16 / 9 !important;
    }

    .event-grid--wide .event-card__media img,
    .event-grid--wide .event-card__media .media-placeholder {
        min-height: 0;
        aspect-ratio: 16 / 9;
    }

    .event-grid--wide .event-card__body {
        padding: 22px 20px;
    }

    .event-history__row.event-history__row--current-year {
        grid-template-columns: 56px 88px minmax(0, 1fr) auto;
        gap: 10px;
    }

    .event-history__thumb {
        width: 88px;
        height: 62px;
        border-radius: 8px;
    }

    .event-history-year {
        margin-top: 28px;
        font-size: 18px;
    }
}

@media (max-width: 520px) {
    .event-history__row.event-history__row--current-year {
        grid-template-columns: 52px 72px minmax(0, 1fr) auto;
        gap: 8px;
    }

    .event-history__thumb {
        width: 72px;
        height: 54px;
    }
}
