.ph-local-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    color: #fff;
    background: radial-gradient(ellipse at 95% 37%, #108d99, transparent 45%),
        linear-gradient(115deg, #052b39 15%, #075361 75%, #08717c);
    overflow: hidden;
}

.ph-local-hero__inner {
    grid-area: 1 / 1;
    min-width: 0;
    position: relative;
    isolation: isolate;
    display: grid;
    grid-template-columns: minmax(0, .95fr) minmax(0, 1.5fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4rem);
    padding-block: clamp(2.25rem, 4vw, 4rem);
}

.ph-local-hero__inner[inert] {
    visibility: hidden;
}

.ph-local-hero__inner::before {
    position: absolute;
    z-index: -1;
    right: -30%;
    top: -15%;
    width: 96%;
    aspect-ratio: 1;
    border-radius: 50%;
    border: clamp(2rem, 5vw, 5rem) solid #69dfea16;
    box-shadow: 0 0 0 1px #90f7ff24, inset 0 0 0 1px #90f7ff24;
    pointer-events: none;
    content: '';
}

.ph-local-hero__copy > p,
.ph-local-hero h1 span {
    color: #a9f6df;
}

.ph-local-hero__copy > p {
    margin-bottom: 1rem;
    font-weight: 700;
}

.ph-local-hero h1 {
    max-width: 12ch;
    margin-bottom: 1.75rem;
    font-size: clamp(2rem, 4vw, 4rem);
    letter-spacing: -.045em;
    line-height: 1.07;
}

.ph-local-hero h1 span {
    display: block;
}

.ph-local-hero .button {
    background: #a9f6df;
    color: #052b39;
}

.ph-local-hero .button:hover {
    background: #d5fff3;
}

.ph-local-hero__inner > img {
    width: 100%;
    height: auto;
    aspect-ratio: 1084 / 650;
    object-fit: cover;
    border: 1px solid #74e4ed;
    border-radius: 16px;
    box-shadow: 0 14px 32px #00192355;
}

:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination) {
    position: absolute;
    z-index: 2;
    bottom: .875rem;
    inset-inline: 0;
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    width: fit-content;
    max-width: calc(100% - 2rem);
    padding: 2px 8px;
    border: 1px solid #143d4326;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 3px 12px #092d391f;
}

:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination) button {
    display: grid;
    place-items: center;
    width: 28px;
    height: 32px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
}

:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination) button::before {
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: #6d858d;
    content: '';
}

:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination) button:hover::before {
    background: #00535e;
}

:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination) button[aria-current="true"]::before {
    width: 16px;
    background: #00535e;
}

:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination) button:focus-visible {
    outline: 2px solid #00535e;
    outline-offset: -2px;
}

.ph-local-hero:has(:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination):not([hidden])) .ph-local-hero__inner:not(.ph-department-hero, .ph-local-hero__overview),
.ph-local-hero:has(:is(.ph-local-hero__pagination, .ph-gallery-hero-pagination):not([hidden])) .ph-department-hero__layout {
    padding-bottom: 4.5rem;
}

@media (max-width: 760px) {
    .ph-local-hero__inner {
        grid-template-columns: minmax(0, 1fr);
    }
}

.ph-local-hero__inner.ph-department-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    padding-block: 0;
    color: var(--banner-ink, #123a45);
    background: var(--banner-bg, #eef7f7);
    overflow: hidden;
}

.ph-department-hero.ph-local-hero__inner::before {
    content: none;
}

.ph-department-hero__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: clamp(1.5rem, 4vw, 4.5rem);
    min-height: clamp(380px, 34vw, 510px);
    padding-block: clamp(1.75rem, 4vw, 4rem);
}

.ph-department-hero__copy {
    position: relative;
    z-index: 1;
}

