*,
*::after,
*::before {
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
}

:root {
  --handle-size: 3rem;
  --img-gap: 0.25rem;
  --carousel-vertical-offset: 50px;
  --carousel-aspect-ratio: 16/9;
  --category-slots: 0;
  --carousel-calculated-height: auto;
}

body {
  margin: 0;
}

.thc-carousel-row {
  padding: 0;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: var(--img-gap);
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
  /* Prevent flex stretching from altering aspect-ratio heights */
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.thc-carousel-container {
  width: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  overflow: hidden;
  gap: 0;
}

.thc-carousel-slider {
  --slider-index: 0;
  --items-per-row: var(--items-per-screen);
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-flex: 1;
      -ms-flex: 1 1 100%;
          flex: 1 1 100%;
  min-width: 0;
  width: 100%;
  margin: 0 var(--img-gap);
  -webkit-transform: translateX(calc(var(--slider-index) * -100%));
          transform: translateX(calc(var(--slider-index) * -100%));
  -webkit-transition: -webkit-transform 250ms ease-in-out;
  transition: -webkit-transform 250ms ease-in-out;
  transition: transform 250ms ease-in-out;
  transition: transform 250ms ease-in-out, -webkit-transform 250ms ease-in-out;
}

/* Order from largest to smallest breakpoint */
@media (min-width: 1921px) {
  .thc-carousel-slider {
    --items-per-screen: var(--items-widescreen);
  }
}

@media (max-width: 1920px) {
  .thc-carousel-slider {
    --items-per-screen: var(--items-desktop);
  }
}

@media (max-width: 1366px) {
  .thc-carousel-slider {
    --items-per-screen: var(--items-laptop);
  }
}

@media (max-width: 1024px) {
  .thc-carousel-slider {
    --items-per-screen: var(--items-tablet-landscape);
  }
}

@media (max-width: 768px) {
  .thc-carousel-slider {
    --items-per-screen: var(--items-tablet);
  }
}

@media (max-width: 480px) {
  .thc-carousel-slider {
    --items-per-screen: var(--items-mobile);
  }
}

.thc-carousel-slider > .thc-carousel-img-container {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(100% / var(--items-per-row));
          flex: 0 0 calc(100% / var(--items-per-row));
  max-width: calc(100% / var(--items-per-row) - var(--img-gap) * 2);
  margin: var(--img-gap);
  border-radius: 0.25rem;
  overflow: hidden;
  position: relative;
  aspect-ratio: var(--carousel-aspect-ratio);
  background-color: #f0f0f0;
}

.thc-carousel-slider > .thc-carousel-img-container::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0);
  -webkit-transition: background-color 0.3s ease-in-out;
  transition: background-color 0.3s ease-in-out;
  pointer-events: none;
}

.thc-carousel-slider > .thc-carousel-img-container:hover::after {
  background-color: rgba(0, 0, 0, 0.3);
}

.thc-carousel-slider > .thc-carousel-img-container > a {
  display: block;
  width: 100%;
  height: 100%;
  position: relative;
}

.thc-carousel-slider > .thc-carousel-img-container > a > img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.thc-carousel-slider > .thc-carousel-img-container > img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  -webkit-transition: -webkit-transform 0.3s ease-in-out;
  transition: -webkit-transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out;
  transition: transform 0.3s ease-in-out, -webkit-transform 0.3s ease-in-out;
}

.thc-carousel-slider > .thc-carousel-img-container > a:hover > img {
  -webkit-transform: scale(1.1);
          transform: scale(1.1);
}

.thc-carousel-handle {
  border: none;
  border-radius: 0.25rem;
  -webkit-box-flex: 0;
      -ms-flex-positive: 0;
          flex-grow: 0;
  -ms-flex-negative: 0;
      flex-shrink: 0;
  background-color: rgba(33, 33, 33, 0.5) !important;
  z-index: 10;
  margin: var(--img-gap) 0;
  width: var(--handle-size);
  cursor: pointer;
  font-size: 5rem;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -webkit-box-pack: center;
      -ms-flex-pack: center;
          justify-content: center;
  color: white;
  line-height: 0;
  -webkit-transition: background-color 150ms ease-in-out;
  transition: background-color 150ms ease-in-out;
}

