/* Valaero : compléments au CSS Elementor d'origine (lightbox, diaporama, popup) */
.va-slideshow .va-slideshow-track { display: flex; height: 100%; width: 100%; }
.va-slideshow .elementor-background-slideshow__slide { flex: 0 0 100%; height: 100%; overflow: hidden; }
.elementor-section > .va-slideshow + .elementor-container { position: relative; z-index: 1; }

.va-lightbox { position: fixed; inset: 0; z-index: 99999; background: rgba(0, 0, 0, .87); display: none; align-items: center; justify-content: center; user-select: none; }
.va-lightbox.va-open { display: flex; }
.va-lightbox figure { margin: 0; max-width: 100vw; max-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 100%; height: 100%; }
.va-lightbox img { max-width: calc(100vw - 120px); max-height: calc(100vh - 80px); object-fit: contain; box-shadow: 0 0 30px rgba(0, 0, 0, .3), 0 0 8px -5px rgba(0, 0, 0, .3); }
.va-lightbox figcaption { color: #fff; font-size: 14px; margin-top: 8px; }
.va-lightbox button { position: absolute; background: none; border: 0; color: rgba(238, 238, 238, .9); cursor: pointer; font-size: 30px; padding: 15px; line-height: 1; }
.va-lightbox button:hover { color: #fff; background: none; }
.va-lb-close { top: 0; right: 0; font-size: 24px !important; padding: 20px !important; }
.va-lb-prev { left: 0; top: 50%; transform: translateY(-50%); }
.va-lb-next { right: 0; top: 50%; transform: translateY(-50%); }
.va-lightbox.va-single .va-lb-prev, .va-lightbox.va-single .va-lb-next { display: none; }
.va-lb-count { position: absolute; top: 0; left: 0; padding: 20px; color: rgba(238, 238, 238, .9); font-size: 14px; }
@media (max-width: 767px) {
  .va-lightbox img { max-width: 100vw; max-height: calc(100vh - 120px); }
  .va-lb-prev, .va-lb-next { top: auto !important; bottom: 10px; transform: none !important; }
}

.va-popup { position: fixed; inset: 0; z-index: 9999; background: rgba(0, 0, 0, .8); display: none; align-items: center; justify-content: center; padding: 20px; }
.va-popup.va-open { display: flex; }
.va-popup-box { position: relative; background: #fff; max-width: 640px; width: 100%; max-height: calc(100vh - 40px); overflow: auto; }
.va-popup-close { position: absolute; top: 8px; right: 8px; z-index: 2; background: none !important; border: 0; font-size: 20px; color: #333 !important; cursor: pointer; padding: 6px; }
.va-popup [data-elementor-type="popup"] { display: block !important; }

.elementor-widget-video iframe.elementor-video { width: 100%; aspect-ratio: 16 / 9; height: auto; display: block; }
