/* The complete reference surrounds the photo without stretching its artwork. */
.commission-carousel.reference-carousel { width:100%; max-width:500px; }
.reference-carousel-frame {
 --photo-top:10%; --photo-left:10%; --photo-width:80%; --photo-height:80%;
 position:relative; width:100%; aspect-ratio:2 / 3; isolation:isolate;
}
.reference-frame-art {
 position:absolute; inset:0; z-index:2; display:block; width:100%; height:100%;
 pointer-events:none; user-select:none;
 filter:none;
 mix-blend-mode:normal;
}
.reference-carousel .commission-photos {
 position:absolute; z-index:1; top:var(--photo-top); left:var(--photo-left);
 display:flex; width:var(--photo-width); height:var(--photo-height); min-width:0; gap:0;
 padding:0; border:0!important; background:transparent;
 scroll-snap-type:x mandatory; scrollbar-width:none;
}
.reference-carousel .commission-photos::-webkit-scrollbar { display:none; }
.reference-carousel .commission-photos > button {
 display:block; flex:0 0 100%; width:100%; height:100%; min-width:0;
 padding:0; border:0; background:transparent; scroll-snap-align:start;
}
.reference-carousel .commission-photos img {
 display:block; width:100%; height:100%!important; min-width:0;
 aspect-ratio:auto!important; object-fit:cover!important; object-position:center; background:transparent;
 border:0; box-shadow:none;
}
.reference-carousel .commission-photos > img { flex:0 0 100%; scroll-snap-align:start; }
.reference-carousel .commission-controls { margin-top:8px; }
.reference-carousel .commission-photos:focus-visible,
.reference-carousel .commission-photos > button:focus-visible {
 outline:2px solid var(--frame-gold-light); outline-offset:-3px;
}

/* Detail viewers fill the same frame opening. */
#inside .photos.reference-photo-viewer { min-width:0; background:transparent; }
#inside .reference-photo-viewer .reference-carousel-frame { max-width:min(660px, calc((100svh - 112px) * 2 / 3)); margin:auto; }
#inside .reference-photo-viewer .reference-frame-art {
 width:100%; height:100%; max-height:none; margin:0;
}
#inside .reference-photo-viewer img.present {
 position:absolute; z-index:1; top:var(--photo-top); left:var(--photo-left);
 width:var(--photo-width); height:var(--photo-height);
 max-height:none; margin:0; object-fit:cover!important; object-position:center; background:transparent;
 border:0; box-shadow:none;
}
.reference-photo-viewer .pager { margin-top:8px; }

/* Photo navigation controls share a consistent touch target. */
:is(.commission-controls,.pager) { gap:4px; }
:is(.commission-controls,.pager) button,
:is(.commission-controls,.pager) button:hover {
 width:66px; min-width:66px; height:52px; min-height:52px;
 padding:0; border:0; border-radius:0;
 border-image:none;
 background:transparent;
 background-origin:border-box;
}
:is(.commission-controls,.pager) button::before {
 width:82px; height:41px; flex:none; background-size:contain;
}
:is(.commission-controls,.pager) button:hover { outline:1px solid var(--atelier-red-ink); outline-offset:2px; }
:is(.commission-controls,.pager) button:focus-visible { outline:2px solid var(--frame-gold-light); outline-offset:3px; }
/* The photo number and the total use the same lettering as the price tags. */
body :is(.commission-controls output,.pager > span) {
 display:inline-flex; align-items:center; justify-content:center; gap:.24em;
 font:400 clamp(1.375rem,3.2vw,1.75rem)/1 var(--site-lettering)!important;
 font-synthesis:none; white-space:nowrap;
 color:#fff!important; -webkit-text-stroke:.105em var(--atelier-red-ink); paint-order:stroke fill;
}
body :is(.commission-controls,.pager) .carousel-total {
 font:inherit!important; color:var(--atelier-red-ink)!important;
 -webkit-text-stroke:.105em #fff; paint-order:stroke fill;
}
body :is(.commission-controls,.pager) .carousel-separator {
 display:inline-block; position:relative; flex:none; width:10px; height:10px;
 border-radius:50%; background:transparent; box-shadow:inset 0 0 0 1px #fff; font-size:0; -webkit-text-stroke:0;
}
.carousel-separator::after {
 content:""; position:absolute; inset:3px; border-radius:50%; background:var(--atelier-red-ink);
}

/* Turn the wide three-dog drawing sideways and retain every edge of the artwork. */
.reference-carousel .commission-photos > .turned-slide {
 position:relative; container-type:size;
}
.reference-carousel .commission-photos > .turned-slide > img {
 position:absolute; left:50%; top:50%;
 width:100cqh!important; height:100cqw!important; max-width:none;
 object-fit:cover!important; transform:translate(-50%,-50%) rotate(90deg);
}
#inside .reference-photo-viewer .reference-carousel-frame {container-type:size;}
#inside .reference-photo-viewer img.present.turned-photo {
 left:50%;top:50%;width:120cqw;height:80cqw;max-width:none;
 object-fit:cover!important;transform:translate(-50%,-50%) rotate(90deg);
}

