/* Prev/next arrows for rd_img_carousel galleries. */
.rd_img_carousel_ctn { position: relative; }

.woo_img_prev,
.woo_img_next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  background: rgba(255, 255, 255, 0.92);
  color: #1a1a1a;
  border: 1px solid rgba(0, 0, 0, 0.15);
  border-radius: 50%;
  font: inherit;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 20;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  padding: 0;
}
.woo_img_prev { left: 10px; }
.woo_img_next { right: 10px; }
.woo_img_prev:hover,
.woo_img_next:hover { background: #dd8500; color: #fff; }
.woo_img_prev:active,
.woo_img_next:active { transform: translateY(-50%) scale(0.94); }
.woo_img_prev span,
.woo_img_next span {
  font-family: Arial, sans-serif;
  font-size: 34px;
  font-weight: 600;
  line-height: 1;
  display: block;
  margin-top: -4px;
}

/* On the small thumbnail strip, hide the carousel-strip's arrows. */
.rd_img_carousel_ctn > .rd_img_pager .woo_img_prev,
.rd_img_carousel_ctn > .rd_img_pager .woo_img_next { display: none; }

/* Pager thumbnails: subtle hover + active state for the "selected" image. */
.rd_img_pager img { cursor: pointer; transition: opacity 0.2s ease, border-color 0.2s ease; opacity: 0.7; }
.rd_img_pager img:hover { opacity: 1; }
.rd_img_pager img.selected { opacity: 1; outline: 2px solid #dd8500; }

/* Injected thumbnail pager (about-me style gallery). */
.rd_img_pager--injected {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: center;
  padding: 12px 4px 0;
  overflow: hidden;
}
.rd_img_pager--injected > div {
  flex: 1 1 0;
  min-width: 0;
  max-width: 110px;
  /* Override theme's .rd_img_pager div { width: 97.5px; height: 97.5px; float: left; ... }
     which fights with our flex layout and breaks the thumbs on mobile. */
  width: auto;
  height: auto;
  float: none;
  margin: 0;
  aspect-ratio: 16 / 10;
}
.rd_img_pager--injected img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  /* Override theme's .rd_img_pager img { border:1px solid; padding:10px; }
     — on small thumbs that 10px padding eats the entire image. */
  border: 1px solid #ecf0f1;
  padding: 0;
  background: #fff;
  box-sizing: border-box;
}
@media (max-width: 640px) {
  .rd_img_pager--injected > div { max-width: 72px; }
}

/* Hide the original numeric pager and "Previous / Next" text buttons. */
.ic_nav--hidden { display: none !important; }
.rd_img_carousel_ctn .rd_ic_pager { display: none !important; }

@media (max-width: 640px) {
  .woo_img_prev, .woo_img_next { width: 40px; height: 40px; }
  .woo_img_prev { left: 6px; }
  .woo_img_next { right: 6px; }
  .woo_img_prev span, .woo_img_next span { font-size: 24px; }
}
