@charset "UTF-8";

.dp-zoomable {
  cursor: zoom-in;
}

.dp-lightbox {
  position: fixed;
  inset: 0;
  z-index: var(--dp-z-modal);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--dp-s4);
  padding: var(--dp-s5);
  background: rgb(9 22 35 / .88);

  backdrop-filter: blur(3px);
}

.dp-lightbox[hidden] {
  display: none;
}

@media (prefers-reduced-motion: no-preference) {
  .dp-lightbox {
    animation: dp-lb-in .18s ease-out;
  }

  @keyframes dp-lb-in {
    from { opacity: 0; }
    to   { opacity: 1; }
  }
}

.dp-lightbox__img {
  max-width: min(100%, 1200px);

  max-height: calc(100vh - 8rem);
  border-radius: var(--dp-r-sm);
  background: var(--dp-paper);
  box-shadow: 0 24px 60px rgb(0 0 0 / .5);
  object-fit: contain;
}

.dp-lightbox__caption {
  max-width: min(100%, 720px);
  margin: 0;
  color: #D6E2EA;
  font-size: var(--wp--preset--font-size--sm);
  line-height: 1.6;
  text-align: center;
}

.dp-lightbox__close {
  position: absolute;
  top: var(--dp-s4);
  right: var(--dp-s4);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(255 255 255 / .14);
  color: #fff;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}

.dp-lightbox__close:hover,
.dp-lightbox__close:focus-visible {
  background: rgb(255 255 255 / .26);
}

.admin-bar .dp-lightbox__close {
  top: calc(32px + var(--dp-s4));
}

@media (max-width: 782px) {
  .admin-bar .dp-lightbox__close {
    top: calc(46px + var(--dp-s2));
  }
}

@media (max-width: 767px) {
  .dp-lightbox {
    padding: var(--dp-s3);
  }

  .dp-lightbox__img {
    max-height: calc(100vh - 7rem);
  }

  .dp-lightbox__close {
    top: var(--dp-s2);
    right: var(--dp-s2);
  }
}