body[data-page="boutique"] #products .tile {
  text-align: center;
}
body[data-page="boutique"] #products .tile[href$="#piece/print-alien"] > small .word-separator-dot {
  outline: none;
}

.shop-photo-stage {
  display:grid;
  place-items:center;
}
.shop-photo-print {
  display:block;
  position:relative;
  aspect-ratio:var(--photo-ratio, auto);
  max-width:100%;
  margin-inline:auto;
  filter:drop-shadow(1px 3px 2px rgb(12 9 7 / 48%));
}

.shop-photo-face {
  display:block;
  position:relative;
  -webkit-mask:var(--photo-cut,none) center / 100% 100% no-repeat;
  mask:var(--photo-cut,none) center / 100% 100% no-repeat;
}
.shop-photo-face::after {
  content:"";
  position:absolute;
  inset:0;
  background:var(--photo-surface,none) center / 100% 100% no-repeat;
  pointer-events:none;
}
.shop-photo-view { display:block; width:100%; min-width:0; padding:0; border:0; background:transparent; color:inherit; box-shadow:none; cursor:zoom-in; }
.shop-photo-view .shop-photo-print, .piece-page-content > .shop-photo-print {
  width:min(100%, calc(min(93svh, 100svh - 96px) * var(--photo-ratio,.8)));
}
@media(max-width:650px) {
  .shop-photo-view .shop-photo-print, .piece-page-content > .shop-photo-print {
    width:min(100%, calc(64.5svh * var(--photo-ratio,.8)));
  }
}
body[data-page="boutique"] #products .shop-photo-face img,
#inside .item.product-detail .shop-photo-face img.present,
.piece-page-content .shop-photo-face img, .piece-page-content .item.product-detail .shop-photo-face img.present {
  position:static; display:block; width:100%; height:auto; max-height:none;
  aspect-ratio:auto; margin:0; padding:0; background:transparent; border:0; box-shadow:none;
}
body[data-page="boutique"] #products .tile .soldtag {z-index:1;}

body[data-page="tatouages"] #detail:has(.reference-photo-viewer),
body[data-page="boutique"] #detail:has(.product-detail),
#detail:has(#inside > .reference-photo-viewer) {
  width: min(1000px, calc(100vw - 16px));
  max-width: calc(100vw - 16px);
  max-height: calc(100svh - 16px);
  padding: clamp(8px, 2vw, 24px);
}
body[data-page="tatouages"] #inside .reference-photo-viewer .reference-carousel-frame {
  width: min(100%, 28.5rem, 67.5svh, calc((100svh - 116px) * 2 / 3));
  max-width: none;
}
body[data-page="tatouages"] #inside .reference-photo-viewer img.present { object-fit: contain !important; }
.print-faces {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:clamp(10px,2vw,24px);}
.print-faces figure {display:flex;flex-direction:column;align-items:center;margin:0;min-width:0;}
.print-faces figcaption {margin:.45rem 0 0;text-align:center;color:inherit;font:inherit;}
.print-faces .shop-photo-view {width:100%;background:transparent;border:0;}
.print-faces .shop-photo-view .shop-photo-print {width:100%;}
@media(max-width:650px) {.print-faces {grid-template-columns:minmax(0,1fr);gap:1rem;} .print-faces .shop-photo-view .shop-photo-print {width:min(100%,calc(66svh * var(--photo-ratio,.7)));}}

