/* ============================================
   Events Gallery — International Events
   Justified rows: flex ratios from actual
   image aspect ratios — no cropping, no gaps
   ============================================ */

/* === Gallery Container === */
.events-gallery {
    padding: 10px 0 0;
}

/* === Flex Row === */
.evt-row {
    display: flex;
    gap: 24px;
    margin-bottom: 32px;
}

.evt-row:last-child {
    margin-bottom: 0;
}

/* === Event Card === */
.evt-card {
    text-align: center;
    min-width: 0;
    /* flex is set inline per card based on image aspect ratio */
}

/* === Image Container === */
.evt-card__media {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow:
        0 2px 8px rgba(0, 0, 0, 0.08),
        0 8px 24px rgba(0, 0, 0, 0.05);
    transition:
        transform 0.45s cubic-bezier(0.22, 1, 0.36, 1),
        box-shadow 0.45s cubic-bezier(0.22, 1, 0.36, 1);
    line-height: 0;
}

.evt-card:hover .evt-card__media {
    transform: translateY(-6px);
    box-shadow:
        0 12px 32px rgba(0, 0, 0, 0.14),
        0 4px 12px rgba(0, 0, 0, 0.06);
}

/* Accent line at bottom of image */
.evt-card__media::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--gradient, linear-gradient(89deg, #FF3C11 1.12%, #FF8139 44%));
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
    z-index: 2;
}

.evt-card:hover .evt-card__media::after {
    transform: scaleX(1);
}

/* === Image — fill the card, no cropping === */
.evt-card__image {
    display: block;
    width: 100%;
    height: auto;
    transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.evt-card:hover .evt-card__image {
    transform: scale(1.03);
}

/* === Caption === */
.evt-card__caption {
    padding: 16px 8px 8px;
}

.evt-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--title, #222);
    margin: 0 0 4px;
    font-family: 'Poppins', sans-serif;
    line-height: 1.35;
    transition: color 0.3s ease;
}

.evt-card:hover .evt-card__title {
    color: var(--primary, #FF8139);
}

.evt-card__country {
    display: block;
    font-size: 0.95rem;
    font-style: italic;
    color: #666;
    font-family: 'Poppins', sans-serif;
}

/* === Entrance Animations === */
@keyframes evtFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.evt-row:first-child .evt-card:nth-child(1) { animation: evtFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.05s both; }
.evt-row:first-child .evt-card:nth-child(2) { animation: evtFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both; }
.evt-row:last-child .evt-card:nth-child(1)  { animation: evtFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.25s both; }
.evt-row:last-child .evt-card:nth-child(2)  { animation: evtFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.35s both; }
.evt-row:last-child .evt-card:nth-child(3)  { animation: evtFadeIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.45s both; }

/* === Responsive === */
@media (max-width: 767px) {
    .evt-row {
        flex-wrap: wrap;
        gap: 20px;
    }

    .evt-card {
        flex: 1 1 100% !important;
    }

    .evt-card__title {
        font-size: 1rem;
    }

    .evt-card__country {
        font-size: 0.85rem;
    }

    .evt-card__caption {
        padding: 12px 4px 6px;
    }
}
