.wide-img-btn {
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: none;
  cursor: zoom-in;
  text-align: left;
}

.wide-img-btn:focus-visible {
  outline: 2px solid #1d1d1d;
  outline-offset: 2px;
}

.cl-realisation-lightbox {
  position: fixed;
  inset: 0;
  z-index: 20000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.cl-realisation-lightbox[hidden] {
  display: none;
}

.cl-realisation-lightbox__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(29, 29, 29, 0.88);
}

.cl-realisation-lightbox__panel {
  position: relative;
  z-index: 1;
  width: min(1200px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
}

.cl-realisation-lightbox__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 44px;
  height: 44px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #1d1d1d;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.cl-realisation-lightbox__close:hover {
  background: #fff;
}

.cl-realisation-lightbox__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: calc(100vh - 180px);
  object-fit: contain;
  background: #111;
}

.cl-realisation-lightbox__info {
  margin-top: 16px;
  color: #fff;
}

.cl-realisation-lightbox__info .subtitle {
  color: #fff;
}

.cl-realisation-lightbox__rows {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
}

.cl-realisation-lightbox__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.cl-realisation-lightbox__row .text.grey {
  color: rgba(255, 255, 255, 0.65);
}

body.cl-realisation-lightbox-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .cl-realisation-lightbox {
    padding: 12px;
  }

  .cl-realisation-lightbox__img {
    max-height: calc(100vh - 220px);
  }
}