body .product-detail {align-items:start;gap:clamp(1.15rem,3vw,2.5rem);}
.product-detail .reference-photo-viewer {align-self:start;min-inline-size:0;}
.product-detail .shop-photo-view .shop-photo-print {
  width:min(100%,calc(72svh * var(--photo-ratio,.8)));
}
@media (max-width:749px) {
  :is(#inside,.piece-page-content) .item.product-detail {display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;}
  .product-detail .shop-photo-view .shop-photo-print {width:min(100%,calc(61svh * var(--photo-ratio,.8)));}
  .product-detail .piece-copy {width:100%;margin-inline:auto;}
}


/* A common square window keeps the entire shop photo visible in each category. */
body #products .shop-photo-stage,
body .brand-collection .brand-photo {
  width:100%;
  aspect-ratio:1;
  margin-inline:auto;
}
body #products .shop-photo-stage .shop-photo-print,
body .brand-collection .brand-photo .shop-photo-print {
  width:100%;
  aspect-ratio:1;
}
body :is(#products .shop-photo-stage,.brand-collection .brand-photo) .shop-photo-face {
  width:100%;
  height:100%;
  background-color:#0c0b0b;
}
body[data-page="boutique"] #products .tile .shop-photo-face img,
body .brand-collection .brand-photo .shop-photo-face img {
  width:100%;
  height:100%;
  aspect-ratio:1;
  object-fit:contain;
  object-position:center;
}

:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/skate-mouches.webp"]{--photo-cut:url("/images/photo-wear/dc567af056c8e868.svg");--photo-surface:url("/images/photo-wear/a5c3719386635d61.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/skate-mad-world-clown.webp"]{--photo-cut:url("/images/photo-wear/df7a8d9badd2e527.svg");--photo-surface:url("/images/photo-wear/cf740c66b82cf7f0.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/skate-mad-world.webp"]{--photo-cut:url("/images/photo-wear/df0fc594a56c70b7.svg");--photo-surface:url("/images/photo-wear/5dea8236a639d0e3.svg");--photo-ratio:1.000000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/skate-statue-liberte.webp"]{--photo-cut:url("/images/photo-wear/684f4a0d9f1cd49b.svg");--photo-surface:url("/images/photo-wear/212044d75ce113f3.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/skate-smiley-skull.webp"]{--photo-cut:url("/images/photo-wear/4404f8b097311edb.svg");--photo-surface:url("/images/photo-wear/088c605ace3cd8fb.svg");--photo-ratio:1.000000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-live-fast-1.webp"]{--photo-cut:url("/images/photo-wear/1f694c2781719204.svg");--photo-surface:url("/images/photo-wear/2bbe8af177de1a5e.svg");--photo-ratio:0.668679;--grid-width:83.58%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-live-fast-2.webp"]{--photo-cut:url("/images/photo-wear/ff041ceda7f9a18e.svg");--photo-surface:url("/images/photo-wear/a21ca7f7a633ea39.svg");--photo-ratio:0.642264;--grid-width:80.28%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-live-fast-3.webp"]{--photo-cut:url("/images/photo-wear/985b11cddcaf4870.svg");--photo-surface:url("/images/photo-wear/7230cc0b7cf45c07.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-enfer-dante-1.webp"]{--photo-cut:url("/images/photo-wear/49ef3ad03c9c87b4.svg");--photo-surface:url("/images/photo-wear/bcd5caa3efe96aba.svg");--photo-ratio:0.683019;--grid-width:85.38%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-enfer-dante-2.webp"]{--photo-cut:url("/images/photo-wear/1949b8ff68d5c79a.svg");--photo-surface:url("/images/photo-wear/aab38d4534d17616.svg");--photo-ratio:0.852090;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-enfer-dante-3.webp"]{--photo-cut:url("/images/photo-wear/e3acb036d5c2c938.svg");--photo-surface:url("/images/photo-wear/2451426e050dac5f.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-enfer-dante-4.webp"]{--photo-cut:url("/images/photo-wear/fed2c2dfc52814c8.svg");--photo-surface:url("/images/photo-wear/cd8ca4610abb1aae.svg");--photo-ratio:0.857605;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-enfer-dante-5.webp"]{--photo-cut:url("/images/photo-wear/7ad0250aff8497f6.svg");--photo-surface:url("/images/photo-wear/55c55b246b9dafd6.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-faucheuse-1.webp"]{--photo-cut:url("/images/photo-wear/a20d54f1bb26ce0e.svg");--photo-surface:url("/images/photo-wear/c712677dacbccac3.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-faucheuse-2.webp"]{--photo-cut:url("/images/photo-wear/41df1bcedcfbdf8c.svg");--photo-surface:url("/images/photo-wear/e46710a0f5c29026.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/batte-faucheuse-3.webp"]{--photo-cut:url("/images/photo-wear/199c5fb16f6e574d.svg");--photo-surface:url("/images/photo-wear/3f572168ee6a1e0d.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/print-smuggle.webp"]{--photo-cut:url("/images/photo-wear/97f38359a023f23c.svg");--photo-surface:url("/images/photo-wear/1d3d49ea0c2bb81e.svg");--photo-ratio:0.750000;--grid-width:93.75%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/print-smuggle-verso.webp"]{--photo-cut:url("/images/photo-wear/42f19c0ec537a8cc.svg");--photo-surface:url("/images/photo-wear/c17ce42b103f0ef0.svg");--photo-ratio:0.748276;--grid-width:93.53%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/print-prison-break.webp"]{--photo-cut:url("/images/photo-wear/9da9cbaa656ff4f6.svg");--photo-surface:url("/images/photo-wear/98117af4a77d2462.svg");--photo-ratio:0.624760;--grid-width:78.1%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/print-prison-break-verso.webp"]{--photo-cut:url("/images/photo-wear/a109d5cce7a58477.svg");--photo-surface:url("/images/photo-wear/e5c0a5551e52bd12.svg");--photo-ratio:0.624444;--grid-width:78.06%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/print-mouche.webp"]{--photo-cut:url("/images/photo-wear/b958eedcf7484951.svg");--photo-surface:url("/images/photo-wear/9cb4af012a1ecd02.svg");--photo-ratio:0.800000;--grid-width:100%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/print-alien.webp"]{--photo-cut:url("/images/photo-wear/852f9f02c7a1805e.svg");--photo-surface:url("/images/photo-wear/a7054b8babcf3c29.svg");--photo-ratio:0.758491;--grid-width:94.81%}
:is(.shop-photo-print,.gdm-viewer-print)[data-photo="/images/print-alien-verso.webp"]{--photo-cut:url("/images/photo-wear/0b9df6bf3ebc02f3.svg");--photo-surface:url("/images/photo-wear/c2e48cbbbb4028c4.svg");--photo-ratio:0.758333;--grid-width:94.79%}