/* ============================================================
   Sushrutha Ayurvedic Hospital pages — photos (30 Oct 2026)
   Loaded only by the hospital pages, after page-design.css / content-pages.css.
   ============================================================ */

/* ── 1. Photo banner ─────────────────────────────────────── */
.page-hero.has-photo::before,
.page-hero.has-photo::after { display: none; }
.page-hero.has-photo .page-hero-bg { opacity: 1; object-fit: cover; object-position: center 40%; }
.page-hero.has-photo .page-hero-overlay {
  background: linear-gradient(90deg, rgba(0, 24, 64, .94) 0%, rgba(0, 24, 64, .82) 38%, rgba(0, 24, 64, .45) 70%, rgba(13, 58, 42, .30) 100%);
}
@media (max-width: 768px) {
  .page-hero.has-photo .page-hero-overlay {
    background: linear-gradient(180deg, rgba(0, 24, 64, .50) 0%, rgba(0, 24, 64, .70) 50%, rgba(0, 24, 64, .88) 100%);
  }
}

/* ── 2. Photo strip inside a page ("A look inside") ───────── */
.hp-strip-wrap { margin: 28px 0 32px; clear: both; }
.hp-strip-title { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--clr-secondary, #3f6653); margin: 0 0 12px; }
.hp-strip-title .material-symbols-outlined { font-size: 18px; }
.hp-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.hp-strip figure { margin: 0 !important; position: relative; border-radius: 14px; overflow: hidden; aspect-ratio: 4 / 3; background: #e9eef6; box-shadow: 0 6px 22px rgba(0, 24, 64, .10); }
.hp-strip a { display: block; width: 100%; height: 100%; }
.hp-strip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; border-radius: 0 !important; margin: 0 !important; }
.hp-strip figure:hover img { transform: scale(1.05); }
.hp-strip figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px; background: linear-gradient(transparent, rgba(0, 24, 64, .88)); color: #fff; font-size: 13px; font-weight: 600; line-height: 1.3; pointer-events: none; }
@media (max-width: 640px) {
  .hp-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .hp-strip figure:first-child { grid-column: 1 / -1; aspect-ratio: 16 / 9; }
  .hp-strip figcaption { font-size: 12px; padding: 22px 10px 8px; }
}

/* ── 3. Main Hospital page ───────────────────────────────── */
/* Department cards with a photo on top */
.hp-card-photo { aspect-ratio: 16 / 10; overflow: hidden; background: #e9eef6; }
.hp-card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.p-card:hover .hp-card-photo img { transform: scale(1.05); }
a.p-card { text-decoration: none; color: inherit; display: block; }
.hp-card-more { font-size: 12px; color: var(--clr-secondary, #3f6653); font-weight: 600; display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; }
.hp-card-more .material-symbols-outlined { font-size: 14px; }

/* Facility cards with a photo on top */
.feature-card.has-photo { padding: 0; overflow: hidden; }
.feature-card.has-photo .hp-fc-photo { aspect-ratio: 16 / 9; overflow: hidden; background: #e9eef6; }
.feature-card.has-photo .hp-fc-photo img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.feature-card.has-photo:hover .hp-fc-photo img { transform: scale(1.05); }
.feature-card.has-photo .hp-fc-body { padding: 18px 20px 22px; }

/* Large feature photo (Panchakarma section) */
.hp-feature-photo { margin: 32px 0 0; border-radius: 18px; overflow: hidden; position: relative; aspect-ratio: 21 / 8; box-shadow: 0 14px 40px rgba(0, 24, 64, .14); }
.hp-feature-photo img { width: 100%; height: 100%; object-fit: cover; object-position: center 45%; display: block; }
.hp-feature-photo figcaption { position: absolute; left: 0; bottom: 0; right: 0; padding: 40px 24px 18px; background: linear-gradient(transparent, rgba(0, 24, 64, .85)); color: #fff; font-family: 'Newsreader', serif; font-size: 1.25rem; }
@media (max-width: 768px) { .hp-feature-photo { aspect-ratio: 4 / 3; } .hp-feature-photo figcaption { font-size: 1.05rem; padding: 30px 16px 14px; } }

/* Photo gallery section */
.hp-gallery { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 200px; gap: 14px; margin-top: 40px; }
.hp-gallery figure { margin: 0; position: relative; border-radius: 14px; overflow: hidden; background: #e9eef6; }
.hp-gallery figure.wide { grid-column: span 2; }
.hp-gallery figure.tall { grid-row: span 2; }
.hp-gallery img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .45s ease; }
.hp-gallery figure:hover img { transform: scale(1.05); }
.hp-gallery figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(transparent, rgba(0, 24, 64, .88)); color: #fff; font-size: 14px; font-weight: 600; }
@media (max-width: 1024px) { .hp-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: 180px; } }
@media (max-width: 560px) { .hp-gallery { grid-auto-rows: 140px; gap: 10px; } .hp-gallery figure.tall { grid-row: span 1; } .hp-gallery figcaption { font-size: 12px; padding: 22px 10px 8px; } }

/* Department cards on phones: compact photo-left layout */
@media (max-width: 640px) {
  a.p-card.hp-dept { display: grid; grid-template-columns: 112px minmax(0, 1fr); align-items: stretch; }
  a.p-card.hp-dept .hp-card-photo { aspect-ratio: auto; height: 100%; min-height: 120px; }
  a.p-card.hp-dept .p-card-body { padding: 14px 14px 12px; }
  a.p-card.hp-dept .p-card-icon { display: none; }
  a.p-card.hp-dept .p-card-body p { font-size: 12.5px !important; line-height: 1.5; margin-bottom: 6px !important; }
}

/* Leadership cards: doctor's photo instead of an icon */
.hp-leader-photo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; object-position: center 20%; border: 3px solid #fff; box-shadow: 0 4px 14px rgba(0, 24, 64, .18); margin-bottom: 12px; display: block; }