/* ThisHouse Media widgets — uses the site's own variables from site.css */

/* Featured in */
.thm-featured { background: #fff; padding: 28px 0 32px; }
.thm-featured__label { margin: 0 0 18px; padding: 0 22px; font-family: var(--body, sans-serif); font-size: var(--step--1, .875rem); letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #5E6670); }
.thm-marquee { display: flex; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent); }
.thm-marquee__track { flex: none; display: flex; align-items: center; gap: 56px; margin: 0; padding: 0 28px; list-style: none; animation: thm-scroll 32s linear infinite; }
.thm-marquee:hover .thm-marquee__track { animation-play-state: paused; }
.thm-marquee__track img { display: block; height: 44px; width: auto; max-width: 150px; object-fit: contain; }
@keyframes thm-scroll { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .thm-marquee { flex-wrap: wrap; -webkit-mask-image: none; mask-image: none; }
  .thm-marquee__track { animation: none; flex-wrap: wrap; justify-content: center; row-gap: 24px; }
  .thm-marquee__track[aria-hidden] { display: none; }
}

/* Reviews */
.thm-reviews { position: relative; }
.thm-reviews__track { display: flex; align-items: flex-start; gap: 20px; margin: 0; padding: 4px 2px 8px; list-style: none; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.thm-reviews__track::-webkit-scrollbar { display: none; }
.thm-review { flex: 0 0 calc((100% - 40px) / 3); scroll-snap-align: start; display: flex; flex-direction: column; }
.thm-review__bubble { position: relative; background: var(--wash, #F0EFEB); padding: 20px 20px 22px; margin-bottom: 18px; }
.thm-review__bubble::after { content: ""; position: absolute; left: 22px; bottom: -10px; border: 10px solid transparent; border-bottom: 0; border-top-color: var(--wash, #F0EFEB); }
.thm-review__stars { display: flex; gap: 2px; margin-bottom: 12px; }
.thm-review__stars svg { width: 16px; height: 16px; fill: var(--dusk, #A8712B); }
.thm-review__title { margin: 0 0 6px; font-weight: 600; }
.thm-review__text { margin: 0; font-size: .95rem; line-height: 1.55; color: var(--ink, #1B2129); }
.thm-review__text.is-clamped { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.thm-review__more { margin-top: 6px; padding: 0; border: 0; background: none; font: inherit; font-size: var(--step--1, .875rem); color: var(--dusk, #A8712B); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.thm-review__photo { margin-top: 16px; aspect-ratio: 1 / 1; overflow: hidden; }
.thm-review__photo img { display: block; width: 100%; height: 100%; object-fit: cover; }
.thm-review__who { display: flex; align-items: center; gap: 12px; padding-left: 6px; }
.thm-review__who strong { display: block; font-size: .95rem; font-weight: 600; }
.thm-review__who small { display: block; color: var(--muted, #5E6670); font-size: var(--step--1, .875rem); }
.thm-review__avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.thm-review__avatar--initials { display: grid; place-items: center; background: var(--ink, #1B2129); color: #fff; font-size: .8rem; letter-spacing: .05em; }
.thm-reviews__nav { position: absolute; top: 40%; z-index: 2; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line, #E3E1DC); background: var(--paper, #FAFAF8); color: var(--ink, #1B2129); font-size: 24px; line-height: 1; cursor: pointer; box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.thm-reviews__nav:hover { background: #fff; }
.thm-reviews__nav--prev { left: -20px; }
.thm-reviews__nav--next { right: -20px; }
@media (max-width: 900px) { .thm-review { flex-basis: calc((100% - 20px) / 2); } }
@media (max-width: 600px) {
  .thm-review { flex-basis: 86%; }
  .thm-reviews__nav { display: none; }
}

/* Client logos */
.thm-clients { display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px 32px; align-items: center; margin: 0; padding: 0; list-style: none; }
.thm-clients img { display: block; width: 100%; max-width: 140px; height: 64px; margin: 0 auto; object-fit: contain; }
@media (max-width: 900px) { .thm-clients { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .thm-clients { grid-template-columns: repeat(3, 1fr); gap: 28px 20px; } .thm-clients img { height: 52px; } }

/* Press gallery */
.thm-press { background: var(--wash, #F0EFEB); padding: 20px; }
.thm-press__grid { columns: 3 260px; column-gap: 14px; margin: 0; padding: 0; list-style: none; }
.thm-press__grid li { break-inside: avoid; margin-bottom: 14px; }
.thm-press__grid button { position: relative; display: block; width: 100%; padding: 0; border: 0; background: #fff; cursor: zoom-in; }
.thm-press__grid img { display: block; width: 100%; height: auto; transition: opacity .2s; }
.thm-press__grid button:hover img { opacity: .88; }
.thm-press__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px; background: linear-gradient(transparent, rgba(27,33,41,.78)); color: #fff; font-size: var(--step--1, .875rem); text-align: left; opacity: 0; transition: opacity .2s; }
.thm-press__grid button:hover .thm-press__cap, .thm-press__grid button:focus-visible .thm-press__cap { opacity: 1; }
.thm-press__more { margin: 10px 0 0; text-align: center; }
.thm-lightbox { position: fixed; inset: 0; z-index: 1000; display: none; align-items: center; justify-content: center; background: rgba(20,24,30,.94); padding: 56px 64px; }
.thm-lightbox.is-open { display: flex; }
.thm-lightbox figure { margin: 0; max-width: 100%; max-height: 100%; display: flex; flex-direction: column; align-items: center; }
.thm-lightbox img { max-width: 100%; max-height: calc(100vh - 150px); object-fit: contain; background: #fff; }
.thm-lightbox figcaption { margin-top: 14px; color: #fff; font-size: .95rem; text-align: center; }
.thm-lightbox button { position: absolute; border: 0; background: none; color: #fff; cursor: pointer; line-height: 1; }
.thm-lightbox__close { top: 14px; right: 20px; font-size: 40px; }
.thm-lightbox__nav { top: 50%; transform: translateY(-50%); font-size: 56px; padding: 10px; }
.thm-lightbox__nav--prev { left: 10px; }
.thm-lightbox__nav--next { right: 10px; }
@media (max-width: 600px) { .thm-lightbox { padding: 56px 8px; } .thm-lightbox__nav { display: none; } }
