.phg-page { color: #153f47; }
.phg-page button { font-family: inherit; cursor: pointer; }
.phg-page :is(a, button, input, select):focus-visible { outline: 3px solid #e5ae30; outline-offset: 4px; }
.phg-hero { overflow: hidden; background: #064f59; padding: 30px 0 42px; color: #fff; border-bottom: 3px solid #f7bd37; }
.phg-hero-inner { display: grid; grid-template-columns: minmax(0, 1fr) 190px; align-items: center; gap: 60px; }
.phg-hero .breadcrumbs { color: #c6dfdc; margin-bottom: 24px; }
.phg-hero .breadcrumbs a, .phg-hero .breadcrumbs span { color: inherit; }
.phg-eyebrow { color: #007f89; font-size: 13px; letter-spacing: .12em; font-weight: 700; margin: 0 0 12px; }
.phg-hero .phg-eyebrow { color: #bce2db; }
.phg-hero h1 { color: #fff; font-size: clamp(36px, 4vw, 54px); line-height: 1.12; margin: 0 0 18px; }
.phg-intro p { max-width: 660px; color: #e2efeb; font-size: 17px; line-height: 1.8; margin: 0; }
.phg-hero-art { position: relative; width: 180px; height: 180px; display: grid; place-items: center; }
.phg-hero-art span { display: grid; place-items: center; width: 120px; height: 120px; border: 1px solid #ffffff45; border-radius: 26px; transform: rotate(-6deg); background: #ffffff05; }
.phg-hero-art svg { width: 46px; height: 46px; color: #f7bd37; transform: rotate(6deg); }
.phg-hero-art i, .phg-hero-art b { position: absolute; width: 140px; height: 140px; border: 1px solid #ffffff16; border-radius: 26px; transform: rotate(12deg); }
.phg-hero-art b { width: 165px; height: 165px; transform: rotate(24deg); }
.phg-library { padding-top: 54px; padding-bottom: 62px; scroll-margin-top: 120px; }
.phg-library-heading { display: flex; justify-content: space-between; gap: 35px; align-items: flex-end; margin-bottom: 28px; }
.phg-library-heading h2 { font-size: clamp(27px, 2.8vw, 35px); margin: 0; }
.phg-library-heading > p { max-width: 290px; font-size: 16px; line-height: 1.7; margin: 0; }
.phg-filters { display: grid; grid-template-columns: 1fr .85fr 1.4fr auto; gap: 18px; padding: 20px 0 24px; border-top: 1px solid #dfe8e4; border-bottom: 1px solid #dfe8e4; align-items: end; }
.phg-filters label { display: block; min-width: 0; font-size: 13px; font-weight: 600; color: #537278; }
.phg-filters label > span { display: block; margin-bottom: 8px; }
.phg-filters input, .phg-filters select { width: 100%; height: 46px; border: 1px solid #d6e2dd; background: #fafcfb; color: #153f47; border-radius: 8px; padding: 10px 12px; font: inherit; font-size: 15px; }
.phg-filters button { height: 46px; border: 0; border-radius: 8px; background: #087f88; color: #fff; display: flex; gap: 18px; align-items: center; justify-content: center; padding: 10px 20px; font-size: 15px; font-weight: 600; }
.phg-filters button:hover { background: #005e68; }
.phg-filters button:disabled { opacity: .6; cursor: wait; }
.phg-status { min-height: 24px; margin: 21px 0; font-size: 14px; color: #607c80; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.phg-status button { border: 0; background: transparent; color: #087f88; text-decoration: underline; padding: 0; }
.phg-status.is-loading::before, .phg-viewer-stage[aria-busy="true"]::before { content: ''; width: 18px; height: 18px; border: 2px solid #a3c8c3; border-top-color: #087f88; border-radius: 50%; animation: phg-spin .8s linear infinite; flex-shrink: 0; }
.phg-results { transition: opacity .18s ease; min-height: 220px; }
.phg-results[aria-busy="true"] { opacity: .4; pointer-events: none; }
.phg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.phg-card { display: block; position: relative; overflow: hidden; border-radius: 12px; background: #eaf1ee; isolation: isolate; }
.phg-card-image { position: relative; display: block; aspect-ratio: 4/5; overflow: hidden; }
.phg-card-image > img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center 20%; transition: transform .55s cubic-bezier(.2,.65,.3,1); }
.phg-card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #062e3520 0%, transparent 35%, #06272e08 50%, #031f26de 100%); pointer-events: none; }
.phg-card:hover .phg-card-image > img { transform: scale(1.035); }
.phg-card-copy { position: absolute; bottom: 0; left: 0; right: 0; z-index: 1; padding: 50px 25px 25px; }
.phg-collection-label { display: block; color: #d2e9e4; font-size: 13px; font-weight: 500; line-height: 1.5; margin-bottom: 7px; }
.phg-card-copy strong { display: block; color: #fff; font-size: 22px; font-weight: 600; line-height: 1.3; letter-spacing: -.025em; overflow-wrap: anywhere; }
.phg-kind { position: absolute; left: 18px; top: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 6px; background: #fffef5ed; padding: 6px 11px; font-size: 13px; font-weight: 600; color: #17474e; border-radius: 30px; }
.phg-kind svg { width: 15px; height: 15px; }
.phg-open { position: absolute; right: 18px; top: 18px; z-index: 2; display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid #ffffff7a; border-radius: 50%; background: #0639409c; color: #fff; opacity: 0; transform: translateY(5px); transition: opacity .2s, transform .2s; }
.phg-card:hover .phg-open, .phg-card:focus-visible .phg-open { opacity: 1; transform: none; }
.phg-open svg { width: 18px; height: 18px; }
.phg-video-placeholder { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 80% 10%, #378a8c, #064f59); color: #ffe093; }
.phg-video-placeholder svg { width: 46px; height: 46px; padding: 20px; border: 1px solid #ffffff65; border-radius: 50%; box-sizing: content-box; }
.phg-empty { text-align: center; border: 1px solid #dce8e1; border-radius: 12px; background: #f7faf8; padding: 60px 24px; }
.phg-empty > svg { width: 38px; height: 38px; color: #087f88; margin-bottom: 18px; }
.phg-empty h2 { font-size: 24px; margin-bottom: 12px; }
.phg-empty p { max-width: 530px; margin: auto; }
.phg-pagination { display: flex; gap: 16px; align-items: center; justify-content: center; margin-top: 35px; }
.phg-pagination a { border: 1px solid #bdd5ce; padding: 8px 16px; border-radius: 8px; color: #087f88; font-weight: 600; }
.phg-pagination span { font-size: 14px; color: #607a80; }
.phg-visit { display: flex; justify-content: space-between; align-items: center; gap: 30px; margin-bottom: 65px; border-top: 1px solid #dce8e3; border-bottom: 1px solid #dce8e3; padding: 35px 0; }
.phg-visit h2 { font-size: 30px; margin-bottom: 10px; }
.phg-visit .button { flex-shrink: 0; }
/* Media viewer: isolated from the theme's general heading and button styles. */
body.phg-viewer-open { overflow: hidden; }
.phg-page .phg-viewer { width: min(1180px, calc(100vw - 64px)); height: min(740px, calc(100dvh - 64px)); max-width: none; max-height: none; margin: auto; border: 1px solid #ffffff25; border-radius: 18px; padding: 0; overflow: hidden; background: #0b3037; color: #fff; box-shadow: 0 30px 100px #001b2280; }
.phg-viewer[open] { display: grid; grid-template-rows: 62px minmax(0, 1fr) 92px; animation: phg-enter .18s ease-out; }
.phg-viewer::backdrop { background: #041c22ed; backdrop-filter: blur(6px); }
.phg-viewer .phg-viewer-bar { display: flex; align-items: center; justify-content: space-between; padding: 0 22px; border-bottom: 1px solid #ffffff12; background: #0b3037; }
.phg-viewer-brand { display: inline-flex; gap: 11px; align-items: center; color: #f0f8f5; font-size: 15px; font-weight: 500; }
.phg-viewer-brand svg { width: 20px; height: 20px; color: #f7bd37; }
.phg-viewer-actions { display: flex; align-items: center; gap: 20px; }
.phg-viewer-count { font-size: 13px; color: #b7d1cd; font-variant-numeric: tabular-nums; letter-spacing: .06em; }
.phg-viewer [data-gallery-close] { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid #ffffff35; border-radius: 50%; background: transparent; color: #fff; }
.phg-viewer [data-gallery-close]:hover { background: #ffffff16; }
.phg-viewer [data-gallery-close] svg { width: 18px; height: 18px; }
.phg-viewer-body { display: grid; grid-template-columns: minmax(0, 1fr) 290px; min-width: 0; min-height: 0; }
.phg-viewer-canvas { position: relative; min-width: 0; min-height: 0; background: radial-gradient(ellipse at center, #123f47, #08272f); }
.phg-viewer-stage { position: absolute; inset: 0; overflow: hidden; display: grid; place-items: center; }
.phg-viewer-stage > :is(img, video, iframe) { display: block; width: 100%; height: 100%; min-width: 0; min-height: 0; max-height: 100%; object-fit: contain; border: 0; opacity: 0; transition: opacity .2s ease; }
.phg-viewer-stage > img { padding: 20px 64px; box-sizing: border-box; }
.phg-viewer-stage > :is(video, iframe) { width: calc(100% - 112px); height: 100%; }
.phg-viewer-stage.is-ready > :is(img, video, iframe) { opacity: 1; }
.phg-viewer-stage[aria-busy="true"]::before { position: absolute; top: calc(50% - 11px); left: calc(50% - 11px); width: 22px; height: 22px; border-color: #87aaa3; border-top-color: #f7bd37; z-index: 2; }
.phg-viewer .phg-viewer-arrow { position: absolute; top: calc(50% - 22px); z-index: 2; display: grid; place-items: center; width: 42px; height: 44px; border: 1px solid #ffffff40; border-radius: 50%; padding: 0; background: #082a32b3; color: #fff; transition: background .15s; }
.phg-viewer .phg-viewer-arrow:hover { background: #20545d; }
.phg-viewer-prev { left: 14px; }
.phg-viewer-next { right: 14px; }
.phg-viewer .phg-viewer-arrow svg { width: 22px; height: 22px; }
.phg-viewer .phg-viewer-arrow:disabled { opacity: .23; cursor: default; background: transparent; }
.phg-viewer-status { position: absolute; left: 64px; right: 64px; bottom: 10px; margin: 0; font-size: 13px; line-height: 1.5; text-align: center; color: #d3e5e1; }
.phg-viewer-status a { color: #ffda75; text-decoration: underline; }
.phg-viewer-details { background: #f5f8f5; color: #153f47; padding: 38px 28px 28px; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; align-items: flex-start; }
.phg-viewer .phg-viewer-collection { margin: 0 0 22px; padding-top: 17px; position: relative; color: #0b7a83; text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .09em; line-height: 1.6; }
.phg-viewer-collection::before { content: ''; position: absolute; top: 0; left: 0; width: 30px; height: 3px; background: #f7bd37; }
.phg-viewer #phg-viewer-title { margin: 0; color: #153f47; font-size: 27px; line-height: 1.25; font-weight: 600; letter-spacing: -.035em; overflow-wrap: anywhere; }
.phg-viewer .phg-viewer-caption { margin: 18px 0 30px; color: #58737a; font-size: 15px; line-height: 1.8; overflow-wrap: anywhere; }
.phg-viewer-signature { margin-top: auto; padding-top: 22px; border-top: 1px solid #dce6e1; width: 100%; }
.phg-viewer-signature span { display: block; color: #618087; font-size: 12px; line-height: 1.8; }
.phg-viewer-signature span:first-child { color: #294d53; font-size: 11px; font-weight: 700; letter-spacing: .06em; }
.phg-viewer-thumbnails { display: flex; justify-content: safe center; align-items: center; gap: 10px; padding: 12px 22px; overflow-x: auto; overflow-y: hidden; background: #0b3037; border-top: 1px solid #ffffff12; position: relative; scrollbar-width: thin; scrollbar-color: #668783 #0b3037; }
.phg-viewer .phg-viewer-thumbnail { position: relative; display: grid; place-items: center; flex: 0 0 66px; width: 66px; height: 60px; padding: 3px; border: 1px solid transparent; border-radius: 7px; background: #1b4951; color: #f7bd37; opacity: .5; transition: opacity .2s, border-color .2s; }
.phg-viewer-thumbnail img { position: absolute; inset: 3px; display: block; width: calc(100% - 6px); height: calc(100% - 6px); object-fit: cover; object-position: center 20%; border-radius: 4px; }
.phg-viewer .phg-viewer-thumbnail:hover { opacity: .9; }
.phg-viewer .phg-viewer-thumbnail[aria-current="true"] { opacity: 1; border-color: #f7bd37; }
.phg-viewer-thumbnail.is-video::after { content: '▶'; position: absolute; bottom: 4px; right: 5px; color: #fff; text-shadow: 0 1px 5px #000; font-size: 11px; }
@keyframes phg-spin { to { transform: rotate(360deg); } }
@keyframes phg-enter { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) {
    .phg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
    .phg-filters { grid-template-columns: 1fr 1fr; }
    .phg-library-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
    .phg-library-heading > p { max-width: none; }
    .phg-page .phg-viewer { width: calc(100vw - 36px); height: calc(100dvh - 36px); }
    .phg-viewer-body { grid-template-columns: minmax(0, 1fr) 250px; }
    .phg-viewer-details { padding: 30px 22px; }
    .phg-viewer #phg-viewer-title { font-size: 25px; }
}
@media (max-width: 700px) {
    .phg-hero { padding: 24px 0 32px; }
    .phg-hero-inner { display: block; }
    .phg-hero-art { display: none; }
    .phg-intro p { font-size: 16px; }
    .phg-library { padding-top: 35px; padding-bottom: 40px; }
    .phg-filters { padding: 18px 0; gap: 14px 10px; }
    .phg-filters input, .phg-filters select { font-size: 16px; }
    .phg-search { grid-column: 1 / -1; }
    .phg-filters button { grid-column: 1 / -1; }
    .phg-grid { gap: 14px; }
    .phg-card-copy { padding: 35px 15px 17px; }
    .phg-card-copy strong { font-size: 18px; }
    .phg-collection-label { font-size: 12px; margin-bottom: 5px; }
    .phg-open { top: 12px; right: 12px; width: 30px; height: 30px; }
    .phg-open svg { width: 15px; height: 15px; }
    .phg-kind { top: 12px; left: 12px; font-size: 12px; padding: 4px 8px; }
    .phg-visit { flex-direction: column; align-items: flex-start; padding: 28px 0; margin-bottom: 40px; }
    .phg-visit h2 { font-size: 28px; }
    .phg-page .phg-viewer { width: calc(100vw - 20px); height: calc(100dvh - 24px); border-radius: 13px; }
    .phg-viewer[open] { grid-template-rows: 54px minmax(0, 1fr) 78px; }
    .phg-viewer .phg-viewer-bar { padding: 0 14px; }
    .phg-viewer-brand { font-size: 14px; gap: 8px; }
    .phg-viewer-actions { gap: 12px; }
    .phg-viewer [data-gallery-close] { width: 32px; height: 32px; }
    .phg-viewer-body { grid-template-columns: 1fr; grid-template-rows: minmax(150px, 1fr) auto; }
    .phg-viewer-details { padding: 18px 20px; max-height: 24dvh; display: block; }
    .phg-viewer .phg-viewer-collection { padding: 0; margin: 0 0 7px; font-size: 11px; }
    .phg-viewer-collection::before, .phg-viewer-signature { display: none; }
    .phg-viewer #phg-viewer-title { font-size: 21px; line-height: 1.3; }
    .phg-viewer .phg-viewer-caption { font-size: 14px; line-height: 1.65; margin: 8px 0 0; }
    .phg-viewer-stage > img { padding: 12px 46px; }
    .phg-viewer-stage > :is(video, iframe) { width: calc(100% - 88px); }
    .phg-viewer .phg-viewer-arrow { width: 32px; height: 36px; top: calc(50% - 18px); }
    .phg-viewer-prev { left: 7px; }
    .phg-viewer-next { right: 7px; }
    .phg-viewer-status { left: 46px; right: 46px; font-size: 12px; bottom: 6px; }
    .phg-viewer-thumbnails { padding: 10px 14px; gap: 8px; }
    .phg-viewer .phg-viewer-thumbnail { flex-basis: 56px; width: 56px; height: 54px; }
}
@media (max-width: 440px) {
    .phg-grid { grid-template-columns: 1fr; gap: 20px; }
    .phg-card-copy { padding: 45px 22px 24px; }
    .phg-card-copy strong { font-size: 22px; }
    .phg-collection-label { font-size: 13px; }
}
@media (hover: none) { .phg-open { opacity: 1; transform: none; } }

.phg-grid--hospital-photos {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.phg-grid--hospital-photos .phg-card-image {
    aspect-ratio: 5 / 4;
}

.phg-grid--hospital-photos .phg-card-image > img {
    object-position: center;
}

.phg-grid--hospital-photos .phg-card-image > .phg-poster-cover {
    object-fit: contain;
    background: #eef3f3;
}

.phg-grid--hospital-photos .phg-card-copy,
.phg-grid--hospital-photos .phg-card-image::after {
    display: none;
}

@media (max-width: 1050px) {
    .phg-grid--hospital-photos {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 700px) {
    .phg-grid--hospital-photos {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .phg-grid--hospital-photos .phg-card-image {
        aspect-ratio: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .phg-page *, .phg-page *::before, .phg-page *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .phg-card:hover .phg-card-image > img { transform: none; }
}
