.gallery-page {
    padding-top: 80px;
}

.gallery-hero {
    background-color: var(--color-bg-light);
    padding: 60px 0;
    text-align: center;
}

.gallery-hero h1 {
    color: var(--color-primary);
    font-family: 'Cinzel', serif;
    font-size: 3em;
    margin-bottom: 20px;
}

.gallery-hero h2 {
    color: var(--color-secondary);
    font-family: 'Cormorant Garamond', serif;
    font-size: 2em;
    margin-bottom: 30px;
}

.gallery-description {
    max-width: 800px;
    margin: 0 auto;
    font-family: 'Inter', sans-serif;
    line-height: 1.8;
    color: var(--color-text);
}

.gallery-filters {
    padding: 30px 0;
    background: white;
    position: sticky;
    top: 0;
    z-index: 10;
    border-bottom: 1px solid var(--color-border);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.filter-button {
    padding: 8px 20px;
    border: 2px solid var(--color-primary);
    border-radius: 30px;
    background: transparent;
    color: var(--color-primary);
    font-family: 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

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

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/2;
    cursor: pointer;
    transition: transform 0.3s ease;
}

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

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

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

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

.lightbox.active {
    display: flex;
}

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

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

.lightbox-caption {
    position: absolute;
    bottom: -40px;
    left: 0;
    right: 0;
    text-align: center;
    color: white;
    font-family: 'Inter', sans-serif;
}

/* Lightbox Navigation */
.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    border-radius: 50%;
    padding: 0.75rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.3s ease;
    z-index: 1002;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    background: rgba(0, 0, 0, 0.9);
}

.lightbox-close {
    top: 1rem;
    right: 1rem;
}

.lightbox-prev,
.lightbox-next {
    top: 50%;
    transform: translateY(-50%);
}

.lightbox-prev {
    left: 1rem;
}

.lightbox-next {
    right: 1rem;
}

.lightbox svg {
    width: 24px;
    height: 24px;
    stroke: white;
    stroke-width: 2;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
    .lightbox-close {
        top: 0.5rem;
        right: 0.5rem;
    }
    
    .lightbox-prev {
        left: 0.5rem;
    }
    
    .lightbox-next {
        right: 0.5rem;
    }
}

/* Ensure buttons are hidden when lightbox is closed */
.lightbox:not(.active) .lightbox-close,
.lightbox:not(.active) .lightbox-prev,
.lightbox:not(.active) .lightbox-next {
    display: none;
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-hero h1 {
        font-size: 2.5em;
    }

    .gallery-hero h2 {
        font-size: 1.8em;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        padding: 20px 10px;
    }

    .filter-buttons {
        padding: 0 10px;
    }

    .filter-button {
        padding: 6px 15px;
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .gallery-hero h1 {
        font-size: 2em;
    }

    .gallery-hero h2 {
        font-size: 1.5em;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
    }
} 