/* Стили для слайдера */
.post-slider {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.post-slider-image {
  position: relative;
  width: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease-in-out;
}

.post-slider-image.swiper-lazy-loaded {
  opacity: 1;
}

.swiper-lazy-preloader {
  position: absolute;
  top: 50%;
  left: 50%;
  margin-top: -21px;
  margin-left: -21px;
  width: 42px;
  height: 42px;
  z-index: 10;
  transform-origin: 50%;
  box-sizing: border-box;
  border: 4px solid transparent;
  border-radius: 50%;
  border-top-color: #007aff;
  animation: swiper-preloader-spin 1s infinite linear;
  transition: opacity 0.3s ease-in-out;
}

@keyframes swiper-preloader-spin {
  100% {
    transform: rotate(360deg);
  }
}

/* Стили для навигации */
.wp-block-inscale-slideshow-block .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background-color 0.3s ease;
}

.wp-block-inscale-slideshow-block .arrow:hover {
  background: rgba(255, 255, 255, 0.9);
}

.wp-block-inscale-slideshow-block .arrow-prev {
  left: 10px;
}

.wp-block-inscale-slideshow-block .arrow-next {
  right: 10px;
}

.wp-block-inscale-slideshow-block .post-slider-pagination {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
}

.wp-block-inscale-slideshow-block .swiper-pagination-bullet {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.wp-block-inscale-slideshow-block .swiper-pagination-bullet-active {
  background: #fff;
}