/* Existing image viewer, extracted without behavioural changes. */
  .maintenance-image-lightbox {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(3, 6, 16, .64);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .maintenance-image-lightbox.is-open {
    display: flex;
  }

  .maintenance-image-lightbox__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    width: 100%;
    height: 100%;
    margin: 0;
    overflow: hidden;
    justify-content: center;
    position: relative;
  }

  .maintenance-image-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 92px);
    object-fit: contain;
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 8px;
    background: #080d1c;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .55);
    cursor: grab;
    touch-action: none;
    user-select: none;
    -webkit-user-drag: none;
    will-change: transform;
    transform: translate3d(0, 0, 0) scale(1);
    transform-origin: center center;
  }

  .maintenance-image-lightbox__caption {
    color: rgba(255, 255, 255, .78);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
  }

  .maintenance-image-lightbox__close {
    position: fixed;
    top: 16px;
    right: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    cursor: pointer;
    z-index: 4;
  }

  .maintenance-image-lightbox__close:hover,
  .maintenance-image-lightbox__close:focus-visible {
    border-color: #65c7ff;
    outline: none;
  }

  .maintenance-image-lightbox__nav {
    position: fixed;
    top: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 56px;
    margin-top: -28px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    font-size: 34px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
  }

  .maintenance-image-lightbox__nav--prev {
    left: 18px;
  }

  .maintenance-image-lightbox__nav--next {
    right: 18px;
  }

  .maintenance-image-lightbox__nav:hover,
  .maintenance-image-lightbox__nav:focus-visible {
    border-color: #65c7ff;
    outline: none;
  }

  .maintenance-image-lightbox__controls {
    position: fixed;
    right: 18px;
    bottom: 18px;
    display: inline-flex;
    gap: 6px;
    z-index: 3;
  }

  .maintenance-image-lightbox__control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 7px;
    background: rgba(0, 0, 0, .42);
    color: #fff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
  }

  .maintenance-image-lightbox__control:hover,
  .maintenance-image-lightbox__control:focus-visible {
    border-color: #65c7ff;
    outline: none;
  }

  body.maintenance-lightbox-open {
    overflow: hidden;
  }

  @media (max-width: 600px) {
    .maintenance-image-lightbox {
      padding: 0;
      background: rgba(3, 6, 16, .62);
    }

    .maintenance-image-lightbox__figure {
      width: 100%;
      height: 100%;
      gap: 8px;
    }

    .maintenance-image-lightbox__image {
      max-width: calc(100vw - 24px);
      max-height: calc(100vh - 86px);
      border-radius: 5px;
    }

    .maintenance-image-lightbox__caption {
      position: fixed;
      right: 12px;
      bottom: max(10px, env(safe-area-inset-bottom));
      left: 12px;
      padding: 5px 8px;
      border-radius: 5px;
      background: rgba(0, 0, 0, .36);
      font-size: 12px;
      pointer-events: none;
    }

    .maintenance-image-lightbox__controls {
      right: 12px;
      bottom: max(42px, calc(28px + env(safe-area-inset-bottom)));
    }

    .maintenance-image-lightbox__control {
      width: 38px;
      height: 38px;
      border-radius: 50%;
      background: rgba(0, 0, 0, .34);
    }

    .maintenance-image-lightbox__close {
      top: max(12px, env(safe-area-inset-top));
      right: max(12px, env(safe-area-inset-right));
      width: 40px;
      height: 40px;
      border-radius: 50%;
      background: rgba(0, 0, 0, .34);
    }

    .maintenance-image-lightbox__nav {
      width: 36px;
      height: 46px;
      margin-top: -23px;
      border-radius: 6px;
      font-size: 28px;
      background: rgba(0, 0, 0, .34);
    }

    .maintenance-image-lightbox__nav--prev {
      left: 6px;
    }

    .maintenance-image-lightbox__nav--next {
      right: 6px;
    }
  }
