/* Atelier 3K – additions for the static copy (lightbox, form states). */

/* slideshow: all slides stacked, JS cross-fades them */
[data-testid="slide-show-gallery-items"] > .x-slide { position: absolute; inset: 0; }

/* lightbox */
.x-lightbox { display: none; position: fixed; inset: 0; z-index: 100000; }
.x-lightbox.x-open { display: block; }
.x-lb-lock, .x-lb-lock body { overflow: hidden; }
.x-lb-backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .9); }
.x-lb-figure { position: absolute; inset: 0; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; padding-bottom: 35px; box-sizing: border-box; }
.x-lb-figure .x-lb-title { position: relative; height: 0; margin-top: 18px; overflow: visible; }
@media (max-width: 600px) { .x-lb-figure { padding-bottom: 0; } }
.x-lb-img { display: block; object-fit: contain; pointer-events: auto; max-width: 100vw; }
.x-lb-title { color: #fff; font: 100 16px Helvetica, Arial, sans-serif; margin-top: 22px; min-height: 20px; text-align: center; pointer-events: auto; }
.x-lightbox button { position: absolute; background: none; border: 0; padding: 0; cursor: pointer; z-index: 1; }
.x-lightbox button svg { display: block; width: 100%; height: 100%; overflow: visible; }
.x-lightbox button path { fill: none; stroke: #fff; stroke-width: 18px; }
.x-lb-prev, .x-lb-next { top: 50%; width: 18px; height: 31px; margin-top: -15px; }
.x-lb-prev { left: 50px; }
.x-lb-next { right: 50px; }
.x-lb-close { top: 38px; right: 38px; width: 16px; height: 16px; }
.x-lb-close path { stroke-width: 16px; }
@media (max-width: 600px) {
  .x-lb-prev { left: 12px; }
  .x-lb-next { right: 12px; }
  .x-lb-close { top: 20px; right: 20px; }
}

/* contact form */
.x-form-success { visibility: hidden; opacity: 0; transition: opacity .3s; }
.x-form-success.x-show { visibility: visible; opacity: 1; }
.x-invalid input, .x-invalid textarea { border: 1px solid #ff4040 !important; }
