/* Le zoom est contenu dans l'image : aucun effet sur la mise en page ou l'accueil. */
.oeuvre-hero .beylag-artwork-zoom {
  position: relative;
  display: inline-flex;
  align-self: center;
  min-width: 0;
  max-width: 100%;
  line-height: 0;
}
.beylag-artwork-zoom > img { display: block; }
.beylag-artwork-zoom__detail {
  position: absolute;
  inset: 0;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  background: var(--ivory, #FFFEFC);
}
.beylag-artwork-zoom.is-zooming .beylag-artwork-zoom__detail { opacity: 1; }
.oeuvre-hero .beylag-artwork-zoom__detail img {
  position: absolute;
  top: 0;
  left: 0;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  margin: 0;
  box-shadow: none;
  pointer-events: none;
}
.beylag-artwork-zoom__button {
  position: absolute;
  z-index: 2;
  top: 12px;
  right: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 9px;
  border: 1px solid var(--line, #E7E1D6);
  border-radius: 50%;
  background: var(--ivory, #FFFEFC);
  color: var(--bordeaux, #45101B);
  cursor: zoom-in;
}
.beylag-artwork-zoom__button[aria-pressed="true"] { cursor: zoom-out; }
.beylag-artwork-zoom__button:focus-visible { outline: 2px solid var(--bordeaux, #45101B); outline-offset: 3px; }
.beylag-artwork-zoom__button:disabled { display: none; }
.beylag-artwork-zoom__button svg { width: 20px; height: 20px; }
.beylag-artwork-zoom__status {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
@media (hover: hover) and (pointer: fine) {
  .beylag-artwork-zoom.is-ready { cursor: zoom-in; }
  .beylag-artwork-zoom.is-zooming { cursor: crosshair; }
}
@media (hover: none), (pointer: coarse) {
  .beylag-artwork-zoom__button, .beylag-artwork-zoom__detail { display: none; }
}

/* Même détail dans l’image, au contact du doigt ; aucune vue séparée. */
.beylag-artwork-zoom.has-touch-zoom { touch-action: none; }
.beylag-artwork-zoom__detail.beylag-artwork-zoom__detail--touch { display: block; z-index: 1; }
.beylag-artwork-zoom.is-touch-zooming .beylag-artwork-zoom__detail--touch { opacity: 1; }
.beylag-artwork-zoom.has-touch-zoom > img {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
