.shots__trigger {
  display: block;
  width: 100%;
  height: 100%;
  color: inherit;
  cursor: zoom-in;
}

.shots__trigger:focus-visible {
  outline: 3px solid var(--accent-ink, #15803d);
  outline-offset: -4px;
}

:root.dl-gallery-lightbox-open {
  overflow: hidden;
}

.gallery-lightbox {
  box-sizing: border-box;
  width: min(1080px, calc(100% - 24px));
  max-width: none;
  max-height: calc(100vh - 24px);
  max-height: calc(100dvh - 24px);
  margin: auto;
  padding: clamp(10px, 2vw, 20px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #424c5e;
  border-radius: 18px;
  background: #151c27;
  color: #f2f5f9;
  box-shadow: 0 18px 65px rgba(0, 0, 0, .45);
}

.gallery-lightbox[open] {
  display: grid;
  gap: 10px;
}

.gallery-lightbox:not([open]),
.gallery-lightbox [hidden] {
  display: none;
}

.gallery-lightbox::backdrop {
  background: rgba(5, 9, 15, .83);
}

.gallery-lightbox__top {
  display: flex;
  justify-content: flex-end;
}

.gallery-lightbox__stage {
  display: grid;
  min-width: 0;
  place-items: center;
}

.gallery-lightbox__stage img {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 164px);
  max-height: calc(100dvh - 164px);
  border-radius: 8px;
  object-fit: contain;
}

.gallery-lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.gallery-lightbox__button {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 1px solid #535f70;
  border-radius: 12px;
  background: #273140;
  color: #fff;
  font: 400 30px/1 system-ui, sans-serif;
  cursor: pointer;
}

.gallery-lightbox__button[aria-disabled="true"] {
  opacity: .5;
  cursor: default;
}

.gallery-lightbox__button:not([aria-disabled="true"]):hover {
  background: #394758;
}

.gallery-lightbox__button:focus-visible {
  outline: 2px solid #f2f5f9;
  outline-offset: 2px;
}

.gallery-lightbox__count {
  min-width: 4ch;
  color: #d7dee9;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  text-align: center;
}

@media (max-width: 500px) {
  .gallery-lightbox {
    width: calc(100% - 16px);
    border-radius: 14px;
  }
}
