.ns-carrousel { --ns-height:min(60vh,630px); width:min(100%, calc(var(--ns-height) * var(--ns-main-ratio, 1) / .76)); margin-inline:auto; }
.ns-piste { display:flex; --ns-gap:7px; gap:var(--ns-gap); overflow-x:auto; scroll-snap-type:x mandatory; scrollbar-width:none; }
.ns-piste::-webkit-scrollbar { display:none; }
.ns-piste a { flex:0 0 76%; min-width:0; display:grid; place-items:center; scroll-snap-align:center; background:#f6f3ef; }
.ns-piste a:only-child { flex-basis:100%; }
.ns-piste img { width:100%; height:var(--ns-height); object-fit:contain; display:block; }
.ns-pied { display:flex; align-items:center; gap:12px; }
.ns-pied .ns-nom-projet { min-width:0; margin:0; padding:10px 0; font-size:.8125rem; line-height:1.4; overflow-wrap:anywhere; }
.ns-commandes { display:flex; flex-shrink:0; justify-content:flex-end; gap:8px; padding:10px 0; margin-inline-start:auto; }
.ns-commandes[hidden] { display:none; }
.ns-commandes button, .ns-visionneuse button { min-width:44px; min-height:44px; padding:6px 12px; cursor:pointer; }
.ns-visionneuse { box-sizing:border-box; position:fixed; inset:0; margin:auto; border:0; padding:12px; width:min(96vw,1150px); max-height:94dvh; background:transparent; color:#fff; }
.ns-visionneuse::backdrop { background:#171310f2; }
.ns-visionneuse nav { position:static; display:flex; flex-wrap:wrap; justify-content:center; gap:8px; background:none; padding:0 0 8px; }
.ns-photo-zoom { height:70vh; height:70dvh; overflow:auto; }
.ns-photo-zoom { display:flex; }
.ns-visionneuse .ns-photo-zoom img { display:block; flex:none; margin:auto; width:100%; height:100%; max-width:none !important; max-height:none !important; object-fit:contain; }

.ns-visionneuse button { background:#292421; color:#fff; border:1px solid #847b73; }
.ns-visionneuse button:disabled { opacity:.45; }

.ns-carrousel[data-presentation="panorama"] { width:100%; }
.ns-carrousel[data-presentation="apercu"] { width:min(100%, calc(var(--ns-height) * var(--ns-main-ratio, 1) / .84)); }
.ns-carrousel[data-presentation="panorama"] { container-type:inline-size; --ns-height:min(54vh,525px); }
[data-presentation="panorama"] .ns-piste { scroll-padding-inline-start:7%; }
[data-presentation="panorama"] .ns-piste a { flex-basis:86%; scroll-snap-align:start; background:transparent; }
[data-presentation="panorama"] .ns-piste img,
[data-presentation="vedette"] .ns-piste img { height:auto; }
@container (min-width:620px) {
    [data-presentation="panorama"] .ns-piste a { flex-basis:calc((86% - var(--ns-gap)) / 2); }
}
@container (min-width:900px) {
    [data-presentation="panorama"] .ns-piste a { flex-basis:calc((86% - 2 * var(--ns-gap)) / 3); }
}
[data-presentation="apercu"] .ns-piste a { flex-basis:84%; scroll-snap-align:start; background:transparent; }
[data-presentation="apercu"] .ns-piste img { object-position:left center; }
.ns-carrousel .ns-piste a:only-child { flex-basis:100%; }

.ns-carrousel .ns-commandes button {
    background: #fff;
    color: #000;
    border: 1px solid #a79e94;
    border-radius: 0;
}

@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
    .ns-carrousel .ns-piste > a { overflow:hidden; }
    .ns-carrousel .ns-piste > a > img { transition:transform .55s ease; }
    .ns-carrousel .ns-piste > a:hover > img { transform:scale(1.045); }
}
