/* Inko Carousel - Responsive styles */
:root{
  --inko-max-w: 1440px;
  --inko-radius: 14px;
  --inko-shadow: 0 10px 25px rgba(0,0,0,.12);
  --inko-accent: #e71d36; /* caption red */
  --inko-arrow-bg: rgba(0,0,0,.72);
  --inko-arrow-color: #fff;
  --inko-dot: #c8c8c8;
  --inko-dot-active: #222;
  --inko-gap: 18px; /* spacing between slides */
  --inko-spv: 1;   /* slides per view (1 mobile, 3 desktop) */
}

.inko-carousel{ 
  width: 100%;
  max-width: var(--inko-max-w);
  margin: 0 auto 24px;
  padding: 0 8px; /* breathing room on tiny screens */
}

/* Viewport - contains window with buttons positioned absolutely */
.inko-carousel-viewport{
  position: relative;
  overflow: visible;
}

.inko-carousel-window{
  position: relative;
  overflow: hidden;
}

/* Track */
.inko-carousel-track{
  display: flex;
  will-change: transform;
  transition: transform .45s cubic-bezier(.22,.61,.36,1);
  gap: var(--inko-gap);
}

/* Slides */
.inko-carousel-slide{
  margin: 0;
  flex: 0 0 calc((100% - (var(--inko-spv) - 1) * var(--inko-gap)) / var(--inko-spv));
  max-width: calc((100% - (var(--inko-spv) - 1) * var(--inko-gap)) / var(--inko-spv));
}

/* Maintain visual consistency across arbitrary image sizes */
.inko-carousel-media{
  position: relative;
  width: 100%;
  /* Aspect ratio targets the general look in the sample */
  aspect-ratio: 16 / 9; /* a bit taller for larger look */
  background: #f6f6f6;
  border-radius: var(--inko-radius);
  box-shadow: var(--inko-shadow);
  overflow: hidden;
}

/* Fallback for very old browsers without aspect-ratio */
@supports not (aspect-ratio: 1 / 1){
  .inko-carousel-media{ height: 0; padding-bottom: 42.857%; }
}

.inko-carousel-img{
  width: 100%;
  height: 100%;
  object-fit: cover; /* equal display regardless of file proportions */
  display: block;
}

/* Caption under the image (centered, bold, red, similar to screenshot) */
.inko-carousel-caption{
  text-align: center;
  margin: 12px 0 0;
  font-weight: 800;
  font-size: clamp(16px, 2.4vw, 28px);
  color: var(--inko-accent);
  font-family: Montserrat, Helvetica, Arial, sans-serif;
}

/* Arrow buttons */
.inko-carousel-nav{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: var(--inko-arrow-bg);
  color: var(--inko-arrow-color);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background .2s ease;
}
.inko-carousel-nav:hover{ background: rgba(0,0,0,.84); }
.inko-carousel-nav span[aria-hidden="true"]{ font-size: 32px; line-height: 1; }
.inko-carousel-nav.prev{ left: 16px; }
.inko-carousel-nav.next{ right: 16px; }

/* Side fade masks to mimic the soft edges in the screenshot */
.inko-carousel-fade{ position:absolute; top:0; bottom:0; width:12%; pointer-events:none; z-index:2; }
.inko-carousel-fade.inko-left{ left:0; background: linear-gradient(90deg,#fff 0%,rgba(255,255,255,0) 100%); }
.inko-carousel-fade.inko-right{ right:0; background: linear-gradient(-90deg,#fff 0%,rgba(255,255,255,0) 100%); }

/* Dots */
.inko-carousel-dots{ display:flex; gap:10px; justify-content:center; margin-top:14px; }
.inko-carousel-dot{ width:10px; height:10px; border-radius:50%; background:var(--inko-dot); border:0; cursor:pointer; }
.inko-carousel-dot[aria-selected="true"]{ background:var(--inko-dot-active); }

/* Small screens (iPhone SE width ~320px) */
@media (max-width: 360px){
  .inko-carousel-media{ aspect-ratio: 16/9; }
  .inko-carousel-nav{ width: 44px; height: 44px; }
  .inko-carousel-nav span[aria-hidden="true"]{ font-size: 24px; }
  .inko-carousel-fade{ width: 18%; }
}

/* Desktop: show 3 slides at once */
@media (min-width: 992px){
  .inko-carousel{ padding: 0 16px; }
  .inko-carousel{ --inko-spv: 3; }
  .inko-carousel-fade{ width: 10%; }
}

.screen-reader-text{
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}