/*
 * Photo lightbox (js/lightbox.js, markup in inc/content/lightbox-dialog.php).
 * Used by the booking page gallery and the homepage mosaic.
 */

.cleeve-lightbox {
  width: 100vw;
  max-width: 100vw;
  height: 100vh;
  max-height: 100vh;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.cleeve-lightbox[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.cleeve-lightbox::backdrop {
  background: rgba(10, 8, 30, 0.9);
}

.cleeve-lightbox__img {
  max-width: calc(100vw - 140px);
  max-height: calc(100vh - 80px);
  border-radius: 6px;
}

.cleeve-lightbox button {
  position: absolute;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.cleeve-lightbox button svg {
  display: block;
  color: inherit; /* the theme's `* { color }` rule would otherwise make the icons navy */
}

.cleeve-lightbox button:hover {
  background: rgba(255, 255, 255, 0.3);
}

.cleeve-lightbox__close { top: 16px; right: 16px; }
.cleeve-lightbox__nav--prev { left: 16px; top: 50%; transform: translateY(-50%); }
.cleeve-lightbox__nav--next { right: 16px; top: 50%; transform: translateY(-50%); }

@media (max-width: 600px) {
  .cleeve-lightbox__img {
    max-width: 100vw;
    border-radius: 0;
  }

  .cleeve-lightbox__nav {
    top: auto !important;
    bottom: 24px;
    transform: none !important;
  }
}
