html.bds-lightbox-open,
body.bds-lightbox-open {
  overflow: hidden;
}

.bds-lightbox {
  display: none;
}

.bds-lightbox[open] {
  display: block;
  border: none;
  z-index: 9999;
  overflow: visible;
  max-width: 90vw;
  max-height: calc(100vh - 72px);
  padding: 0;
  background: var(--wp--preset--color--base-1);
}

.bds-lightbox::backdrop {
  background-color: rgba(0, 0, 0, 0.85);
}

.bds-lightbox > .bds-lightbox-content {
  position: relative;
  overflow: auto;
  max-width: 90vw;
  max-height: calc(100vh - 72px);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.bds-lightbox-close {
  border: none;
  border-radius: 999px;
  position: absolute;
  top: -12px;
  right: -12px;
  z-index: 10001;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  line-height: 1;
  color: var(--wp--preset--color--base-1);
  background: var(--wp--preset--color--accent);
  box-shadow: var(--bds--box-shadow);
  cursor: pointer;
}

.bds-lightbox-close::before {
  font: var(--bds--font-family-icons);
  content: "\f00d";
}

/** Lightbox target - hidden element to trigger lightbox **/
.lightbox-target {
  display: none;
}
