/*
 * lightbox.css - the look of the picture viewer that lightbox.js opens for Print 1-5.
 *
 * Colours are those of the movie's Print section: panels #1a1a1a, title #ececea, text #999999,
 * the orange lines #ffc500 and the orange arrows #ff8a00.  The font is the movie's Verdana.
 * The sizes are worked out in lightbox.js (fit): no picture is shown larger than its own size.
 */
.levasha-lb {
  position: fixed; left: 0; top: 0; right: 0; bottom: 0;
  z-index: 2147483000;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0, 0, 0, 0.86);
  font-family: Verdana, Arial, Helvetica, sans-serif;
  -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
  touch-action: pan-y pinch-zoom;          /* a sideways swipe is the viewer's; pinch-zoom stays the browser's */
}
.levasha-lb[hidden] { display: none; }

.levasha-lb-box { position: relative; width: 800px; outline: none; box-shadow: 0 0 32px rgba(0, 0, 0, 0.7); }

/* the caption bar: the text of the 2009 page's header bar, the count, the close button */
.levasha-lb-bar { display: flex; align-items: center; background: #1a1a1a; border-bottom: 3px solid #ffc500; }
.levasha-lb-caption { flex: 1 1 auto; min-width: 0; margin: 0; padding: 7px 8px 7px 12px; font-size: 12px; line-height: 16px; color: #999999; }
.levasha-lb-caption b { color: #ececea; }
.levasha-lb-count { flex: none; padding: 0 4px; font-size: 11px; line-height: 16px; color: #999999; white-space: nowrap; }

/* the stage keeps one size while the pages turn; each page sits in its middle: the large picture with the
   small one beside it, bottom-aligned, as the movie lays them out */
.levasha-lb-stage { position: relative; display: flex; align-items: center; justify-content: center;
                    background: #121212; border-bottom: 3px solid #ffc500; }
.levasha-lb-page { display: flex; align-items: flex-end; max-width: 100%; max-height: 100%; overflow: hidden; }
.levasha-lb-page img { display: block; height: auto; }

/* the three buttons (their colours follow below, at the same weight, so that they win) */
.levasha-lb-close, .levasha-lb-prev, .levasha-lb-next {
  margin: 0; padding: 0; border: 0; border-radius: 0; background: transparent;
  font: inherit; cursor: pointer; -webkit-appearance: none; appearance: none;
  display: flex; align-items: center; justify-content: center;
}
.levasha-lb-close:focus, .levasha-lb-prev:focus, .levasha-lb-next:focus { outline: none; }
.levasha-lb-close:focus-visible, .levasha-lb-prev:focus-visible, .levasha-lb-next:focus-visible { outline: 1px solid #ffc500; outline-offset: -3px; }
.levasha-lb svg { display: block; pointer-events: none; }

.levasha-lb-close { flex: none; align-self: stretch; width: 40px; min-height: 30px; color: #999999; }
.levasha-lb-close:hover, .levasha-lb-close:focus-visible { color: #ff8a00; }

/* the arrows: beside the picture where there is room for them, on its edges in a narrow window */
.levasha-lb-prev, .levasha-lb-next { position: absolute; top: 0; bottom: 0; width: 64px; color: #ff8a00; }
.levasha-lb-prev { right: 100%; }
.levasha-lb-next { left: 100%; }
.levasha-lb-prev:hover, .levasha-lb-next:hover,
.levasha-lb-prev:focus-visible, .levasha-lb-next:focus-visible { color: #ffc500; }

.levasha-lb-narrow .levasha-lb-caption { font-size: 11px; line-height: 15px; }
.levasha-lb-narrow .levasha-lb-close { width: 44px; min-height: 44px; }
.levasha-lb-narrow .levasha-lb-prev,
.levasha-lb-narrow .levasha-lb-next { top: 50%; bottom: auto; width: 44px; height: 64px; margin-top: -32px; background: rgba(26, 26, 26, 0.6); }
.levasha-lb-narrow .levasha-lb-prev { right: auto; left: 0; }
.levasha-lb-narrow .levasha-lb-next { left: auto; right: 0; }

@media (prefers-reduced-motion: no-preference) {
  .levasha-lb { animation: levasha-lb-in 0.15s ease-out; }
}
@keyframes levasha-lb-in { from { opacity: 0; } to { opacity: 1; } }
