/* Header Gallery Section */
.gallery-header {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: 6rem 0 4rem;
    text-align: center;
    color: white;
}

.gallery-header h1 {
    color: white;
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
}

.gallery-header p {
    font-size: 1.25rem;
    opacity: 0.9;
    max-width: 800px;
    margin: 0 auto;
}

/* Main Gallery Page Grid */
.main-gallery {
    padding: 6rem 0;
    background: #fdfdfd;
}

.main-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.main-gallery-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
    transition: all 0.4s ease;
    border: 1px solid #f0f0f0;
    cursor: pointer;
}

.main-gallery-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 35px rgba(28, 65, 37, 0.12);
    border-color: var(--secondary-color);
}

.main-gallery-item img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.main-gallery-item:hover img {
    transform: scale(1.05);
}

/* Footer Gallery Styles */
.footer-gallery {
    margin-top: 3rem;
    padding-bottom: 2rem;
}

.footer-gallery h4 {
    color: white;
    margin-bottom: 1.5rem;
    font-size: 1.25rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 6px;
    position: relative;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(28, 65, 37, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 1.2rem;
}

@media (max-width: 1200px) {
    .main-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .main-gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 991px) {
    .gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 2.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .main-gallery-grid {
        grid-template-columns: 1fr;
    }

    .main-gallery-item img {
        height: 300px;
    }
}