/* Modern Gallery Page Styles */
/* Using the website's cream (#d1c1ad) and white color scheme */

/* Modern Hero Section for Gallery */
.hero-section.gallery-hero {
    position: relative;
    height: 80vh;
    min-height: 600px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 80px; /* Account for fixed nav */
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, 
        rgba(209, 193, 173, 0.4) 0%, 
        rgba(255, 255, 255, 0.3) 50%, 
        rgba(209, 193, 173, 0.3) 100%);
    backdrop-filter: blur(2px);
}

.hero-content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 700px;
    padding: 0 2rem;
    color: #2c3e50;
}

.hero-text h1 {
    font-family: 'Playfair Display', serif;
    font-size: 3.2rem;
    font-weight: 600;
    margin-bottom: 1rem;
    text-shadow: 0 2px 4px rgba(255, 255, 255, 0.8);
}

.hero-text h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.6rem;
    font-weight: 400;
    color: #d1c1ad;
    margin-bottom: 1.5rem;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

.hero-text p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 2rem;
    background: rgba(255, 255, 255, 0.9);
    padding: 1.2rem;
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 193, 173, 0.3);
}

.insurance-badge {
    position: absolute;
    bottom: 2rem;
    right: 2rem;
    background: rgba(255, 255, 255, 0.95);
    color: #d1c1ad;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-weight: 600;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(209, 193, 173, 0.3);
    z-index: 3;
}

/* Modern Content Sections */
.gallery-content-section {
    padding: 6rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.section-intro {
    text-align: center;
    margin-bottom: 4rem;
}

.section-intro h2 {
    font-family: 'Playfair Display', serif;
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 1rem;
}

.section-intro p {
    font-size: 1.2rem;
    color: #5a6c7d;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Enhanced Modern Gallery Grid */
.modern-gallery-container {
    margin-top: 3rem;
}

.modern-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
    padding: 2rem 0;
}

.gallery-item {
    position: relative;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(209, 193, 173, 0.15);
    transition: all 0.4s ease;
    cursor: pointer;
}

.gallery-item:hover {
    transform: translateY(-12px);
    box-shadow: 0 20px 60px rgba(209, 193, 173, 0.25);
}

.gallery-item-inner {
    position: relative;
    height: 300px;
    overflow: hidden;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(transparent 40%, rgba(209, 193, 173, 0.95));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    color: #2c3e50;
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.gallery-info p {
    color: #2c3e50;
    opacity: 0.9;
    font-size: 0.95rem;
    line-height: 1.4;
}

.gallery-actions {
    margin-top: 1rem;
}

.gallery-btn {
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #2c3e50;
}

.gallery-btn:hover {
    background: #d1c1ad;
    color: #fff;
    transform: scale(1.1);
}

/* Enhanced Lightbox */
.modern-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(10px);
}

.lightbox-container {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    background: #fff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 25px 100px rgba(0, 0, 0, 0.5);
}

.lightbox-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: linear-gradient(135deg, #d1c1ad, #e8dcc6);
    color: #2c3e50;
}

.lightbox-title {
    font-size: 1.2rem;
    font-weight: 600;
}

.lightbox-close {
    background: none;
    border: none;
    color: #2c3e50;
    cursor: pointer;
    padding: 0.5rem;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.lightbox-close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.lightbox-content {
    position: relative;
}

.lightbox-image-container {
    position: relative;
    max-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
}

.lightbox-image {
    max-width: 100%;
    max-height: 60vh;
    object-fit: contain;
}

.lightbox-info {
    padding: 2rem;
    text-align: center;
}

.lightbox-image-title {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.lightbox-image-description {
    color: #5a6c7d;
    line-height: 1.5;
}

.lightbox-navigation {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem 2rem;
    background: #f8f9fa;
    border-top: 1px solid rgba(209, 193, 173, 0.2);
}

.lightbox-prev,
.lightbox-next {
    background: #d1c1ad;
    border: none;
    color: #2c3e50;
    padding: 1rem;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: #c5b59a;
    transform: scale(1.1);
}

.lightbox-counter {
    font-weight: 500;
    color: #2c3e50;
}

.loading-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid rgba(209, 193, 173, 0.3);
    border-top: 4px solid #d1c1ad;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-text h1 {
        font-size: 2.5rem;
    }
    
    .hero-text h2 {
        font-size: 1.3rem;
    }
    
    .insurance-badge {
        position: static;
        margin-top: 2rem;
        align-self: center;
    }
    
    .gallery-content-section {
        padding: 4rem 0;
    }
    
    .container {
        padding: 0 1rem;
    }
    
    .section-intro h2 {
        font-size: 2rem;
    }
    
    .modern-gallery {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
    
    .gallery-item-inner {
        height: 250px;
    }
    
    .lightbox-container {
        max-width: 95vw;
        max-height: 95vh;
        margin: 1rem;
    }
    
    .lightbox-header,
    .lightbox-navigation {
        padding: 1rem 1.5rem;
    }
    
    .lightbox-info {
        padding: 1.5rem;
    }
}

@media (max-width: 480px) {
    .hero-section.gallery-hero {
        height: 70vh;
        min-height: 500px;
    }
    
    .hero-content {
        padding: 0 1rem;
    }
    
    .hero-text h1 {
        font-size: 2rem;
    }
    
    .hero-text p {
        font-size: 1rem;
        padding: 1rem;
    }
    
    .section-intro h2 {
        font-size: 1.8rem;
    }
    
    .gallery-item-inner {
        height: 220px;
    }
} 