﻿/* Gallery Page Styles */
.gallery-hero {
    height: 50vh;
    background: linear-gradient(rgba(26, 42, 58, 0.7), rgba(26, 42, 58, 0.7)), url('/images/gallery5.jpg') no-repeat center center;
    background-size: cover;
    background-attachment: fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
}

    .gallery-hero h1 {
        font-size: 4rem;
        font-weight: 700;
        margin-bottom: 20px;
        text-shadow: 2px 2px 5px rgba(0, 0, 0, 0.5);
    }

    .gallery-hero p {
        font-size: 1.5rem;
        margin-bottom: 30px;
        padding: 15px 20px;
        border: 1px solid var(--light-color);
        border-radius: 10px;
        letter-spacing: 1px;
        font-family: "Courgette", cursive;
    }

.gallery-section {
    padding: 50px 0;
    background-color: var(--light-color);
}



.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 10px;
    overflow: hidden;
    height: 250px;
    transition: all 0.3s ease;
}

    .gallery-item:hover {
        transform: translateY(-10px);
        box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
    }

    .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: all 0.5s ease;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(193, 154, 107, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-overlay i {
    color: white;
    font-size: 30px;
}


.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.modal-content {
    position: relative;
    width: 80%;
    max-width: 900px;
    background-color: white;
    border-radius: 10px;
    padding: 20px;
    z-index: 1;
}

.close-modal {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 30px;
    color: #1a2a3a;
    cursor: pointer;
    z-index: 2;
}

.video-container {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 aspect ratio */
    height: 0;
    overflow: hidden;
}

    .video-container iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
    }

/* Responsive Styles */
@media (max-width: 1199.98px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 991.98px) {
    .gallery-hero h1 {
        font-size: 3.5rem;
    }

    .gallery-section, .video-gallery {
        padding: 80px 0;
    }
}

@media (max-width: 767.98px) {
    .gallery-hero h1 {
        font-size: 3rem;
    }

    .gallery-hero p {
        font-size: 1.2rem;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
}

@media (max-width: 575.98px) {
    .gallery-hero h1 {
        font-size: 2.5rem;
    }

    .gallery-filter {
        gap: 5px;
    }

    .filter-btn {
        padding: 5px 15px;
        font-size: 0.9rem;
    }

    .modal-content {
        width: 95%;
        padding: 10px;
    }
}
