/**
 * Events section styling (Events archive + single event).
 * Standalone stylesheet, enqueued only on event pages (see functions.php).
 * Not part of the gulp/SCSS build so it survives independently of child-main.min.css.
 */

/* ---------- Shared ---------- */
.events-archive,
.event-single {
    padding: 56px 0 80px;
}

/* ---------- Archive: header ---------- */
.events-header {
    max-width: 720px;
    margin: 0 auto 48px;
    text-align: center;
}

.events-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #80904c;
    font-weight: 600;
    font-size: 0.85rem;
    margin: 0 0 12px;
}

.events-header h1 {
    margin: 0 0 16px;
    color: #273106;
    font-size: clamp(2.4rem, 5vw, 3.4rem);
    line-height: 1.1;
}

.events-intro {
    color: #5a5a4a;
    font-size: 1.05rem;
    line-height: 1.65;
    margin: 0;
}

/* ---------- Archive: card grid ---------- */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 34px;
    margin: 0 auto;
}

.event-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 8px 26px rgba(39, 49, 6, 0.10);
    text-decoration: none;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 16px 36px rgba(39, 49, 6, 0.16);
}

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

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

.event-card:hover .event-card-media img {
    transform: scale(1.05);
}

.event-card-body {
    padding: 20px 24px 26px;
}

.event-card-title {
    margin: 0 0 6px;
    color: #273106;
    font-size: 1.55rem;
    line-height: 1.15;
}

.event-card-date {
    margin: 0;
    color: #80904c;
    font-weight: 600;
    font-size: 0.95rem;
    letter-spacing: 0.02em;
}

.events-empty {
    text-align: center;
    color: #5a5a4a;
    font-size: 1.1rem;
    padding: 40px 0 60px;
}

/* ---------- Single event: header ---------- */
.event-header {
    max-width: 860px;
    margin: 0 auto 36px;
    text-align: center;
}

.event-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #80904c;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    font-size: 0.82rem;
    text-decoration: none;
    margin-bottom: 22px;
    transition: color 0.2s ease;
}

.event-back:hover {
    color: #273106;
}

.event-header h1 {
    margin: 0 0 10px;
    color: #273106;
    font-size: clamp(2.2rem, 5vw, 3.2rem);
    line-height: 1.1;
}

.event-date {
    margin: 0;
    color: #80904c;
    font-weight: 600;
    font-size: 1rem;
    letter-spacing: 0.02em;
}

/* ---------- Single event: description ---------- */
.event-description {
    max-width: 760px;
    margin: 0 auto 44px;
    color: #4a4a3f;
    font-size: 1.05rem;
    line-height: 1.7;
}

.event-description p {
    margin: 0 0 1em;
}

.event-description p:last-child {
    margin-bottom: 0;
}

/* ---------- Single event: mosaic gallery ---------- */
.event-gallery {
    column-count: 3;
    column-gap: 16px;
    margin: 0 auto;
}

.event-gallery a {
    display: block;
    margin: 0 0 16px;
    break-inside: avoid;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(39, 49, 6, 0.10);
    cursor: zoom-in;
}

.event-gallery img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.4s ease, filter 0.3s ease;
}

.event-gallery a:hover img {
    transform: scale(1.04);
    filter: brightness(0.94);
}

/* ---------- Single event: bottom back link ---------- */
.event-footer-nav {
    text-align: center;
    margin-top: 56px;
}

.event-footer-nav .event-back {
    margin-bottom: 0;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
    .event-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .events-archive,
    .event-single {
        padding: 36px 0 56px;
    }

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

    .event-gallery {
        column-count: 1;
    }
}
