/* General Styles */
body {
    font-family: Arial, sans-serif;
    background-color: #f8f8f8;
    margin: 0;
    padding: 0;
}

/* Standardized Hero Section */
.hero, .gallery-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    height: 250px;
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 80px 20px;
    background: url('../images/gallery-hero.jpg') no-repeat center center/cover;
}

/* Hero Overlay - Applies Shade */
.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

/* Hero Content */
.hero-content {
    position: relative;
    z-index: 2;
}

.hero-title {
    font-size: 2.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
}

.hero-subtitle {
    font-size: 1.5rem;
    font-weight: normal;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
}

/* Gallery Section */
.gallery-section {
    text-align: center;
    padding: 50px 20px;
    background: white;
}

.gallery-section h1 {
    font-size: 2.5em;
    color: #333;
}

.gallery-description {
    font-size: 1.3em;
    font-weight: 500;
    text-align: center;
    max-width: 80%;
    margin: 10px auto;
    color: #555;
}

/* Gallery Grid */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 15px;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

/* Gallery Images */
.gallery-item {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 10px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, opacity 0.5s ease-in-out;
    opacity: 0;
    transform: translateY(20px);
}

/* Show Images with Fade-in Effect */
.gallery-item.show {
    opacity: 1;
    transform: translateY(0);
}

/* Hover Effect */
.gallery-item:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
}

/* Lightbox Modal */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 999;
}

.lightbox img {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
}

.lightbox .close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

