/* ── Stencil page: banner — full width, no top padding, image natural height (no crop) ── */
.stencil-banner {
  position: relative;
  width: 100vw;
  max-width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0;
  line-height: 0;
}

.stencil-banner__link {
  display: block;
  text-decoration: none;
  color: inherit;
}

.stencil-banner__img {
  width: 100%;
  height: auto;
  display: block;
  vertical-align: top;
}

.stencil-section-title {
  text-align: center;
  margin-bottom: 1.5rem;
}

.stencil-section-title--pager {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: 100%;
  max-width: 100%;
}

.stencil-section-title__stack {
  flex: 1;
  min-width: 0;
  text-align: center;
}

.stencil-pager__btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #29b6b9;
  cursor: pointer;
  transition: color 0.2s, opacity 0.2s, transform 0.2s;
}

.stencil-pager__btn:hover:not(:disabled) {
  color: #1f9a9d;
  transform: scale(1.06);
}

.stencil-pager__btn:disabled {
  opacity: 0.28;
  cursor: default;
}

.stencil-pager__icon {
  display: block;
}

@media (min-width: 992px) {
  .stencil-section-title--pager {
    gap: 0.75rem;
  }

  .stencil-pager__btn {
    width: 48px;
    height: 48px;
  }

  .stencil-pager__icon {
    width: 70px;
    height: 70px;
  }
}

.stencil-grid__item.is-pager-hidden {
  display: none;
}

.stencil-kicker {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 24px;
  color: #29b6b9;
  margin-bottom: 0.25rem;
  font-family: Teko,sans-serif;
}

.stencil-heading {
  margin: 0;
  font-size: 44px;
  line-height: 1;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .stencil-heading {
    font-size: 72px;
  }
}

.section--stencil-choose {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

@media (min-width: 992px) {
  .section--stencil-choose {
    padding-top: 3.75rem;
    padding-bottom: 3.75rem;
  }
}

.stencil-grid {
  list-style: none;
  padding: 0;
  margin: 1.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.stencil-grid__item {
  box-sizing: border-box;
  position: relative;
  border-radius: 0.75rem;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  padding: 0.75rem;
  flex: 0 0 auto;
  /* Flex (no grid): cap at half row → 2 cards/row; card shrinks to image */
  width: fit-content;
  max-width: calc((100% - 10px) / 2);
  min-width: 0;
}

.stencil-grid__number {
  position: absolute;
  top: 0.4rem;
  left: 0.55rem;
  z-index: 2;
  font-size: 14px;
  line-height: 1;
  letter-spacing: 0.04em;
  color: #fa8698;
  pointer-events: none;
  font-weight: bold;
}

@media (min-width: 992px) {
  .stencil-grid__number {
    top: 1rem;
    left: 1.55rem;
    font-size: 20px;
  }

  .stencil-grid__item {
    /* 4 per row: 3 gaps × 10px */
    flex: 0 0 calc((100% - 30px) / 4);
    width: 100%;
    max-width: calc((100% - 30px) / 4);
  }
}

.stencil-grid__media {
  display: flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
}

.stencil-grid__media img {
  width: auto;
  max-width: 150px;
  height: auto;
  display: block;
  filter: invert(1);
}

@media (min-width: 992px) {
  .stencil-grid__media {
    width: 100%;
    justify-content: flex-start;
  }

  .stencil-grid__media img {
    width: 100%;
    max-width: 100%;
  }
}

.stencil-slider-section {
  padding-top: 2.5rem;
  padding-bottom: 3rem;
  background: #fff;
}

@media (min-width: 992px) {
  .stencil-slider-section {
    padding-top: 3.75rem;
    padding-bottom: 4rem;
  }
}

.stencil-slider-container {
  max-width: 1600px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 40px;
}

@media (max-width: 575px) {
  .stencil-slider-container {
    padding: 0 20px;
  }
}

.stencil-slider {
  margin-top: 1.5rem;
}

.stencil-carousel-wrap {
  padding: 0 0 50px;
}

.stencil-slider {
  outline: none;
  overflow: visible;
}

.stencil-slider .flickity-viewport {
  overflow: hidden;
}

.stencil-slider__cell {
  width: calc(100% - 16px);
  margin: 0 8px;
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
}

@media (min-width: 768px) {
  .stencil-slider__cell {
    width: calc(50% - 16px);
  }
}

@media (min-width: 992px) {
  .stencil-slider__cell {
    width: calc(33.333% - 16px);
  }
}

.stencil-slider__card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 18px 40px rgba(17, 24, 39, 0.12);
}

.stencil-slider__img {
  width: 100%;
  aspect-ratio: 4 / 5;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: transform 0.4s ease;
}

.stencil-slider__img img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.stencil-slider__cell:hover .stencil-slider__img {
  transform: scale(1.03);
}

/* arrows */
.stencil-slider .flickity-prev-next-button {
  width: 44px;
  height: 44px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  border: none;
  cursor: pointer;
  padding: 0;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  transition: background 0.2s;
}

.stencil-slider .flickity-prev-next-button:hover {
  background: #29b6b9;
}

.stencil-slider .flickity-prev-next-button.previous {
  left: -22px;
}

.stencil-slider .flickity-prev-next-button.next {
  right: -22px;
}

.stencil-slider .flickity-button-icon {
  fill: #29b6b9;
  width: 14px;
  height: 14px;
  margin-top: 2px;
}

.stencil-slider .flickity-prev-next-button:hover .flickity-button-icon {
  fill: #fff;
}

/* dots */
.stencil-slider .flickity-page-dots {
  bottom: -36px;
  width: 100%;
  text-align: center;
  padding: 0;
  margin: 0;
  list-style: none;
}

.stencil-slider .flickity-page-dots .dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ccc;
  opacity: 1;
  margin: 0 5px;
  cursor: pointer;
  transition: background 0.3s, transform 0.3s;
}

.stencil-slider .flickity-page-dots .dot.is-selected {
  background: #29b6b9;
  transform: scale(1.35);
}

@media (max-width: 991px) {
  .stencil-slider .flickity-page-dots {
    display: none;
  }

  .stencil-carousel-wrap {
    padding-bottom: 1.25rem;
  }
}


@media (max-width: 992px) {
  .stencil-kicker{
    font-size: 18px;
  }
}