.mr-album-popup {
  box-sizing: border-box;
  position: fixed;
  inset: 0;
  width: min(980px, 92vw);
  max-width: 92vw;
  max-height: 92vh;
  max-height: 92dvh;
  margin: auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 0;
  border-radius: 0;
  background: #22120d;
  color: #fff;
  box-shadow: 0 20px 80px rgb(0 0 0 / 35%);
}

.mr-album-popup:not([open]) {
  display: none;
}

.mr-album-popup::backdrop {
  background: rgba(0, 0, 0, .72);
}

.mr-album-popup .mr-album-popup__close {
  box-sizing: border-box;
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  min-width: 38px;
  margin: 12px 12px -50px auto;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #22120d;
  font-family: Arial, sans-serif;
  font-size: 30px;
  font-weight: 400;
  line-height: 1;
  text-decoration: none;
  box-shadow: none;
  cursor: pointer;
}

.mr-album-popup .mr-album-popup__close:hover {
  background: #eee;
  color: #22120d;
  box-shadow: none;
}

.mr-album-popup .mr-album-popup__close:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 4px;
  box-shadow: 0 0 0 2px #22120d;
}

.mr-album-popup__content {
  min-width: 0;
}

body.mr-album-popup-open {
  overflow: hidden;
}

@media (max-width: 600px) {
  .mr-album-popup {
    padding: 0;
  }

  .mr-album-popup .mr-album-popup__close {
    top: 10px;
    margin: 10px 10px -48px auto;
  }
}
