/* ==========================================================================
   TALS — About
   Split layout: info panel + image slider
   ========================================================================== */

.tals-about {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 100%;
  overflow: hidden;
  isolation: isolate;
  background: var(--ab-bg, #ffffff);
  color: var(--ab-text-color, #1b1b1b);
  --ab-panel-track: minmax(280px, var(--ab-panel-w, 25.5%));
}

.tals-about__shell {
  width: 100%;
  height: 100%;
  padding: 0;
}

.tals-about__layout {
  display: grid;
  grid-template-columns: var(--ab-panel-track) minmax(0, 1fr);
  align-items: stretch;
  width: 100%;
  height: 100%;
  gap: 0;
}

.tals-about[data-info-side-d='right'] .tals-about__layout {
  grid-template-columns: minmax(0, 1fr) var(--ab-panel-track);
}

.tals-about[data-info-side-d='right'] .tals-about__info {
  order: 2;
}

.tals-about[data-info-side-d='right'] .tals-about__slider {
  order: 1;
}

.tals-about__info,
.tals-about__slider {
  min-width: 0;
  min-height: 0;
}

.tals-about__info {
  display: flex;
  flex-direction: column;
  justify-content: var(--ab-panel-valign, center);
  gap: 26px;
  padding: var(--ab-panel-pad, clamp(28px, 3.4vw, 54px));
  border-radius: var(--ab-panel-radius, 0px);
  background: var(--ab-panel-bg, #ffffff);
  color: var(--ab-text-color, #1b1b1b);
  text-align: var(--ab-text-align, left);
  box-shadow: inset -1px 0 0 rgba(0, 0, 0, 0.08);
  overflow-y: auto;
  position: relative;
  z-index: 2;
  align-items: stretch;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.tals-about__kicker {
  margin: 0;
  font-family: var(--ab-kicker-font, var(--ab-text-font, inherit));
  font-size: var(--ab-kicker-size, 13px);
  font-weight: var(--ab-kicker-weight, 500);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ab-kicker-color, #222);
  text-align: var(--ab-text-align, left);
}

.tals-about__title {
  margin: 0;
  font-family: var(--ab-title-font, inherit);
  font-size: var(--ab-title-size, clamp(2rem, 2.4vw, 3rem));
  font-weight: var(--ab-title-weight, 400);
  font-style: var(--ab-title-style, normal);
  line-height: 1.1;
  color: var(--ab-title-color, #e09721);
  text-align: var(--ab-text-align, left);
}

.tals-about__desc,
.tals-about__desc p {
  margin: 0;
  font-family: var(--ab-text-font, inherit);
  font-size: var(--ab-text-size, clamp(1rem, 1.02vw, 1.12rem));
  font-weight: var(--ab-text-weight, 400);
  font-style: var(--ab-text-style, normal);
  line-height: 1.92;
  color: var(--ab-text-color, #1f1f1f);
}

.tals-about__desc {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: none;
  width: 100%;
}

.tals-about__slider {
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-radius: 0;
  background: #d9d3c7;
  min-height: 100%;
}

.tals-about__slider::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.12),
    rgba(0, 0, 0, 0.03) 20%,
    transparent 52%
  );
  z-index: 1;
}

.tals-about__viewport {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  min-height: 100%;
}

.tals-about__track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform 520ms cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.tals-about__slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.tals-about__img-el {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: scale(1.005);
}

.tals-about__empty {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  padding: 24px;
  text-align: center;
  font-family: var(--ab-text-font, inherit);
  font-size: 14px;
  color: rgba(20, 20, 20, 0.64);
}

.tals-about__arrow {
  position: absolute;
  top: 50%;
  z-index: 4;
  width: clamp(42px, 3.8vw, 58px);
  height: clamp(42px, 3.8vw, 58px);
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: var(--ab-arrow-bg, rgba(18, 18, 18, 0.42));
  color: var(--ab-arrow-color, #fff);
  transform: translateY(-50%);
  cursor: pointer;
  backdrop-filter: blur(10px);
  transition:
    background-color 180ms ease,
    transform 180ms ease,
    opacity 180ms ease;
}

.tals-about__arrow:hover,
.tals-about__arrow:focus-visible {
  background: var(--ab-arrow-bg-hover, rgba(18, 18, 18, 0.66));
  transform: translateY(-50%) scale(1.03);
}

.tals-about__arrow:disabled,
.tals-about__slider.is-single .tals-about__arrow {
  opacity: 0;
  pointer-events: none;
}

.tals-about__arrow span {
  font-size: clamp(28px, 2.4vw, 34px);
  line-height: 1;
}

.tals-about__arrow--prev {
  left: clamp(14px, 1.8vw, 22px);
}

.tals-about__arrow--next {
  right: clamp(14px, 1.8vw, 22px);
}

@media (max-width: 1023.98px) {
  .tals-about__shell {
    padding: 0;
  }

  .tals-about__layout,
  .tals-about[data-info-side-d='right'] .tals-about__layout {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, var(--ab-mobile-media-h, 58%)) minmax(0, 1fr);
    gap: 0;
    height: 100%;
  }

  .tals-about__slider,
  .tals-about[data-info-side-d='right'] .tals-about__slider {
    order: 1;
    border-radius: 0;
  }

  .tals-about__info,
  .tals-about[data-info-side-d='right'] .tals-about__info {
    order: 2;
    min-height: 0;
    max-height: 100%;
    border-radius: var(--ab-panel-radius-m, 22px) var(--ab-panel-radius-m, 22px) 0 0;
    margin-top: calc(var(--ab-mobile-overlap, 0px) * -1);
    padding: var(--ab-panel-pad-m, 22px 20px 28px);
    background: var(--ab-panel-bg-m, #ffffff);
    color: var(--ab-text-color-m, #1c1b1a);
    box-shadow: 0 -12px 36px rgba(0, 0, 0, 0.12);
    align-items: stretch;
    text-align: var(--ab-text-align, left);
    overflow-y: auto;
    overscroll-behavior-y: contain;
    touch-action: pan-y;
  }

  .tals-about__kicker {
    color: var(--ab-kicker-color-m, rgba(28, 27, 26, 0.54));
    font-size: var(--ab-kicker-size-m, 11px);
  }

  .tals-about__title {
    font-family: var(--ab-title-font-m, var(--ab-title-font, inherit));
    font-size: var(--ab-title-size-m, clamp(1.6rem, 7vw, 2.1rem));
    font-weight: var(--ab-title-weight-m, var(--ab-title-weight, 600));
    font-style: var(--ab-title-style-m, var(--ab-title-style, normal));
    color: var(--ab-title-color-m, #111);
  }

  .tals-about__desc,
  .tals-about__desc p {
    font-family: var(--ab-text-font-m, var(--ab-text-font, inherit));
    font-size: var(--ab-text-size-m, 15px);
    font-weight: var(--ab-text-weight-m, var(--ab-text-weight, 400));
    font-style: var(--ab-text-style-m, var(--ab-text-style, normal));
    line-height: 1.7;
    color: var(--ab-text-color-m, #1c1b1a);
  }

  .tals-about__desc {
    max-width: none;
  }

  .tals-about__arrow {
    width: 42px;
    height: 42px;
  }

  .tals-about__arrow--prev {
    left: 10px;
  }

  .tals-about__arrow--next {
    right: 10px;
  }
}
