/* Hi-Res Homes — Portfolio Videos: vertical reel phone carousel + landscape grid.
   Preview/box injection only. Matches the homepage VRBO service-card phone frame. */

.hrg-videos-featured > .hrg-subtitle { margin-bottom: 0; }

.hrg-reels-carousel {
  position: relative;
  margin: 1.35rem 0 2.25rem;
  outline: none;
}
.hrg-reels-stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 28.5rem;
  max-width: 100%;
  overflow: hidden;
  background: var(--hrg-sand);
  border-radius: 1.75rem;
  box-shadow: 0 18px 40px rgba(29, 47, 85, 0.1);
}
@media (min-width: 768px) {
  .hrg-reels-stage { height: 34rem; }
}
@media (min-width: 1024px) {
  .hrg-reels-stage { height: 36.5rem; }
}

.hrg-reels-track {
  position: relative;
  width: 100%;
  height: 100%;
  touch-action: pan-y;
}

.hrg-reel-slide {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  width: auto;
  height: 72%;
  transform: translate(-50%, -50%) translateX(calc(var(--off, 0) * 9.4rem)) scale(calc(1 - min(2, abs(var(--off, 0))) * 0.22));
  opacity: 0;
  pointer-events: none;
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.45s ease, filter 0.45s ease;
  will-change: transform, opacity;
}
@media (min-width: 768px) {
  .hrg-reel-slide {
    height: 78%;
    transform: translate(-50%, -50%) translateX(calc(var(--off, 0) * 11.6rem)) scale(calc(1 - min(2, abs(var(--off, 0))) * 0.2));
  }
}
.hrg-reel-slide.is-near {
  opacity: 0.42;
  filter: saturate(0.75) brightness(0.86);
  pointer-events: auto;
  z-index: 2;
  cursor: pointer;
}
.hrg-reel-slide.is-far {
  opacity: 0.2;
  filter: saturate(0.55) brightness(0.78);
  pointer-events: none;
  z-index: 1;
}
.hrg-reel-slide.is-active {
  opacity: 1;
  filter: none;
  pointer-events: auto;
  z-index: 4;
  height: 84%;
}
@media (min-width: 768px) {
  .hrg-reel-slide.is-active { height: 86%; }
}

/* Side previews are simple rounded screens; the center gets the full phone chrome. */
.hrg-reel-thumb {
  display: block;
  width: auto;
  height: 100%;
  aspect-ratio: 9 / 16;
  overflow: hidden;
  border-radius: 1.15rem;
  background: #111;
  box-shadow: 0 10px 22px -14px rgba(29, 47, 85, 0.55);
}
.hrg-reel-thumb img,
.hrg-reel-thumb video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Homepage VRBO PhoneFrame, translated from Tailwind */
.hrg-phone {
  position: relative;
  height: 100%;
  aspect-ratio: 9 / 16;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transform-origin: center bottom;
}
.hrg-reel-slide.is-active .hrg-phone.is-hovered {
  transform: translateY(-0.45rem) scale(1.035);
}
.hrg-phone-btn {
  position: absolute;
  z-index: 3;
  background: #000;
}
.hrg-phone-btn-l1 {
  top: 18%;
  left: -2.6%;
  height: 7%;
  width: 2.6%;
  border-radius: 2px 0 0 2px;
}
.hrg-phone-btn-l2 {
  top: 28%;
  left: -2.6%;
  height: 11%;
  width: 2.6%;
  border-radius: 2px 0 0 2px;
}
.hrg-phone-btn-r {
  top: 22%;
  right: -2.6%;
  height: 14%;
  width: 2.6%;
  border-radius: 0 2px 2px 0;
}
.hrg-phone-body {
  height: 100%;
  width: 100%;
  border-radius: 2.4rem;
  background: #000;
  padding: 2.75%;
  box-shadow: 0 18px 28px -16px rgba(29, 47, 85, 0.75);
}
.hrg-phone-screen {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
  border-radius: 2rem;
  background: #000;
}
.hrg-phone-screen img,
.hrg-phone-screen video {
  /* Overlay the poster; without this the video sat in flow under the img
     and was clipped, so hover play() ran but nothing visible changed. */
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hrg-phone-screen video {
  z-index: 1;
}
.hrg-phone-notch {
  pointer-events: none;
  position: absolute;
  top: 2.4%;
  left: 50%;
  height: 3.4%;
  width: 28%;
  transform: translateX(-50%);
  border-radius: 999px;
  background: #000;
  z-index: 2;
}

.hrg-reel-caption[hidden], .hrg-reel-caption:empty { display: none; }
.hrg-reel-caption {
  position: absolute;
  left: 50%;
  bottom: 0.85rem;
  transform: translateX(-50%);
  z-index: 5;
  margin: 0;
  padding: 0.2rem 0.7rem;
  font-family: Figtree, ui-sans-serif, system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--hrg-tide);
  background: color-mix(in srgb, var(--hrg-sand) 88%, transparent);
  border-radius: 999px;
  pointer-events: none;
  white-space: nowrap;
}

.hrg-reels-arrow {
  position: absolute;
  top: 50%;
  z-index: 6;
  width: 2.6rem;
  height: 2.6rem;
  margin-top: -1.3rem;
  border: 0;
  border-radius: 999px;
  background: var(--hrg-ivory);
  color: var(--hrg-tide-deep);
  box-shadow: 0 8px 22px rgba(29, 47, 85, 0.18);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hrg-reels-arrow:hover,
.hrg-reels-arrow:focus-visible {
  background: var(--hrg-tide);
  color: #fff;
  outline: none;
}
.hrg-reels-arrow:focus-visible {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--hrg-tide) 40%, transparent);
}
.hrg-reels-prev { left: 0.55rem; }
.hrg-reels-next { right: 0.55rem; }
@media (min-width: 768px) {
  .hrg-reels-prev { left: 0.9rem; }
  .hrg-reels-next { right: 0.9rem; }
}
.hrg-reels-arrow svg {
  width: 1.05rem;
  height: 1.05rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hrg-reels-dots {
  display: flex;
  justify-content: center;
  gap: 0.45rem;
  margin-top: 0.9rem;
}
.hrg-reels-dot {
  width: 0.5rem;
  height: 0.5rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: color-mix(in srgb, var(--hrg-tide) 28%, var(--hrg-line));
  cursor: pointer;
}
.hrg-reels-dot[aria-current="true"] {
  width: 1.25rem;
  background: var(--hrg-tide);
}
.hrg-reels-dot:focus-visible {
  outline: 2px solid var(--hrg-tide);
  outline-offset: 2px;
}

/* Dark mode: keep the phone black; videos and photos un-recolored. */
html[data-theme="dark"] .hrg-reels-stage {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .hrg-phone-body {
  box-shadow: 0 18px 28px -12px rgba(0, 0, 0, 0.7);
}
html[data-theme="dark"] .hrg-reels-arrow {
  background: #1a2333;
  color: #f4f1ea;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .hrg-reels-arrow:hover,
html[data-theme="dark"] .hrg-reels-arrow:focus-visible {
  background: var(--hrg-tide);
  color: #121821;
}
html[data-theme="dark"] .hrg-reel-slide.is-near,
html[data-theme="dark"] .hrg-reel-slide.is-far {
  filter: saturate(0.7) brightness(0.7);
}

@media (prefers-reduced-motion: reduce) {
  .hrg-reel-slide,
  .hrg-phone,
  .hrg-reels-dot {
    transition: none !important;
  }
  .hrg-reel-slide.is-active .hrg-phone.is-hovered {
    transform: none;
  }
}
