/* V45 — lecture automatique, pause et affichage plein écran des photos. */
body.page-realisation .carousel-help {
  max-width: 760px;
  margin: 14px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.55;
  text-align: center;
}

body.page-realisation .compass-carousel__photo {
  position: absolute;
  z-index: 0;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

body.page-realisation .compass-carousel__photo:focus-visible {
  outline: 4px solid var(--gold);
  outline-offset: -5px;
}

body.page-realisation .compass-carousel__controls button[data-work-toggle] {
  font-size: 18px;
}

body.page-realisation .compass-carousel__controls button[data-work-toggle][aria-pressed="true"] {
  background: #d5bd96;
  border-color: #b58b4c;
}

body.page-realisation .work-lightbox {
  position: fixed;
  z-index: 1200;
  inset: 0;
  display: none;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #171816;
  color: #fff;
}

body.page-realisation .work-lightbox[open] {
  display: grid;
}

body.page-realisation .work-lightbox::backdrop {
  background: rgb(15 16 14 / 96%);
}

body.page-realisation .work-lightbox:fullscreen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  background: #171816;
}

body.page-realisation .work-lightbox__panel {
  display: grid;
  width: 100%;
  height: 100%;
  min-height: 0;
  grid-template-rows: auto minmax(0, 1fr);
  padding: clamp(12px, 2vw, 28px);
}

body.page-realisation .work-lightbox__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 48px;
}

body.page-realisation .work-lightbox__header p {
  margin: 0;
  color: #f5f2eb;
  font-size: clamp(15px, 1.5vw, 20px);
}

body.page-realisation .work-lightbox__header button {
  display: grid;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgb(255 255 255 / 48%);
  border-radius: 50%;
  background: rgb(255 255 255 / 12%);
  color: #fff;
  font: 400 30px/1 var(--sans);
  cursor: pointer;
}

body.page-realisation .work-lightbox__header button:hover {
  background: rgb(255 255 255 / 24%);
}

body.page-realisation .work-lightbox__header button:focus-visible {
  outline: 3px solid #d7bd93;
  outline-offset: 3px;
}

body.page-realisation .work-lightbox__figure {
  display: grid;
  min-width: 0;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  justify-items: center;
  gap: 10px;
  margin: 0;
}

body.page-realisation .work-lightbox__figure img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

body.page-realisation .work-lightbox__figure figcaption {
  color: rgb(255 255 255 / 72%);
  font-size: 13px;
  text-align: center;
}

@media (max-width: 560px) {
  body.page-realisation .carousel-help {
    padding-inline: 8px;
    font-size: 13px;
  }

  body.page-realisation .compass-carousel__controls {
    gap: 5px;
    right: 8px;
    bottom: 8px;
    padding: 4px;
  }

  body.page-realisation .compass-carousel__controls button {
    width: 34px;
    height: 34px;
  }

  body.page-realisation .work-lightbox__panel {
    padding: 8px;
  }

  body.page-realisation .work-lightbox__header button {
    width: 42px;
    height: 42px;
  }
}
