.ttbs-showcase-fallback {
  margin: 32px auto 0;
  width: min(100%, 1180px);
}

.ttbs-showcase__dot,
.ttbs-showcase__button {
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

.ttbs-showcase {
  --ttbs-accent: #f80000;
  --ttbs-text: #181818;
  --ttbs-muted: #7b7b7b;
  --ttbs-dot: #d7d7d7;
  --ttbs-border: rgba(0, 0, 0, 0.08);
  --ttbs-shadow: 0 18px 60px rgba(0, 0, 0, 0.08);
  --ttbs-first-card-inset: max(0px, calc((100vw - var(--container-max-width, 1920px)) / 2));
  --ttbs-gap: 15px;
  --ttbs-slides-per-view: 1.25;
  font-family: "Kanit", sans-serif;
  margin: 32px 0 0;
  max-width: 100vw;
  position: relative;
  margin-left: var(--ttbs-viewport-shift, calc(50% - 50vw));
  margin-right: 0;
  width: 100vw;
  overflow-x: hidden;
  overflow-x: clip;
}

@supports selector(:has(*)) {
  .elementor-widget:has(.ttbs-showcase),
  .elementor-element-populated:has(.ttbs-showcase),
  .elementor-section:has(.ttbs-showcase),
  .elementor-container:has(.ttbs-showcase),
  .elementor-column:has(.ttbs-showcase),
  .elementor-widget-wrap:has(.ttbs-showcase),
  .elementor-widget-container:has(.ttbs-showcase),
  .e-con:has(.ttbs-showcase),
  .e-con-inner:has(.ttbs-showcase),
  .elementor-element:has(> .elementor-widget-container > .ttbs-showcase) {
    width: 100% !important;
    max-width: 100% !important;
    overflow: visible !important;
  }
}

.ttbs-showcase,
.ttbs-showcase * {
  box-sizing: border-box;
}

.ttbs-showcase button,
.ttbs-showcase [type="button"],
.ttbs-showcase [type="reset"],
.ttbs-showcase [type="submit"] {
  background-image: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
}

.ttbs-showcase__header {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 30px;
  padding-left: var(--ttbs-first-card-inset);
  padding-right: var(--ttbs-first-card-inset);
}

.ttbs-showcase__title {
  color: var(--ttbs-text);
  font-family: inherit;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
  margin: 0;
}

.ttbs-showcase__view-all,
.ttbs-showcase__view-all:visited {
  align-items: center;
  align-self: center;
  box-shadow: none;
  color: var(--ttbs-accent);
  display: inline-flex;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  gap: 10px;
  line-height: 1;
  text-decoration: none;
}

.ttbs-showcase__view-all:hover,
.ttbs-showcase__view-all:focus {
  box-shadow: none;
  color: var(--ttbs-accent);
  text-decoration: none;
}

.ttbs-showcase__view-all-icon {
  font-size: 24px;
  line-height: 1;
}

.ttbs-showcase__viewport {
  background: transparent;
  display: grid;
  gap: var(--ttbs-gap);
  --ttbs-slide-width: calc(
    (100% - (var(--ttbs-gap) * (var(--ttbs-slides-per-view) - 1))) /
      var(--ttbs-slides-per-view)
  );
  grid-auto-columns: var(--ttbs-slide-width);
  grid-auto-flow: column;
  box-shadow: none;
  margin-bottom: 24px;
  overflow-x: scroll;
  overscroll-behavior-x: auto;
  padding-bottom: 6px;
  scroll-padding-inline: 0;
  scroll-snap-type: none;
  scrollbar-width: none;
  touch-action: auto;
  user-select: none;
}

@media (max-width: 767px) {
  .ttbs-showcase__viewport {
    overflow-x: scroll !important;
    overscroll-behavior-x: auto !important;
    scroll-snap-type: none !important;
    touch-action: auto !important;
    -webkit-overflow-scrolling: touch;
  }
}

@media (min-width: 768px) {
  .ttbs-showcase__viewport {
    cursor: grab;
  }

  .ttbs-showcase__viewport.is-dragging,
  .ttbs-showcase__viewport.is-momentum-scrolling,
  .ttbs-showcase__viewport.is-dragging * {
    cursor: grabbing !important;
    -webkit-user-select: none;
    user-select: none;
  }
}

.ttbs-showcase__viewport img {
  -webkit-user-drag: none;
  cursor: inherit;
  pointer-events: none;
  user-select: none;
}

.ttbs-showcase__viewport::-webkit-scrollbar {
  display: none;
}

.ttbs-showcase__slide {
  background: transparent;
  box-shadow: none;
  min-width: 0;
  overflow: hidden;
  padding: 0; 
  scroll-snap-align: none;
  scroll-snap-stop: normal;
  transition: none;
}

.ttbs-showcase__card {
  align-items: center;
  background: transparent;
  display: flex;
  height: 100%;
  justify-content: center;
  max-width: none;
  padding: 0;
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  width: 100%;
}

.ttbs-showcase__image {
  border-radius: inherit !important;
  display: block;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  /* min-height: 552px; */
  object-fit: contain;
  object-position: center;
  position: relative;
  width: auto;
}

.ttbs-showcase__card-link {
  align-items: center;
  border-radius: inherit;
  display: flex;
  height: 100%;
  justify-content: center;
  min-width: 0;
  position: relative;
  text-decoration: none;
  -webkit-user-drag: none;
  user-select: none;
  width: 100%;
  z-index: 1;
}

.ttbs-showcase__card-link:hover,
.ttbs-showcase__card-link:focus-visible {
  outline: none;
}

.ttbs-showcase__card-link-icon {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  background: #f7f7f7;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  bottom: 22px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, .18), inset 0 1px 1px rgba(255, 255, 255, .35), inset 0 -1px 1px rgba(255, 255, 255, .05) !important;
  display: flex;
  height: 52px;
  justify-content: center;
  margin: 0;
  padding: 0;
  position: absolute;
  right: 22px;
  transition:
    background-color 0.22s ease,
    backdrop-filter 0.22s ease,
    transform 0.22s ease;
  width: 52px;
  z-index: 2;
}

.ttbs-showcase__card-link-icon::after {
  background: url("../images/arrow-click.svg") center / contain no-repeat;
  content: "";
  display: block;
  filter: brightness(0) saturate(100%) invert(75%) sepia(0%) saturate(0%) hue-rotate(180deg) brightness(95%) contrast(88%);
  height: 14px;
  transition: filter 0.22s ease;
  width: 14px;
}

.ttbs-showcase__card-link-icon:hover,
.ttbs-showcase__card-link-icon:focus-visible {
  background: rgba(217, 217, 217, 0.5);
  backdrop-filter: blur(2px) saturate(100%);
  outline: none;
  transform: translateY(-1px);
}

.ttbs-showcase__card-link-icon:hover::after,
.ttbs-showcase__card-link-icon:focus-visible::after {
  filter: brightness(0) invert(1);
}

/* Elementor can reset img radius to 0; keep the showcase radius inside Elementor. */
.elementor .ttbs-showcase__card,
.elementor .ttbs-showcase__image {
  border-radius: 18px !important;
}

.ttbs-showcase__nav {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: center;
}

.ttbs-showcase__dots {
  display: flex;
  gap: 4px;
}

.ttbs-showcase__dot {
  appearance: none;
  background: transparent !important;
  background-color: transparent !important;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  height: 10px;
  flex: 0 0 30px;
  padding: 0;
  position: relative;
  width: 30px;
}

.ttbs-showcase__dot::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(74, 64, 56, 0.18);
  transform: translate(-50%, -50%);
  transition:
    background-color 0.18s ease,
    width 0.22s cubic-bezier(0.22, 0.61, 0.36, 1);
}

