/* Parallax Design System */
.parallax-spacer {
    height: 60vh;
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    margin: 40px 0;
}

.parallax-spacer h2 {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.parallax-spacer.visible h2 {
    opacity: 1;
    transform: translateY(0);
}

.parallax-spacer h2 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 2px;
}

@media (max-width: 768px) {
    .parallax-spacer h2 {
        font-size: 2.2rem !important;
    }

    .parallax-spacer {
        height: 40vh !important;
        background-attachment: scroll;
        /* Better performance on mobile */
    }
}

.parallax-spacer.has-overlay::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.parallax-spacer>* {
    position: relative;
    z-index: 2;
}

.parallax-spacer .highlight-brush {
    color: white !important;
}

.parallax-spacer .highlight-brush::after {
    background-color: var(--primary-pink) !important;
    opacity: 0.8 !important;
}

.parallax-spacer .badge {
    background: var(--primary-pink);
    color: white;
    box-shadow: 0 2px 10px rgba(255, 107, 157, 0.3);
}

.parallax-fullwidth {
    width: 100%;
    margin-bottom: 0;
}

.parallax-1,
.parallax-nomade {
    background-image: url('../assets/imgs/espace-nomade/webp/comenwork-openspace-nomade-01.webp');
}

.parallax-2,
.parallax-poste-dedie {
    background-image: url('../assets/imgs/openspace-postes-dedies/webp/Comenwork-Lyon7-Openspace-Postes-Dedies-001.webp');
}

.parallax-3,
.parallax-bureau-prive {
    background-image: url('../assets/imgs/bureau-prive/webp/comenwork-bureau-prive-20m2-01.webp');
}

.parallax-4,
.parallax-salle-reunion {
    background-image: url('../assets/imgs/salle-reunion/webp/001-Meeting_Room_ComNWork-Lyon.webp');
}

.parallax-community {
    background-image: url('../assets/imgs/bureau-prive/webp/comenwork-espace-detente.webp');
    /* Choosing a life-oriented photo */
}


.parallax-5 {
    background-image: url('../assets/imgs/bureau-prive/webp/comenwork-espace-detente.webp');
    background-size: cover;
    background-position: center center;
    min-height: 80vh;
}

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

#lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 8px;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
    cursor: default;
}

#lightbox-close {
    position: absolute;
    top: 30px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

/* Common Sliders & Arrows */
.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 5;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.15);
    color: var(--primary-pink);
    transition: all 0.2s;
}

.slider-arrow:hover {
    background: var(--primary-pink);
    color: white;
}

.slider-arrow.left {
    left: 5px;
}

.slider-arrow.right {
    right: 5px;
}