.gallery-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  overflow: auto;
  background: transparent;
  color: #fff;
}
.gallery-modal[open] {
  display: block;
}
.gallery-modal::backdrop {
  background: rgb(0 0 0 / 50%);
}
html.gallery-open {
  overflow: hidden;
}
.gallery-modal .modal-dialog {
  width: calc(100% - 1rem);
}
.gallery-modal .modal-content {
  pointer-events: auto;
}
.gallery-carousel {
  display: flow-root;
}
.gallery-close {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  padding: 1rem;
  background: none;
}
.gallery-close svg {
  position: relative;
  top: -5px;
  width: 16px;
  height: 16px;
  display: block;
}
.gallery-modal .carousel-item img {
  z-index: 1;
  object-fit: contain;
}
.gallery-loading .spinner-border {
  width: 3rem;
  height: 3rem;
}
.gallery-modal [hidden] {
  display: none !important;
}
.gallery-modal .carousel-control {
  z-index: 2;
}
@media (min-width: 576px) {
  .gallery-modal .modal-dialog {
    width: calc(100% - 3.5rem);
  }
}
