﻿.editor-carousel {
  position: relative;
  margin: 2.5rem 0;
}

.editor-carousel__slider {
  position: relative;
  border-radius: var(--md);
  overflow: hidden;
  background: rgba(10, 24, 30, 0.35);
  backdrop-filter: blur(6px);
  box-shadow: 0 30px 80px rgba(3, 12, 18, 0.45);
}

.editor-carousel__slider:not(.slick-initialized) {
  display: grid;
  gap: 1.5rem;
}

.editor-carousel__slide {
  outline: none;
}

.editor-carousel__figure {
  margin: 0;
  border-radius: inherit;
  overflow: hidden;
  transition: opacity 0.55s ease-out, transform 0.55s ease-out, filter 0.55s ease-out;
}

.editor-carousel__image {
  display: block;
  width: 100%;
  border-radius: inherit;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.45);
}

.editor-carousel__media {
  position: relative;
  width: 100%;
  padding-top: 42.857%;
  overflow: hidden;
  border-radius: inherit;
  background: rgba(15, 23, 42, 0.45);
}

.editor-carousel__media .editor-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.editor-carousel__caption {
  margin-top: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.4;
  text-align: center;
  color: rgba(226, 232, 240, 0.9);
}

.editor-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  opacity: 0;
  pointer-events: none;
}

.editor-carousel__arrow.btn {
  width: 48px !important;
  height: 48px !important;
  min-width: 48px !important;
  min-height: 48px !important;
  max-width: 48px !important;
  max-height: 48px !important;
  border-radius: 50%;
  background: rgba(9, 24, 32, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: var(--white);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.35s ease, background 0.35s ease, box-shadow 0.35s ease, border-color 0.35s ease;
  filter: none;
}

.editor-carousel__arrow.btn::before,
.editor-carousel__arrow.btn::after {
  display: none;
}

.editor-carousel:hover .editor-carousel__arrow {
  opacity: 1;
  pointer-events: auto;
}

.editor-carousel__arrow.btn,
.editor-carousel__arrow.btn:hover,
.editor-carousel__arrow.btn:focus-visible,
.editor-carousel__arrow.btn:active {
  transform: translateY(-50%) !important;
}

.editor-carousel__arrow.btn:hover,
.editor-carousel__arrow.btn:focus-visible {
  background: rgba(0, 181, 194, 0.88);
  border-color: rgba(0, 255, 255, 0.55);
  box-shadow: 0 28px 48px rgba(0, 181, 194, 0.32);
  color: var(--white);
  filter: none;
}

.editor-carousel__arrow.btn:focus,
.editor-carousel__arrow.btn:focus-visible {
  outline: none;
}

.editor-carousel__arrow--prev {
  left: 16px;
}

.editor-carousel__arrow--next {
  right: 16px;
}

.editor-carousel__arrow i {
  font-size: 1.25rem;
  pointer-events: none;
}

.editor-carousel__dots {
  display: flex !important;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
  list-style: none;
  padding: 0;
  background: none;
}

.editor-carousel__dots li {
  margin: 0;
}

.editor-carousel__dots ul {
  background: none !important;
}
.editor-carousel__dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;

  border: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}
.editor-carousel__dots button::before {
  display: none;
}

.editor-carousel__dots li.slick-active button {
  background: #fff;
  transform: scale(1.15);
}

.editor-carousel--single .editor-carousel__arrow,
.editor-carousel--single .editor-carousel__dots {
  display: none !important;
}

.editor-carousel__sr {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 768px) {
  .editor-carousel {
    margin: 2rem 0;
  }
  .editor-carousel__arrow.btn {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    max-width: 42px !important;
    max-height: 42px !important;
  }
  .editor-carousel__arrow--prev {
    left: 8px;
  }
  .editor-carousel__arrow--next {
    right: 8px;
  }
}
