/* Gallery Events Grid (1 Big + 4 Small) */
.er-gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 190px);
    gap: 15px;
    margin-top: 25px;
}

.er-gallery-card {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: 0.3s;
}

.er-gallery-card:hover {
    border-color: var(--primary);
}

.er-gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.er-gallery-card.big {
    grid-row: span 2;
}

.er-gallery-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 25px 20px;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    color: white;
    z-index: 10;
}

.er-gallery-content h3 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.er-gallery-content h4 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 2px;
}

.er-gallery-content p {
    font-size: 0.8rem;
    color: #ffffff;
    opacity: 1;
    margin: 0;
}

.er-gallery-date {
    position: absolute;
    background: #FFEE00;
    color: #000;
    padding: 6px;
    min-width: 55px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-family: 'Outfit', sans-serif;
    font-weight: 800;
    border-radius: 6px;
    z-index: 20;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.er-gallery-date .day {
    font-size: 1.2rem;
    display: block;
}

.er-gallery-date .month {
    font-size: 0.65rem;
    text-transform: uppercase;
    margin: 2px 0;
}

.er-gallery-date .year {
    font-size: 0.55rem;
    opacity: 0.7;
}

.badge-top {
    top: 12px;
    right: 12px;
}

.badge-bottom {
    bottom: 20px;
    right: 20px;
}

@media (max-width: 1024px) {
    .er-gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }

    .er-gallery-card.big {
        grid-column: span 2;
        height: 350px;
    }
}

@media (max-width: 768px) {
    .er-gallery-grid {
        grid-template-columns: 1fr;
    }

    .er-gallery-card.big {
        grid-column: span 1;
        height: 300px;
    }

    .er-gallery-card.small {
        height: 200px;
    }
}
