/* This stylesheet is local to gallery.html; shared site files stay unchanged. */
.bihs-gallery-page {
  --bg-navy: #0c2f4f;
  --bg-teal: #0f766e;
  --bg-teal-dark: #115e59;
  --bg-ink: #172e3d;
  --bg-muted: #526775;
  --bg-line: #dce6e6;
  margin: 0;
  color: var(--bg-ink);
  background: #f5f8f8;
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.6;
}
.bihs-gallery-page *, .bihs-gallery-page *::before, .bihs-gallery-page *::after { box-sizing: border-box; }
.bihs-gallery-page [hidden] { display: none !important; }
.bihs-gallery-page button, .bihs-gallery-page input, .bihs-gallery-page select { font: inherit; }
.bihs-gallery-page button, .bihs-gallery-page a, .bihs-gallery-page input, .bihs-gallery-page select { -webkit-tap-highlight-color: transparent; }
.bihs-gallery-page button { cursor: pointer; }
.bihs-gallery-page :focus-visible { outline: 3px solid #a45b00; outline-offset: 4px; }
.bihs-gallery-header :focus-visible, .bihs-gallery-footer :focus-visible { outline-color: #ffd277; }
.bihs-gallery-page a { text-underline-offset: 3px; }
.bihs-gallery-sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.bihs-gallery-skip { position: fixed; top: 10px; left: 12px; z-index: 1000; padding: 12px 18px; transform: translateY(-160%); border-radius: 6px; background: #fff; color: #0c2f4f; font-weight: 600; }
.bihs-gallery-skip:focus { transform: translateY(0); }
.bihs-gallery-header { display: flex; justify-content: center; padding: 16px 20px; color: #fff; background: var(--bg-navy); }
.bihs-gallery-brand { display: flex; align-items: center; gap: 16px; min-width: 0; color: #fff; text-decoration: none; }
.bihs-gallery-brand img { flex: 0 0 70px; width: 70px; height: 70px; object-fit: contain; }
.bihs-gallery-brand-title { display: block; font-size: clamp(1.15rem, 2.5vw, 2rem); font-weight: 700; line-height: 1.2; }
.bihs-gallery-brand p { margin: 5px 0 0; font-size: .85rem; color: #dfebef; }
.bihs-gallery-nav { position: sticky; top: 0; z-index: 100; display: flex; justify-content: center; padding: 0 18px; background: var(--bg-teal); box-shadow: 0 3px 10px #0c2f4f15; }
.bihs-gallery-nav-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; }
.bihs-gallery-nav-links a { display: block; padding: 14px 12px; color: #fff; text-decoration: none; font-size: .91rem; font-weight: 500; }
.bihs-gallery-nav-links a:hover, .bihs-gallery-nav-links a[aria-current="page"] { background: var(--bg-teal-dark); }
.bihs-gallery-nav-links a[aria-current="page"] { box-shadow: inset 0 -3px 0 #9ce0d5; }
.bihs-gallery-nav :focus-visible { outline-color: #ffd277; outline-offset: -4px; }
.bihs-gallery-menu-toggle { min-height: 44px; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 0; border-radius: 5px; color: #fff; background: transparent; font-weight: 600; }
.bihs-gallery-menu-toggle span:first-child { font-size: 1.5rem; line-height: 1; }
/* Match the current Jobs admissions strip without importing Jobs styles. */
.bihs-gallery-admissions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 12px; padding: 13px 20px; color: var(--bg-navy); background: #eef8f6; border-bottom: 1px solid #cfe3df; text-align: center; font-size: .92rem; line-height: 1.55; }
.bihs-gallery-admissions strong { margin-right: 8px; }
.bihs-gallery-admissions-apply { display: inline-block; margin-left: 15px; padding: 8px 15px; border-radius: 8px; color: #fff; background: var(--bg-teal); font-weight: 600; text-decoration: none; }
.bihs-gallery-admissions-apply:hover, .bihs-gallery-admissions-apply:focus-visible { color: #fff; background: var(--bg-teal-dark); }
.bihs-gallery-layout { display: grid; grid-template-columns: minmax(0, 1140px); justify-content: center; align-items: start; gap: 24px; width: min(100%, 1668px); margin: 0 auto; padding: 0 22px; }
.bihs-gallery-page .bihs-gallery-main { width: 100%; min-width: 0; max-width: 1140px; margin: 0; padding: 24px 0 64px; background: transparent; border-radius: 0; box-shadow: none; scroll-margin-top: 70px; }
.bihs-gallery-breadcrumb { display: flex; gap: 12px; align-items: center; margin-bottom: 20px; color: var(--bg-muted); font-size: .78rem; }
.bihs-gallery-breadcrumb a { color: var(--bg-muted); font-weight: 400; }
.bihs-gallery-intro { margin-bottom: 24px; padding: 28px 32px; border-left: 5px solid #52b8a8; border-radius: 0 14px 14px 0; color: #fff; background: linear-gradient(115deg, #0c2f4f, #135d64); }
.bihs-gallery-eyebrow { margin: 0 0 9px; color: #b5e9dd; font-size: .72rem; font-weight: 600; letter-spacing: .11em; text-transform: uppercase; }
.bihs-gallery-intro h1 { margin: 0; font-size: clamp(1.7rem, 3.25vw, 2.45rem); line-height: 1.22; letter-spacing: -.035em; }
.bihs-gallery-intro > p:last-child { max-width: 840px; margin: 14px 0 0; font-size: .91rem; color: #e1f0f0; }
.bihs-gallery-controls { padding: 18px; border: 1px solid var(--bg-line); border-radius: 12px; background: #fff; }
.bihs-gallery-controls fieldset { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 14px; min-width: 0; margin: 0; padding: 0; border: 0; }
.bihs-gallery-field { min-width: 0; }
.bihs-gallery-field label { display: block; margin-bottom: 6px; font-size: .76rem; font-weight: 600; }
.bihs-gallery-field input, .bihs-gallery-field select { width: 100%; min-height: 46px; min-width: 0; padding: 10px; border: 1px solid #6c838b; border-radius: 7px; color: var(--bg-ink); background: #fff; font-size: .84rem; }
.bihs-gallery-field input::placeholder { color: #62757c; opacity: 1; }
.bihs-gallery-clear { align-self: end; min-height: 46px; padding: 10px 14px; border: 1px solid #b7c9ce; border-radius: 7px; color: var(--bg-teal-dark); background: #f3f9f7; font-size: .81rem !important; font-weight: 600 !important; }
.bihs-gallery-clear:hover { background: #e4f3ee; }
.bihs-gallery-controls :disabled { cursor: wait; opacity: .65; }
.bihs-gallery-result-count { min-height: 24px; margin: 17px 0 26px; color: var(--bg-muted); font-size: .84rem; }
.bihs-gallery-section + .bihs-gallery-section { margin-top: 34px; }
.bihs-gallery-section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 16px; }
.bihs-gallery-section-kicker { margin: 0 0 3px; color: var(--bg-teal); font-size: .66rem; font-weight: 600; text-transform: uppercase; letter-spacing: .085em; }
.bihs-gallery-section-heading h2 { margin: 0; color: var(--bg-navy); font-size: 1.4rem; line-height: 1.3; letter-spacing: -.025em; }
.bihs-gallery-section-count { flex: 0 0 auto; color: var(--bg-muted); font-size: .74rem; }
.bihs-gallery-learning-note { margin: 0; padding: 16px 20px; border: 1px solid #d7e8e3; border-radius: 8px; color: #47665e; background: #edf6f2; font-size: .86rem; }
.bihs-gallery-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.bihs-gallery-card { min-width: 0; display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--bg-line); border-radius: 12px; background: #fff; box-shadow: 0 4px 14px #0c2f4f06; }
.bihs-gallery-card-media { display: flex; justify-content: center; align-items: center; aspect-ratio: 4 / 3; min-width: 0; overflow: hidden; border-bottom: 1px solid var(--bg-line); background: #edf1f0; }
.bihs-gallery-card-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
.bihs-gallery-image-fallback { margin: 0; padding: 24px; color: var(--bg-muted); text-align: center; font-size: .88rem; }
.bihs-gallery-card-body { display: flex; flex: 1; flex-direction: column; padding: 20px; }
.bihs-gallery-card-category { margin: 0 0 8px; color: var(--bg-teal); font-size: .7rem; font-weight: 600; text-transform: uppercase; letter-spacing: .065em; }
.bihs-gallery-card h3 { margin: 0 0 8px; font-size: 1.06rem; font-weight: 600; line-height: 1.4; color: var(--bg-navy); overflow-wrap: anywhere; }
.bihs-gallery-card-type { margin: 0; color: var(--bg-muted); font-size: .77rem; }
.bihs-gallery-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 16px 0 20px; padding: 0; list-style: none; }
.bihs-gallery-tags li { padding: 3px 8px; border-radius: 4px; color: #4b6469; background: #eff4f4; font-size: .68rem; overflow-wrap: anywhere; }
.bihs-gallery-card-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: auto; }
.bihs-gallery-page .bihs-gallery-action { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 15px; border: 1px solid var(--bg-teal); border-radius: 7px; color: #fff; background: var(--bg-teal); font-size: .8rem; font-weight: 600; line-height: 1.4; text-decoration: none; }
.bihs-gallery-page .bihs-gallery-action:hover { color: #fff; background: var(--bg-teal-dark); border-color: var(--bg-teal-dark); text-decoration: none; }
.bihs-gallery-page .bihs-gallery-action-secondary { color: var(--bg-teal-dark); border-color: #b7d7d0; background: #f1f8f5; }
.bihs-gallery-card-actions .bihs-gallery-action:first-child { width: 100%; }
.bihs-gallery-state { padding: 42px 24px; border: 1px dashed #b7c9ce; border-radius: 12px; background: #fff; text-align: center; }
.bihs-gallery-state h2 { margin: 0 0 8px; color: var(--bg-navy); font-size: 1.25rem; }
.bihs-gallery-state p { margin: 0 auto 20px; max-width: 550px; color: var(--bg-muted); }
.bihs-gallery-spinner { display: block; width: 28px; height: 28px; margin: 0 auto 18px; border: 3px solid #d6e7e3; border-top-color: var(--bg-teal); border-radius: 50%; animation: bihs-gallery-spin .8s linear infinite; }
@keyframes bihs-gallery-spin { to { transform: rotate(360deg); } }
.bihs-gallery-notice { padding: 18px; border: 1px solid #d8c8a5; border-radius: 8px; background: #fff8e9; }
.bihs-gallery-ad { min-width: 0; padding: 10px; border: 1px dashed #b8c8cd; border-radius: 4px; background: #edf1f2; text-align: center; }
.bihs-gallery-ad-label { display: block; margin: 0 0 8px; color: #526775; font-size: .65rem; letter-spacing: .07em; text-transform: uppercase; }
.bihs-gallery-ad .adsbygoogle { display: block; width: 100%; min-height: 100px; }
.bihs-gallery-ad-post { margin: 48px 0 8px; }
.bihs-gallery-ad-rail { margin-top: 348px; }
.bihs-gallery-ad-rail .adsbygoogle { min-height: 250px; }
.bihs-gallery-page .bihs-gallery-footer { margin: 0; padding: 48px 24px 20px; text-align: left; color: #d1d5db; background: #0c223f; }
.bihs-gallery-footer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 34px; max-width: 1200px; margin: 0 auto; padding-bottom: 36px; }
.bihs-gallery-footer h2 { margin: 0 0 13px; color: #fff; font-size: 1.05rem; }
.bihs-gallery-footer p, .bihs-gallery-footer ul { margin: 0; padding: 0; color: #b5c2d0; font-size: .83rem; }
.bihs-gallery-footer ul { display: grid; gap: 8px; list-style: none; }
.bihs-gallery-footer a { color: #d9e1e9; text-decoration: none; overflow-wrap: anywhere; }
.bihs-gallery-footer a:hover { text-decoration: underline; color: #fbbf24; }
.bihs-gallery-social { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 18px; font-size: .83rem; }
.bihs-gallery-footer .bihs-gallery-footer-apply { display: inline-flex; align-items: center; min-height: 44px; padding: 10px 15px; border-radius: 7px; color: #0c223f; background: #f59e0b; font-size: .8rem; font-weight: 600; }
.bihs-gallery-footer .bihs-gallery-footer-apply:hover { color: #0c223f; background: #fbbf24; }
.bihs-gallery-footer-bottom { max-width: 1200px; margin: 0 auto; padding-top: 18px; border-top: 1px solid #ffffff20; color: #b5c2d0; text-align: center; font-size: .73rem; }
.bihs-gallery-viewer { width: min(1100px, calc(100% - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: auto; padding: 0; overflow: auto; overscroll-behavior: contain; border: 0; border-radius: 14px; background: #fff; color: var(--bg-ink); box-shadow: 0 24px 80px #0006; }
.bihs-gallery-viewer::backdrop { background: #071c2be6; }
.bihs-gallery-viewer-header { position: sticky; top: 0; z-index: 1; display: flex; justify-content: space-between; align-items: start; gap: 20px; padding: 22px 24px; border-bottom: 1px solid var(--bg-line); background: #fff; }
.bihs-gallery-viewer-header h2 { margin: 0; color: var(--bg-navy); font-size: 1.25rem; line-height: 1.4; overflow-wrap: anywhere; }
.bihs-gallery-viewer-header p { margin: 6px 0 0; color: var(--bg-muted); font-size: .8rem; }
.bihs-gallery-viewer-close { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; min-height: 44px; padding: 6px 12px; border: 1px solid #b7c9ce; border-radius: 6px; color: var(--bg-navy); background: #f3f7f7; font-size: .82rem !important; font-weight: 600 !important; }
.bihs-gallery-viewer-close span:first-child { font-size: 1.4rem; line-height: 1; }
.bihs-gallery-viewer-media { display: flex; justify-content: center; align-items: center; min-height: 140px; padding: 24px; background: #f0f3f3; }
.bihs-gallery-viewer-media img { display: block; max-width: 100%; max-height: 66dvh; width: auto; height: auto; object-fit: contain; }
.bihs-gallery-viewer-actions { display: flex; flex-wrap: wrap; gap: 12px; padding: 18px 24px; }
@media (min-width: 1600px) {
  .bihs-gallery-layout.bihs-gallery-has-rails { grid-template-columns: minmax(180px, 220px) minmax(0, 1140px) minmax(180px, 220px); }
  .bihs-gallery-layout.bihs-gallery-has-rails .bihs-gallery-main { grid-column: 2; grid-row: 1; }
  .bihs-gallery-layout.bihs-gallery-has-rails #gallery-ad-left { grid-column: 1; grid-row: 1; }
  .bihs-gallery-layout.bihs-gallery-has-rails #gallery-ad-right { grid-column: 3; grid-row: 1; }
}
@media (max-width: 992px) {
  .bihs-gallery-nav { flex-direction: column; align-items: stretch; padding: 6px 15px; }
  .bihs-gallery-menu-toggle { align-self: start; }
  .bihs-gallery-nav-links { flex-direction: column; gap: 0; padding: 6px 0; }
  .bihs-gallery-nav-links a { border-top: 1px solid #ffffff20; padding: 11px 12px; }
  .bihs-gallery-controls fieldset { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bihs-gallery-clear { align-self: end; }
  .bihs-gallery-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .bihs-gallery-footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 768px) {
  .bihs-gallery-admissions { border-top: 1px solid #e0eceb; }
  .bihs-gallery-admissions strong { color: #0d3b66; font-weight: 600; }
  .bihs-gallery-admissions-apply { margin-left: 12px; transition: background-color .3s ease; }
}
@media (max-width: 700px) {
  .bihs-gallery-admissions { flex-direction: column; }
}
@media (max-width: 600px) {
  .bihs-gallery-header { padding: 14px; }
  .bihs-gallery-brand { gap: 11px; }
  .bihs-gallery-brand img { flex-basis: 54px; width: 54px; height: 54px; }
  .bihs-gallery-brand-title { font-size: 1.12rem; }
  .bihs-gallery-brand p { font-size: .67rem; }
  .bihs-gallery-layout { padding: 0 15px; }
  .bihs-gallery-page .bihs-gallery-main { padding: 18px 0 40px; }
  .bihs-gallery-breadcrumb { margin-bottom: 16px; }
  .bihs-gallery-intro { padding: 23px 20px; }
  .bihs-gallery-intro h1 { font-size: 1.8rem; }
  .bihs-gallery-intro > p:last-child { font-size: .84rem; }
  .bihs-gallery-controls { padding: 16px; }
  .bihs-gallery-controls fieldset { grid-template-columns: 1fr; gap: 13px; }
  .bihs-gallery-field input, .bihs-gallery-field select { font-size: 1rem; }
  .bihs-gallery-card-grid { grid-template-columns: 1fr; }
  .bihs-gallery-section-heading { align-items: start; }
  .bihs-gallery-section-heading h2 { font-size: 1.3rem; }
  .bihs-gallery-section-count { padding-top: 22px; font-size: .68rem; }
  .bihs-gallery-learning-note { padding: 15px 17px; }
  .bihs-gallery-footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .bihs-gallery-viewer { width: calc(100% - 20px); max-height: calc(100dvh - 20px); }
  .bihs-gallery-viewer-header { gap: 12px; padding: 18px 16px; }
  .bihs-gallery-viewer-header h2 { font-size: 1rem; }
  .bihs-gallery-viewer-header p { font-size: .72rem; }
  .bihs-gallery-viewer-close { padding: 6px 9px; }
  .bihs-gallery-viewer-media { padding: 15px; }
  .bihs-gallery-viewer-actions { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  .bihs-gallery-page *, .bihs-gallery-page *::before, .bihs-gallery-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
