:root {
  --module-slider-height: 70vh;
  --module-cap-maxw: 1100px;
  --module-pad: clamp(16px, 3vw, 32px);
  --module-color: #fff;
  --module-btn-bg: #e21b1b;
  --module-btn-hover: #c01515;
}

.module-slider-wrapper{
  overflow: hidden;
}

.module-slider-wrapper .swiper {
  width: 100%;
  max-width: 100vw;
  height: var(--module-slider-height);
  margin: 0 auto;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.module-slide {
  position: relative;
  width: 100%;
  height: 100%;
}

.module-slide > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.module-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.00) 0%, rgba(0,0,0,.35) 55%, rgba(0,0,0,.55) 100%);
  pointer-events: none;
}

.module-caption {
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  max-width: var(--module-cap-maxw);
  margin-inline: auto;
  padding: var(--module-pad);
  display: grid;
  gap: .5rem;
  color: var(--module-color);
}

.module-caption__title {
  font-family: "Montserrat", sans-serif;
  font-size: clamp(1.6rem, 4vw, 3rem);
  margin: 0;
  text-shadow: 0 2px 12px rgba(0,0,0,.4);
}

.module-caption__desc {
  /* opacity: .9; */
  font-size: var(--font-size-xs);
  opacity: 1;
  margin: 0;
}

.module-caption__btn {
  background: var(--module-btn-bg);
  color: #fff;
  padding: .7rem 1.1rem;
  border-radius: 4px;
  text-decoration: none;
  display: inline-block;
}

.module-caption__btn:hover {
  background: var(--module-btn-hover);
}

.module-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px; height: 54px;
  border-radius: 50%;
  background: rgba(0,0,0,.45);
  z-index: 10;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.module-nav--prev { left: 14px; }
.module-nav--next { right: 14px; }

.module-nav::after {
  content: '';
  width: 32px; height: 32px; display: block;
  background: no-repeat center / contain
    url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' stroke='%23fff' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round' xmlns='http://www.w3.org/2000/svg'%3E%3Cpolyline points='9 6 15 12 9 18'/%3E%3C/svg%3E");
}
.module-nav--prev::after {
  transform: scaleX(-1); /* flip to point left */
}

.module-pagination {
  position: absolute;
  left: 0; right: 0; bottom: 10px;
  text-align: center;
  z-index: 10;
}

.module-pagination .swiper-pagination-bullet {
  width: 9px; height: 9px;
  background: rgba(255,255,255,.75);
  opacity: 1;
}

.module-pagination .swiper-pagination-bullet-active {
  background: #fff;
}

/* .module-slider-wrapper .swiper { 
  width: 100%;
  max-width: 100vw;
  overflow: hidden;
} */
.module-slider-wrapper .swiper-wrapper {
  display: flex !important;     /* belt-and-suspenders if Swiper CSS didn't load */
  width: 100% !important;
  box-sizing: border-box;
}

.module-slider-wrapper .swiper-slide {
  width: 100% !important;    /* force 1 slide per view */
  flex: 0 0 100% !important;
}

html, body { overflow-x: hidden; }
