html.gallery-modal-open {
  overflow: hidden;
}

.gallery-modal {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 72px 20px 20px;
  border: 0;
  background: transparent;
}

.gallery-modal[open] {
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-modal::backdrop {
  background: rgba(0, 0, 0, .85);
}

.gallery-modal-image {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  border-radius: 8px;
}

.gallery-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #222;
  font: 36px/1 Arial, sans-serif;
  cursor: pointer;
}

.gallery-modal-close:focus-visible {
  outline: 3px solid #458ccb;
  outline-offset: 3px;
}
