/* Stylesheet for Photographie page — Oriane Droubay */

.photo-page-wrapper {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #FFFFFF;
    overflow-x: hidden;
}

.photo-layout-container {
    position: relative;
    width: 1728px;
    height: 3255px;
    margin: 0 auto;
    background: #FFFFFF;
}

/* Common style for photo cards */
.photo-card {
    position: absolute;
    overflow: hidden;
    cursor: grab;
    /* Smooth reveal transition. Transform transition also smooths out the parallax updates for a springy drag effect */
    transition: opacity 1.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease;
    opacity: 0;
    transform: translate(var(--drag-x, 0px), calc(80px + var(--drag-y, 0px) + var(--parallax-y, 0px))) scale(0.95);
    z-index: 1;
    user-select: none;
    touch-action: none;
}

.photo-card.visible {
    opacity: 1;
    transform: translate(var(--drag-x, 0px), calc(var(--drag-y, 0px) + var(--parallax-y, 0px))) scale(1);
}

.photo-card.visible:hover {
    transform: scale(1.08) translate(var(--drag-x, 0px), calc(var(--drag-y, 0px) + var(--parallax-y, 0px) - 8px));
    z-index: 10;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15);
}

.photo-card.dragging {
    cursor: grabbing;
    /* Instant transform on drag */
    transition: box-shadow 0.4s ease;
    z-index: 1000 !important;
}

.photo-card.dragging.visible:hover {
    transform: scale(1.08) translate(var(--drag-x, 0px), calc(var(--drag-y, 0px) + var(--parallax-y, 0px)));
}

.photo-card-bg {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Individual photo card positions */

/* P1090696-13 1 */
.photo-p1090696-13 {
    width: 260.95px;
    height: 463.91px;
    left: 40px;
    top: 817px;
}

/* P1090445-35 1 */
.photo-p1090445-35 {
    width: 260.95px;
    height: 463.91px;
    left: 502px;
    top: 645px;
}

/* P1090535-1 1 */
.photo-p1090535-1 {
    width: 260.95px;
    height: 464.2px;
    left: 136px;
    top: 56px;
}

/* P1090561-2 1 */
.photo-p1090561-2 {
    width: 260.95px;
    height: 463.98px;
    left: 1285px;
    top: 8px;
}

/* P1090692-12 1 */
.photo-p1090692-12 {
    width: 260.95px;
    height: 464.02px;
    left: 1467px;
    top: 746px;
}

/* P1090153-9 1 */
.photo-p1090153-9 {
    width: 260.95px;
    height: 391px;
    left: 894px;
    top: 1242px;
}

/* P1100126-34 1 */
.photo-p1100126-34 {
    width: 260.95px;
    height: 463.91px;
    left: 360px;
    top: 1164px;
}

/* P1080576-2 1 */
.photo-p1080576-2 {
    width: 260.95px;
    height: 463.88px;
    left: 1155px;
    top: 746px;
}

/* P1080697-Modifier-2-2 1 */
.photo-p1080697-modifier-2-2 {
    width: 260.95px;
    height: 463.91px;
    left: 151px;
    top: 2526px;
}

/* 04-P1080801-4 1 */
.photo-04-p1080801-4 {
    width: 267.96px;
    height: 458px;
    left: 1374px;
    top: 1404px;
}

/* P1080590-8 1 */
.photo-p1080590-8 {
    width: 292.09px;
    height: 519px;
    left: 120px;
    top: 1648px;
}

/* P1090109-4 1 */
.photo-p1090109-4 {
    width: 260.95px;
    height: 390.96px;
    left: 603px;
    top: 1683px;
}

/* P1090112-5 1 */
.photo-p1090112-5 {
    width: 260.95px;
    height: 390.88px;
    left: 881px;
    top: 1819px;
}

/* P1090144-8 1 */
.photo-p1090144-8 {
    width: 584px;
    height: 233px;
    left: 471px;
    top: 120px;
}

/* P1080801 1 */
.photo-p1080801 {
    width: 264px;
    height: 370px;
    left: 529px;
    top: 2316px;
}

/* P1090290-20 1 */
.photo-p1090290-20 {
    width: 258px;
    height: 462px;
    left: 946px;
    top: 2629px;
}

/* P1090065-Modifier 1 */
.photo-p1090065-modifier {
    width: 362px;
    height: 488px;
    left: 1235px;
    top: 2038px;
}

/* P1100215 1 */
.photo-p1100215 {
    width: 379px;
    height: 213px;
    left: 33px;
    top: 2209px;
}


/* Descriptif Container styles */
.photo-descriptif-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding: 25px 17px;
    gap: 10px;

    position: absolute;
    width: 1064px;
    height: 244px;
    left: 332px;
    top: 493px;

    background: url('../07- Photographies/hero/Descriptif.webp') no-repeat center/contain;
    background-color: transparent;
    border: none;
    box-sizing: border-box;
    cursor: pointer;
    transition: transform 0.3s ease;
    z-index: 2000;
}

