/* Gallery Styles */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.gallery-item {
    transition: all 0.3s ease;
    opacity: 1;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 0 25px rgba(0, 255, 100, 0.1); /* light green glow */
    background-color: #1a1a1a; /* dark card background for contrast */
}

.gallery-item.hidden {
    display: none;
    opacity: 0;
}

.gallery-img-container {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4/3;
}

.gallery-img-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

/* Green Overlay Gradient */
.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0, 255, 150, 0.75), transparent);
    color: #fff;
    transform: translateY(100%);
    transition: transform 0.3s ease;
    text-shadow: 0 2px 4px rgba(0,0,0,0.6);
}

.gallery-item:hover .gallery-overlay {
    transform: translateY(0);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-overlay h5 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
    font-weight: 700;
    color: #ffffff;
}

.gallery-overlay p {
    font-size: 0.9rem;
    margin-bottom: 0;
    opacity: 0.95;
    color: #e0ffe7;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
        gap: 1rem;
    }
    
    .gallery-overlay {
        padding: 1rem;
    }
}

@media (max-width: 576px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}
