/* Bluestar Hospital — image gallery / carousel (no build, no deps) */
.gallery-section { padding: var(--pad-section, 96px) 0; background: var(--off, #F6F8F9); }
.gallery-section .section-head { margin-bottom: 38px; }

/* Full-width slider: one slide per view, neighbour peeks removed */
.gallery { position: relative; max-width: 1040px; margin: 0 auto; }
.gallery-viewport { overflow: hidden; touch-action: pan-y; }
.gallery-track { display: flex; transition: transform .5s var(--ease, cubic-bezier(.2,.7,.2,1)); will-change: transform; }
.gallery-slide { flex: 0 0 100%; min-width: 0; position: relative; border-radius: var(--radius-lg, 16px); overflow: hidden; box-shadow: var(--shadow-1, 0 8px 22px rgba(15,40,58,.08)); background: var(--brand-dark, #10384C); }
.gallery-slide a { display: block; }
.gallery-slide img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; user-select: none; -webkit-user-drag: none; transition: filter .4s ease, transform .4s ease; }
.gallery-slide figcaption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 44px 26px 20px; font-size: .98rem; font-weight: 500; color: #fff;
  background: linear-gradient(to top, rgba(10,31,41,.86), rgba(10,31,41,0));
}
.gallery-slide figcaption .cap-k { display: block; font-size: .72rem; color: var(--sky, #A8D8F0); margin-bottom: 5px; font-weight: 700; }

.gallery-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0; cursor: pointer;
  background: rgba(255,255,255,.92); color: var(--brand-dark, #10384C);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
  box-shadow: var(--shadow-1, 0 8px 22px rgba(15,40,58,.08)); z-index: 3;
  transition: background .18s ease, transform .18s ease;
}
.gallery-btn:hover { background: #fff; }
.gallery-btn:active { transform: translateY(-50%) scale(.94); }
.gallery-btn.prev { left: 14px; }
.gallery-btn.next { right: 14px; }
.gallery-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

.gallery-dots { display: flex; justify-content: center; align-items: center; gap: 4px; margin-top: 22px; flex-wrap: wrap; }
/* 10px visual dot inside a ~26px hit target */
.gallery-dot { box-sizing: content-box; width: 10px; height: 10px; border-radius: 50%; border: 0; padding: 8px;
  cursor: pointer; background: var(--hair, #D9E8F1); background-clip: content-box;
  transition: background-color .2s ease, transform .2s ease; }
.gallery-dot.active { background-color: var(--brand, #15587A); transform: scale(1.15); }
.gallery-dot:focus-visible { outline: 3px solid var(--brand, #15587A); outline-offset: 2px; }

/* Autoplay pause/play control */
.gallery-toggle { width: 34px; height: 34px; margin-left: 8px; border-radius: 50%; border: 1px solid var(--hair, #D9E8F1);
  background: #fff; color: var(--brand-dark, #10384C); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem;
  transition: background-color .18s ease, border-color .18s ease; }
.gallery-toggle:hover { background: var(--tint, #E0F1FA); border-color: var(--brand, #15587A); }
.gallery-toggle:focus-visible { outline: 3px solid var(--brand, #15587A); outline-offset: 2px; }

@media (max-width: 560px) {
  .gallery-btn { width: 40px; height: 40px; font-size: 1rem; }
  .gallery-btn.prev { left: 8px; }
  .gallery-btn.next { right: 8px; }
  .gallery-slide { flex-basis: 100%; }
  .gallery-slide img { aspect-ratio: 4 / 3; }
}

@media (prefers-reduced-motion: reduce) {
  .gallery-track { transition: none; }
}
