/* Gallery Page Styles  */

/* Base Gallery Page Styles */
.gallery-page {
    background-color: #000;
    color: #fff;
}

/* Gallery Navigation */
.gallery-nav {
    background-color: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-nav.scrolled {
    background-color: rgba(0, 0, 0, 0.95);
}

.gallery-nav .nav-left a,
.gallery-nav .nav-right a,
.gallery-nav .logo {
    color: #fff;
}

.gallery-nav.scrolled .nav-left a,
.gallery-nav.scrolled .nav-right a,
.gallery-nav.scrolled .logo {
    color: #fff;
}

/* Container Narrow */
.container-narrow {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 40px;
}

/* Gallery Header/Hero */
.gallery-header {
    position: relative;
    width: 100%;
}

.gallery-hero {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 500px;
    overflow: hidden;
}

.gallery-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
}

/* Gallery Page Hero Slider - Monochrome styling */
.gallery-page .hero {
    position: relative;
    height: 100vh;
    overflow: hidden;
}

.gallery-page .hero-slider {
    position: relative;
    height: 100%;
    width: 100%;
}

.gallery-page .slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.gallery-page .slide.active {
    opacity: 1;
}

.gallery-page .slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
    filter: grayscale(100%);
    opacity: 0;
    transition: opacity 0.8s ease-in;
}

.gallery-page .slide img.loaded {
    opacity: 1;
}

.gallery-page .slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    font-size: 2rem;
    width: 50px;
    height: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.gallery-page .slider-btn:hover {
    background: rgba(255, 255, 255, 0.4);
}

.gallery-page .slider-btn.prev {
    left: 30px;
}

.gallery-page .slider-btn.next {
    right: 30px;
}

.gallery-page .scroll-indicator {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 2rem;
    animation: bounce 2s infinite;
    cursor: pointer;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateX(-50%) translateY(0);
    }
    40% {
        transform: translateX(-50%) translateY(-10px);
    }
    60% {
        transform: translateX(-50%) translateY(-5px);
    }
}

/* Gallery Title Section */
.gallery-title-section {
    padding: 60px 0;
    background-color: #000;
    border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.gallery-title {
    font-family: var(--font-serif);
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 20px;
    line-height: 1.3;
}

.gallery-title .title-part-1 {
    display: block;
    font-size: 0.7em;
    letter-spacing: 5px;
    margin-bottom: 5px;
}

.gallery-title .title-part-2 {
    display: block;
}

.gallery-dates {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 300;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, 0.7);
}

/* Gallery Description */
.gallery-description {
    padding: 80px 0;
    background-color: #000;
}

.description-title {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    font-weight: 300;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 50px;
    color: #fff;
}

.description-content {
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.description-content p {
    font-family: var(--font-sans);
    font-size: 1rem;
    font-weight: 300;
    line-height: 2;
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 25px;
}

.description-content .intro-text {
    font-family: var(--font-serif);
    font-size: 1.1rem;
    font-style: italic;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
    padding: 0 20px;
}

.description-content .intro-text::before {
    content: '"';
}

.description-content .technical-info {
    font-size: 0.85rem;
    letter-spacing: 1px;
    color: rgba(255, 255, 255, 0.6);
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* Gallery Content Sections */
.gallery-content {
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.15);
    padding-top: 60px;
}

.gallery-section {
    margin-bottom: 60px;
}

/* Section Header */
.section-header {
    position: relative;
    width: 100%;
    height: 50vh;
    min-height: 350px;
    overflow: hidden;
    margin-bottom: 60px;
}


.section-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
}

.section-label {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    font-family: var(--font-sans);
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: #fff;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 25px;
    white-space: nowrap;
}

/* Gallery Image Grids */
.gallery-grid-2,
.gallery-grid-3,
.gallery-grid-4 {
    display: grid;
    gap: 60px;
    padding: 0 60px;
}

.gallery-grid-2 {
    grid-template-columns: repeat(2, 1fr);
}

.gallery-grid-3 {
    grid-template-columns: repeat(3, 1fr);
}

.gallery-grid-4 {
    grid-template-columns: repeat(4, 1fr);
}

.gallery-image-item {
    position: relative;
    overflow: hidden;
    aspect-ratio: 1 / 1;
    background-color: #1a1a1a;
}

.gallery-image-item a {
    display: block;
    width: 100%;
    height: 100%;
}

