/* mod_uthong_slider - full width slides (colours from tpl_uthong when present) */
.ut-slider {
  position: relative;
  overflow: hidden;
  background: var(--ut-surface, #f4f6f8);
}
.ut-slider__track { position: relative; aspect-ratio: var(--ut-slider-ratio, 1900/425); }
.ut-slider__slide { position: absolute; inset: 0; }
.ut-slider__slide[hidden] { display: none; }
.ut-slider__slide a { display: block; height: 100%; }
.ut-slider__slide img { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; border-radius: 0; }
.ut-slider--contain .ut-slider__slide img { object-fit: contain; }
.ut-slider__slide.is-entering { animation: ut-slider-fade .5s ease; }
@keyframes ut-slider-fade { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .ut-slider__slide.is-entering { animation: none; } }

.ut-slider__arrow,
.ut-slider__pause,
.ut-slider__dot { font: inherit; cursor: pointer; }
.ut-slider__arrow {
  position: absolute;
  top: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-top: -22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(28, 38, 48, .55);
  color: #fff;
}
.ut-slider__arrow:hover { background: rgba(28, 38, 48, .8); }
.ut-slider__arrow--prev { left: 16px; }
.ut-slider__arrow--next { right: 16px; }
.ut-slider__controls {
  position: absolute;
  left: 50%;
  bottom: 10px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(28, 38, 48, .55);
}
.ut-slider__pause {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
}
.ut-slider__icon-play { display: none; }
.ut-slider.is-paused .ut-slider__icon-play { display: block; }
.ut-slider.is-paused .ut-slider__icon-pause { display: none; }
.ut-slider__dot {
  position: relative;
  width: 24px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
}
.ut-slider__dot::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 10px;
  height: 10px;
  margin: -5px 0 0 -5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .6);
}
.ut-slider__dot[aria-current="true"]::before { background: #fff; transform: scale(1.25); }
.ut-slider :focus-visible { outline: 3px solid #fff; outline-offset: 2px; box-shadow: 0 0 0 5px var(--ut-primary, #0f5e73); }

/* Phone: a wide banner is only ~85px tall, so the buttons go under the picture
   (arrows hidden; swipe, dots and pause stay) */
@media (max-width: 600px) {
  .ut-slider__arrow { display: none; }
  .ut-slider__controls {
    position: static;
    transform: none;
    justify-content: center;
    padding: 2px 0;
    border-radius: 0;
    background: transparent;
  }
  .ut-slider__pause { color: var(--ut-text, #1c2630); }
  .ut-slider__dot::before { background: rgba(28, 38, 48, .3); }
  .ut-slider__dot[aria-current="true"]::before { background: var(--ut-primary, #0f5e73); }
  .ut-slider :focus-visible { outline-color: var(--ut-primary, #0f5e73); box-shadow: none; }
}
