/* Modern Events Gallery Styles */
.modern-events-gallery {
    display: grid;
    gap: 1rem;
    margin: 2rem 0;
    padding: 0;
    list-style: none;
}

.modern-events-gallery-columns-1 {
    grid-template-columns: 1fr;
}

.modern-events-gallery-columns-2 {
    grid-template-columns: repeat(2, 1fr);
}

.modern-events-gallery-columns-3 {
    grid-template-columns: repeat(3, 1fr);
}

.modern-events-gallery-columns-4 {
    grid-template-columns: repeat(4, 1fr);
}

.modern-events-gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 4px;
    aspect-ratio: 1/1;
}

.modern-events-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.modern-events-gallery-item:hover img {
    transform: scale(1.05);
}

/* Lightbox adjustments */
.mfp-image-holder .mfp-content {
    max-width: 90%;
    max-height: 90vh;
}

.mfp-figure:after {
    box-shadow: none;
    background: transparent;
}

.mfp-bottom-bar {
    margin-top: -36px;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .modern-events-gallery-columns-4 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .modern-events-gallery-columns-3,
    .modern-events-gallery-columns-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .modern-events-gallery-columns-2,
    .modern-events-gallery-columns-3,
    .modern-events-gallery-columns-4 {
        grid-template-columns: 1fr;
    }
}