﻿.editor-carousel {
  position: relative;
  margin: 2.5rem 0;
}

.editor-carousel__slider {
  position: relative;
}

.editor-carousel__slider:not(.slick-initialized) {
  display: grid;
  gap: 1.5rem;
}

.editor-carousel__slide {
  outline: none;
}

.editor-carousel__figure {
  margin: 0;
}

.editor-carousel__image {
  display: block;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.4);
}

.editor-carousel__media {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: inherit;
}

.editor-carousel__media .editor-carousel__image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.editor-carousel__figure {
  margin: 0;
}

.editor-carousel__image {
  display: block;
  width: 100%;
  border-radius: 1rem;
  object-fit: cover;
  background: rgba(15, 23, 42, 0.4);
}

.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%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: none;
  background: rgba(71, 85, 105, 0.65);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 2;
}

.editor-carousel__arrow:hover {
  background: rgba(148, 163, 184, 0.75);
  transform: translateY(-50%) scale(1.05);
}

.editor-carousel__arrow:focus {
  outline: 2px solid rgba(148, 163, 184, 0.95);
  outline-offset: 2px;
}

.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 {
    width: 40px;
    height: 40px;
  }
  .editor-carousel__arrow--prev {
    left: 8px;
  }
  .editor-carousel__arrow--next {
    right: 8px;
  }
}
