.ilop-compat-back-to-top {
  align-items: center;
  background: #555;
  border: 0;
  border-radius: 10px;
  bottom: 30px;
  box-shadow: 0 0 5px rgba(50, 50, 50, 0.5);
  color: #ccc;
  cursor: pointer;
  display: flex;
  font: 700 28px/1 sans-serif;
  height: 40px;
  justify-content: center;
  padding: 0;
  position: fixed;
  right: 30px;
  transition: background-color 160ms ease, color 160ms ease, opacity 160ms ease;
  width: 40px;
  z-index: 9999;
}

.ilop-compat-back-to-top:hover,
.ilop-compat-back-to-top:focus-visible {
  background: #ccc;
  color: #555;
  outline: 2px solid currentColor;
  outline-offset: 2px;
}

.ilop-compat-back-to-top[hidden] {
  display: none;
}

.apc-bloc-content-wrapper.ilop-compat-open {
  overflow: hidden;
}

.ilop-compat-lightbox {
  align-items: center;
  background: rgba(0, 0, 0, 0.88);
  bottom: 0;
  display: flex;
  justify-content: center;
  left: 0;
  padding: 24px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 100000;
}

.ilop-compat-lightbox[hidden] {
  display: none;
}

.ilop-compat-lightbox-panel {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  max-height: 100%;
  max-width: 1200px;
  position: relative;
  width: 100%;
}

.ilop-compat-lightbox-content {
  align-items: center;
  display: flex;
  height: 100%;
  justify-content: center;
  width: 100%;
}

.ilop-compat-lightbox-image {
  box-shadow: 0 3px 24px rgba(0, 0, 0, 0.5);
  display: block;
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.ilop-compat-lightbox-video {
  aspect-ratio: 16 / 9;
  background: #000;
  border: 0;
  box-shadow: 0 3px 24px rgba(0, 0, 0, 0.5);
  max-height: 100%;
  width: min(100%, 1000px);
}

.ilop-compat-lightbox-close,
.ilop-compat-lightbox-previous,
.ilop-compat-lightbox-next {
  align-items: center;
  background: rgba(0, 0, 0, 0.72);
  border: 2px solid transparent;
  border-radius: 999px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font: 400 42px/1 sans-serif;
  height: 52px;
  justify-content: center;
  padding: 0;
  position: absolute;
  width: 52px;
}

.ilop-compat-lightbox-close {
  font-size: 38px;
  right: 0;
  top: 0;
}

.ilop-compat-lightbox-previous {
  left: 0;
  top: calc(50% - 26px);
}

.ilop-compat-lightbox-next {
  right: 0;
  top: calc(50% - 26px);
}

.ilop-compat-lightbox-close:hover,
.ilop-compat-lightbox-previous:hover,
.ilop-compat-lightbox-next:hover,
.ilop-compat-lightbox-close:focus-visible,
.ilop-compat-lightbox-previous:focus-visible,
.ilop-compat-lightbox-next:focus-visible {
  background: #fff;
  color: #111;
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.ilop-compat-lightbox-status {
  bottom: 0;
  color: #fff;
  font: 600 14px/1.4 sans-serif;
  left: 50%;
  margin: 0;
  position: absolute;
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .ilop-compat-back-to-top {
    transition: none;
  }
}

@media (max-width: 700px) {
  .ilop-compat-lightbox {
    padding: 12px;
  }

  .ilop-compat-lightbox-close,
  .ilop-compat-lightbox-previous,
  .ilop-compat-lightbox-next {
    height: 44px;
    width: 44px;
  }

  .ilop-compat-lightbox-previous {
    top: calc(50% - 22px);
  }

  .ilop-compat-lightbox-next {
    top: calc(50% - 22px);
  }
}
