.ag-home-slider { width:100%; }

.ag-home-slider__viewport{
  position:relative;
  width:100%;
  height: min(78vh, 720px);
  overflow:hidden;
  background:#111;
}

.ag-home-slider__track{
  position:absolute;
  inset:0;
  will-change: transform;
  display:flex;
  transition: transform .6s ease;
}

.ag-home-slider__slide{
  min-width:100%;
  height:100%;
  position:relative;
}

.ag-home-slider__slide img{
  width:100%;
  height:100%;
  object-fit: cover;
  display:block;
}

.ag-home-slider__overlay{
  position:absolute;
  inset:0;
  background:
    linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.35) 45%, rgba(0,0,0,.18) 100%);
  pointer-events:none;
}

.ag-home-slider__content{
  position:absolute;
  left: clamp(16px, 4vw, 52px);
  bottom: clamp(52px, 6vw, 92px);
  z-index:3;
  color:#fff;
  max-width: min(620px, 78vw);
}

.ag-home-slider__subtitle{
  font-family: "Inria Serif", serif;
  font-size: 16px;
  letter-spacing: .02em;
  opacity:.95;
  margin-bottom: 10px;
}

.ag-home-slider__title{
  font-family: "Inria Serif", serif;
  font-size: clamp(26px, 3.4vw, 46px);
  line-height: 1.05;
  letter-spacing: .02em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.ag-home-slider__btn{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  color:#fff;
  border:1px solid rgba(255,255,255,.28);
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(0,0,0,.18);
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
  cursor:pointer;
}
.ag-home-slider__btn:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.42);
}
.ag-home-slider__btn-ic{ opacity:.9; }

.ag-home-slider__counter{
  position:absolute;
  display: none;
  left: clamp(16px, 4vw, 52px);
  bottom: 18px;
  z-index:3;
  color: rgba(255,255,255,.9);
  font-family: "Inter Tight", sans-serif;
  font-size: 14px;
  letter-spacing: .02em;
}

.ag-home-slider__dots{
  position:absolute;
  left:50%;
  transform: translateX(-50%);
  bottom: 20px;
  z-index:3;
  display:flex;
  gap: 10px;
  align-items:center;
}

.ag-home-slider__dot{
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,.35);
  border: 0;
  cursor:pointer;
  transition: transform .2s ease, background .2s ease;
}
.ag-home-slider__dot.is-active{
  background: rgba(255,255,255,.95);
  transform: scale(1.2);
}

.ag-home-slider__arrows{
  position:absolute;
  right: clamp(16px, 3vw, 34px);
  bottom: 14px;
  z-index:3;
  display:flex;
  gap: 12px;
}

.ag-home-slider__arrow{
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28);
  background: rgba(0,0,0,.18);
  color:#fff;
  cursor:pointer;
  display:flex;
  align-items:center;
  justify-content:center;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.ag-home-slider__arrow:hover{
  transform: translateY(-1px);
  background: rgba(0,0,0,.28);
  border-color: rgba(255,255,255,.42);
}

/* responsive */
@media (max-width: 900px){
  .ag-home-slider__viewport{ height: min(70vh, 620px); }
  .ag-home-slider__overlay{
    background: linear-gradient(0deg, rgba(0,0,0,.58) 0%, rgba(0,0,0,.20) 70%, rgba(0,0,0,.08) 100%);
  }
  .ag-home-slider__content{ bottom: 98px; }
}

@media (max-width: 560px){
  .ag-home-slider__viewport{ height: 520px; }
  .ag-home-slider__title{ font-size: 28px; }
  .ag-home-slider__subtitle{ font-size: 14px; }
  .ag-home-slider__arrow{ width: 42px; height: 42px; }
}