/* Gallery Page Specific Styles */

/* Gallery page hero */
.page-hero {
    background: linear-gradient(rgba(44, 62, 80, 0.80), rgba(44, 62, 80, 0.85)), url('../images/_A9A7539.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
}

/* Featured Gallery Item */
.featured-gallery-item {
    position: relative;
}

.featured-gallery-item img {
    height: 500px;
    object-fit: cover;
}

.featured-gallery-item .gallery-info h3 {
    font-size: 2rem;
}

.featured-gallery-item .gallery-info p {
    font-size: 1.1rem;
}

@media (max-width: 768px) {
    .featured-gallery-item img {
        height: 300px;
    }
}

/* Filter Buttons */
.filter-buttons {
    margin-bottom: 40px;
}

.filter-btn {
    background: none;
    border: 2px solid var(--primary);
    color: var(--primary);
    padding: 10px 25px;
    margin: 0 5px 10px;
    border-radius: 25px;
    font-weight: 500;
    transition: all 0.3s ease;
    cursor: pointer;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary);
    color: var(--white);
}

/* Gallery Grid */
.gallery-grid {
    overflow: hidden;
}

.gallery-item {
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.gallery-card {
    position: relative;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    aspect-ratio: 16/9;
}

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

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

/* Gallery Overlay */
.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 62, 80, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-info {
    text-align: center;
    color: var(--white);
    padding: 20px;
    transform: translateY(20px);
    transition: all 0.3s ease;
}

.gallery-card:hover .gallery-info {
    transform: translateY(0);
}

.gallery-info h3 {
    font-size: 1.5rem;
    color: var(--white);
    margin-bottom: 10px;
}

.gallery-info p {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 15px;
}

.gallery-popup {
    width: 50px;
    height: 50px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    transition: all 0.3s ease;
}

.gallery-popup:hover {
    background: var(--white);
    color: var(--primary);
    transform: rotate(360deg);
}

/* Modal Styles */
.modal-content {
    background: transparent;
    border: none;
}

.modal-body {
    position: relative;
    padding: 0;
}

.btn-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--white);
    opacity: 1;
    padding: 10px;
    z-index: 1;
    border-radius: 50%;
}

/* Virtual Tour CTA */
.virtual-tour-cta {
    background: linear-gradient(rgba(44, 62, 80, 0.95), rgba(44, 62, 80, 0.95)), url('/assets/images/_A9A7494.jpg');
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    color: var(--white);
}

.virtual-tour-cta h2 {
    color: var(--white);
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.virtual-tour-cta .lead {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Animation Classes */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.gallery-item {
    animation: fadeIn 0.6s ease forwards;
}

/* Responsive Styles */
@media (max-width: 991px) {
    .filter-btn {
        padding: 8px 20px;
        margin: 0 3px 8px;
    }

    .gallery-info h3 {
        font-size: 1.3rem;
    }

    .gallery-popup {
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
}

@media (max-width: 767px) {
    .page-hero {
        background-attachment: scroll !important;
    }
    
    .filter-btn {
        padding: 8px 18px;
        font-size: 0.9rem;
    }
    
    .gallery-item {
        margin-bottom: 20px;
    }
    
    .gallery-card {
        aspect-ratio: 4/3;
    }

    .gallery-info {
        padding: 15px;
    }
    
    .gallery-info h3 {
        font-size: 1.1rem;
    }

    .gallery-info p {
        font-size: 0.85rem;
        margin-bottom: 10px;
    }

    .virtual-tour-cta {
        background-attachment: scroll !important;
    }
    
    .virtual-tour-cta h2 {
        font-size: 1.8rem;
    }
    
    .virtual-tour-cta .lead {
        font-size: 1rem;
    }
}
