/* ===========================================================
   Medicross — partner gallery: carousel + fullscreen lightbox
   Used on the hospital/clinic pages (assets/gallery.js).
   =========================================================== */
/* ---- readable body copy on the partner pages ----
   These pages had no .prose typography at all, so paragraphs ran together. */
.prose {
  font-size: 16.5px;
  line-height: 1.8;
  color: #453e35;
}
.prose > p { margin: 0 0 20px; }
.prose > p:last-child { margin-bottom: 0; }
.prose > h2 {
  font-family: 'Newsreader', Georgia, serif;
  font-weight: 600;
  font-size: clamp(23px, 2.4vw, 30px);
  line-height: 1.25;
  color: var(--navy, #211E1A);
  margin: 44px 0 16px;
}
.prose > h2:first-child { margin-top: 0; }
/* the first paragraph reads as a short intro */
.prose > p.intro {
  font-size: 18px;
  line-height: 1.75;
  color: var(--navy, #211E1A);
}
.prose ul.ticks {
  list-style: none; padding: 0; margin: 0 0 22px;
  display: grid; gap: 12px;
}
.prose ul.ticks li {
  position: relative; padding-left: 32px; line-height: 1.7;
}
.prose ul.ticks li::before {
  content: ""; position: absolute; left: 0; top: .45em;
  width: 19px; height: 19px; border-radius: 50%;
  background: color-mix(in srgb, var(--red, #D42B2B) 12%, #fff)
    url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D42B2B' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 12.75l6 6 9-13.5'/%3E%3C/svg%3E") center / 11px no-repeat;
}
/* keep a comfortable measure once the float is gone */
@media (max-width: 900px) {
  .prose { font-size: 16px; }
  .prose > h2 { margin-top: 34px; }
}

/* ---- presentation video floated into the top-right of the copy ---- */
.prose-video {
  float: right;
  width: min(46%, 520px);
  margin: 2px 0 24px 32px;
}
.prose-video .video-wrap { margin: 0; }
.prose-video figcaption {
  margin-top: 9px; font-size: 12.5px; font-weight: 600;
  color: var(--muted, #6B655C); line-height: 1.5;
}
/* the copy must not run under the float */
.prose::after { content: ""; display: block; clear: both; }

@media (max-width: 900px) {
  .prose-video { float: none; width: 100%; margin: 0 0 26px; }
}

/* ===========================================================
   Partner hero: photo carousel behind the gradient
   =========================================================== */
.page-hero.has-shots { padding: 74px 0 66px; }
/* the photos sit under the hero's own gradient, so the copy stays legible */
/* full width, with the overlay doing the hiding — a half-width strip left a
   visible vertical seam where it met the hero's own background */
.hero-shots {
  position: absolute; inset: 0;
  z-index: 0; overflow: hidden;
}
.hero-shots .shot {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0; transition: opacity .9s ease, transform 6s linear;
  transform: scale(1.04);
}
.hero-shots .shot.on { opacity: 1; transform: scale(1.1); }
/* fade the strip into the hero on its left edge and along the bottom */
.hero-shots::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(100deg,
      rgba(10, 42, 67, .97) 0%,
      rgba(10, 42, 67, .95) 34%,
      rgba(10, 42, 67, .74) 52%,
      rgba(10, 42, 67, .38) 74%,
      rgba(10, 42, 67, .26) 100%),
    linear-gradient(0deg, rgba(10, 42, 67, .5) 0%, transparent 40%);
}
.page-hero.has-shots .container { position: relative; z-index: 2; }
.page-hero.has-shots h1 { font-size: clamp(38px, 5.6vw, 66px); margin: 16px 0 22px; max-width: 15ch; }

.hero-shots-nav {
  position: absolute; right: 26px; bottom: 24px; z-index: 3;
  display: flex; align-items: center; gap: 9px;
}
.hs-btn {
  width: 42px; height: 42px; border-radius: 50%; cursor: pointer;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .34);
  color: #fff; display: grid; place-items: center;
  backdrop-filter: blur(6px);
  transition: background .2s ease, transform .2s ease;
}
.hs-btn:hover { background: rgba(255, 255, 255, .3); }
.hs-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hs-btn svg { width: 18px; height: 18px; }
.hs-count { font-size: 12.5px; font-weight: 700; color: rgba(255, 255, 255, .8); min-width: 46px; text-align: center; }

@media (max-width: 900px) {
  .hero-shots::after {
    background:
      linear-gradient(180deg, rgba(10,42,67,.92) 0%, rgba(10,42,67,.86) 45%, rgba(10,42,67,.9) 100%);
  }
  .page-hero.has-shots h1 { font-size: clamp(32px, 8vw, 44px); max-width: none; }
  .hero-shots-nav { right: 18px; bottom: 14px; }
  .hs-btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-shots .shot { transition: opacity .3s ease; transform: none; }
  .hero-shots .shot.on { transform: none; }
}

.gallery-carousel { position: relative; margin-top: 34px; }

.gc-track {
  display: flex; gap: 14px;
  overflow-x: auto; scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 4px 2px 14px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: color-mix(in srgb, var(--red, #D42B2B) 45%, transparent) transparent;
}
.gc-track::-webkit-scrollbar { height: 7px; }
.gc-track::-webkit-scrollbar-track { background: transparent; }
.gc-track::-webkit-scrollbar-thumb {
  background: color-mix(in srgb, var(--red, #D42B2B) 40%, transparent); border-radius: 99px;
}

.gc-item {
  flex: 0 0 auto; scroll-snap-align: start;
  width: 300px; height: 210px;
  padding: 0; border: none; background: none; cursor: zoom-in;
  border-radius: 16px; overflow: hidden; position: relative;
  box-shadow: 0 14px 30px -20px rgba(33, 30, 26, .5);
  transition: transform .3s ease, box-shadow .3s ease;
}
.gc-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.gc-item:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -22px rgba(33, 30, 26, .55); }
.gc-item:hover img { transform: scale(1.06); }
.gc-item:focus-visible { outline: 3px solid var(--red, #D42B2B); outline-offset: 3px; }
/* zoom hint */
.gc-item::after {
  content: ""; position: absolute; right: 10px; bottom: 10px;
  width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .92) url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23211E1A' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='M20 20l-3.5-3.5M11 8.5v5M8.5 11h5'/%3E%3C/svg%3E") center / 17px no-repeat;
  opacity: 0; transform: translateY(4px); transition: opacity .25s ease, transform .25s ease;
}
.gc-item:hover::after, .gc-item:focus-visible::after { opacity: 1; transform: translateY(0); }

/* arrows */
.gc-nav {
  position: absolute; top: calc(50% - 9px); transform: translateY(-50%);
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: #fff; border: 1px solid var(--line, rgba(33, 30, 26, .12));
  box-shadow: 0 12px 26px -14px rgba(33, 30, 26, .5);
  display: grid; place-items: center; color: var(--navy, #211E1A);
  transition: background .2s ease, color .2s ease, opacity .25s ease;
  z-index: 2;
}
.gc-nav:hover { background: var(--red, #D42B2B); color: #fff; }
.gc-nav svg { width: 19px; height: 19px; }
.gc-nav.prev { left: -18px; }
.gc-nav.next { right: -18px; }
.gc-nav[disabled] { opacity: 0; pointer-events: none; }

.gc-count { margin-top: 4px; font-size: 12.5px; color: var(--muted, #6B655C); font-weight: 600; }

/* ---------------- fullscreen lightbox ---------------- */
.glb {
  position: fixed; inset: 0; z-index: 999;
  display: none; align-items: center; justify-content: center;
  background: rgba(18, 16, 14, .93);
  backdrop-filter: blur(6px);
}
.glb.open { display: flex; }
.glb-figure {
  max-width: min(94vw, 1500px); max-height: 86vh;
  display: flex; flex-direction: column; align-items: center; gap: 14px;
}
.glb-figure img {
  max-width: min(94vw, 1500px); max-height: 78vh;
  width: auto; height: auto; object-fit: contain;
  border-radius: 10px; box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .9);
  animation: glb-in .28s cubic-bezier(.22, .61, .36, 1);
}
@keyframes glb-in { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.glb-cap { color: rgba(255, 255, 255, .85); font-size: 13.5px; font-weight: 600; text-align: center; }

.glb-btn {
  position: absolute; width: 52px; height: 52px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .1);
  color: #fff; cursor: pointer; display: grid; place-items: center;
  transition: background .2s ease, transform .2s ease;
}
.glb-btn:hover { background: rgba(255, 255, 255, .22); }
.glb-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.glb-btn svg { width: 22px; height: 22px; }
.glb-prev { left: 3vw; }
.glb-next { right: 3vw; }
.glb-close { top: 22px; right: 3vw; width: 46px; height: 46px; }

@media (max-width: 860px) {
  .gc-item { width: 240px; height: 168px; }
  .gc-nav.prev { left: -6px; }
  .gc-nav.next { right: -6px; }
  .glb-btn { width: 44px; height: 44px; }
  .glb-prev { left: 10px; }
  .glb-next { right: 10px; }
  .glb-close { right: 10px; top: 14px; }
  .glb-figure img { max-height: 68vh; }
}
@media (max-width: 520px) {
  .gc-item { width: 78vw; height: 200px; }
}
@media (prefers-reduced-motion: reduce) {
  .gc-track { scroll-behavior: auto; }
  .gc-item, .gc-item img, .glb-figure img { transition: none; animation: none; }
}

/* ---- Legal documents (acord-gdpr) --------------------------------------
   A consent agreement has to be readable end to end, so the measure is
   tighter than editorial prose and the headings are quieter: nothing here
   should read as marketing. */
.prose.legal { max-width: 74ch; }
.prose.legal > h2 {
  font-size: 25px; margin-top: 46px; padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.prose.legal > h3 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px; font-weight: 800; color: var(--navy);
  margin: 32px 0 12px; letter-spacing: .01em;
}
.prose.legal > p { margin-bottom: 18px; }
.prose.legal > ul { margin: 0 0 20px; padding-left: 22px; }
.prose.legal > ul li { margin-bottom: 10px; line-height: 1.7; }

/* The one part of the page that is ours rather than the signed agreement:
   how consent is actually captured online. Set apart so it is never mistaken
   for a clause of the agreement itself. */
.legal-note {
  margin-top: 44px; padding: 24px 26px;
  background: var(--sand, #F7F5F1);
  border-left: 3px solid var(--brand, #C81E25);
  border-radius: 0 10px 10px 0;
}
.legal-note h4 {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 14px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--navy); margin: 0 0 12px;
}
.legal-note p { font-size: 14.5px; line-height: 1.7; margin: 0 0 10px; }
.legal-note p:last-child { margin-bottom: 0; }