.thc-carousel-left-handle {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.thc-carousel-right-handle {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.thc-carousel-handle:hover {
  background-color: rgba(103, 150, 62, 0.75) !important;
}

.thc-carousel-text {
  -webkit-transition: -webkit-transform 150ms ease-in-out;
  transition: -webkit-transform 150ms ease-in-out;
  transition: transform 150ms ease-in-out;
  transition: transform 150ms ease-in-out, -webkit-transform 150ms ease-in-out;
}

.thc-carousel-handle:hover .thc-carousel-text {
  -webkit-transform: scale(1.2);
          transform: scale(1.2);
}

.thc-carousel-header {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: justify;
      -ms-flex-pack: justify;
          justify-content: space-between;
  padding: 0.5rem calc(var(--img-gap) * 2 + var(--handle-size));
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
}

.thc-carousel-wrapper, .thc-carousel-wrapper-page-template {
  --carousel-aspect-ratio: 16/9;
  --items-per-screen: var(--items-desktop);
}

.thc-carousel-wrapper-page-template {
  /* Responsive design for carousel */
  /* Default height for larger screens */
}

@media (max-width: 767px) {
  .thc-carousel-wrapper-page-template {
    /* Calculate height from the actual aspect ratio; JS writes px fallback into --carousel-calculated-height */
    --carousel-calculated-height: calc((100vw / (var(--carousel-aspect-ratio))) - var(--carousel-vertical-offset));
    height: var(--carousel-calculated-height);
    max-width: 100%;
  }
}

@media (min-width: 768px) {
  .thc-carousel-wrapper-page-template {
    --carousel-calculated-height: auto;
    height: auto;
  }
}

@media (max-width: 767px) {
  .thc-carousel-wrapper-page-template .thc-carousel-row,
  .thc-carousel-wrapper-page-template .thc-carousel-container {
    height: var(--carousel-calculated-height);
    max-width: 100%;
  }
}

.thc-carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  -webkit-box-pack: end;
      -ms-flex-pack: end;
          justify-content: flex-end;
  padding: 1rem;
  pointer-events: none;
}

.thc-carousel-bottom-container {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
      -ms-flex-direction: column;
          flex-direction: column;
  gap: 0.5rem;
  -webkit-box-align: start;
      -ms-flex-align: start;
          align-items: flex-start;
}

.thc-carousel-title {
  position: absolute;
  margin: 0;
  left: 50%;
  top: 85%;
  /* background-color: rgba(200, 200, 200, 0.75); */
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  color: white;
  /* color: #303030; */
  text-align: center;
  font-size: 1.2rem;
  font-weight: bold;
  padding: 0.5rem;
  width: 100%;
  text-shadow: 4px 4px 8px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

.thc-carousel-category {
  background-color: #1e1e1e;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  z-index: 1;
}

.thc-carousel-disruptor-green {
  background-color: #67963e;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  z-index: 1;
}

.thc-carousel-disruptor-red {
  background-color: #c3213a;
  color: white;
  padding: 0.2rem 0.8rem;
  border-radius: 0.25rem;
  font-size: 0.9rem;
  z-index: 1;
}

.thc-carousel-img-container {
  position: relative;
}

.thc-carousel-progress-bar {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 6px;
  background: rgba(0, 0, 0, 0.15);
  border-radius: 0 0 6px 6px;
  overflow: hidden;
  z-index: 2;
}

.thc-carousel-progress-bar-inner {
  height: 100%;
  background: var(--color-green-dark);
  -webkit-transition: width 0.3s;
  transition: width 0.3s;
}

.thc-carousel-category-card {
  width: 100%;
  max-width: 100%;
  position: relative;
  overflow: hidden;
  border-radius: 0.25rem;
  aspect-ratio: var(--carousel-aspect-ratio);
  background-color: transparent;
}

.thc-carousel-category-card img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.thc-inline-category .thc-carousel-row {
  -webkit-box-orient: horizontal;
  -webkit-box-direction: normal;
      -ms-flex-direction: row;
          flex-direction: row;
  gap: calc(var(--img-gap) * 2);
}

.thc-inline-category .thc-carousel-category-card {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(var(--category-width-percent, (var(--category-slots) / var(--items-per-screen)) * 100%) - var(--handle-size));
          flex: 0 0 calc(var(--category-width-percent, (var(--category-slots) / var(--items-per-screen)) * 100%) - var(--handle-size));
  max-width: calc(var(--category-width-percent, (var(--category-slots) / var(--items-per-screen)) * 100%) - var(--handle-size));
  min-width: calc(var(--category-width-percent, (var(--category-slots) / var(--items-per-screen)) * 100%) - var(--handle-size));
  min-height: 0;
  margin: var(--img-gap);
  margin-left: calc(var(--handle-size) + var(--img-gap)) !important;
  /* Keep full height but preserve native aspect ratio inside */
}

.thc-inline-category .thc-carousel-category-card img {
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
  display: block;
}

.thc-inline-category .thc-carousel-container {
  -webkit-box-flex: 1;
      -ms-flex: 1 1 0px;
          flex: 1 1 0;
  min-width: 0;
}

.thc-inline-category .thc-carousel-slider {
  margin-left: 0;
  margin-right: 0;
}

.thc-stacked-category .thc-carousel-category-card {
  margin: 0;
}

@media (min-width: 1024px) {
  .thc-has-category-image:not(.thc-stacked-category) .thc-carousel-row {
    -webkit-box-orient: horizontal;
    -webkit-box-direction: normal;
        -ms-flex-direction: row;
            flex-direction: row;
    gap: calc(var(--img-gap) * 2);
  }
  .thc-has-category-image:not(.thc-stacked-category) .thc-carousel-category-card {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc((2 / var(--items-per-screen)) * 100%);
            flex: 0 0 calc((2 / var(--items-per-screen)) * 100%);
    max-width: calc((2 / var(--items-per-screen)) * 100%);
    margin: var(--img-gap);
  }
  .thc-has-category-image:not(.thc-stacked-category) .thc-carousel-container {
    -webkit-box-flex: 1;
        -ms-flex: 1 1 0px;
            flex: 1 1 0;
    min-width: 0;
  }
  .thc-has-category-image:not(.thc-stacked-category) .thc-carousel-slider {
    margin-left: 0;
    margin-right: 0;
    --items-per-row: calc(var(--items-per-screen) - 2);
  }
}

/* Mirror items-per-screen onto the wrapper so category card width can use it */
@media (min-width: 1921px) {
  .thc-carousel-wrapper, .thc-carousel-wrapper-page-template {
    --items-per-screen: var(--items-widescreen);
  }
}

@media (max-width: 1920px) {
  .thc-carousel-wrapper, .thc-carousel-wrapper-page-template {
    --items-per-screen: var(--items-desktop);
  }
}

@media (max-width: 1366px) {
  .thc-carousel-wrapper, .thc-carousel-wrapper-page-template {
    --items-per-screen: var(--items-laptop);
  }
}

@media (max-width: 1024px) {
  .thc-carousel-wrapper, .thc-carousel-wrapper-page-template {
    --items-per-screen: var(--items-tablet-landscape);
  }
}

@media (max-width: 768px) {
  .thc-carousel-wrapper, .thc-carousel-wrapper-page-template {
    --items-per-screen: var(--items-tablet);
  }
}

@media (max-width: 480px) {
  .thc-carousel-wrapper, .thc-carousel-wrapper-page-template {
    --items-per-screen: var(--items-mobile);
  }
}

/* Force landscape aspect for inline category layout */
.thc-inline-category .thc-carousel-category-card,
.thc-inline-category .thc-carousel-img-container {
  aspect-ratio: 16 / 9;
}
/*# sourceMappingURL=carousel.css.map */