.ph-department-hero__location {
    margin-bottom: .8rem;
    color: var(--banner-accent, #056a70);
    font-size: .875rem;
    font-weight: 700;
}

#main-content .ph-department-hero h2 {
    margin: 0 0 .8rem;
    font-size: clamp(2rem, 4.2vw, 4.25rem);
    line-height: 1.04;
    text-wrap: balance;
    overflow-wrap: break-word;
}

.ph-department-hero__description {
    margin-bottom: 1.4rem;
    color: inherit;
    font-size: clamp(1rem, 1.5vw, 1.2rem);
}

.ph-department-hero .button {
    min-height: 46px;
    background: var(--banner-cta, #056a70);
    color: var(--banner-cta-ink, #fff);
}

.ph-department-hero .button:hover {
    background: var(--banner-cta-hover, #124753);
}

.ph-department-hero__photo {
    position: relative;
    margin: 0;
}

.ph-department-hero__photo img {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
}

.ph-department-hero--general-laparoscopic-surgery {
    --banner-bg: #0a2237;
    --banner-ink: #fff;
    --banner-accent: #a0d9ff;
    --banner-cta: #d8efff;
    --banner-cta-ink: #0a2237;
    --banner-cta-hover: #fff;
}

.ph-department-hero--general-laparoscopic-surgery .ph-department-hero__layout {
    grid-template-columns: minmax(0, 1fr);
}

.ph-department-hero--general-laparoscopic-surgery .ph-department-hero__copy {
    max-width: 31rem;
}

.ph-department-hero--general-laparoscopic-surgery .ph-department-hero__photo {
    position: absolute;
    inset: 0 0 0 25%;
}

.ph-department-hero--general-laparoscopic-surgery .ph-department-hero__photo img {
    height: 100%;
    object-position: center 44%;
}

.ph-department-hero--general-laparoscopic-surgery .ph-department-hero__photo::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, #0a2237, #0a223799 34%, transparent 83%);
    content: '';
}

.ph-department-hero--orthopaedics {
    --banner-bg: linear-gradient(90deg, #d5e9fa 0 42%, #f5faff 42%);
    --banner-accent: #254d83;
    --banner-cta: #254d83;
}

.ph-department-hero--orthopaedics .ph-department-hero__layout {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
}

.ph-department-hero--orthopaedics .ph-department-hero__photo {
    grid-row: 1;
    grid-column: 1;
    border-bottom: 7px solid #254d83;
}

.ph-department-hero--obstetrics-gynaecology {
    --banner-bg: radial-gradient(ellipse at 78% 55%, #e8dcf3, #fbf8ff 68%);
    --banner-ink: #33203f;
    --banner-accent: #694178;
    --banner-cta: #694178;
    --banner-cta-hover: #492555;
}

.ph-department-hero--obstetrics-gynaecology .ph-department-hero__photo img {
    border-radius: 48% 48% 12px 12px;
    aspect-ratio: 1.55;
}

#main-content .ph-department-hero--obstetrics-gynaecology h2 {
    font-family: Georgia, serif;
    font-weight: 500;
}

.ph-department-hero--paediatrics {
    --banner-bg: linear-gradient(130deg, #e8f7ff 0 53%, #c9e8f6 53% 100%);
    --banner-accent: #145778;
    --banner-cta: #145778;
}

.ph-department-hero--paediatrics .ph-department-hero__copy {
    padding: clamp(1.15rem, 3vw, 2.5rem);
    border-radius: 24px 24px 24px 5px;
    background: #fff;
}

.ph-department-hero--paediatrics .ph-department-hero__layout {
    gap: 0;
}

.ph-department-hero--paediatrics .ph-department-hero__photo img {
    border-radius: 0 40% 24px 0;
}

.ph-department-hero--neurology {
    --banner-bg: linear-gradient(145deg, #110d33, #34306e);
    --banner-ink: #fff;
    --banner-accent: #d2c5ff;
    --banner-cta: #e6dfff;
    --banner-cta-ink: #292157;
    --banner-cta-hover: #fff;
}

.ph-department-hero--neurology .ph-department-hero__photo img {
    clip-path: polygon(18% 0, 100% 0, 82% 100%, 0 100%);
}

.ph-department-hero--general-medicine {
    --banner-bg: #f2f8f7;
    --banner-accent: #146f62;
    --banner-cta: #146f62;
}

.ph-department-hero--general-medicine .ph-department-hero__copy {
    border-inline-start: 5px solid #146f62;
    padding-inline-start: clamp(1rem, 3vw, 2.5rem);
}

.ph-department-hero--general-medicine .ph-department-hero__photo {
    outline: 1px solid #aaccc5;
    outline-offset: 7px;
}

.ph-department-hero--cardiology {
    --banner-bg: linear-gradient(112deg, #4b0e32 0 52%, #742248 52%);
    --banner-ink: #fff;
    --banner-accent: #ffc9de;
    --banner-cta: #ffe6f0;
    --banner-cta-ink: #4b0e32;
    --banner-cta-hover: #fff;
}

.ph-department-hero--cardiology .ph-department-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr);
}

.ph-department-hero--cardiology .ph-department-hero__photo img {
    border-radius: 160px 0 0 160px;
}

.ph-department-hero--diabetes-care {
    --banner-bg: #e7f6ec;
    --banner-accent: #245b42;
    --banner-cta: #245b42;
}

.ph-department-hero--diabetes-care .ph-department-hero__copy {
    padding: clamp(1.2rem, 3vw, 2.5rem);
    border-block: 1px solid #8cb29c;
}

.ph-department-hero--diabetes-care .ph-department-hero__layout {
    grid-template-columns: minmax(0, 1fr) minmax(0, .9fr);
}

.ph-department-hero--diabetes-care .ph-department-hero__photo img {
    border-radius: 50%;
    aspect-ratio: 1.65;
    box-shadow: 14px 14px 0 #b5d8c3;
}

@media (max-width: 760px) {
    .ph-department-hero .ph-department-hero__layout {
        grid-template-columns: minmax(0, 1fr);
        align-content: center;
        gap: 1rem;
        min-height: 0;
    }

    .ph-local-hero__inner:not(.ph-department-hero, .ph-local-hero__overview) {
        align-content: center;
        gap: 1.25rem;
    }

    .ph-local-hero__inner > img,
    .ph-department-hero__photo img {
        max-height: clamp(11rem, 56vw, 18rem);
    }

    .ph-department-hero--orthopaedics .ph-department-hero__photo {
        grid-row: auto;
        grid-column: auto;
    }

    .ph-department-hero--general-laparoscopic-surgery .ph-department-hero__photo {
        position: relative;
        inset: auto;
    }

    .ph-department-hero--general-laparoscopic-surgery .ph-department-hero__photo::after {
        content: none;
    }
}

.ph-local-hero:has(.ph-gallery-hero-pagination) {
    touch-action: pan-y pinch-zoom;
}

.ph-local-hero:has(.ph-gallery-hero-pagination) .ph-local-hero__inner {
    transition: opacity .55s ease, visibility .55s;
}

.ph-local-hero:has(.ph-gallery-hero-pagination) .ph-local-hero__inner[inert] {
    opacity: 0;
}

.ph-local-hero .ph-local-hero__overview {
    min-height: clamp(26rem, 37vw, 37.5rem);
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 0;
}

.ph-local-hero .ph-local-hero__overview::before {
    z-index: 1;
    inset: 0;
    width: auto;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: linear-gradient(90deg, #061b23c7, #061b2366 38%, transparent 67%);
}

.ph-local-hero .ph-local-hero__overview > .ph-local-hero__feature-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: none;
    aspect-ratio: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    object-fit: cover;
    object-position: center;
}

.ph-local-hero .ph-local-hero__overview .ph-local-hero__copy {
    position: relative;
    z-index: 1;
    padding-block: 3rem 4.5rem;
}

.ph-local-hero__image-label {
    display: block;
    margin-top: .65rem;
    color: #e7f2f5;
    font-size: .75rem;
}

.ph-gallery-hero-pagination .ph-gallery-hero-rotation {
    margin-inline-start: 3px;
    color: #00535e;
    font-size: .875rem;
}

.ph-gallery-hero-pagination .ph-gallery-hero-rotation::before {
    content: none;
}

@media (max-width: 760px) {
    .ph-local-hero .ph-local-hero__overview {
        align-content: end;
    }

    .ph-local-hero .ph-local-hero__overview::before {
        background: linear-gradient(0deg, #061b23fa, #061b23c7 34%, #061b2333 68%, transparent 86%);
    }

    .ph-local-hero .ph-local-hero__overview .ph-local-hero__copy {
        padding-top: 9rem;
    }

    .ph-local-hero .ph-local-hero__overview > .ph-local-hero__feature-image {
        object-position: 53% center;
    }

    .ph-gallery-hero-pagination button {
        width: 25px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ph-local-hero:has(.ph-gallery-hero-pagination) .ph-local-hero__inner {
        transition: none;
    }
}

/* Homepage banner actions */
.ph-local-hero__actions {
    display: flex;
    flex-wrap: wrap;
    gap: .625rem;
}

.ph-local-hero .ph-local-hero__actions .button {
    min-height: 46px;
    padding: .625rem .875rem;
    border: 1px solid transparent;
    border-radius: .5rem;
    font-size: .9rem;
    line-height: 1.2;
    text-align: center;
}

.ph-local-hero .ph-local-hero__actions .ph-local-hero__button--secondary {
    color: inherit;
    border-color: currentColor;
    background: transparent;
}

.ph-local-hero .ph-local-hero__actions .ph-local-hero__button--secondary:hover {
    color: var(--banner-cta-ink, #052b39);
    background: var(--banner-cta, #a9f6df);
    border-color: transparent;
}

@media (max-width: 760px) {
    .ph-local-hero .ph-local-hero__overview {
        min-height: clamp(22rem, 72vw, 27rem);
    }

    .ph-local-hero .ph-local-hero__overview .ph-local-hero__copy {
        padding-top: 2rem;
        padding-bottom: 3.875rem;
    }

    .ph-local-hero h1 {
        margin-bottom: 1rem;
    }

    .ph-local-hero__copy > p,
    .ph-department-hero__location {
        margin-bottom: .5rem;
    }

    .ph-local-hero .ph-department-hero .ph-department-hero__layout {
        gap: .875rem;
        padding-block: 1.375rem 1.25rem;
    }

    .ph-local-hero:has(.ph-gallery-hero-pagination:not([hidden])) .ph-department-hero__layout {
        padding-bottom: 3.875rem;
    }

    #main-content .ph-department-hero h2 {
        margin-bottom: .5rem;
        font-size: clamp(1.625rem, 4.5vw, 2.25rem);
    }

    .ph-department-hero__description {
        margin-bottom: .875rem;
    }

    .ph-department-hero--paediatrics .ph-department-hero__copy,
    .ph-department-hero--diabetes-care .ph-department-hero__copy {
        padding: .75rem;
    }

    .ph-department-hero--general-medicine .ph-department-hero__copy {
        padding-inline-start: .625rem;
    }

    .ph-local-hero__actions {
        display: grid;
        grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(0, 1fr);
        align-items: stretch;
        gap: .375rem;
        max-width: 26rem;
    }

    .ph-local-hero .ph-local-hero__actions .button {
        min-width: 0;
        min-height: 44px;
        padding: .3125rem .25rem;
        font-size: clamp(.75rem, 3.2vw, .875rem);
        line-height: 1.15;
        overflow-wrap: anywhere;
        text-wrap: balance;
    }

    .ph-department-hero__photo img {
        max-height: clamp(10rem, 47vw, 17rem);
    }
}