.photo-descriptif-container:hover {
    transform: translateY(-2px);
}

.photo-descriptif-text {
    width: 1030px;
    height: 179px;

    /* Description */
    font-family: 'Source Code Pro', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 14px;
    line-height: 18px;
    color: #101010;
    text-align: left;
    margin: 0;
    
    /* Inside auto layout */
    flex: none;
    order: 0;
    align-self: stretch;
    flex-grow: 0;
}

/* BOUTON TOUT VOIR */
.photo-bouton-tout-voir {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    padding: 0px;
    width: 22px;
    height: 13px;
    flex: none;
    order: 1;
    flex-grow: 0;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.photo-descriptif-container:hover .photo-bouton-tout-voir {
    transform: translateY(8px);
    filter: invert(53%) sepia(0%) saturate(0%) brightness(90%) contrast(85%);
}

.photo-fluent-arrow {
    margin: 0 auto;
    width: 22px;
    height: 13px;
    display: block;
}

.photo-fluent-arrow img {
    width: 100%;
    height: 100%;
    display: block;
}


/* DYNAMIC RESPONSIVE SCALING */
@media (max-width: 1728px) {
    .photo-page-wrapper {
        height: calc(3335px * (100vw / 1728));
        overflow-x: hidden;
    }
    
    .photo-layout-container {
        transform: scale(calc(100vw / 1728));
        transform-origin: top left;
        margin: 0;
    }
}


/* =========================================
   LIGHTBOX GALERIE PLEIN ÉCRAN
   ========================================= */
.roca-lightbox-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.85);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.roca-lightbox-overlay.active {
    opacity: 1;
    pointer-events: auto;
}

.roca-lightbox-content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.roca-lightbox-img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.roca-lightbox-close {
    position: absolute;
    top: -40px;
    right: -40px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    background: none;
    border: none;
    padding: 10px;
    line-height: 1;
    transition: transform 0.2s ease, color 0.2s ease;
}

.roca-lightbox-close:hover {
    transform: scale(1.1);
    color: #ccc;
}

.roca-lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 40px;
    padding: 20px 15px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
    border-radius: 4px;
}

.roca-lightbox-nav:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) scale(1.1);
}

.roca-lightbox-prev {
    left: -70px;
}

.roca-lightbox-next {
    right: -70px;
}

@media (max-width: 1024px) {
    .roca-lightbox-prev {
        left: 10px;
    }
    .roca-lightbox-next {
        right: 10px;
    }
    .roca-lightbox-close {
        top: -40px;
        right: 0px;
    }
    .roca-lightbox-img {
        max-width: 85vw;
        max-height: 85vh;
    }
}

/* =========================================
   CUSTOM CURSOR FOLLOWER
   ========================================= */
.photo-cursor-follower {
    position: fixed;
    left: 0;
    top: 0;
    padding: 7px 14px;
    background: #101010;
    color: #FFFFFF;
    font-family: 'Source Code Pro', monospace;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    pointer-events: none;
    z-index: 10000;
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.8);
    transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.photo-cursor-follower.active {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
}
