/* =========================
   HERO (ORIGINAL — DO NOT TOUCH)
========================= */
html, body {
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.gallery-hero {
    position: relative;
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.gallery-hero__overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.55);
}

.gallery-hero__content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 0 20px;
}

.gallery-hero__content h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 20px;
}

.gallery-hero__content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

@media (max-width: 768px) {
    .gallery-hero {
        width: 100vw;
        height: 100vh;
        margin: 0;
        padding: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        position: relative;
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
        overflow: hidden;
    }

    .hero__title {
        font-size: 2rem;
    }
}

/* =========================
   APP WRAPPER
========================= */
.app-wrapper {
    background: #ebf4fc;
    min-height: 100vh;
}

/* =========================
   EVENTS HEADING
========================= */
.events-heading {
    text-align: center;
    padding: 56px 40px 40px;
    margin: 0;
}

.events-heading__label {
    display: block;
    font-size: 30px;
    font-weight: 800;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: #10205c;
    margin-bottom: 10px;
}

.events-heading p {
    font-size: 22px;
    font-weight: 600;
    color: #213a7c;
    letter-spacing: -0.2px;
    margin: 0;
}

.events-heading__rule {
    width: 32px;
    height: 2px;
    background: rgba(255, 255, 255, 0.2);
    margin: 16px auto 0;
    border: none;
}

/* =========================
   GRID
========================= */
.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-width: 1450px;
    margin: 0 auto;
    padding: 0 40px 72px;
}

/* =========================
   CARD
========================= */
.event-card {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 18 / 10;
    display: block;
    text-decoration: none;
    background: #222;
    width: auto;
    height: auto;
}

/* =========================
   IMAGE
========================= */
.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.45s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.45s ease;
}

.event-card:hover img {
    transform: scale(1.08);
    filter: brightness(0.5);
}

/* =========================
   OVERLAY
========================= */
/* =========================
   OVERLAY
========================= */
.overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px 18px;
    transition: background 0.35s ease;
    pointer-events: none;
}

.event-card:hover .overlay {
    background: rgba(0, 0, 0, 0.55);
}

/* =========================
   OVERLAY TITLE (bottom, always visible)
========================= */
.overlay__title {
    position: absolute;
    bottom: 16px;
    left: 18px;
    font-size: 15px;
    font-weight: 600;
    color: #ffffff;
    line-height: 1.35;
    margin: 0;
    transition: opacity 0.3s ease;
}

.event-card:hover .overlay__title {
    opacity: 0;
}

/* =========================
   OVERLAY CTA (center, on hover)
========================= */
.overlay__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 0.3s ease 0.05s,
                transform 0.3s ease 0.05s;
}

.event-card:hover .overlay__cta {
    opacity: 1;
    transform: translateY(0);
}

.overlay__cta-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0e83ae;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay__cta-icon svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.overlay__cta-label {
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 860px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 20px 56px;
    }
}

@media (max-width: 520px) {
    .events-grid {
        grid-template-columns: 1fr;
        gap: 4px;
        padding: 0 16px 48px;
    }

    .events-heading {
        padding: 40px 20px 32px;
    }
}