/* TOPOGRAPHIE — deux colonnes asymétriques et rapprochées, sans recadrage. */
.project-main:has(.tp-gallery){max-width:1280px;}
.tp-gallery{display:flex;align-items:flex-start;gap:clamp(16px,2.4vw,34px);width:100%;margin:0 auto;}
.tp-gallery .tp-column{display:flex;flex-direction:column;align-items:stretch;gap:clamp(15px,1.75vw,26px);min-width:0;}
.tp-gallery .tp-column-left{width:51%;}
.tp-gallery .tp-column-right{width:49%;padding-top:clamp(260px,56vh,540px);}
.tp-gallery figure{box-sizing:border-box;width:var(--tp-width,90%);margin:0;max-width:none;min-width:0;flex:none;}
.tp-gallery .tp-column-left figure:nth-child(odd){align-self:flex-start;}
.tp-gallery .tp-column-left figure:nth-child(even){align-self:flex-end;}
.tp-gallery .tp-column-right figure:nth-child(odd){align-self:flex-end;}
.tp-gallery .tp-column-right figure:nth-child(even){align-self:flex-start;}
.tp-gallery figure img{display:block;width:100%;height:auto;object-fit:contain;cursor:zoom-in;}
.tp-gallery figure img:focus-visible{outline:2px solid #858585;outline-offset:5px;}
/* Visionneuse blanche, même principe que dans les autres séries. */
.tp-lightbox{position:fixed;inset:0;width:100vw;height:100vh;max-width:100vw;max-height:100vh;margin:0;padding:0;border:0;background:#fff;color:#252525;overflow:hidden;}
.tp-lightbox::backdrop{background:rgba(255,255,255,.98);}
.tp-lightbox .tp-lightbox-image{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);max-width:82vw;max-height:85vh;width:auto;height:auto;object-fit:contain;}
.tp-lightbox button{position:fixed;z-index:2;display:grid;place-items:center;border:0;background:transparent;color:#252525;font-family:Arial,Helvetica,sans-serif;line-height:1;cursor:pointer;opacity:.85;padding:12px;}
.tp-lightbox button:hover,.tp-lightbox button:focus-visible{opacity:1;}
.tp-lightbox-close{right:22px;top:12px;font-size:32px;}
.tp-lightbox-prev,.tp-lightbox-next{top:50%;transform:translateY(-50%);font-size:44px;}
.tp-lightbox-prev{left:clamp(6px,3vw,46px);}.tp-lightbox-next{right:clamp(6px,3vw,46px);}
.tp-lightbox-counter{position:fixed;bottom:20px;left:50%;transform:translateX(-50%);font:11px Arial,Helvetica,sans-serif;letter-spacing:.18em;color:#777;}
@media(max-width:700px){
 .project-main:has(.tp-gallery){padding-left:5%;padding-right:5%;}
 .tp-gallery{display:flex;flex-direction:column;gap:clamp(20px,5vw,30px);}
 .tp-gallery .tp-column{display:contents;}
 .tp-gallery figure{width:var(--tp-mobile,80%);order:var(--tp-order,1);margin:0;max-width:100%;}
 .tp-gallery figure.tp-opening{align-self:center;width:76%;}
 .tp-gallery figure.tp-side-left{align-self:flex-start;}
 .tp-gallery figure.tp-side-right{align-self:flex-end;}
 .tp-lightbox .tp-lightbox-image{max-width:77vw;max-height:79dvh;}
 .tp-lightbox-prev,.tp-lightbox-next{font-size:35px;}
 .tp-lightbox-prev{left:0;}.tp-lightbox-next{right:0;}
}
@media(prefers-reduced-motion:reduce){.tp-gallery img{transition:none!important;}}
