/* WC-like Pages Slider - RTL & SEO friendly */
.wclps-wrapper { margin: 1rem 0 1.5rem; }
.wclps-slider {
  position: relative;
  display: grid;
  gap: .75rem;
  max-width: 920px;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 12px;
  padding: .75rem;
  box-shadow: 0 4px 14px rgba(0,0,0,.06);
  background: #fff;
}
@media (min-width: 992px) {
  .wclps-wrapper { float: right; margin: .3rem 0 1rem 1.25rem; }
  .wclps-slider   { width: 520px; }
}
.wclps-wrapper::after { content: ""; display: table; clear: both; }

.wclps-viewport {
  overflow: hidden;
  border-radius: 10px;
  position: relative;
  z-index: 1;
  margin-bottom: .5rem;
  touch-action: pan-y;            /* enable horizontal swipe without browser back/forward */
  -webkit-user-select: none;
  -ms-user-select: none;
  user-select: none;
}
.wclps-track { display: flex; transition: transform .35s ease; will-change: transform; }
.wclps-slide {
  min-width: 100%;
  user-select: none;
  display: flex;
  align-items: center;     /* vertical center */
  justify-content: center; /* horizontal center */
}
.wclps-slide img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 70vh;      /* avoid overflow on tall screens */
  object-fit: contain;   /* keep whole image, no crop */
}

.wclps-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,.96);
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 999px;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 0;
  line-height: 0;
  padding: 0;
  text-indent: 0;
  z-index: 5; /* above image */
  box-shadow: 0 4px 10px rgba(0,0,0,.10);
}
.wclps-prev { left: 10px; }
.wclps-next { right: 10px; }

.wclps-thumbs {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 2 rows x 4 columns (up to 8 thumbs) */
  gap: .65rem;
  position: relative;
  z-index: 2;
}
.wclps-thumb { border: 0; padding: 0; background: transparent; cursor: pointer; opacity: .75; transition: opacity .2s ease; }
.wclps-thumb:hover, .wclps-thumb[aria-selected="true"] { opacity: 1; }
.wclps-thumb img {
  width: 100%;
  height: 88px; /* bigger */
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(0,0,0,.08);
}

/* RTL */
[dir="rtl"] .wclps-prev { right: 10px; left: auto; }
[dir="rtl"] .wclps-next { left: 10px; right: auto; }

/* Mobile */
@media (max-width: 991px) {
  .wclps-wrapper { float: none !important; clear: both; display: block; width: 100%; margin: 0 0 1rem 0; }
  .wclps-slider  { width: 100% !important; }
  .wclps-thumbs  { grid-template-columns: repeat(4, 1fr); }
  .wclps-thumb img { height: 72px; }
}
