/* V37 — fullscreen control for the progression image viewer. */
body.page-realisation .progression-modal__actions {
  display: flex;
  flex: none;
  align-items: center;
  gap: 8px;
}

body.page-realisation .progression-modal__fullscreen {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: 600 12px var(--sans);
  white-space: nowrap;
  cursor: pointer;
}

body.page-realisation .progression-modal__fullscreen:hover {
  background: var(--cream);
}

body.page-realisation .progression-modal__fullscreen:focus-visible {
  outline: 3px solid var(--gold-dark);
  outline-offset: 3px;
}

body.page-realisation .progression-modal.is-fullscreen,
body.page-realisation .progression-modal:fullscreen {
  position: fixed;
  z-index: 1000;
  inset: 0;
  width: 100vw;
  max-width: none;
  height: 100vh;
  height: 100dvh;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
}

body.page-realisation .progression-modal.is-fullscreen .progression-modal__panel,
body.page-realisation .progression-modal:fullscreen .progression-modal__panel {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: none;
}

body.page-realisation .progression-modal.is-fullscreen::backdrop,
body.page-realisation .progression-modal:fullscreen::backdrop {
  background: rgba(20, 22, 20, .96);
  backdrop-filter: none;
}

body.page-realisation .progression-modal.is-fullscreen .progression-modal__header,
body.page-realisation .progression-modal:fullscreen .progression-modal__header {
  padding: 14px 24px;
}

body.page-realisation .progression-modal.is-fullscreen .progression-carousel__frame,
body.page-realisation .progression-modal:fullscreen .progression-carousel__frame {
  height: calc(100dvh - 190px);
  max-height: 1000px;
  min-height: 0;
}

@media (max-width: 720px) {
  body.page-realisation .progression-modal__actions {
    gap: 6px;
  }

  body.page-realisation .progression-modal__fullscreen {
    min-height: 38px;
    padding: 0 10px;
    font-size: 11px;
  }

  body.page-realisation .progression-modal.is-fullscreen .progression-modal__header,
  body.page-realisation .progression-modal:fullscreen .progression-modal__header {
    gap: 8px;
    padding: 12px 10px;
  }

  body.page-realisation .progression-modal.is-fullscreen .progression-carousel,
  body.page-realisation .progression-modal:fullscreen .progression-carousel {
    grid-template-columns: 36px minmax(0, 1fr) 36px;
    gap: 5px;
    padding: 10px 8px 6px;
  }

  body.page-realisation .progression-modal.is-fullscreen .progression-carousel__frame,
  body.page-realisation .progression-modal:fullscreen .progression-carousel__frame {
    height: calc(100dvh - 150px);
  }
}