.figure-tile img {
  cursor: zoom-in;
}

.figure-tile img:focus-visible {
  outline: 3px solid #8fb3cc;
  outline-offset: 3px;
}

.figure-lightbox {
  width: min(1180px, calc(100vw - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #0f1923;
  color: #f7fbff;
}

.figure-lightbox::backdrop {
  background: rgba(8, 18, 28, .76);
  backdrop-filter: blur(3px);
}

.figure-lightbox-shell {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 24px);
}

.figure-lightbox-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, .06);
}

.figure-lightbox-head strong {
  font-size: 14px;
  font-weight: 700;
}

.figure-lightbox-close {
  border: 0;
  padding: 2px 8px;
  background: transparent;
  color: #fff;
  font-size: 28px;
  line-height: 1;
}

.figure-lightbox-close:hover {
  border: 0;
  background: rgba(255, 255, 255, .1);
}

.figure-lightbox-body {
  display: grid;
  place-items: center;
  min-height: 240px;
  max-height: calc(100vh - 82px);
  overflow: auto;
  padding: 12px;
}

.figure-lightbox-body img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 108px);
  width: auto;
  height: auto;
  background: #fff;
  border-radius: 6px;
}

@media (max-width: 720px) {
  .figure-lightbox {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .figure-lightbox-shell {
    max-height: calc(100vh - 12px);
  }

  .figure-lightbox-body {
    max-height: calc(100vh - 70px);
    padding: 6px;
  }
}
