html.mdc-swipebox-open {
  overflow: hidden;
}

.mdc-swipebox[hidden] {
  display: none;
}

.mdc-swipebox {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  z-index: 999999;
}

.mdc-swipebox__backdrop {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.75);
  -webkit-backdrop-filter: blur(0.6rem);
  backdrop-filter: blur(0.6rem);
}

.mdc-swipebox__dialog {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
}

.mdc-swipebox__media {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  padding: 7.6rem 0;
}

.mdc-swipebox__swiper {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.mdc-swipebox__wrapper {
  display: flex;
  width: 100%;
  height: 100%;
  transition-duration: 360ms;
  transition-timing-function: cubic-bezier(0.22, 1, 0.36, 1);
  transition-property: transform;
}

.mdc-swipebox__slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-width: 0;
}

.mdc-swipebox__slide img,
.mdc-swipebox__slide iframe {
  display: block;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  object-fit: contain;
  object-position: center;
}

.mdc-swipebox__slide iframe {
  width: min(1140px, 100%);
  aspect-ratio: 16 / 9;
  height: auto;
  background: #000;
}

.mdc-swipebox__button {
  position: absolute;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 5.2rem;
  height: 5.2rem;
  margin: 0;
  padding: 0;
  color: currentColor;
  background: rgb(255 255 255 / 0.1);
  border-radius: 50%;
  cursor: pointer;
  transition: 0.2s;
}

.mdc-swipebox__button:hover,
.mdc-swipebox__button:focus-visible {
  background: rgb(255 255 255 / 0.2);
}

.mdc-swipebox__button:disabled {
  opacity: 0.3;
  cursor: default;
}

.mdc-swipebox__button .icon {
  display: block;
  width: 1.6rem;
  height: 1.6rem;
  color: #fff;
}

.mdc-swipebox__close {
  top: 1.2rem;
  right: 1.2rem;
}
.mdc-swipebox__close .icon {
  width: 1.4rem;
  height: 1.4rem;
}

.mdc-swipebox__prev {
  bottom: 1.2rem;
  left: 1.2rem;
}

.mdc-swipebox__next {
  right: 1.2rem;
  bottom: 1.2rem;
}

.mdc-swipebox__caption {
  display: none;
}
