/* SR Wealth - Client Video Stories
   Colours: change these 3 values if the theme teal/grey differ slightly. */
.client-videos-section {
  --srv-accent: #00666e;      /* teal (same family as your buttons/header) */
  --srv-text-muted: #667085;
  --srv-radius: 14px;
}

.client-videos-section .srv-sub {
  max-width: 640px;
  margin: 12px auto 0;
  color: var(--srv-text-muted);
}

/* ---------- Cards: always the same 16:9 thumbnail, whatever the video shape ---------- */
.srv-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;        /* 1, 2 or a lonely 4th card stay centred */
  gap: 28px 24px;
}
.srv-card { flex: 0 1 calc((100% - 48px) / 3); min-width: 0; }

.srv-thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  padding: 0;
  border: 0;
  border-radius: var(--srv-radius);
  overflow: hidden;
  background: #0b2f33;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 40, 45, .14);
  transition: transform .25s ease, box-shadow .25s ease;
}
.srv-thumb:hover { transform: translateY(-3px); box-shadow: 0 12px 28px rgba(0, 40, 45, .22); }
.srv-thumb:focus-visible { outline: 3px solid var(--srv-accent); outline-offset: 3px; }

.srv-thumb__img {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;              /* landscape videos fill the card */
  display: block;
}
/* Vertical / square videos: whole picture shown in the middle, soft blurred copy behind it */
.srv-thumb__bg {
  position: absolute; inset: -20px;
  background-size: cover; background-position: center;
  filter: blur(18px) brightness(.75);
}
.srv-thumb[data-shape="portrait"] .srv-thumb__img,
.srv-thumb[data-shape="square"] .srv-thumb__img { object-fit: contain; }

/* subtle dark fade at the bottom so the play button + time are always readable */
.srv-thumb::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 38%;
  background: linear-gradient(to top, rgba(0, 0, 0, .55), rgba(0, 0, 0, 0));
  pointer-events: none;
}
/* play button sits bottom-left so the client's face stays visible */
.srv-play {
  position: absolute; left: 14px; bottom: 14px; z-index: 1;
  width: 50px; height: 50px;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, .35);
  border: 2px solid #fff;
  border-radius: 50%;
  padding-left: 3px;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}
.srv-thumb:hover .srv-play { transform: scale(1.1); background: var(--srv-accent); border-color: var(--srv-accent); }

.srv-duration {
  position: absolute; right: 12px; bottom: 16px; z-index: 1;
  padding: 3px 9px;
  font-size: 13px; line-height: 1.4; font-weight: 600; color: #fff;
  background: rgba(0, 0, 0, .75);
  border-radius: 7px;
}

.srv-title { margin: 16px 0 4px; font-size: 19px; line-height: 1.35; }
.srv-meta { margin: 0; font-size: 14px; color: var(--srv-text-muted); }

.srv-note { margin: 36px 0 0; padding-top: 22px; border-top: 1px solid #e4e7ec; font-size: 14px; color: var(--srv-text-muted); }
.srv-actions { margin-top: 20px; display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 26px; }
.srv-more { font-weight: 600; color: var(--srv-accent); border-bottom: 1px solid currentColor; text-decoration: none; }
.srv-more:hover { opacity: .8; }

/* ---------- Popup player ---------- */
.srv-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: center; justify-content: center; }
.srv-modal[hidden] { display: none; }
.srv-modal__backdrop { position: absolute; inset: 0; background: rgba(4, 20, 22, .82); }
.srv-modal__dialog { position: relative; width: min(92vw, 960px); aspect-ratio: 16 / 9; background: #000; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.srv-modal__dialog[data-shape="portrait"] { width: min(92vw, calc(86vh * 9 / 16), 440px); aspect-ratio: 9 / 16; }
.srv-modal__dialog[data-shape="square"]   { width: min(92vw, 86vh, 720px); aspect-ratio: 1 / 1; }
.srv-modal__frame { position: absolute; inset: 0; border-radius: 12px; overflow: hidden; }
.srv-modal__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.srv-modal__close {
  position: absolute; top: -46px; right: 0;
  width: 38px; height: 38px; padding: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; background: rgba(255, 255, 255, .16);
  border: 0; border-radius: 50%; cursor: pointer;
}
.srv-modal__close:hover { background: rgba(255, 255, 255, .3); }
html.srv-lock, html.srv-lock body { overflow: hidden; }

/* ---------- Tablet / mobile ---------- */
@media (max-width: 991px) {
  .srv-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  .srv-card { flex-basis: 100%; }
  .srv-title { font-size: 18px; }
  .srv-modal__close { top: 8px; right: 8px; background: rgba(0, 0, 0, .55); z-index: 2; }
}
@media (prefers-reduced-motion: reduce) {
  .srv-thumb, .srv-play { transition: none; }
  .srv-thumb:hover { transform: none; }
}

/* ---------- "Client Stories" page (all videos) ---------- */
.srv-page-banner {
  position: relative;
  padding: 210px 0 80px;           /* top space = the site header that sits over the banner */
  background-color: #00545b;
  background-size: cover;
  background-position: center;
  color: #fff;
}
.srv-page-banner::before { content: ""; position: absolute; inset: 0; background: rgba(0, 40, 45, .62); }
.srv-page-banner .container { position: relative; }
.srv-page-banner { text-align: center; }
.srv-page-banner h1 { margin: 0; color: #fff; font-size: 48px; line-height: 1.15; }
.srv-empty { text-align: center; color: var(--srv-text-muted, #667085); padding: 30px 0; }
@media (max-width: 767px) {
  .srv-page-banner { padding: 150px 0 50px; }
  .srv-page-banner h1 { font-size: 32px; }
}
