.gallery-original{display:none!important}
.cms-gallery{min-width:0;width:100%;align-self:start}
.gallery-stage{position:relative;background:#edf2ee;aspect-ratio:4/5;isolation:isolate}
.gallery-project .gallery-stage,.gallery-care .gallery-stage{aspect-ratio:4/3}
.gallery-open{display:block;width:100%;height:100%;border:0;padding:0;background:none;cursor:zoom-in}
.gallery-photo{width:100%;height:100%;object-fit:contain}
.gallery-stage,.gallery-open,.gallery-photo,.gallery-lightbox-viewport>img{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}
.gallery-photo,.gallery-lightbox-viewport>img{-webkit-user-drag:none}
.gallery-photo::selection,.gallery-open::selection,.gallery-lightbox-viewport>img::selection{background:transparent}
.gallery-stage:before{content:'';position:absolute;width:24%;height:18px;left:38%;top:-8px;background:#bdc9bfbc;rotate:-5deg;z-index:1;pointer-events:none}
.cms-gallery button:focus-visible{outline:3px solid var(--red);outline-offset:3px}
.gallery-arrows{position:absolute;bottom:12px;right:12px;display:flex;gap:8px}
.gallery-arrows button,.gallery-lightbox button{width:44px;height:44px;border:1px solid #294f3c55;background:#fff;color:var(--leaf);display:grid;place-items:center;padding:10px;cursor:pointer;border-radius:3px}
.gallery-arrows img,.gallery-expand img,.gallery-lightbox button img{width:20px;height:20px;object-fit:contain}
.gallery-expand{position:absolute;top:12px;right:12px;background:#ffffffd9;padding:8px;pointer-events:none}
.gallery-details{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:0 16px;padding-top:10px;font-size:15px;line-height:1.5}
.gallery-details p{margin:0;overflow-wrap:anywhere}
.gallery-caption{grid-column:1}.gallery-credit{grid-column:1;font-size:13px;color:#52675b}
.gallery-number{grid-column:2;grid-row:1 / 3;font-family:'Atelier Hand',Georgia,serif;font-size:24px;align-self:start}
.gallery-thumbnails{display:flex;gap:10px;overflow-x:auto;overscroll-behavior-inline:contain;padding:10px 3px 6px;scrollbar-width:thin}
.gallery-thumbnails button{width:72px;height:72px;flex:0 0 72px;padding:3px;border:2px solid transparent;background:#fff;cursor:pointer;transition:border-color .2s}
.gallery-thumbnails button[aria-pressed=true]{border-color:var(--red)}
.gallery-thumbnails img{width:100%;height:100%;object-fit:cover}
.gallery-modal-open{overflow:hidden}
.gallery-lightbox{width:min(1200px,96vw);max-width:none;max-height:94svh;border:0;padding:16px;background:#fff;color:var(--ink)}
.gallery-lightbox::backdrop{background:#10251ee8}
.gallery-lightbox-tools{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.gallery-lightbox-tools span{font-family:'Atelier Hand',Georgia,serif;font-size:26px}
.gallery-lightbox-photo{display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;gap:12px}
.gallery-lightbox-viewport>img{width:100%;height:min(70svh,800px);object-fit:contain;min-width:0}
.gallery-lightbox-caption{font-size:16px;margin:10px 0 0;overflow-wrap:anywhere}
@media(max-width:760px){
 .gallery-artist .gallery-stage{aspect-ratio:4/3}
 .gallery-thumbnails button{width:60px;height:60px;flex-basis:60px}
 .gallery-lightbox{padding:10px;width:98vw}
 .gallery-lightbox-photo{gap:4px;grid-template-columns:40px minmax(0,1fr) 40px}
 .gallery-lightbox-photo button{width:40px;height:44px}
}
@media(prefers-reduced-motion:reduce){.gallery-thumbnails button{transition:none}}

/* Keep the gallery controls in the viewer, not on the page photographs. */
.cms-gallery{width:calc(100% - 32px);margin:16px 16px 24px}
.gallery-stage{transform:rotate(-2.5deg);transform-origin:center;box-shadow:7px 9px 0 #dce3dd;border:7px solid #fff}
.gallery-lean-right .gallery-stage{transform:rotate(2.5deg)}
.gallery-details{display:block;padding-top:24px}
.gallery-details p:empty{display:none}
.gallery-details:has(.gallery-caption:empty):has(.gallery-credit:empty){display:none}
.company-band>img{width:calc(100% - 32px);margin:16px;transform:rotate(-2.5deg)}
.artist-visual>.portrait{width:calc(100% - 32px);margin:16px;transform:rotate(-2.5deg)}
.artist-visual>.portrait-nicolas{transform:rotate(2.5deg)}
.detail-hero>img,.detail-hero>img.landscape-les-nous{width:calc(100% - 32px);margin:16px;transform:rotate(2deg)}
.project-card .image-wrap{width:calc(100% - 20px);margin:10px;transform:rotate(-2.5deg)}
.project-card:nth-child(2) .image-wrap{transform:rotate(2.5deg)}
@media(max-width:760px){
 .cms-gallery{width:calc(100% - 24px);margin:12px 12px 20px}
 .gallery-stage{transform:rotate(-2deg);border-width:5px;box-shadow:5px 7px 0 #dce3dd}
 .gallery-lean-right .gallery-stage{transform:rotate(2deg)}
 .company-band>img,.artist-visual>.portrait,.detail-hero>img,.detail-hero>img.landscape-les-nous{width:calc(100% - 24px);margin:12px}
}

/* Project covers advance only on request; the published first photo stays the entry image. */
.gallery-project-cycle .gallery-open{cursor:pointer}
.gallery-project-cycle .gallery-cycle-expand{position:absolute;z-index:2;top:12px;right:12px;width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:10px;border:1px solid #264c3c44;border-radius:50%;background:#fffffff0;color:#264c3c;cursor:zoom-in}
.gallery-project-cycle .gallery-cycle-expand:hover{background:#f7df49}
.gallery-cycle-expand img{width:22px;height:22px;object-fit:contain}
.gallery-cycle-hint{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;font:14px/1.4 'Source Sans 3',Arial,sans-serif;color:#52675b}
.gallery-cycle-count{white-space:nowrap;font-weight:600;color:#264c3c;flex:none}
@media(max-width:600px){.gallery-cycle-hint{font-size:13px}.gallery-project-cycle .gallery-cycle-expand{top:8px;right:8px}}
