.cycle-slideshow > div {
  width: 100%;
}

.cycle-slideshow > div img,
.cycle-slideshow > div video {
  display: block;
}

.cycle-main img,
.cycle-main video {
  border-radius: 20px;
}

.cycle-carousel {
  width: calc(100% + 10px);
  min-height: 76px;
  transform: translateX(-5px);
}

.cycle-carousel .cycle-carousel-wrap > div {
  padding-left: 5px;
  padding-right: 5px;
}

.cycle-carousel .cycle-carousel-wrap > div img {
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
}

.cycle-main ~ .cycle-slideshow {
  margin-top: 10px;
}

.cycle-controls {
  position: absolute;
  z-index: 9999;
  left: 10px;
  right: 10px;
  transform: translateY(-100%) translateY(-10px);
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.cycle-carousel + .cycle-controls {
  transform: translateY(-100%) translateY(-20px);
}

.cycle-controls .cycle-prev,
.cycle-controls .cycle-next {
  display: flex;
  padding: 6px;
  justify-content: center;
  align-items: center;
  border: 1px solid #e2e2e2;
  box-shadow: 1px 1px 3px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  background: #f7f7f7;
  opacity: 0.8;
}

.cycle-controls .cycle-prev:hover,
.cycle-controls .cycle-next:hover {
  opacity: 1;
}

.cycle-controls .cycle-prev:not(.disabled),
.cycle-controls .cycle-next:not(.disabled) {
  pointer-events: all;
}

.cycle-controls .cycle-prev.disabled,
.cycle-controls .cycle-next.disabled,
.cycle-controls .cycle-prev.disabled:hover,
.cycle-controls .cycle-next.disabled:hover {
  opacity: 0.3 !important;
  pointer-events: none !important;
}

.cycle-popup-wrapper,
.cycle-fullscreen {
  display: none;
}

.slide-video img {
  display: none !important;
}

@media (max-width: 767px) {
  .cycle-fullscreen {
    display: block;
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    z-index: 9999;
    width: 30px;
    height: 30px;
  }

  .cycle-fullscreen svg {
    width: 100%;
    height: 100%;
  }

  .cycle-carousel + .cycle-controls {
    display: none;
  }

  .cycle-gallery .slide-video img {
    display: block !important;
  }

  .cycle-popup .slide-video img,
  .cycle-gallery .slide-video video {
    display: none !important;
  }

  .cycle-popup-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999999999999;
    background: rgba(0, 0, 0, 0.6);
    display: block;
    opacity: 1;
    transition: all 0.2s ease-in-out;
  }

  .cycle-popup-wrapper:not(.shown) {
    opacity: 0;
    pointer-events: none;
  }

  .cycle-popup {
    background: white;
    border-radius: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100vw;
    transform: translate(-50%, -50%);
    padding: 5px;
  }

  .cycle-popup-close {
    margin: 20px 10px 30px auto;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .cycle-popup-wrapper .cycle-carousel {
    margin-top: 20px;
    margin-bottom: 30px;
  }
}
