/* lightbox.css — enlarged view of a photograph (assets/js/lightbox.js): home page, pictures in the text of the inner
   pages, photo gallery. The theme's own design, except on the photo gallery page (last block): the other pop-ups of the
   old site were not measured. */

/* ==========================================================================
   Enlarged view of a photograph (benefits picture, product tiles). The theme's own: the two pop-ups of the old
   site were not measured (inventory/design/report.md, known limits).
   ========================================================================== */
.en-lightbox {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 100000;
  display: none;
  align-items: center;
  justify-content: center;
  background-color: rgba(0, 0, 0, 0.8);
}
.en-lightbox.is-open { display: flex; }
.en-lightbox__frame { position: relative; line-height: 0; }
.en-lightbox__image {
  max-width: 90vw;
  max-height: 90vh;
  background-color: rgb(255, 255, 255);
}
.en-lightbox button {
  position: absolute;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background-color: rgba(0, 0, 0, 0.5);
  color: rgb(255, 255, 255);
  font: 400 28px/44px Arial, sans-serif;
  cursor: pointer;
}
.en-lightbox__close { top: 0; right: 0; }
.en-lightbox__close::before { content: "\00d7"; }
.en-lightbox__nav { top: 50%; margin-top: -22px; }
.en-lightbox__nav--prev { left: 0; }
.en-lightbox__nav--prev::before { content: "\2039"; }
.en-lightbox__nav--next { right: 0; }
.en-lightbox__nav--next::before { content: "\203a"; }
.en-lightbox--single .en-lightbox__nav { display: none; }
.en-lightbox__count { display: none; }

/* ==========================================================================
   Photo gallery page (group «gallery»): as the gallery of the old site showed a photograph.
   Measured on the live with a photograph open (probe at 1366x768 and 1920x1080, 2026-11-12): black cover over the
   whole window; the photograph fitted, never enlarged, in the window less 44px at the top and 10px at the bottom,
   and centred in that room (1200x534 at 83,134 and 360,290; 1200x899 as 953x714 at y 44); counter at 8,14, Roboto
   italic 12px / 30px, rgb(229, 229, 229); close button 36x36, 2px from the top right corner; arrows 50x55, 10px
   from the sides, at mid height. The old buttons were pictures of the gallery plugin; ours are drawn with the icon
   font, white, sized to the same boxes.
   ========================================================================== */
.en-lightbox--gallery {
  box-sizing: border-box;
  padding: 44px 0 10px;
  background-color: rgb(0, 0, 0);
}
.en-lightbox--gallery .en-lightbox__frame {
  position: static;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}
.en-lightbox--gallery .en-lightbox__image {
  max-width: 100%;
  max-height: 100%;
  background-color: transparent;
}
.en-lightbox--gallery button {
  background-color: transparent;
  font-family: FontAwesome;
  font-style: normal;
}
.en-lightbox--gallery .en-lightbox__close { top: 2px; right: 2px; width: 36px; height: 36px; font-size: 27px; line-height: 36px; }
.en-lightbox--gallery .en-lightbox__close::before { content: "\f00d"; }
.en-lightbox--gallery .en-lightbox__nav { width: 50px; height: 55px; margin-top: -27.5px; font-size: 33px; line-height: 55px; }
.en-lightbox--gallery .en-lightbox__nav--prev { left: 10px; }
.en-lightbox--gallery .en-lightbox__nav--prev::before { content: "\f053"; }
.en-lightbox--gallery .en-lightbox__nav--next { right: 10px; }
.en-lightbox--gallery .en-lightbox__nav--next::before { content: "\f054"; }
.en-lightbox--gallery .en-lightbox__count {
  position: absolute;
  top: 14px;
  left: 8px;
  display: block;
  font: italic 400 12px/30px Roboto, sans-serif;
  color: rgb(229, 229, 229);
}
