/* =========================================
   LIGHTBOX
========================================= */

.realisationLightbox[hidden] {
  display: none;
}

.realisationLightbox {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 1rem;
}

.realisationLightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 15, 22, 0.72);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.realisationLightbox__dialog {
  position: relative;
  z-index: 1;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);

  background: transparent;
  border: 0;
  border-radius: 0;
  overflow: visible;
  box-shadow: none;
}

.realisationLightbox__media {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: auto;
  height: auto;
  max-width: calc(100vw - 2rem);
  max-height: calc(100vh - 2rem);
}

.realisationLightbox__img {
  display: block;
  width: auto;
  height: auto;
  max-width: min(92vw, 1400px);
  max-height: 90vh;
  object-fit: contain;
  object-position: center;

  border-radius: 18px;
  box-shadow: 0 22px 60px rgba(17, 24, 39, 0.34);
  background: transparent;
}

.realisationLightbox__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 3;

  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.72rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);

  color: #111827;
  font-size: 0.82rem;
  font-weight: 700;
  line-height: 1;
}

.realisationLightbox__tag[hidden] {
  display: none !important;
}

.realisationLightbox__close {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 4;

  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  cursor: pointer;
  font-size: 1.4rem;
  line-height: 1;

  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease);
}

.realisationLightbox__close:hover {
  transform: scale(1.03);
  background: #fff;
}

.realisationLightbox__close:focus-visible {
  outline: 2px solid rgba(224, 106, 42, 0.55);
  outline-offset: 2px;
}

.realisationLightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;

  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;

  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #111827;
  cursor: pointer;

  transition:
    transform var(--dur) var(--ease),
    background var(--dur) var(--ease),
    opacity var(--dur) var(--ease);
}

.realisationLightbox__nav span {
  font-size: 1.7rem;
  line-height: 1;
  transform: translateY(-1px);
}

.realisationLightbox__nav:hover {
  background: #fff;
  transform: translateY(-50%) scale(1.03);
}

.realisationLightbox__nav:focus-visible {
  outline: 2px solid rgba(224, 106, 42, 0.55);
  outline-offset: 2px;
}

.realisationLightbox__nav--prev {
  left: 12px;
}

.realisationLightbox__nav--next {
  right: 12px;
}

body.lightbox-open {
  overflow: hidden;
}