/* Nesty Content — Brand Carousel
   A logo strip built on Swiper 11. Pulls from the Brand post type or a
   manual list. No heading — logos only. */

.cew-bc {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.cew-bc__slide {
  display: flex;
  align-items: center;
  justify-content: center;
  height: auto;
}

/* ── Logo cell ── */
.cew-bc__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 20px;
  text-decoration: none;
}

.cew-bc__logo img {
  display: block;
  height: 48px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
  transition: filter 0.25s ease, opacity 0.25s ease;
}

/* ── Creator Cards mode (full-bleed photo + gradient + name) ── */
.cew-bc--cards .cew-bc__slide {
  height: auto;
}

.cew-bc--cards .cew-bc__card {
  position: relative;
  display: block;
  width: 100%;
  height: 320px;
  overflow: hidden;
  border-radius: 16px;
  text-decoration: none;
}

.cew-bc--cards .cew-bc__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  object-fit: cover;
  display: block;
  z-index: 70;
}

.cew-bc--cards .cew-bc__grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 55%;
  /* Photo fades into a solid black footer; the @handle sits on the solid part. */
  background: linear-gradient(
    to top,
    #131313 0%,
    #131313 38%,
    rgba(19, 19, 19, 0) 100%
  );
  pointer-events: none;
}

.cew-bc--cards .cew-bc__handle {
  position: absolute;
  left: 16px;
  bottom: 16px;
  z-index: 99;
  font-family: "Aileron", sans-serif;
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -0.48px;
  color: #fff;
  word-break: break-word;
}

/* ── Grayscale + hover reveal ── */
.cew-bc--grayscale .cew-bc__logo img {
  filter: grayscale(1);
}

.cew-bc--hover-full.cew-bc--grayscale .cew-bc__logo:hover img {
  filter: grayscale(0);
}

.cew-bc--hover-full .cew-bc__logo:hover img {
  opacity: 1 !important;
}

/* ── Arrows ── */
.cew-bc__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #131313;
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.cew-bc__arrow:disabled {
  opacity: 0.35;
  cursor: default;
}

.cew-bc__arrow svg {
  width: 22px;
  height: 22px;
}

.cew-bc__arrow--prev {
  left: 0;
}

.cew-bc__arrow--next {
  right: 0;
}

/* ── Pagination dots ── */
.cew-bc .swiper-pagination {
  position: static;
  margin-top: 18px;
}

.cew-bc .swiper-pagination-bullet {
  background: rgba(19, 19, 19, 0.3);
  opacity: 1;
}

.cew-bc .swiper-pagination-bullet-active {
  background: #131313;
}

/* ── Editor empty-state ── */
.cew-bc__empty {
  padding: 28px 20px;
  border: 1px dashed #c3c4c7;
  border-radius: 8px;
  text-align: center;
  color: #50575e;
  font-size: 14px;
}

/* ── Continuous (marquee) mode: linear timing, no easing ── */
.cew-bc.cew-bc--marquee .swiper-wrapper {
  transition-timing-function: linear !important;
}