.gallery-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: grayscale(100%);
    transition: transform 0.5s ease, filter 0.3s ease;
}

.gallery-image-item:hover img {
    transform: scale(1.03);
    filter: grayscale(0%);
}

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

.lightbox.active {
    display: flex;
}

.lightbox-content {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    box-sizing: border-box;
}

.lightbox-content img {
    max-width: 100%;
    max-height: 100%;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.lightbox-caption {
    margin-top: 20px;
    font-family: var(--font-sans);
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
    text-align: center;
    max-width: 600px;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    background: none;
    border: none;
    color: #fff;
    font-size: 3rem;
    cursor: pointer;
    transition: opacity 0.3s ease;
    z-index: 2001;
}

.lightbox-close:hover {
    opacity: 0.7;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 3rem;
    width: 60px;
    height: 60px;
    cursor: pointer;
    transition: background 0.3s ease;
    z-index: 2001;
}

.lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

/* Gallery Footer */
.gallery-footer {
    background-color: #000;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding: 80px 0 40px;
}

.gallery-footer .footer-content {
    text-align: center;
}

.gallery-footer .footer-logo {
    font-family: var(--font-serif);
    font-size: 1.5rem;
    letter-spacing: 3px;
    color: #fff;
    display: inline-block;
    margin-bottom: 20px;
}

.gallery-footer .footer-location,
.gallery-footer .footer-email {
    font-family: var(--font-sans);
    font-size: 0.8rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.7);
    margin-bottom: 10px;
}

.gallery-footer .footer-email a {
    color: rgba(255, 255, 255, 0.7);
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.gallery-footer .footer-email a:hover {
    border-bottom-color: rgba(255, 255, 255, 0.7);
}

.gallery-footer .footer-nav-wrapper {
    margin: 40px 0;
}

.gallery-footer .footer-nav {
    display: flex;
    justify-content: center;
    list-style: none;
    gap: 30px;
}

.gallery-footer .footer-nav a {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: rgba(255, 255, 255, 0.6);
    transition: color 0.3s ease;
}

.gallery-footer .footer-nav a:hover {
    color: #fff;
}

.gallery-footer .footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
    margin-top: 40px;
}

.gallery-footer .footer-bottom p {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.4);
    margin: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .gallery-grid-4 {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-title {
        font-size: 2rem;
    }
    
    .gallery-hero {
        height: 60vh;
    }
    
    .section-header {
        height: 40vh;
    }
}

@media (max-width: 768px) {
    .container-narrow {
        padding: 0 20px;
    }
    
    .gallery-grid-2,
    .gallery-grid-3,
    .gallery-grid-4 {
        grid-template-columns: 1fr;
    }
    
    .gallery-title {
        font-size: 1.5rem;
        letter-spacing: 2px;
    }
    
    .gallery-hero {
        height: 50vh;
        min-height: 300px;
    }
    
    .gallery-title-section {
        padding: 40px 0;
    }
    
    .gallery-description {
        padding: 60px 0;
    }
    
    .description-title {
        font-size: 1.25rem;
    }
    
    .description-content p {
        font-size: 0.9rem;
        line-height: 1.8;
    }
    
    .section-header {
        height: 35vh;
        min-height: 250px;
    }
    
    .section-label {
        font-size: 0.7rem;
        padding: 8px 20px;
    }
    
    .gallery-footer .footer-nav {
        flex-wrap: wrap;
        gap: 20px;
    }
    
    .lightbox-nav {
        width: 45px;
        height: 45px;
        font-size: 2rem;
    }
    
    .lightbox-prev {
        left: 15px;
    }
    
    .lightbox-next {
        right: 15px;
    }
}

@media (max-width: 480px) {
    .gallery-title {
        font-size: 1.25rem;
    }
    
    .gallery-dates {
        font-size: 0.75rem;
    }
    
    .section-label {
        font-size: 0.65rem;
        letter-spacing: 2px;
    }
}

/* Gallery Page Hero Slider Responsive */
@media (max-width: 768px) {
    .gallery-page .hero {
        height: 70vh;
    }
    
    .gallery-page .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }
    
    .gallery-page .slider-btn.prev {
        left: 15px;
    }
    
    .gallery-page .slider-btn.next {
        right: 15px;
    }
    
    .gallery-page .scroll-indicator {
        font-size: 1.5rem;
        bottom: 20px;
    }
}