.ttbs-showcase__dot:hover::before{
  background-color: var(--ttbs-accent);
}

.ttbs-showcase__dot.is-active::before {
  background: var(--ttbs-accent);
  width: 28px;
}

.ttbs-showcase__dot:hover,
.ttbs-showcase__dot:focus,
.ttbs-showcase__dot:focus-visible,
.ttbs-showcase__dot:active {
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: transparent !important;
  text-decoration: none !important;
  outline: 0 !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.ttbs-showcase__dot::-moz-focus-inner {
  border: 0;
  padding: 0;
}

.ttbs-showcase .ttbs-showcase__dot,
.ttbs-showcase .ttbs-showcase__dot:hover,
.ttbs-showcase .ttbs-showcase__dot:focus,
.ttbs-showcase .ttbs-showcase__dot:focus-visible,
.ttbs-showcase .ttbs-showcase__dot:active {
  -webkit-appearance: none !important;
  appearance: none !important;
  background: transparent !important;
  background-color: transparent !important;
  border: 0 !important;
  border-color: transparent !important;
  box-shadow: none !important;
  color: transparent !important;
  outline: 0 !important;
  text-decoration: none !important;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

.ttbs-showcase__buttons {
  display: flex;
  gap: 10px;
}

.ttbs-showcase__button {
  -webkit-appearance: none;
  align-items: center;
  appearance: none;
  background: #fff !important;
  background-color: #fff !important;
  border: 1px solid rgba(63, 53, 45, 0.14);
  border-radius: 999px;
  box-shadow: none;
  color: #39322d;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.8rem;
  height: 50px;
  justify-content: center;
  line-height: 1;
  min-height: 50px;
  min-width: 50px;
  padding: 0;
  text-decoration: none;
  transition: all 0.2s ease;
  vertical-align: middle;
  width: 50px;
}

.ttbs-showcase__button:hover,
.ttbs-showcase__button:active {
  background: var(--ttbs-accent) !important;
  background-color: var(--ttbs-accent) !important;
  color: #fff !important;
  outline: none;
}

.ttbs-showcase__button:focus,
.ttbs-showcase__button:focus-visible {
  background: #fff !important;
  background-color: #fff !important;
  color: #39322d !important;
  outline: 0 !important;
  text-decoration: none !important;
}

.ttbs-showcase__button:focus:hover,
.ttbs-showcase__button:focus-visible:hover,
.ttbs-showcase__button:focus:active,
.ttbs-showcase__button:focus-visible:active {
  background: var(--ttbs-accent) !important;
  background-color: var(--ttbs-accent) !important;
  color: #fff !important;
}

.ttbs-showcase__button:disabled,
.ttbs-showcase__button:disabled:hover,
.ttbs-showcase__button:disabled:focus,
.ttbs-showcase__button:disabled:focus-visible,
.ttbs-showcase__button:disabled:active {
  background: #fff !important;
  background-color: #fff !important;
  border-color: rgba(63, 53, 45, 0.14) !important;
  box-shadow: none !important;
  color: rgba(57, 50, 45, 0.34) !important;
  cursor: default;
  opacity: 1;
  outline: 0 !important;
}

.ttbs-showcase__button svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (min-width: 768px) {
  .ttbs-showcase {
    --ttbs-first-card-inset: 100px;
    --ttbs-slides-per-view: 4.12;
    max-width: 100vw;
    width: 100vw;
  }

  .ttbs-showcase__viewport {
    padding-left: var(--ttbs-first-card-inset);
    padding-right: 15px;
    scroll-padding-left: var(--ttbs-first-card-inset);
    scroll-padding-right: 15px;
  }
}

@media (min-width: 768px) and (max-width: 1024px) {
  .ttbs-showcase {
    --ttbs-first-card-inset: 32px;
    --ttbs-gap: 18px;
    --ttbs-slides-per-view: 2.35;
    margin-left: var(--ttbs-viewport-shift, calc(50% - 50vw));
    margin-right: 0;
    max-width: 100vw;
    width: 100vw;
  }

  .ttbs-showcase__header {
    padding-inline: 32px;
  }

  .ttbs-showcase__viewport {
    --ttbs-slide-width: calc(
      (100vw - 64px - (var(--ttbs-gap) * (var(--ttbs-slides-per-view) - 1))) /
        var(--ttbs-slides-per-view)
    );
    width: 100vw;
    max-width: 100vw;
    padding-left: 32px;
    padding-right: 32px;
    scroll-padding-left: 32px;
    scroll-padding-right: 32px;
  }

  .ttbs-showcase__nav {
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    box-sizing: border-box;
    padding-inline: 32px;
  }

  .ttbs-showcase__dots {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
  }

  .ttbs-showcase__buttons {
    flex: 0 0 auto;
  }
}

@media (max-width: 767px) {
  .ttbs-showcase {
    --ttbs-gap: 15px;
    --ttbs-slides-per-view: 1.42;
    margin-left: var(--ttbs-viewport-shift, calc(50% - 50vw));
    margin-right: 0;
    max-width: 100vw;
    width: 100vw;
  }

  .ttbs-showcase__header {
    padding: 0 15px;
  }

  .ttbs-showcase__title {
    font-size: 22px;
    font-weight: 600;
    line-height: 1.08;
  }

  .ttbs-showcase__view-all {
    font-size: 13px;
    font-weight: 600;
    gap: 6px;
  }

  .ttbs-showcase__view-all-icon {
    font-size: 20px;
  }

  .ttbs-showcase__viewport {
    --ttbs-slide-width: calc(
      (100vw - (var(--ttbs-gap) * (var(--ttbs-slides-per-view) - 1))) /
        var(--ttbs-slides-per-view)
    );
    padding-inline: 15px;
    scroll-padding-inline: calc((100vw - var(--ttbs-slide-width)) / 2);
  }

  .ttbs-showcase__slide {
    padding: 0;
    scroll-snap-align: none;
  }

  .ttbs-showcase__card {
    border-radius: 18px;
    height: auto;
    overflow: hidden;
    position: relative;
  }

  .ttbs-showcase .ttbs-showcase__image,
  .elementor .ttbs-showcase .ttbs-showcase__image {
    border-radius: 18px !important;
    height: auto !important;
    max-height: none !important;
    max-width: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    position: relative;
    width: 100% !important;
  }

  .ttbs-showcase__card-link {
    height: 100%;
    width: 100%;
  }

  .ttbs-showcase__card-link-icon {
    bottom: 16px;
    height: 44px;
    right: 16px;
    width: 44px;
  }

  .ttbs-showcase__card-link-icon::after {
    height: 18px;
    width: 18px;
  }
}

@media (max-width: 640px) {

  .ttbs-showcase__card {
    height: auto;
  }

  .ttbs-showcase__card-link {
    height: 100%;
    width: 100%;
  }

  .ttbs-showcase .ttbs-showcase__image,
  .elementor .ttbs-showcase .ttbs-showcase__image {
    height: auto !important;
    max-height: none !important;
    min-height: 0 !important;
    object-fit: contain !important;
    width: 100% !important;
  } 

  .ttbs-showcase__nav {
    gap: 14px;
  }

  .ttbs-showcase__button {
    font-size: 1.8rem;
    height: 50px;
    width: 50px;
  }
}

/* Portrait cards share the classic full-width track and container gutters. */
.ttbs-showcase.ttbs-showcase--cards {
  --ttbs-gap: 16px;
  --ttbs-slides-per-view: 4.2;
  margin-top: 0;
}

.ttbs-showcase--cards .ttbs-showcase__nav [hidden] {
  display: none !important;
}

.ttbs-showcase--cards .ttbs-showcase__viewport {
  --ttbs-slide-width: calc(
    (100% - (var(--ttbs-gap) * (var(--ttbs-slides-per-view) - 1))) /
      var(--ttbs-slides-per-view)
  );
  max-width: 100%;
  width: 100%;
  padding-top: 3px;
}

.ttbs-showcase--cards .ttbs-showcase__slide {
  overflow: visible;
}

.ttbs-showcase--cards .ttbs-brand-card,
.ttbs-showcase--cards .ttbs-brand-card:visited,
.ttbs-showcase--cards .ttbs-brand-card:hover,
.ttbs-showcase--cards .ttbs-brand-card:focus-visible {
  background: transparent;
  border: 0;
  border-radius: 16px;
  box-shadow: none;
  color: #fff;
  display: block;
  font-family: inherit;
  height: 100%;
  isolation: isolate;
  overflow: hidden;
  padding: 0;
  position: relative;
  text-decoration: none;
  -webkit-user-drag: none;
}

.ttbs-brand-card__media {
  aspect-ratio: 4 / 5;
  background: #f4f4f4;
  border-radius: 16px;
  overflow: hidden;
  width: 100%;
}

.ttbs-showcase--cards .ttbs-brand-card__image {
  border-radius: 0;
  display: block;
  height: 100%;
  max-height: none;
  max-width: 100%;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.ttbs-brand-card__body {
  display: flex;
  flex-direction: column;
  inset: 0;
  isolation: isolate;
  justify-content: flex-end;
  padding: 16px;
  position: absolute;
  transform: translateY(0);
  transition: transform 350ms cubic-bezier(0.22, 0.61, 0.36, 1);
  z-index: 1;
}

.ttbs-brand-card__body::before {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.72) 18%,
    rgba(0, 0, 0, 0.28) 40%,
    transparent 65%
  );
  content: "";
  /* Extend below the card so lifting the overlay never exposes a bottom gap. */
  inset: 0 0 -10%;
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.ttbs-showcase--cards .ttbs-brand-card__name {
  color: #fff;
  font-family: inherit;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  margin: 0;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.ttbs-showcase--cards .ttbs-brand-card__description {
  color: rgba(255, 255, 255, 0.92);
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.4;
  margin: 4px 0 0;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  white-space: pre-line;
}

.ttbs-showcase--cards a.ttbs-brand-card:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -4px;
}

.ttbs-showcase--cards a.ttbs-brand-card:focus-visible .ttbs-brand-card__body {
  transform: translateY(-10%);
}

@media (hover: hover) {
  .ttbs-showcase--cards .ttbs-brand-card:hover .ttbs-brand-card__body {
    transform: translateY(-10%);
  }
}

@media (max-width: 1024px) {
  .ttbs-showcase--cards .ttbs-showcase__viewport { --ttbs-slides-per-view: 3.2; }
}

@media (max-width: 767px) {
  .ttbs-showcase--cards .ttbs-showcase__viewport { --ttbs-slides-per-view: 1.42; }
}

@media (prefers-reduced-motion: reduce) {
  .ttbs-showcase--cards .ttbs-brand-card__body {
    transition: none;
  }

  .ttbs-showcase--cards .ttbs-brand-card:hover .ttbs-brand-card__body,
  .ttbs-showcase--cards a.ttbs-brand-card:focus-visible .ttbs-brand-card__body {
    transform: none;
  }
}
