.mce-carousel-wrap {
  position: relative;
  width: 100%;
  margin: 0 auto;
}
.mce-swiper {
  overflow: visible;
}
.mce-swiper .swiper-wrapper {
  align-items: center;
}
.mce-swiper .swiper-slide {
  box-sizing: border-box;
  text-align: center;
  background: none;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  transition: box-shadow 0.2s;
}
/* No width/height here. JS will handle sizing. */
.mce-thumb-square {
  aspect-ratio: 1/1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-radius: 10px;
  background: #f7f7f7;
}
.mce-thumb-square img,
.mce-thumb-square .mce-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.mce-thumb-square .mce-video-placeholder {
  background: #333;
}
.mce-thumb-square {
  position: relative;
}
.mce-video-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 2.2em;
  height: 2.2em;
  font-size: 2em;
  color: #fff;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 2;
  font-family: inherit;
  font-weight: normal;
  line-height: 1;
  text-align: center;
}

/* --- Carousel arrows --- */
.mce-swiper .swiper-button-next,
.mce-swiper .swiper-button-prev {
  color: #000000;
  background: #ffffff50;
  border: 1px solid transparent !important;
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  z-index: 10;
  outline: none;
  cursor: pointer;
  font-size: 24px;
  padding: 0;
  width: 50px;
  height: 50px;
  margin-top: 0;
}

.mce-swiper .swiper-button-next:hover,
.mce-swiper .swiper-button-prev:hover {
  background: #ffffff;
}

/* Remove pseudo-content for arrow icons, they're now controlled via JS/HTML! */
.mce-swiper .swiper-button-next:after,
.mce-swiper .swiper-button-prev:after,
.mce-swiper .swiper-button-next:before,
.mce-swiper .swiper-button-prev:before {
  content: "";
  display: none;
}

.mce-swiper .swiper-button-next {
  right: 12px;
  left: auto;
}
.mce-swiper .swiper-button-prev {
  left: 12px;
  right: auto;
}

.mce-swiper .swiper-button-next:focus,
.mce-swiper .swiper-button-prev:focus {
  outline: 2px solid #333;
}

/* Responsive for buttons only (thumbs are handled in JS) */
@media (max-width: 767px) {
  .mce-swiper .swiper-button-next,
  .mce-swiper .swiper-button-prev {
    width: 40px;
    height: 40px;
  }
}

/* GLightbox styles remain unchanged */
.glightbox-container .gclose {
  color: #fff !important;
  z-index: 10000 !important;
  filter: drop-shadow(0 0 2px #000);
}
.glightbox-mobile .glightbox-container,
.glightbox-mobile .glightbox-overlay,
.glightbox-container .glightbox-overlay {
  background: rgba(0, 0, 0, 0.87) !important;
}
.glightbox-container .gclose svg {
  fill: #fff !important;
  min-width: 18px !important;
  min-height: 18px !important;
}
.gclose,
.gnext,
.gprev {
  background: none !important;
  opacity: 0.7;
}
.gclose .gbtn {
  padding: 0;
}
.gclose svg,
.gnext svg,
.gprev svg {
  min-width: 18px !important;
  min-height: 18px !important;
}
.gclose:hover,
.gnext:hover,
.gprev:hover {
  background: none !important;
  opacity: 1 !important;
}
