/* Gallery Page Specific Styles */
/* All classes prefixed with 'gallery-' to prevent conflicts */

.gallery-page-wrapper {
    background-color: var(--cream);
    /* Light cream background matching theme */
    min-height: 100vh;
    padding-bottom: 4rem;
}

/* Page Header */
.gallery-section-header {
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('../images/gallery/1.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    height: 400px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    position: relative;
    margin-bottom: 4rem;
}

.gallery-header-content {
    z-index: 2;
    padding: 2rem;
    animation: galleryFadeInUp 1s ease;
}

.gallery-title {
    font-family: 'Cinzel', serif;
    font-size: 3.5rem;
    color: var(--primary-saffron);
    /* Saffron color */
    margin-bottom: 1rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.gallery-subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: #ffd1a3;
    letter-spacing: 2px;
    text-transform: uppercase;
}

/* Gallery Grid System */
.gallery-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
}

/* Gallery Item Card */
.gallery-item {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(255, 153, 51, 0.2);
    /* Saffron glow */
}

.gallery-image-wrapper {
    position: relative;
    padding-top: 75%;
    /* 4:3 Aspect Ratio */
    overflow: hidden;
}

.gallery-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover .gallery-img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-caption {
    color: var(--white);
    font-family: 'Poppins', sans-serif;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.gallery-item:hover .gallery-caption {
    transform: translateY(0);
}

.gallery-caption h3 {
    font-family: 'Tiro Devanagari Hindi', serif;
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    color: var(--primary-saffron);
}

.gallery-caption p {
    font-size: 0.9rem;
    opacity: 0.9;
}

/* Decorative Elements */
.gallery-divider {
    text-align: center;
    margin: 3rem 0;
}

.gallery-divider span {
    display: inline-block;
    width: 50px;
    height: 3px;
    background: var(--primary-saffron);
    vertical-align: middle;
}

.gallery-divider-icon {
    font-size: 2rem;
    color: var(--primary-saffron);
    margin: 0 1rem;
    vertical-align: middle;
}

/* Animations */
@keyframes galleryFadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .gallery-title {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 1.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}