/* ===== ENHANCED GALLERY PAGE STYLES ===== */

/* General Page Styling */
.main-content {
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
    color: #fff;
    font-family: 'Montserrat', sans-serif;
}

/* Gallery Page Header */
.gallery-page-header {
    padding: 12rem 2rem 6rem;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.6), rgba(0,0,0,0.6)), url('../pics/hero6.webp') no-repeat center center/cover;
    position: relative;
    overflow: hidden;
}

.gallery-page-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(45deg, rgba(255, 215, 0, 0.1), transparent, rgba(255, 215, 0, 0.05));
    animation: headerShimmer 8s ease-in-out infinite;
}

@keyframes headerShimmer {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

.gallery-header-title {
    font-family: 'Playfair Display', serif;
    font-size: 3.5rem;
    color: #ffd700;
    margin-bottom: 1rem;
    text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5);
    animation: titleGlow 3s ease-in-out infinite alternate;
}

@keyframes titleGlow {
    from { text-shadow: 0 4px 20px rgba(255, 215, 0, 0.5); }
    to { text-shadow: 0 4px 30px rgba(255, 215, 0, 0.8), 0 0 40px rgba(255, 215, 0, 0.3); }
}

.gallery-header-subtitle {
    font-size: 1.3rem;
    color: rgba(255,255,255,0.9);
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

/* Enhanced Gallery Filter */
.gallery-filter {
    padding: 3rem 2rem;
    background: linear-gradient(135deg, #1a1a1a, #252525);
    position: relative;
}

.filter-nav {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.filter-btn {
    background: linear-gradient(135deg, transparent, rgba(255, 215, 0, 0.05));
    color: #ffd700;
    border: 2px solid #ffd700;
    padding: 1rem 2rem;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
    overflow: hidden;
}

.filter-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 215, 0, 0.2), transparent);
    transition: left 0.5s ease;
}

.filter-btn:hover::before {
    left: 100%;
}

.filter-btn.active,
.filter-btn:hover {
    background: linear-gradient(135deg, #ffd700, #ffec80);
    color: #000;
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 10px 25px rgba(255, 215, 0, 0.4);
}

/* ===== ENHANCED GALLERY GRID ===== */
.gallery-grid-section {
    padding: 4rem 2rem;
    background: linear-gradient(135deg, #0f0f0f, #1a1a1a);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2.5rem;
    max-width: 1400px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.gallery-item:hover {
    transform: translateY(-15px) scale(1.03);
    box-shadow: 0 25px 50px rgba(255, 215, 0, 0.2);
}

.gallery-image {
    position: relative;
    height: 330px; /* +10% */
    overflow: hidden;
}

.gallery-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.8s ease;
    filter: brightness(0.8) contrast(1.2);
}

.gallery-item:hover .gallery-photo {
    transform: scale(1.15) rotate(2deg);
    filter: brightness(1.1) contrast(1.3);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.7), rgba(255, 215, 0, 0.2));
    opacity: 0;
    transition: all 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info {
    text-align: center;
    transform: translateY(30px);
    transition: all 0.4s ease;
}

.gallery-item:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.5rem;
    color: #ffd700;
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.8);
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1rem;
    text-shadow: 0 1px 5px rgba(0, 0, 0, 0.8);
}

/* ===== ENHANCED GALLERY STATS ===== */
.gallery-stats {
    padding: 4rem 2rem;
    background: #1a1a1a;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    text-align: center;
}

.stat-number {
    font-family: 'Playfair Display', serif;
    font-size: 3rem;
    color: #ffd700;
}

/* Image Modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    padding-top: 60px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.9);
}

.modal-content {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
}

.modal-caption {
    margin: auto;
    display: block;
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ccc;
    padding: 10px 0;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}
