﻿/* Scoped to the gallery so shared hospital pages retain their layout. */
#hospital-gallery { --hg-ink: #15334b; --hg-teal: #087e8b; background: #f5f8fa; color: var(--hg-ink); }
#hospital-gallery, #hospital-gallery * { box-sizing: border-box; }
#hospital-gallery [hidden] { display: none !important; }
#hospital-gallery button, #hospital-gallery input { font: inherit; }
#hospital-gallery button { cursor: pointer; }
#hospital-gallery :is(button, a, input):focus-visible { outline: 3px solid #16a6b6; outline-offset: 4px; }
#hospital-gallery .hg-hero { position: relative; overflow: hidden; padding: 82px 24px 92px; background: radial-gradient(ellipse at 12% 100%, #126575 0, transparent 55%), radial-gradient(ellipse at 95% 0, #214a73 0, transparent 55%), #10283f; color: white; }
#hospital-gallery .hg-hero-inner { max-width: 840px; margin: auto; position: relative; }
#hospital-gallery .hg-hero :is(h1, p, span, b, div) { text-align: center; }
#hospital-gallery .hg-eyebrow { display: inline-flex; align-items: center; gap: 10px; color: #b6e5e6; font-size: 12px; letter-spacing: .16em; font-weight: 700; }
#hospital-gallery .hg-hero h1 { color: white; font-size: clamp(2.2rem, 5vw, 3.7rem); line-height: 1.22; margin: 22px 0; font-weight: 700; }
#hospital-gallery .hg-hero p { max-width: 650px; margin: auto; color: #cbdce7; font-size: 17px; line-height: 1.85; }
#hospital-gallery .hg-stats { display: flex; justify-content: center; gap: 28px; margin-top: 28px; color: #cbdce7; font-size: 14px; }
#hospital-gallery .hg-stats b { color: white; margin-inline-end: 5px; }
#hospital-gallery .hg-collection { max-width: 1240px; margin: auto; padding: 0 28px 80px; }
#hospital-gallery .hg-toolbar { position: relative; margin-top: -30px; padding: 30px; border: 1px solid #e0e9ee; border-radius: 20px; background: white; box-shadow: 0 12px 36px #16395009; }
#hospital-gallery .hg-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; }
#hospital-gallery .hg-kicker { color: var(--hg-teal); font-size: 11px; letter-spacing: .14em; font-weight: 700; }
#hospital-gallery h2 { font-size: clamp(1.35rem, 3vw, 1.8rem); margin: 7px 0 0; color: var(--hg-ink); font-weight: 700; }
#hospital-gallery .hg-section-heading p { color: #6b7e8e; font-size: 13px; margin: 0; }
#hospital-gallery .hg-controls { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px; }
#hospital-gallery .hg-types { display: flex; gap: 4px; background: #f0f5f7; border-radius: 12px; padding: 5px; }
#hospital-gallery .hg-types button { border: 0; border-radius: 9px; padding: 10px 16px; color: #526778; background: transparent; font-size: 14px; }
#hospital-gallery .hg-types button[aria-pressed=true] { background: var(--hg-ink); color: white; box-shadow: 0 3px 7px #15334b20; }
#hospital-gallery .hg-types button span { display: inline-block; margin-inline-start: 5px; font-size: 11px; opacity: .75; }
#hospital-gallery .hg-search { display: flex; gap: 10px; align-items: center; border: 1px solid #dbe5eb; border-radius: 11px; padding: 0 14px; flex: 0 1 320px; min-height: 48px; }
#hospital-gallery .hg-search > span:first-child { font: 28px sans-serif; color: #687f90; }
#hospital-gallery .hg-search input { width: 100%; min-width: 0; border: 0; background: transparent; padding: 12px 0; color: var(--hg-ink); font-size: 14px; }
#hospital-gallery .hg-departments { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 22px; margin-top: 22px; border-top: 1px solid #edf1f4; }
#hospital-gallery .hg-departments button { border: 1px solid #e1e8ed; background: white; color: #5b6e7d; padding: 9px 14px; border-radius: 30px; font-size: 13px; }
#hospital-gallery .hg-departments button[aria-pressed=true] { background: #e9f6f5; color: #086a73; border-color: #abd8d8; }
#hospital-gallery .hg-results { color: #6b7e8e; font-size: 13px; margin: 26px 0 16px; }
#hospital-gallery .hg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
#hospital-gallery .hg-card { min-width: 0; overflow: hidden; border-radius: 16px; border: 1px solid #e0e8ed; background: white; transition: transform .2s, box-shadow .2s; }
#hospital-gallery .hg-card:hover { transform: translateY(-4px); box-shadow: 0 16px 30px #183d5010; }
#hospital-gallery .hg-photo, #hospital-gallery .hg-video { width: 100%; aspect-ratio: 4 / 3; position: relative; display: block; overflow: hidden; border: 0; padding: 0; background: #e5edf1; }
#hospital-gallery .hg-photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
#hospital-gallery .hg-photo:hover img { transform: scale(1.04); }
#hospital-gallery .hg-expand { position: absolute; bottom: 14px; inset-inline-end: 14px; width: 34px; height: 34px; display: grid; place-items: center; background: #ffffffed; border-radius: 50%; color: var(--hg-ink); font: 20px sans-serif; }
#hospital-gallery .hg-video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; background: radial-gradient(circle at top right, #276575, transparent 75%), #18354f; color: white; text-decoration: none; font-size: 14px; }
#hospital-gallery .hg-play { display: grid; place-items: center; width: 60px; height: 60px; border: 1px solid #ffffff60; border-radius: 50%; background: #ffffff18; font: 20px sans-serif; }
#hospital-gallery .hg-card-info { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px; }
#hospital-gallery .hg-card-info h3 { font-size: 15px; line-height: 1.6; margin: 0; overflow-wrap: anywhere; font-weight: 600; color: var(--hg-ink); }
#hospital-gallery .hg-card-info > span { color: #758796; font-size: 10px; letter-spacing: .08em; flex-shrink: 0; }
#hospital-gallery .hg-empty { text-align: center; border: 1px dashed #cbdce5; border-radius: 18px; padding: 60px 20px; background: white; }
#hospital-gallery .hg-empty :is(h3,p) { text-align: center; }
#hospital-gallery .hg-empty > span { font-size: 46px; color: var(--hg-teal); }
#hospital-gallery .hg-empty p { color: #6b7e8e; }
#hospital-gallery .hg-empty button { border: 0; border-radius: 10px; background: var(--hg-ink); color: white; padding: 12px 20px; margin-top: 10px; }
#hospital-gallery .hg-viewer { width: min(1100px, 95vw); max-width: 95vw; max-height: 94vh; padding: 16px; border: 1px solid #ffffff30; border-radius: 18px; background: #102334; color: white; margin: auto; }
#hospital-gallery .hg-viewer::backdrop { background: #07131ee8; }
#hospital-gallery .hg-viewer-bar { display: flex; align-items: center; justify-content: space-between; padding-bottom: 12px; color: #cbdce7; }
#hospital-gallery .hg-viewer button { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #ffffff30; border-radius: 50%; background: #ffffff10; color: white; font: 28px sans-serif; }
#hospital-gallery .hg-viewer button:disabled { opacity: .3; cursor: default; }
#hospital-gallery .hg-viewer-stage { display: grid; grid-template-columns: 44px minmax(0, 1fr) 44px; gap: 12px; align-items: center; direction: ltr; }
#hospital-gallery .hg-viewer-stage img { width: 100%; height: min(65vh, 700px); object-fit: contain; }
#hospital-gallery #hg-caption { text-align: center; margin: 14px 0 0; color: white; }
#hospital-gallery .hg-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
#hospital-gallery.hg-pashto :is(h1,h2,h3,button,.hg-eyebrow) { font-family: 'BahijTitr', sans-serif; letter-spacing: normal; }
#hospital-gallery.hg-pashto :is(p,input) { font-family: 'MSAbdali', sans-serif; }
@media (max-width: 900px) { #hospital-gallery .hg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } #hospital-gallery .hg-section-heading { align-items: flex-start; flex-direction: column; gap: 10px; } }
@media (max-width: 600px) { #hospital-gallery .hg-hero { padding: 55px 20px 70px; } #hospital-gallery .hg-collection { padding: 0 16px 48px; } #hospital-gallery .hg-toolbar { padding: 20px 16px; } #hospital-gallery .hg-controls { flex-direction: column; } #hospital-gallery .hg-search { flex-basis: auto; } #hospital-gallery .hg-types button { flex: 1; padding: 11px 8px; } #hospital-gallery .hg-grid { grid-template-columns: 1fr; gap: 18px; } #hospital-gallery .hg-viewer { padding: 10px; } #hospital-gallery .hg-viewer-stage { grid-template-columns: 36px minmax(0, 1fr) 36px; gap: 4px; } #hospital-gallery .hg-viewer-stage button { width: 36px; height: 36px; } }
@media (prefers-reduced-motion: reduce) { #hospital-gallery * { transition: none !important; } }
