.utec-slider {
  position: relative;
  width: 100%;
  margin: 0 auto;
  aspect-ratio: var(--utec-ratio, 9 / 4);
  overflow: hidden;
  background: var(--utec-bg, transparent);
  container-type: inline-size;
}

.utec-slides {
  position: absolute;
  inset: 0;
}

.utec-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity var(--utec-duration, 800ms) ease;
  pointer-events: none;
}

.utec-slide.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.utec-slide-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.utec-layer {
  position: absolute;
  box-sizing: border-box;
  margin: 0;
}

.utec-layer-text {
  display: inline-block;
  line-height: 1.25em;
  text-decoration: none;
}

a.utec-layer-text:hover {
  opacity: 0.85;
}

.utec-layer-image {
  display: block;
}

.utec-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  border: 0;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 20px;
  line-height: 1;
  padding: 0;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.utec-slider:hover .utec-nav,
.utec-nav:focus {
  opacity: 1;
}

.utec-prev { left: 10px; }
.utec-next { right: 10px; }

.utec-bullets {
  position: absolute;
  bottom: 15px;
  left: 0;
  right: 0;
  text-align: center;
  z-index: 10;
  line-height: 0;
}

.utec-bullet {
  display: inline-block;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid #fff;
  margin: 0 4px;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s ease;
}

.utec-bullet.is-active {
  background: #fff;
}
