/* Gallery Page Specific Styles */

.gallery-nav {
    position: relative;
    background-color: var(--warm-white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.nav-menu a.active {
    color: var(--teal-primary);
    font-weight: 600;
}

/* Gallery Header */
.gallery-header {
    padding: 8rem 0 4rem;
    background: linear-gradient(135deg, var(--cream) 0%, var(--warm-white) 100%);
    text-align: center;
}

.gallery-page-title {
    font-family: 'Playfair Display', serif;
    font-size: 4rem;
    font-weight: 700;
    color: var(--dark-gray);
    margin-bottom: 1rem;
    animation: fadeIn 0.8s ease-out;
}

.gallery-page-subtitle {
    font-size: 1.2rem;
    color: var(--soft-gray);
    max-width: 600px;
    margin: 0 auto;
    animation: fadeIn 1s ease-out 0.2s backwards;
}

/* Gallery Main Section */
.gallery-main {
    padding: 4rem 0 6rem;
    background-color: var(--warm-white);
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.photo-item {
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: all 0.4s ease;
    aspect-ratio: 1;
    background-color: var(--cream);
}

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

.photo-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(20, 184, 166, 0.2);
}

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

.photo-item::after {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 3rem;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
}

.photo-item:hover::after {
    opacity: 0.9;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content {
    max-width: 90%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 10px;
    box-shadow: 0 10px 60px rgba(0, 0, 0, 0.5);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: white;
    font-size: 3rem;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
}

.lightbox-close:hover {
    color: var(--teal-light);
    transform: rotate(90deg);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 3rem;
    font-weight: bold;
    cursor: pointer;
    padding: 1rem 1.5rem;
    user-select: none;
    transition: all 0.3s ease;
    background-color: rgba(20, 184, 166, 0.3);
    border-radius: 5px;
    z-index: 10000;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    background-color: rgba(20, 184, 166, 0.6);
    color: var(--teal-light);
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: white;
    font-size: 1.2rem;
    text-align: center;
    padding: 1rem 2rem;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 50px;
    max-width: 80%;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--soft-gray);
}

.empty-state-icon {
    font-size: 5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.empty-state-text {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.empty-state-subtext {
    font-size: 1rem;
    opacity: 0.7;
}

/* Responsive Design */
@media (max-width: 968px) {
    .gallery-page-title {
        font-size: 3rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1.5rem;
    }

    .lightbox-close {
        top: 1rem;
        right: 1.5rem;
        font-size: 2.5rem;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.75rem 1rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .nav-container {
        padding: 0 1rem;
    }

    .logo {
        font-size: 1.6rem;
    }

    .nav-menu {
        gap: 1rem;
        font-size: 0.9rem;
    }

    .nav-facebook-btn {
        padding: 0.4rem 1rem !important;
        font-size: 0.85rem !important;
    }
}

@media (max-width: 640px) {
    .gallery-header {
        padding: 6rem 0 3rem;
    }

    .gallery-page-title {
        font-size: 2rem;
    }

    .gallery-page-subtitle {
        font-size: 1rem;
    }

    .photo-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 1rem;
    }

    .lightbox-content {
        max-width: 95%;
        max-height: 80vh;
    }

    .lightbox-caption {
        font-size: 1rem;
        padding: 0.75rem 1.5rem;
        bottom: 1rem;
    }

    .nav-container {
        flex-direction: column;
        gap: 1rem;
        padding: 0.5rem 1rem;
    }

    .logo {
        font-size: 1.4rem;
        text-align: center;
    }

    .nav-menu {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 0.5rem;
        justify-content: center;
        width: 100%;
        font-size: 0.85rem;
    }

    .nav-menu li {
        flex: 0 0 auto;
    }

    .nav-menu a {
        padding: 0.3rem 0.5rem;
        white-space: nowrap;
    }

    .nav-facebook-btn {
        padding: 0.3rem 0.8rem !important;
        font-size: 0.8rem !important;
    }
}
