/* RTL + smaller dots + default aspect 1280/600 + responsive + top-right badge */

/* Outer container defines height using aspect-ratio */
.nbml-slider{
  position:relative;
  display:block;
  overflow:hidden;
  --nbml-aspect:1280/600;   /* default 1280 x 600 */
  --nbml-ofit:cover;
  --nbml-dot-size:4px;      /* smaller dots */
  aspect-ratio: var(--nbml-aspect);
  direction: rtl;           /* RTL layout */
  border-radius: 20px;
}

/* Responsive aspect ratios (feel free to tweak) */
@media (max-width: 1024px){
  .nbml-slider{ --nbml-aspect: 16/9; }
}
@media (max-width: 640px){
  .nbml-slider{ --nbml-aspect: 4/3; }
    .nbml-dots {
    display: none !important;
  }
}

/* Badge: slider name (top-right) */
.nbml-badge{
  position:absolute;
  top:10px;
  right:10px;               /* in RTL still visual top-right */
  z-index:4;
  background:rgba(0,0,0,.6);
  color:#fff;
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  line-height:1;
  backdrop-filter:saturate(120%) blur(2px);
  pointer-events:none;      /* clicks go through to arrows/images */
  user-select:none;
}

/* Ensure inner layers fill the container height */
.nbml-slider .nbml-viewport{
  width:100%;
  height:100%;
  overflow:hidden;
}

/* Harden flex layout */
.nbml-slider .nbml-track{
  display:flex !important;
  flex-direction: row !important;
  align-items: stretch !important;
  height:100%;
  will-change: transform;
  transition: transform .45s ease;
  white-space: nowrap;
}

/* Each slide is full width, no shrinking */
.nbml-slider .nbml-slide{
  flex: 0 0 auto !important;
  width: 100%;
  min-width: 100%;
  height:100%;
  position:relative;
  background:#000;
  display:block !important;
}

/* Image fills slide */
.nbml-slider img{
  display:block !important;
  width:100% !important;
  height:100% !important;
  object-fit: var(--nbml-ofit);
  max-width:none !important;
}

/* Caption (optional) */
.nbml-slider .nbml-caption{
  position:absolute; left:0; right:0; bottom:0;
  background:linear-gradient(transparent, rgba(0,0,0,.55));
  color:#fff; padding:14px; font-size:14px
}

/* Arrows — swapped sides for RTL */
.nbml-arrow{
  position:absolute; top:50%; transform:translateY(-50%); z-index:3;
  background:rgba(0,0,0,.45); color:#fff; border:none; width:36px; height:36px;
  border-radius:999px; display:flex; align-items:center; justify-content:center; cursor:pointer
}
.nbml-prev{right:10px}  /* prev on the right in RTL */
.nbml-next{left:10px}   /* next on the left in RTL */
.nbml-arrow:focus{outline:2px solid #fff}

/* Dots — now smaller via --nbml-dot-size */
.nbml-dots{
  position:absolute; left:0; right:0; bottom:10px;
  display:flex; gap:6px; justify-content:center; z-index:3
}
.nbml-dots button{
  width:var(--nbml-dot-size); height:var(--nbml-dot-size);
  border-radius:999px; border:none; background:rgba(255,255,255,.55); cursor:pointer
}
.nbml-dots button[aria-current="true"]{background:#fff}

/* OceanWP / Elementor compatibility */
.entry-content .nbml-slider img{max-width:none}
.nbml-slider .nbml-link{display:block; height:100%}

/* Make sure images are visible (some themes apply lazy/fade rules) */
.nbml-slider img,
.nbml-slider .wp-post-image,
.nbml-slider .owp-image,
.nbml-slider .lazy,
.nbml-slider .lazyload,
.nbml-slider .is-lazy{
  opacity:1 !important;
  visibility:visible !important;
  filter:none !important;
  transition:none !important;
}
