.swipelp {
  --swipelp-width: min(100vw, 375px);
  --swipelp-slide-height: calc(var(--swipelp-width) * 1.3866667);
  --swipelp-max-width: 375px;
  --swipelp-footer-height: 18dvh;
  --swipelp-aspect-ratio: 750 / 1040;
  position: relative;
  width: var(--swipelp-width);
  min-height: 100dvh;
  max-width: 100vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  touch-action: none;
  background: #fff;
  color: #111;
}

.swipelp,
.swipelp * {
  box-sizing: border-box;
}

.swipelp__viewport {
  position: relative;
  min-height: 0;
  flex: 0 1 auto;
  width: var(--swipelp-width);
  height: var(--swipelp-slide-height);
  max-width: 100vw;
  overflow: hidden;
  transition: height 240ms ease;
}

.swipelp__track {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  overscroll-behavior: contain;
}

.swipelp__slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.swipelp__slide.is-active {
  opacity: 1;
  pointer-events: auto;
}

.swipelp[data-swipelp-transition="horizontal-slide"] {
  justify-content: center;
}

.swipelp[data-swipelp-transition="horizontal-slide"] .swipelp__track {
  display: flex;
  overflow: visible;
  transform: translateX(calc(var(--swipelp-active-index, 0) * -100%));
  transition: transform 420ms ease;
}

.swipelp[data-swipelp-transition="horizontal-slide"] .swipelp__slide {
  position: relative;
  inset: auto;
  flex: 0 0 100%;
  opacity: 1;
  pointer-events: auto;
  transition: none;
}

.swipelp[data-swipelp-transition="horizontal-slide"] .swipelp__viewport {
  margin-top: 0;
}

.swipelp[data-swipelp-transition="horizontal-slide"] .swipelp__pagination {
  right: auto;
  bottom: 8px;
  top: auto;
  left: 50%;
  transform: translateX(-50%);
  flex-direction: row;
  gap: 7px;
  padding: 4px 6px;
}

.swipelp__image {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
}

.swipelp__image--cover {
  object-fit: contain;
}

.swipelp__image--contain {
  object-fit: contain;
}

.swipelp__pagination {
  display: none;
}

.swipelp__dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.28);
  cursor: pointer;
  appearance: none;
}

.swipelp__dot.is-active {
  background: #111827;
}

.swipelp__footer {
  flex: 0 0 auto;
  width: var(--swipelp-width);
  max-width: 100vw;
  margin-top: 0;
  display: block;
  overflow: visible;
  background: #fff;
  text-decoration: none;
}

.swipelp__footer-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  background: #fff;
}

body.swipelp-fullscreen-page {
  margin: 0;
  background: #fff;
  overflow: hidden;
}

body.swipelp-fullscreen-page .entry-content {
  margin: 0;
  padding: 0;
  line-height: 0;
}

@media (min-width: 768px) {
  .swipelp {
    justify-content: center;
  }

  .swipelp__dot {
    width: 9px;
    height: 9px;
  }
}

@media (max-width: 767px) and (min-height: 760px) {
  .swipelp {
    justify-content: center;
  }
}

@media (max-width: 430px) and (max-height: 700px) {
  .swipelp {
    --swipelp-width: min(100vw, 340px);
    justify-content: flex-start;
  }
}

@media (max-width: 360px) and (max-height: 620px) {
  .swipelp {
    --swipelp-width: min(100vw, 300px);
  }
}
