/* ============================================================
   IHE — Video Row (YouTube facade)
   Structural + brand only. No hidden initial states.
   ============================================================ */

.ihe-vrow {
  width: 100% !important;
  max-width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box;
  font-family: 'Montserrat', 'Gotham', Arial, sans-serif;
}

.ihe-vrow *,
.ihe-vrow *::before,
.ihe-vrow *::after { box-sizing: border-box; }

/* HubSpot default stylesheet overrides — mandatory */
.ihe-vrow h1,
.ihe-vrow h2,
.ihe-vrow h3,
.ihe-vrow p,
.ihe-vrow figure,
.ihe-vrow figcaption,
.ihe-vrow ul,
.ihe-vrow ol {
  margin: 0 !important;
  padding: 0 !important;
}

.ihe-vrow__inner {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto !important;
  padding-left: 24px !important;
  padding-right: 24px !important;
}

.ihe-vrow--pad-tight    { padding-top: 40px !important;  padding-bottom: 40px !important; }
.ihe-vrow--pad-standard { padding-top: 72px !important;  padding-bottom: 72px !important; }
.ihe-vrow--pad-roomy    { padding-top: 112px !important; padding-bottom: 112px !important; }

/* ---------- Colour schemes ---------- */
.ihe-vrow--bg-white    { background-color: #FFFFFF; }
.ihe-vrow--bg-offwhite { background-color: #EEEEEE; }
.ihe-vrow--bg-black    { background-color: #333132; }

.ihe-vrow--bg-white .ihe-vrow__headline-base,
.ihe-vrow--bg-offwhite .ihe-vrow__headline-base { color: #333132; }
.ihe-vrow--bg-black .ihe-vrow__headline-base    { color: #FFFFFF; }

.ihe-vrow__headline-accent { color: #EAAA00; }

.ihe-vrow--bg-white .ihe-vrow__intro,
.ihe-vrow--bg-offwhite .ihe-vrow__intro,
.ihe-vrow--bg-white .ihe-vrow__caption,
.ihe-vrow--bg-offwhite .ihe-vrow__caption { color: #333132; }

.ihe-vrow--bg-black .ihe-vrow__intro,
.ihe-vrow--bg-black .ihe-vrow__caption { color: #FFFFFF; }

/* ---------- Headline ---------- */
.ihe-vrow__headline {
  font-weight: 900;
  text-transform: uppercase;
  line-height: 0.95;
  font-size: 48px;
  letter-spacing: -0.01em;
  margin: 0 0 12px 0 !important;
}

.ihe-vrow__headline--center { text-align: center; }
.ihe-vrow__headline--left   { text-align: left; }

.ihe-vrow__headline-base,
.ihe-vrow__headline-accent { display: inline; }
.ihe-vrow__headline-base + .ihe-vrow__headline-accent { margin-left: 0.28em; }

/* ---------- Intro ---------- */
.ihe-vrow__intro {
  font-size: 15px;
  line-height: 1.6;
  max-width: 720px;
  margin: 0 0 36px 0 !important;
}

.ihe-vrow__intro--center { text-align: center; margin-left: auto !important; margin-right: auto !important; }
.ihe-vrow__intro--left   { text-align: left; }

.ihe-vrow__intro p { margin: 0 0 10px 0 !important; }
.ihe-vrow__intro p:last-child { margin-bottom: 0 !important; }

/* ---------- Grid ---------- */
.ihe-vrow__grid {
  display: grid;
  gap: 26px;
  margin-top: 36px !important;
  align-items: start;
}

.ihe-vrow__grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ihe-vrow__grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ihe-vrow__grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ihe-vrow__item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* ---------- 16:9 facade ---------- */
.ihe-vrow__frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background-color: #333132;
  background-size: cover;
  background-position: center;
  border-radius: 0;
  cursor: pointer;
}

/* aspect-ratio fallback for older browsers */
@supports not (aspect-ratio: 16 / 9) {
  .ihe-vrow__frame { height: 0; padding-bottom: 56.25% !important; }
}

.ihe-vrow__frame iframe {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  border: 0 !important;
  display: block;
}

.ihe-vrow__frame::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(51, 49, 50, 0.28);
  transition: background-color 0.3s ease;
  pointer-events: none;
}

.ihe-vrow__frame.is-playing::after { display: none; }

/* ---------- Play button ---------- */
.ihe-vrow__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 68px;
  height: 68px;
  padding: 0 !important;
  border: 0;
  border-radius: 50%;
  background-color: #EAAA00;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.25s ease, transform 0.25s ease;
}

.ihe-vrow__play-icon {
  display: block;
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 21px solid #333132;
}

.ihe-vrow__frame:hover .ihe-vrow__play {
  background-color: #CC8A00;
  transform: translate(-50%, -50%) scale(1.08);
}

.ihe-vrow__frame:hover::after { background: rgba(51, 49, 50, 0.14); }

.ihe-vrow__play:focus-visible {
  outline: 3px solid #FFFFFF;
  outline-offset: 3px;
}

/* ---------- Caption ---------- */
.ihe-vrow__caption {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  margin-top: 14px !important;
}

/* ============================================================
   RESPONSIVE — 1024px+ / 768px / 430px / 390px / 360px
   ============================================================ */

@media (min-width: 1024px) {
  .ihe-vrow__headline { font-size: 56px; }
  .ihe-vrow__inner { padding-left: 40px !important; padding-right: 40px !important; }
}

@media (max-width: 1023px) {
  .ihe-vrow__headline { font-size: 42px; }
  .ihe-vrow__grid--cols-3,
  .ihe-vrow__grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ihe-vrow--pad-roomy    { padding-top: 88px !important; padding-bottom: 88px !important; }
  .ihe-vrow--pad-standard { padding-top: 60px !important; padding-bottom: 60px !important; }
}

@media (max-width: 768px) {
  .ihe-vrow__inner { padding-left: 20px !important; padding-right: 20px !important; }
  .ihe-vrow__headline { font-size: 34px; }
  .ihe-vrow__intro { font-size: 14px; margin-bottom: 26px !important; }
  .ihe-vrow__grid { gap: 22px; margin-top: 28px !important; }
  .ihe-vrow--pad-roomy    { padding-top: 64px !important; padding-bottom: 64px !important; }
  .ihe-vrow--pad-standard { padding-top: 48px !important; padding-bottom: 48px !important; }
  .ihe-vrow--pad-tight    { padding-top: 32px !important; padding-bottom: 32px !important; }

  /* No hover on touch — lock to resting state, use :active instead */
  .ihe-vrow__frame:hover .ihe-vrow__play {
    background-color: #EAAA00;
    transform: translate(-50%, -50%);
  }
  .ihe-vrow__frame:hover::after { background: rgba(51, 49, 50, 0.28); }
  .ihe-vrow__play:active { background-color: #CC8A00; }
}

@media (max-width: 430px) {
  .ihe-vrow__inner { padding-left: 16px !important; padding-right: 16px !important; }
  .ihe-vrow__headline { font-size: 29px; }
  .ihe-vrow__grid--cols-2,
  .ihe-vrow__grid--cols-3,
  .ihe-vrow__grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
  .ihe-vrow__play { width: 60px; height: 60px; }
}

@media (max-width: 390px) {
  .ihe-vrow__headline { font-size: 26px; }
  .ihe-vrow__intro { font-size: 13.5px; }
  .ihe-vrow__caption { font-size: 13.5px; }
}

@media (max-width: 360px) {
  .ihe-vrow__inner { padding-left: 14px !important; padding-right: 14px !important; }
  .ihe-vrow__headline { font-size: 24px; }
  .ihe-vrow__play { width: 54px; height: 54px; }
  .ihe-vrow__play-icon {
    border-top-width: 11px;
    border-bottom-width: 11px;
    border-left-width: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ihe-vrow__play,
  .ihe-vrow__frame::after { transition: none; }
  .ihe-vrow__frame:hover .ihe-vrow__play { transform: translate(-50%, -50%); }
}
