.gpi-property-videos {
  margin: 26px 0;
  padding: 22px;
  border: 1px solid #e2e8ed;
  border-radius: 14px;
  background: #fff;
}
.gpi-property-videos h2 {
  margin: 0 0 16px;
  font: 600 1.2rem/1.4 system-ui, sans-serif;
}
.gpi-public-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  align-items: start;
  gap: 18px;
}
.gpi-public-video-grid figure { margin: 0; min-width: 0; }
.gpi-public-video-frame {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  background: transparent;
}
.gpi-public-video-grid .gpi-ad-video {
  --gpi-video-max-height: min(70vh, 640px);
  display: block;
  width: min(100%, calc(var(--gpi-video-max-height) * var(--gpi-video-ratio, 1.777778)));
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--gpi-video-ratio, auto);
  object-fit: contain;
  background: transparent;
  border-radius: 10px;
}
@supports (height: 1svh) {
  .gpi-public-video-grid .gpi-ad-video { --gpi-video-max-height: min(70svh, 640px); }
}
.gpi-public-video-card figcaption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 4px 14px;
  margin-top: 10px;
  font: 500 .875rem/1.5 system-ui, sans-serif;
  color: #334155;
}
.gpi-public-video-card figcaption a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #12658b;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gpi-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.gpi-public-video-grid .gpi-ad-video:fullscreen {
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  border-radius: 0;
  background: #000;
}
.mobile-toggle { background: transparent; border: 0; min-width: 44px; min-height: 44px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, video:focus-visible {
  outline: 3px solid #167eae;
  outline-offset: 3px;
}
.filter-btn { min-height: 44px; }
.gpi-short-error {
  position: absolute;
  inset: auto 12px 50px;
  color: #fff;
  background: #172e36e8;
  padding: 10px;
  border-radius: 8px;
  font: 14px/1.4 system-ui;
}
.short-video-element { cursor: pointer; }
/* Home videos use their own proportions; descriptions and controls stay outside the frame. */
.videos-section {
  position: relative;
  padding: 70px 0;
  background: var(--bg-videos, #f8fafc);
  color: var(--text-videos, #444);
}
.video-carousel-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px;
  margin: 0 auto;
  padding-bottom: 66px;
}
.video-coverflow-container { width: 100%; min-width: 0; }
.video-carousel-wrapper .video-card {
  --gpi-home-video-height: min(58vh, 520px);
  width: min(100%, max(260px, calc(var(--gpi-home-video-height) * var(--gpi-video-ratio, 1.777778))));
  height: auto;
  margin: 0 auto;
  border: 1px solid #dce4eb;
  border-radius: var(--radius-card, 18px);
  overflow: hidden;
  background: var(--gpi-site-card-bg, #fff);
  color: var(--gpi-site-card-ink, #17212b);
  box-shadow: var(--shadow-card, 0 12px 36px #17212b14);
}
.video-carousel-wrapper .video-card:not(.active) { display: none; }
.video-card-inner { width: 100%; height: auto; }
.gpi-home-video-frame { position: relative; display: flex; justify-content: center; }
.video-carousel-wrapper .short-video-element {
  display: block;
  width: min(100%, calc(var(--gpi-home-video-height) * var(--gpi-video-ratio, 1.777778)));
  max-width: 100%;
  height: auto;
  aspect-ratio: var(--gpi-video-ratio, auto);
  object-fit: contain;
  background: transparent;
}
@supports (height: 1svh) {
  .video-carousel-wrapper .video-card { --gpi-home-video-height: min(58svh, 520px); }
}
.video-center-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}
.play-icon-circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fffffff2;
  color: var(--primary, #167eae);
  font-size: 1.5rem;
  box-shadow: 0 4px 20px #17212b30;
}
.video-card.playing .video-center-play-overlay { opacity: 0; pointer-events: none; }
.video-top-overlay {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 16px 0;
}
.video-badge { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 600; }
.video-bottom-overlay { display: flex; flex-direction: column; gap: 12px; padding: 8px 16px 16px; }
.video-title { margin: 0; font-size: 1rem; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.video-desc { margin: 5px 0 0; font-size: .875rem; line-height: 1.5; opacity: .8; overflow-wrap: anywhere; }
.video-timeline-container { display: flex; flex-direction: column; gap: 3px; }
.video-progress-bar { width: 100%; min-width: 0; margin: 0; accent-color: var(--primary, #167eae); cursor: pointer; }
.video-time-display { font: .75rem/1.5 ui-monospace, monospace; text-align: right; opacity: .8; }
.video-controls-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.volume-control-wrapper { display: flex; align-items: center; gap: 8px; min-width: 0; }
.video-volume-slider { width: 76px; max-width: 100%; margin: 0; accent-color: var(--primary, #167eae); }
.video-carousel-wrapper :is(.vctrl-btn, .btn-fullscreen-toggle, .video-nav-btn) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border: 1px solid #dce4eb;
  border-radius: var(--gpi-site-button-radius, 12px);
  color: inherit;
  background: var(--gpi-site-card-bg, #fff);
  font-size: 1rem;
  cursor: pointer;
}
.video-carousel-wrapper :is(.vctrl-btn, .btn-fullscreen-toggle, .video-nav-btn):hover { box-shadow: 0 2px 10px #17212b20; }
.video-carousel-wrapper .video-nav-btn { position: absolute; bottom: 0; }
.video-carousel-wrapper .video-nav-btn.prev { left: calc(50% - 52px); }
.video-carousel-wrapper .video-nav-btn.next { right: calc(50% - 52px); }
.gpi-home-video-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 14px;
  border-radius: var(--gpi-site-button-radius, 12px);
  background: var(--gpi-site-primary, var(--primary, #167eae));
  color: var(--gpi-site-primary-ink, #fff);
  font-size: .875rem;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
  overflow-wrap: anywhere;
}
.video-carousel-wrapper .short-video-element:fullscreen {
  width: 100%;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  object-fit: contain;
  background: #000;
}
@media (prefers-reduced-motion: reduce) {
  .video-carousel-wrapper * { transition: none; }
}
@media (max-width: 600px) {
  .gpi-public-video-grid { grid-template-columns: 1fr; }
  .gpi-property-videos { padding: 16px; }
  .videos-section { padding: 40px 0; }
}
