/* Home page app screenshots: carousel, gallery thumbnails and full-screen lightbox (2026-10-02).
   Screenshots are 1440x900 (16:10); frames keep that ratio so nothing is cropped or shifts. */

/* "Stay ahead of the future" carousel */
.future-grid .future-carousel { min-height: 0; height: auto; aspect-ratio: 16 / 10; }
.future-carousel .future-frame { pointer-events: none; }
.future-carousel .future-frame.active { pointer-events: auto; }
.future-carousel .future-frame picture { display: block; width: 100%; height: 100%; }
.future-carousel .future-frame img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top; cursor: zoom-in; }
.future-carousel .future-frame span { pointer-events: none; right: auto; max-width: calc(100% - 44px); }
.future-carousel .gallery-nav { z-index: 4; }
@media (max-width: 760px) {
  .future-carousel .future-frame span { left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 8px 12px; border-radius: 12px; font-size: .86rem; }
  .future-carousel .gallery-nav, .gallery-shell .gallery-nav { width: 36px; height: 36px; }
  .gallery-track figcaption { padding: 30px 14px 12px; }
  .gallery-track figcaption b { font-size: 1rem; }
  .gallery-track figcaption span { font-size: .84rem; }
}

/* "Check before you buy - Gallery" thumbnails show the whole screenshot */
.gallery-track figure { height: auto; aspect-ratio: 16 / 10; }
.gallery-track picture { display: block; width: 100%; height: 100%; }
.gallery-track figure:focus-visible { outline: 3px solid #8ef1dd; outline-offset: 3px; }

/* Lightbox: above the sticky header (z-index 2147483000) */
html.mc-lightbox-lock, html.mc-lightbox-lock body { overflow: hidden !important; }
.mc-lightbox[hidden] { display: none !important; }
.mc-lightbox {
  position: fixed; inset: 0; z-index: 2147483600;
  display: flex; align-items: center; justify-content: center;
  padding: max(64px, env(safe-area-inset-top)) 76px max(24px, env(safe-area-inset-bottom));
  background: rgba(3, 5, 10, .94); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  opacity: 0; transition: opacity .2s ease; overscroll-behavior: contain;
}
.mc-lightbox.open { opacity: 1; }
.mc-lightbox-figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; max-width: 92vw; }
.mc-lightbox-figure img {
  display: block; width: auto; height: auto; max-width: min(92vw, 1440px);
  max-height: calc(88vh - 76px); max-height: calc(88dvh - 76px);
  aspect-ratio: 16 / 10; object-fit: contain; border-radius: 16px; background: #07080c;
  box-shadow: 0 30px 110px rgba(0, 0, 0, .65); border: 1px solid rgba(255, 255, 255, .12);
}
.mc-lightbox-figure figcaption { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: center; gap: 4px 12px; max-width: 760px; color: #fff; text-align: center; line-height: 1.35; }
.mc-lightbox-figure figcaption b { font-weight: 850; font-size: 1.05rem; }
.mc-lightbox-figure figcaption span { color: rgba(255, 255, 255, .76); }
.mc-lightbox-figure figcaption small { color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.mc-lightbox-figure figcaption :empty { display: none; }
.mc-lightbox-close, .mc-lightbox-nav {
  position: fixed; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; padding: 0;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .22); background: rgba(12, 14, 22, .86);
  color: #fff; cursor: pointer; line-height: 1; transition: background .2s ease, transform .2s ease;
}
.mc-lightbox-close { top: max(14px, env(safe-area-inset-top)); right: max(14px, env(safe-area-inset-right)); font-size: 1.9rem; }
.mc-lightbox-nav { top: 50%; transform: translateY(-50%); font-size: 1.2rem; }
.mc-lightbox-nav.prev { left: max(14px, env(safe-area-inset-left)); }
.mc-lightbox-nav.next { right: max(14px, env(safe-area-inset-right)); }
.mc-lightbox-nav[hidden] { display: none; }
.mc-lightbox-close:hover, .mc-lightbox-nav:hover { background: rgba(36, 88, 255, .9); }
.mc-lightbox-close:focus-visible, .mc-lightbox-nav:focus-visible { outline: 3px solid #8ef1dd; outline-offset: 2px; }

@media (max-width: 760px) {
  .mc-lightbox { padding: max(72px, env(safe-area-inset-top)) 12px max(84px, env(safe-area-inset-bottom)); }
  .mc-lightbox-figure, .mc-lightbox-figure img { max-width: calc(100vw - 24px); }
  .mc-lightbox-figure img { max-height: calc(100vh - 200px); max-height: calc(100dvh - 200px); border-radius: 12px; }
  .mc-lightbox-nav { top: auto; bottom: max(18px, env(safe-area-inset-bottom)); transform: none; }
  .mc-lightbox-nav.prev { left: calc(50% - 60px); }
  .mc-lightbox-nav.next { right: calc(50% - 60px); }
}

@media (prefers-reduced-motion: reduce) {
  .mc-lightbox { transition: none; }
}

.future-carousel .future-frame video { width: 100%; height: 100%; object-fit: contain; background: #07080c; display: block; pointer-events: none; }
/* The trailer has its own burned-in captions; keep the frame label for screen readers only. */
.future-carousel .future-video-frame span { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* Zoomable carousel frames are keyboard buttons (Enter/Space open the lightbox). */
.future-carousel .future-frame[data-zoomable] { cursor: zoom-in; }
.future-carousel .future-frame:focus-visible { outline: 3px solid #8ef1dd; outline-offset: -3px; border-radius: inherit; }

/* Trailer pause/play toggle: always visible on the trailer frame, keyboard accessible. */
.future-carousel .future-trailer-toggle {
  position: absolute; z-index: 3; top: 14px; right: 14px;
  display: grid; place-items: center; width: 44px; height: 44px; padding: 0;
  border-radius: 999px; border: 1px solid rgba(255, 255, 255, .24); background: rgba(8, 9, 14, .74);
  color: #fff; font-size: 1.25rem; line-height: 1; cursor: pointer;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); transition: background .2s ease;
}
.future-carousel .future-trailer-toggle[hidden] { display: none; }
.future-carousel .future-trailer-toggle:hover { background: rgba(36, 88, 255, .9); }
.future-carousel .future-trailer-toggle:focus-visible { outline: 3px solid #8ef1dd; outline-offset: 2px; }
/* Paused (reduced motion, data saver or by choice): a larger play button over the poster. */
.future-carousel .future-video-frame.is-paused .future-trailer-toggle { top: 50%; right: auto; left: 50%; width: 68px; height: 68px; font-size: 2rem; transform: translate(-50%, -50%); }
@media (max-width: 760px) {
  .future-carousel .future-trailer-toggle { top: 10px; right: 10px; width: 40px; height: 40px; font-size: 1.1rem; }
  .future-carousel .future-video-frame.is-paused .future-trailer-toggle { top: 50%; right: auto; width: 56px; height: 56px; font-size: 1.6rem; }
}
