/* Gallery Page Styles - Stacking Slider */

/* Full page O'Keeffe background */
body:has(.projector-section) {
    position: relative;
    overflow-x: hidden;
}

body:has(.projector-section)::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('okeeffe-gallery.jpg') center center / cover no-repeat;
    filter: blur(8px);
    transform: scale(1.1);
    z-index: -2;
}

body:has(.projector-section)::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: -1;
}

/* Stacking Slider Section */
.projector-section {
    padding: 2rem 0 4rem;
    background: transparent;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projector-container {
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
}

/* The slide stack container */
.projector-screen {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 900px;
    overflow: visible;
}

.screen-frame {
    position: relative;
    width: 100%;
    max-width: 800px;
    overflow: visible;
}

.slide-stack {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    cursor: pointer;
    overflow: visible;
}

/* Individual slides - stacked cards effect */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stacked cards behind - big slivers peeking on the right (upcoming) */
.slide.stack-3 {
    transform: translateX(120px) scale(0.85);
    opacity: 0.4;
    z-index: 1;
}

.slide.stack-2 {
    transform: translateX(80px) scale(0.90);
    opacity: 0.6;
    z-index: 2;
}

.slide.stack-1 {
    transform: translateX(40px) scale(0.95);
    opacity: 0.8;
    z-index: 3;
}

/* Previously viewed slides - slivers peeking on the left */
.slide.prev-1 {
    transform: translateX(-40px) scale(0.95);
    opacity: 0.8;
    z-index: 3;
}

.slide.prev-2 {
    transform: translateX(-80px) scale(0.90);
    opacity: 0.6;
    z-index: 2;
}

.slide.prev-3 {
    transform: translateX(-120px) scale(0.85);
    opacity: 0.4;
    z-index: 1;
}

/* Active slide - front and center */
.slide.active {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
}

/* Slide exiting to the left */
.slide.exiting {
    transform: translateX(-120%) scale(0.9) rotateY(10deg);
    opacity: 0;
    z-index: 15;
}

/* Slide entering from behind */
.slide.entering {
    transform: translateX(0) scale(1);
    opacity: 1;
    z-index: 10;
}

/* Hidden slides */
.slide.hidden {
    opacity: 0;
    transform: translateX(50px) scale(0.85);
    z-index: 0;
    pointer-events: none;
}

/* Navigation Buttons - clean circles */
.projector-btn {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: none;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.projector-btn:hover {
    background: #ffffff;
    transform: scale(1.1);
    box-shadow: 0 6px 25px rgba(0, 0, 0, 0.4);
}

.projector-btn:active {
    transform: scale(0.95);
}

.btn-icon {
    font-size: 1.2rem;
    color: #333;
    line-height: 1;
}

.projector-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.projector-btn:disabled:hover {
    transform: none;
    background: rgba(255, 255, 255, 0.95);
}

/* Photo counter - clean minimal */
.photo-counter {
    position: absolute;
    bottom: -50px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    padding: 8px 24px;
    border-radius: 30px;
    font-weight: 500;
    font-size: 0.95rem;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Responsive Design */
@media (max-width: 768px) {
    .gallery-header {
        padding: 6rem 0 1rem;
    }

    .gallery-header h1 {
        font-size: 2rem;
    }

    .gallery-subtitle {
        font-size: 1.1rem;
    }

    .projector-container {
        gap: 1rem;
        padding: 0 15px;
    }

    .projector-btn {
        width: 50px;
        height: 50px;
    }

    .btn-icon {
        font-size: 1rem;
    }

    .photo-counter {
        bottom: -40px;
        font-size: 0.85rem;
        padding: 6px 18px;
    }

    .slide {
        border-radius: 8px;
    }
}

@media (max-width: 480px) {
    .projector-section {
        padding: 1rem 0 3rem;
    }

    .projector-container {
        gap: 0.5rem;
    }

    .projector-btn {
        width: 44px;
        height: 44px;
    }

    .btn-icon {
        font-size: 0.9rem;
    }
}
