/* Gallery Page */
.gallery-header {
    background: var(--dark);
    padding: 150px 0 80px;
    position: relative;
}

.gallery-header .page-header-overlay {
    background: var(--dark);
}

/* Filter Section */
.gallery-filter-section {
    background-color: var(--dark);
    padding: 20px 0;
    position: sticky;
    top: 70px;
    z-index: 100;
}

.filter-tabs {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.filter-tab {
    padding: 10px 25px;
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.8);
    border-radius: 30px;
    font-family: 'Oswald', sans-serif;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 1px;
    white-space: nowrap;
    transition: all 0.3s ease;
    text-decoration: none;
}

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

/* Gallery Section */
.gallery-page-section {
    padding: 80px 0;
    background: var(--white);
}

.gallery-masonry {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
}

.gallery-card {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer;
    aspect-ratio: 4/3;
}

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

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

.gallery-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8) 0%, transparent 50%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 20px;
    opacity: 0;
    transition: all 0.3s ease;
}

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

.gallery-card-info {
    margin-bottom: 10px;
}

.gallery-category {
    display: inline-block;
    padding: 5px 12px;
    background: var(--primary-teal);
    color: var(--white);
    font-size: 11px;
    font-family: 'Oswald', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1px;
    border-radius: 3px;
}

.gallery-card-info h4 {
    color: var(--white);
    font-size: 18px;
    margin-top: 10px;
}

.gallery-card-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 30px;
    color: var(--white);
    opacity: 0;
    transition: all 0.3s ease;
}

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

/* Empty State */
.empty-gallery {
    text-align: center;
    padding: 80px 20px;
}

.empty-gallery i {
    font-size: 80px;
    color: var(--light-gray);
    margin-bottom: 20px;
}

.empty-gallery h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.empty-gallery p {
    color: var(--gray);
}

/* CTA Section */
.cta-section {
    padding: 80px 0;
    background: linear-gradient(135deg, var(--primary-teal) 0%, var(--dark-teal) 100%);
}

.cta-section .cta-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.cta-section .cta-icon {
    width: 80px;
    height: 80px;
    background: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-teal);
    border-radius: 50%;
    margin: 0 auto 25px;
}

.cta-section h2 {
    color: var(--white);
    font-size: 36px;
    margin-bottom: 15px;
}

.cta-section p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 18px;
    margin-bottom: 30px;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
}

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close {
    position: absolute;
    top: -50px;
    right: 0;
    background: transparent;
    border: none;
    color: var(--white);
    font-size: 40px;
    cursor: pointer;
    z-index: 10;
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--white);
    font-size: 24px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
}

.lightbox-prev {
    left: -80px;
}

.lightbox-next {
    right: -80px;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--primary-teal);
}

.lightbox-caption {
    text-align: center;
    color: var(--white);
    margin-top: 15px;
    font-size: 18px;
}

.lightbox-counter {
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    margin-top: 8px;
    font-size: 13px;
}

/* Responsive */
@media (max-width: 991px) {
    .gallery-header {
        padding: 120px 0 60px;
    }

    .gallery-masonry {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 15px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }
}

@media (max-width: 767px) {
    .gallery-header h1 {
        font-size: 32px;
    }

    .gallery-masonry {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

    .gallery-card {
        aspect-ratio: 1;
    }

    .filter-tabs {
        gap: 10px;
    }

    .filter-tab {
        padding: 8px 16px;
        font-size: 12px;
    }

    .cta-section h2 {
        font-size: 28px;
    }
}