/* Timeless Heritage — mobile image ratio and carousel text fit fix */

/* Keep the homepage hero artwork at the same 4:5 ratio on every screen. */
@media (max-width: 720px) {
  .hero-image {
    aspect-ratio: 4 / 5 !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .hero-image img {
    object-fit: contain !important;
  }
}

@media (max-width: 700px) {
  .thh-carousel {
    aspect-ratio: 1 / 1 !important;
    height: auto !important;
  }
}

  /* Images supplied at 5:4 fill the frame without being cut off. */
  .thh-slide img {
    object-fit: cover !important;
    object-position: center center !important;
  }

  /* Fit the copy comfortably inside the image. */
  .thh-copy {
    left: 16px !important;
    right: 16px !important;
    top: auto !important;
    bottom: 56px !important;
    transform: none !important;
    width: auto !important;
    max-width: none !important;
  }

  .thh-kicker {
    margin: 0 0 6px !important;
    font-size: 0.56rem !important;
    line-height: 1.25 !important;
    letter-spacing: 0.13em !important;
  }

  .thh-title {
    margin: 0 0 7px !important;
    font-size: clamp(1.28rem, 6.1vw, 1.75rem) !important;
    line-height: 1.04 !important;
    letter-spacing: -0.025em !important;
  }

  .thh-description {
    margin: 0 0 6px !important;
    font-size: 0.72rem !important;
    line-height: 1.32 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }

  .thh-route {
    font-size: 0.57rem !important;
    line-height: 1.28 !important;
    display: -webkit-box !important;
    -webkit-box-orient: vertical !important;
    -webkit-line-clamp: 2 !important;
    overflow: hidden !important;
  }

  .thh-cta {
    margin-top: 9px !important;
    padding: 9px 11px !important;
    font-size: 0.57rem !important;
    line-height: 1.1 !important;
    gap: 8px !important;
  }

  .thh-controls {
    bottom: 5px !important;
    gap: 6px !important;
    padding: 4px 6px !important;
  }

  .thh-control {
    width: 25px !important;
    height: 25px !important;
    font-size: 14px !important;
  }

  .thh-dot {
    width: 6px !important;
    height: 6px !important;
  }

  .thh-dot.is-active {
    width: 16px !important;
  }
/* Timeless Heritage — mobile homepage story section fix */

@media (max-width: 720px) {

  html,
  body {
    max-width: 100%;
    overflow-x: hidden;
  }

  .story-strip {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    width: 100%;
    max-width: 100%;
    gap: 24px;
    min-width: 0;
  }

  .story-strip > div {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    grid-column: auto !important;
  }

  .story-strip .image-frame,
  .story-strip .image-frame.wide {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    aspect-ratio: 16 / 10;
    min-height: 0;
  }

  .story-strip .image-frame img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .story-caption {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
    font-size: 0.68rem;
    letter-spacing: 0.10em;
    line-height: 1.5;
  }
}
/* Mobile slider: smaller text and softer gradient */
@media (max-width: 700px) {
  .thh-slide h2 {
    font-size: 21px !important;
    line-height: 1.12 !important;
  }

  .thh-slide p {
    font-size: 12px !important;
    line-height: 1.4 !important;
  }

  .thh-slide .eyebrow,
  .thh-slide .slide-eyebrow {
    font-size: 9px !important;
  }

  .thh-slide .btn {
    font-size: 10px !important;
    padding: 9px 13px !important;
  }

  .thh-slide::after {
    background: linear-gradient(
      to top,
      rgba(20, 12, 6, 0.78) 0%,
      rgba(20, 12, 6, 0.35) 30%,
      transparent 65%
    ) !important;
  }
}
/* Desktop and laptop: align slider with the other homepage sections */
@media (min-width: 701px) {
  .thh-featured-inner {
    width: calc(100% - 48px) !important;
    max-width: 1320px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .thh-carousel {
    width: 100% !important;
  }

  /* Diagonal fade rising from the bottom-left */
  .thh-slide::after {
    background: linear-gradient(
      35deg,
      rgba(20, 12, 6, 0.88) 0%,
      rgba(20, 12, 6, 0.62) 28%,
      rgba(20, 12, 6, 0.22) 52%,
      transparent 75%
    ) !important;
  }
}
