.event-year-page,
.event-detail-page {
    background: #fffaf4;
    color: #3f302d;
}

.event-year-page {
    padding: 54px 0 95px;
}

.event-heading {
    max-width: 760px;
    margin: 0 auto 38px;
    padding: 0 16px;
    text-align: center;
}

.event-eyebrow {
    display: inline-block;
    margin-bottom: 8px;
    color: #d26a18;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.event-heading h1,
.event-detail-heading h1 {
    margin: 0;
    color: #7f1d1d;
    font-family: "Playfair Display", serif;
    font-weight: 700;
}

.event-heading h1 {
    font-size: clamp(34px, 5vw, 52px);
}

.event-heading p {
    margin: 12px 0 0;
    color: #6c5a54;
    font-size: 17px;
}

.event-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    max-width: 1080px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-card {
    display: block;
    overflow: hidden;
    border: 1px solid rgba(127, 29, 29, 0.13);
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 14px 35px rgba(91, 45, 23, 0.12);
    color: inherit;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover,
.event-card:focus-visible {
    color: inherit;
    transform: translateY(-6px);
    box-shadow: 0 20px 42px rgba(91, 45, 23, 0.18);
}

.event-card:focus-visible,
.event-back-link:focus-visible,
.event-photo:focus-visible,
.lightbox-control:focus-visible {
    outline: 3px solid #f59e0b;
    outline-offset: 3px;
}

.event-card-cover {
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #eee2d5;
}

.event-card-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-cover img {
    transform: scale(1.035);
}

.event-card-body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 24px 24px;
}

.event-card-title {
    margin: 0;
    color: #7f1d1d;
    font-size: clamp(20px, 2.4vw, 27px);
    font-weight: 700;
    line-height: 1.25;
}

.event-card-meta {
    flex: 0 0 auto;
    color: #ad4b12;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.event-detail-page {
    padding: 42px 0 95px;
}

.event-detail-heading {
    max-width: 1180px;
    margin: 0 auto 30px;
    padding: 0 20px;
}

.event-detail-heading h1 {
    font-size: clamp(32px, 5vw, 50px);
}

.event-detail-heading p {
    margin: 9px 0 0;
    color: #6c5a54;
    font-size: 16px;
}

.event-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
    color: #9a3412;
    font-size: 15px;
    font-weight: 700;
}

.event-back-link:hover {
    color: #7f1d1d;
}

.event-photo-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    max-width: 1180px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-photo,
.event-video {
    display: block;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    border-radius: 14px;
    background: #eee2d5;
    box-shadow: 0 9px 24px rgba(91, 45, 23, 0.14);
}

.event-video {
    background: #160f0d;
}

.event-video video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.event-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.event-photo:hover img {
    filter: brightness(0.92);
    transform: scale(1.04);
}

.event-lightbox {
    position: fixed;
    z-index: 10000;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 72px 80px 58px;
    background: rgba(17, 10, 8, 0.94);
}

.event-lightbox.is-open {
    display: flex;
}

.event-lightbox img {
    max-width: min(1200px, 100%);
    max-height: calc(100vh - 130px);
    border-radius: 8px;
    object-fit: contain;
}

.lightbox-control {
    position: absolute;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
}

.lightbox-control:hover {
    background: #fff;
    color: #7f1d1d;
}

.lightbox-close {
    top: 18px;
    right: 22px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-caption {
    position: absolute;
    bottom: 18px;
    left: 50%;
    margin: 0;
    color: #fff;
    font-size: 14px;
    transform: translateX(-50%);
}

@media (max-width: 767px) {
    .event-year-page {
        padding: 38px 0 72px;
    }

    .event-card-grid,
    .event-photo-grid {
        grid-template-columns: 1fr;
    }

    .event-card-grid {
        gap: 22px;
    }

    .event-card-body {
        align-items: flex-start;
        flex-direction: column;
        gap: 6px;
        padding: 18px 20px 21px;
    }

    .event-photo-grid {
        gap: 16px;
    }

    .event-lightbox {
        padding: 66px 16px 72px;
    }

    .event-lightbox img {
        max-height: calc(100vh - 150px);
    }

    .lightbox-prev,
    .lightbox-next {
        top: auto;
        bottom: 14px;
    }

    .lightbox-prev {
        left: calc(50% - 58px);
    }

    .lightbox-next {
        right: calc(50% - 58px);
    }

    .lightbox-caption {
        bottom: 28px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .event-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (prefers-reduced-motion: reduce) {
    .event-card,
    .event-card-cover img,
    .event-photo img {
        transition: none;
    }
}
