/* Main Slider */

.main-carousel {
  border: 2px solid var(--wp--preset--color--accent-7);
  border-top: 0;
  p {
    margin-top: 0;
  }
}
.thumb-carousel {
  max-width: 634px; /* أو أي قيمة */
  margin: auto;
}
.fancy-slider .wp-block-cover,
.wp-block-cover-image {
  min-height: 85vh !important;
}

@media (max-width: 991px) {
  .fancy-slider .wp-block-cover,
  .wp-block-cover-image {
    min-height: 30vh !important;
  }
}
@media (max-width: 991px) {
  .thumb-carousel {
    max-width: 200px;
  }
  .thumb-carousel .owl-item img {
    height: 64px;
    object-fit: cover;
  }
}
.owl-nav {
  display: none;
}
/* @media screen and (max-width: 1024px) {
  .main-carousel .wp-block-cover.is-position-bottom-left {
    align-items: center;
    justify-content: center;
  }
} */
:root
  :where(
    .thumb-carousel .wp-block-image img,
    .wp-block-image .wp-block-image__crop-area,
    .wp-block-image .components-placeholder
  ) {
  border-radius: 0;
}
@media screen and (max-width: 991px) {
  .main-carousel .wp-block-cover {
    height: 500px;
  }
}

/* Default (غير active) */
.main-carousel .owl-item .wp-block-cover__inner-container p {
  opacity: 0;
  transform: scale(1) translateY(0);
  transition: all 0.5s ease-in-out;
  transition-delay: 1s; /* ← التأخير */
}

/* Active slide */
.main-carousel .owl-item.active .wp-block-cover__inner-container p {
  opacity: 1;
  transform: scale(1) translateY(-100%);
}
.main-carousel .owl-item .wp-block-cover img {
  transform: scale(1);
  opacity: 0.7;
  transition: all 0.5s ease-in-out;
}

.main-carousel .owl-item.active .wp-block-cover img {
  transform: scale(1);
  opacity: 1;
}

/* Gallery container position relative */
.js-sync-slider {
  position: relative !important; /* عشان نقدر نعمل thumbs absolute */
}

/* Thumbnails */
.thumb-carousel {
  position: absolute !important;
  bottom: 40px !important;
  right: 40px !important;
  width: auto;
  gap: 10px !important;
  z-index: 10;
}
@media (max-width: 991px) {
  .thumb-carousel {
    right: 10px !important;
    bottom: 10px !important;
  }
}

/* Thumbnails Images */
.thumb-carousel .wp-block-image img {
  /* width: 206px !important; */
  height: 128px !important;
  object-fit: cover;
  border: 1.6px solid #fff;
  transform: rotate(0deg);
  opacity: 1;
  cursor: pointer;
  transition: 0.3s;
}

@media screen and (max-width: 991px) {
  .thumb-carousel .wp-block-image img {
    height: 64px !important;
  }
}
/* Highlighted thumbnail */
.thumb-carousel .owl-item.current img {
  border-color: var(--wp--preset--color--contrast); /* highlight */
  opacity: 1;
}

/* Adjust owl-item spacing */
.thumb-carousel .owl-item {
  margin-right: 10px;
}

.thumb-carousel .owl-item.current img {
  border: 3px solid var(--wp--preset--color--contrast); /* highlight على الصورة النشطة */
}

/* اجعل thumbnails قابلة للضغط */
.thumb-carousel .owl-item {
  cursor: pointer;
}
.thumb-carousel {
  /* width: fit-content !important; */
  .owl-stage {
    /* width: fit-content !important; */
  }
}

@media (max-width:768px) {
  .rm-mg-mob{
    margin: 0 !important;
  }
  .remove-space-mob{
    padding-bottom: 8px !important;
    margin: 0 !important;
  }
  .main-carousel .owl-item.active .wp-block-cover__inner-container p{
        transform: scale(1) translateY(-180%) !important;
  }
}