/* Gallery Page Styles */

/* Page Hero */
.page-hero {
    position: relative;
    height: 400px;
    background: linear-gradient(135deg, rgba(26, 26, 26, 0.8) 0%, rgba(51, 51, 51, 0.6) 100%),
        url('https://jaylataylor.com/content/Paris%20Fashion%20Week%2024%E2%80%99/SHOW4-194.JPEG') center/cover;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: var(--white);
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3.5rem;
    margin-bottom: 1rem;
    text-transform: uppercase;
    letter-spacing: 3px;
}

.hero-subtitle {
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--gold-primary);
}

/* Gallery Filter */
.gallery-filter {
    padding: 3rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid rgba(184, 134, 11, 0.2);
}

.filter-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 0.75rem 1.5rem;
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--primary-dark);
    color: var(--white);
    transform: translateY(-2px);
}

/* Gallery Grid */
.gallery-section {
    padding: 5rem 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary-dark);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.8) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 2rem;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-info h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.gallery-info p {
    color: var(--gold-primary);
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Load More Button */
.gallery-load-more {
    text-align: center;
}

/* Video Section */
.video-section {
    padding: 80px 0;
    background-color: var(--primary-dark);
}

.video-container {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.gallery-video {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    margin-bottom: 20px;
}

.video-info {
    text-align: center;
    margin-top: 20px;
}

.video-info h3 {
    color: var(--accent-gold-2);
    font-size: 1.5rem;
    margin-bottom: 10px;
    font-family: var(--font-heading);
}

.video-info p {
    color: var(--neutral-light);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 2000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.lightbox-content {
    display: block;
    max-width: 90%;
    max-height: 90%;
    margin: auto;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 3rem;
    color: var(--white);
    font-size: 3rem;
    cursor: pointer;
    z-index: 2001;
    transition: color 0.3s ease;
}

.lightbox-close:hover {
    color: var(--gold-primary);
}

.lightbox-prev,
.lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: var(--white);
    font-size: 3rem;
    padding: 1rem;
    transition: color 0.3s ease;
    user-select: none;
}

.lightbox-prev {
    left: 2rem;
}

.lightbox-next {
    right: 2rem;
}

.lightbox-prev:hover,
.lightbox-next:hover {
    color: var(--gold-primary);
}

.lightbox-caption {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    color: var(--white);
    text-align: center;
    padding: 1rem 2rem;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 4px;
}

/* Gallery Categories */
.gallery-categories {
    padding: 5rem 0;
}

.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.category-card {
    text-decoration: none;
    display: block;
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-5px);
}

.category-image {
    position: relative;
    overflow: hidden;
    aspect-ratio: 3/2;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.category-card:hover .category-image img {
    transform: scale(1.1);
}

.category-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.8) 100%);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 2rem;
}

.category-overlay h3 {
    color: var(--white);
    font-family: var(--font-heading);
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.category-overlay p {
    color: var(--gold-primary);
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Gallery Controls */
.gallery-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 3rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.gallery-title {
    font-family: var(--font-heading);
    font-size: 2.5rem;
    color: var(--primary-dark);
}

.gallery-controls {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.gallery-sort {
    padding: 0.5rem 1rem;
    border: 2px solid var(--primary-dark);
    background: transparent;
    color: var(--primary-dark);
    font-family: var(--font-body);
    cursor: pointer;
}

.view-toggle {
    display: flex;
    gap: 0.5rem;
}

.view-btn {
    padding: 0.5rem;
    background: transparent;
    border: 2px solid var(--primary-dark);
    color: var(--primary-dark);
    cursor: pointer;
    transition: all 0.3s ease;
}

.view-btn.active {
    background: var(--primary-dark);
    color: var(--white);
}

/* Masonry Grid */
.masonry-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.masonry-item {
    position: relative;
    overflow: hidden;
    cursor: pointer;
    background: var(--primary-dark);
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

.masonry-item:hover img {
    transform: scale(1.05);
}

.masonry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, transparent 50%, rgba(0, 0, 0, 0.9) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    padding: 1.5rem;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-info h3 {
    color: var(--white);
    font-size: 1.25rem;
    margin-bottom: 0.25rem;
}

.masonry-info p {
    color: var(--gold-primary);
    font-size: 0.875rem;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .filter-buttons {
        gap: 0.5rem;
    }

    .filter-btn {
        padding: 0.5rem 1rem;
        font-size: 0.875rem;
    }

    .gallery-grid,
    .masonry-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .gallery-header {
        flex-direction: column;
        align-items: stretch;
    }

    .gallery-controls {
        justify-content: space-between;
    }

    .lightbox-prev,
    .lightbox-next {
        font-size: 2rem;
        padding: 0.5rem;
    }

    .lightbox-prev {
        left: 1rem;
    }

    .lightbox-next {
        right: 1rem;
    }

    .video-section {
        padding: 60px 0;
    }

    .gallery-video {
        border-radius: 4px;
    }

    .video-info h3 {
        font-size: 1.25rem;
    }

    .video-info p {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .page-hero {
        height: 300px;
    }

    .gallery-grid,
    .masonry-grid {
        grid-template-columns: 1fr;
    }

    .category-grid {
        grid-template-columns: 1fr;
    }
}