/* Tilda-like gallery slider (main image + thumbnails) */
/* Usage: add class "tilda-slider" to root and include this CSS */

.tilda-slider {
  --ts-gap: 12px;
  --ts-thumb-size: 74px;
  --ts-thumb-radius: 8px;
  --ts-thumb-border: rgba(0, 0, 0, 0.14);
  --ts-thumb-border-active: rgba(0, 0, 0, 0.55);
  --ts-arrow-bg: rgba(0, 0, 0, 0.45);
  --ts-arrow-bg-hover: rgba(0, 0, 0, 0.6);
  --ts-arrow-color: #fff;
  --ts-main-bg: #fff;
  --ts-main-radius: 10px;
  --ts-main-max-h: 355px;
  --ts-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);

  display: flex;
  gap: var(--ts-gap);
  align-items: stretch;
  width: 100%;
  height: var(--ts-main-max-h);
  box-sizing: border-box;
}

.tilda-slider * {
  box-sizing: border-box;
}

.tilda-slider:focus {
  outline: none;
}

.tilda-slider:focus-visible .tilda-slider__main {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.18), var(--ts-shadow);
}

.tilda-slider__main {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  background: var(--ts-main-bg);
  border-radius: var(--ts-main-radius);
  overflow: hidden;
  box-shadow: var(--ts-shadow);
}

.tilda-slider__main-media {
  width: 100%;
  height: min(62vh, var(--ts-main-max-h));
  display: flex;
  place-items: center;
  background: var(--ts-main-bg);
}

.tilda-slider__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover; /* like tilda product gallery */
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}

.tilda-slider__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 10px;
  background: var(--ts-arrow-bg);
  color: var(--ts-arrow-color);
  cursor: pointer;
  display: grid;
  place-items: center;
  z-index: 2;
  transition: background 120ms ease, opacity 120ms ease;
  opacity: 0.9;
}

.tilda-slider__arrow:hover {
  background: var(--ts-arrow-bg-hover);
  opacity: 1;
}

.tilda-slider__arrow:active {
  transform: translateY(-50%) scale(0.98);
}

.tilda-slider__arrow:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.9);
  outline-offset: 2px;
}

.tilda-slider__arrow--prev {
  left: 14px;
}

.tilda-slider__arrow--next {
  right: 14px;
}

.tilda-slider__arrow svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.tilda-slider__thumbs {
  flex: 0 0 auto;
  width: calc(var(--ts-thumb-size) + 10px);
  display: block;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  height: 100%;
  max-height: 100%;
  padding-right: 2px; /* avoid scrollbar overlap */
  scrollbar-width: thin;
  overscroll-behavior: contain;
  scroll-snap-type: y proximity;
}

.tilda-slider__thumb {
  appearance: none;
  border: 1px solid var(--ts-thumb-border);
  background: #fff;
  padding: 0;
  border-radius: var(--ts-thumb-radius);
  cursor: pointer;
  width: var(--ts-thumb-size);
  height: var(--ts-thumb-size);
  overflow: hidden;
  display: flex;
  place-items: center;
  transition: border-color 120ms ease, transform 120ms ease;
  scroll-snap-align: start;
}

.tilda-slider__thumb:hover {
  border-color: rgba(0, 0, 0, 0.28);
  transform: translateY(-1px);
}

.tilda-slider__thumb:active {
  transform: translateY(0);
}

.tilda-slider__thumb[aria-current="true"] {
  border-color: var(--ts-thumb-border-active);
}

.tilda-slider__thumb:focus-visible {
  outline: 2px solid rgba(0, 0, 0, 0.35);
  outline-offset: 2px;
}

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

/* Optional: show subtle zoom cursor on main image */
.tilda-slider[data-lightbox="true"] .tilda-slider__main-img {
  cursor: zoom-in;
}

/* ===== Tilda adaptive breakpoints (1200, 980, 640, 480, 320) ===== */

/* Tablet landscape (≤980px) */
@media (max-width: 960px) {
  .tilda-slider {
    --ts-gap: 10px;
    --ts-thumb-size: 62px;
    --ts-main-max-h: 320px;
  }

  .tilda-slider__arrow {
    width: 42px;
    height: 42px;
  }

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

  .tilda-slider__arrow svg {
    width: 18px;
    height: 18px;
  }
}

/* Tablet (≤768px): switch to column layout, thumbs below */
@media (max-width: 768px) {
  .tilda-slider {
    flex-direction: column;
    height: auto;
    min-height: 240px;
    --ts-gap: 10px;
    --ts-thumb-size: 58px;
    --ts-main-max-h: 380px;
  }

  .tilda-slider__main-media {
    height: min(56vh, 380px);
  }

  .tilda-slider__thumbs {
    width: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 0 0;
    height: auto;
    max-height: none;
    overscroll-behavior: contain;
    scroll-snap-type: x proximity;
  }

  .tilda-slider__thumb {
    flex-shrink: 0;
    scroll-snap-align: start;
  }
}

/* Tilda 640: tablet portrait */
@media (max-width: 640px) {
  .tilda-slider {
    --ts-gap: 8px;
    --ts-thumb-size: 52px;
    --ts-main-max-h: 340px;
  }

  .tilda-slider__main-media {
    height: min(50vh, 340px);
  }

  .tilda-slider__arrow {
    width: 38px;
    height: 38px;
  }

  .tilda-slider__arrow--prev { left: 8px; }
  .tilda-slider__arrow--next { right: 8px; }

  .tilda-slider__arrow svg {
    width: 16px;
    height: 16px;
  }
}

/* Tilda 480: mobile landscape */
@media (max-width: 480px) {
  .tilda-slider {
    --ts-gap: 6px;
    --ts-thumb-size: 48px;
    --ts-main-max-h: 280px;
  }

  .tilda-slider__main-media {
    height: min(45vh, 280px);
  }

  .tilda-slider__arrow {
    width: 34px;
    height: 34px;
  }

  .tilda-slider__arrow--prev { left: 6px; }
  .tilda-slider__arrow--next { right: 6px; }

  .tilda-slider__arrow svg {
    width: 14px;
    height: 14px;
  }
}

/* Tilda 320: mobile portrait */
@media (max-width: 360px) {
  .tilda-slider {
    --ts-gap: 5px;
    --ts-thumb-size: 42px;
    --ts-main-max-h: 220px;
  }

  .tilda-slider__main-media {
    height: min(42vh, 220px);
  }

  .tilda-slider__arrow {
    width: 30px;
    height: 30px;
  }

  .tilda-slider__arrow--prev { left: 5px; }
  .tilda-slider__arrow--next { right: 5px; }

  .tilda-slider__arrow svg {
    width: 12px;
    height: 12px;
  }
}


@media screen and (max-width: 1200px) {
    .t-prefix_1 {
        padding-left: 0;
    }
        .t-col_10 {
        max-width: 100%;
        width: 100%;
    }
}

@media screen and (max-width: 768px) {
    .t-prefix_1 {
            padding-left: 20px;
    }

}


