/* ======================== */
/* GALLERY PAGE STYLES      */
/* ======================== */

/* Page Header */
.gallery-header {
    height: 45vh;
    background: url('../images/hall.png') center/cover no-repeat fixed;
    /* distinct image for gallery */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    margin-bottom: 4rem;
}

.gallery-header::after {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    /* darker overlay for text pop */
}

.gallery-header-content {
    position: relative;
    z-index: 2;
    color: #fff;
    padding: 0 20px;
}

.gallery-header h1 {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 1rem;
    font-family: 'Playfair Display', serif;
    letter-spacing: 1px;
    text-shadow: 2px 2px 15px rgba(0, 0, 0, 0.5);
    color: var(--primary-gold);
    /* Assuming available, or use #d4af37 */
}

.gallery-header p {
    font-size: 1.2rem;
    font-family: 'Poppins', sans-serif;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.9);
}


/* Main Gallery Content */
.gallery {
    padding: 5rem 0;
    background-color: var(--bg-white);
}

.gallery-intro {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 3rem;
    color: var(--text-gray);
    font-size: 1.1rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}

.gallery-item {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    aspect-ratio: 4/3;
    /* Consistent aspect ratio */
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* Hover Icon */
.gallery-item::before {
    content: '📷';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    z-index: 2;
    font-size: 2rem;
    color: #fff;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.gallery-item:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

@media (max-width: 768px) {
    .gallery-header h1 {
        font-size: 3rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1rem;
    }
}

@media (max-width: 480px) {
    .gallery-header h1 {
        font-size: 2.2rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
}