/* Event Gallery Section Styles */

#events-gallery {
    background-color: #0D1F0F; /* primary-dark matched from tailwind config */
    color: #ffffff;
}

.gallery-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 4rem 1rem;
}

.gallery-header {
    text-align: center;
    margin-bottom: 3rem;
}

.gallery-title {
    font-size: 2.5rem;
    font-weight: 900;
    margin-bottom: 1rem;
    color: #ffffff;
}

.gallery-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 300;
}

.gallery-grid {
    display: grid;
    gap: 1.5rem;
    /* Responsive Grid: 1 col mobile, 2 col tablet, 3 col desktop */
    grid-template-columns: repeat(1, 1fr);
}

@media (min-width: 640px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1024px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 1.5rem;
    aspect-ratio: 4 / 3;
    border: 1px solid rgba(241, 212, 131, 0.2); /* accent color with low opacity */
    transition: transform 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
}

.gallery-item:hover {
    border-color: #F1D483; /* accent color */
    transform: translateY(-5px);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-cover: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(13, 31, 15, 0.9) 0%, rgba(241, 212, 131, 0.1) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 1.5rem;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.event-name {
    font-family: 'Newsreader', serif;
    font-size: 1.25rem;
    font-weight: 700;
    color: #F1D483; /* accent gold */
    transform: translateY(10px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .event-name {
    transform: translateY(0);
}

/* Al Salaam Masjid Badge Styles */
.mosque-badge-container {
    text-align: center;
    margin-top: 4rem;
}

.mosque-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1.5rem;
    background-color: rgba(241, 212, 131, 0.1);
    border: 1px solid rgba(241, 212, 131, 0.3);
    border-radius: 9999px;
    color: #F1D483;
    font-weight: 700;
    font-size: 0.875rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.mosque-badge:hover {
    background-color: rgba(241, 212, 131, 0.2);
    transform: scale(1.05);
}

.mosque-icon {
    font-size: 1.25rem;
}
