/*
=====================================================
CCFT Post-Mortem Photography v1.3
Two-stage decision tool
=====================================================
*/

.pm-photo-dashboard-tile {
    border-top: 5px solid #4a7b8c;
}

.pm-photo-tile-icon {
    font-size: 36px;
    margin-bottom: 6px;
}


/* Decision progress */

.pm-photo-decision-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 11px;
    margin-bottom: 24px;
}

.pm-photo-decision-progress > div {
    display: flex;
    align-items: center;
    gap: 7px;
    opacity: .45;
}

.pm-photo-decision-progress > div.is-active {
    opacity: 1;
}

.pm-photo-decision-progress span {
    display: grid;
    place-items: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #d7e0e7;
    color: #33414b;
    font-weight: 900;
}

.pm-photo-decision-progress
    > div.is-active
    span {
    background: #0f3567;
    color: #ffffff;
}

.pm-photo-decision-progress strong {
    font-size: 12px;
    color: #33414b;
}

.pm-photo-decision-progress b {
    color: #8aa0af;
}


/* Decision pages */

.pm-photo-decision-card {
    max-width: 1120px;
    margin: 0 auto;
    padding: 28px;
}

.pm-photo-decision-heading {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 13px;
    margin-bottom: 24px;
    text-align: left;
}

.pm-photo-step-circle {
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0f3567;
    color: #ffffff;
    font-size: 25px;
    font-weight: 900;
}

.pm-photo-decision-heading h2 {
    margin: 0;
    color: #0f3567;
    font-size: 30px;
}

.pm-photo-decision-heading p {
    margin: 3px 0 0;
    color: #65717c;
}


/* Base case */

.pm-photo-base-decision-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0, 1fr));
    gap: 18px;
    max-width: 900px;
    margin: 0 auto;
}

.pm-photo-decision-tile {
    display: grid;
    grid-template-columns: 75px 1fr 34px;
    gap: 15px;
    align-items: center;
    min-height: 135px;
    padding: 20px;
    text-align: left;
    border: 2px solid #b9c8d4;
    border-radius: 16px;
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f3f7fb
        );
    color: #17345e;
}

.pm-photo-decision-tile:hover {
    border-color: #2e69b3;
    transform: translateY(-2px);
}

.pm-photo-decision-tile.paediatric {
    background:
        linear-gradient(
            145deg,
            #ffffff,
            #fff4f8
        );
}

.pm-photo-decision-avatar {
    display: grid;
    place-items: center;
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: #edf4fa;
    font-size: 43px;
}

.pm-photo-decision-tile strong {
    display: block;
    font-size: 21px;
    text-transform: uppercase;
}

.pm-photo-decision-tile small {
    display: block;
    margin-top: 5px;
    color: #65717c;
}

.pm-photo-decision-tile b {
    font-size: 30px;
}


/* Special case selection */

.pm-photo-selected-base {
    width: max-content;
    margin: 0 auto 20px;
    padding: 8px 13px;
    border-radius: 999px;
    background: rgba(15,53,103,.09);
    color: #17345e;
    font-weight: 900;
}

.pm-photo-special-decision-grid {
    display: grid;
    grid-template-columns:
        repeat(4, minmax(0, 1fr));
    gap: 11px;
}

.pm-photo-special-choice {
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    gap: 3px 9px;
    align-items: center;
    min-height: 92px;
    padding: 13px;
    text-align: left;
    border: 2px solid #c5d0d7;
    border-radius: 12px;
    background: #ffffff;
    color: #26343e;
}

.pm-photo-special-choice > span {
    grid-row: 1 / 3;
    display: grid;
    place-items: center;
    font-size: 31px;
}

.pm-photo-special-choice strong {
    font-size: 13px;
    text-transform: uppercase;
}

.pm-photo-special-choice small {
    width: max-content;
    padding: 2px 6px;
    border-radius: 999px;
    background: #eef2f5;
    color: #65717c;
    font-size: 9px;
    font-weight: 900;
}

.pm-photo-special-choice.is-selected {
    border-color: #c51f3a;
    background: rgba(197,31,58,.05);
}

.pm-photo-special-choice.is-selected small {
    background: #c51f3a;
    color: #ffffff;
}

.pm-photo-decision-actions {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 24px;
}


/* Generated checklist heading */

.pm-photo-checklist-header {
    padding: 18px 22px;
    border-top: 6px solid #0f3567;
}

.pm-photo-checklist-title {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 15px;
}

.pm-photo-checklist-title h1 {
    margin: 2px 0;
    color: #0f3567;
}

.pm-photo-checklist-title p {
    margin: 3px 0 0;
    color: #65717c;
}

.pm-photo-kicker {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #4a7b8c;
}

.pm-photo-header-actions {
    display: flex;
    gap: 7px;
    flex-wrap: wrap;
}


/* Hanging visual */

.pm-photo-position-mode {
    border-top: 5px solid #c51f3a;
}

.pm-photo-section-heading {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    align-items: flex-start;
}

.pm-photo-section-heading h2 {
    margin: 2px 0;
}

.pm-photo-progress {
    padding: 7px 11px;
    border-radius: 999px;
    background: #c51f3a;
    color: #ffffff;
}

.pm-photo-position-image {
    display: block;
    width: 100%;
    max-height: 370px;
    margin: 10px auto;
    object-fit: contain;
}

.pm-photo-position-buttons {
    display: grid;
    grid-template-columns:
        repeat(4, 1fr);
    gap: 8px;
}

.pm-photo-position-buttons button {
    padding: 10px;
    border: 1px solid #c7d1d8;
    border-radius: 8px;
    background: #ffffff;
    font-weight: 900;
}

.pm-photo-position-buttons
    button.is-complete {
    border-color: #319665;
    background: rgba(49,150,101,.12);
    color: #246d4a;
}


/* Standard and additional */

.pm-photo-two-column {
    display: grid;
    grid-template-columns:
        minmax(0,1fr)
        minmax(0,1fr);
    gap: 16px;
}

.pm-photo-standard-section,
.pm-photo-additional-section {
    padding: 0;
    overflow: hidden;
}

.pm-photo-section-banner {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 13px 15px;
    color: #ffffff;
}

.pm-photo-section-banner.standard {
    background: #0f3567;
}

.pm-photo-section-banner.additional {
    background: #c51f3a;
}

.pm-photo-section-banner > span {
    display: grid;
    place-items: center;
    width: 31px;
    height: 31px;
    border-radius: 50%;
    background: rgba(255,255,255,.16);
    font-weight: 900;
}

.pm-photo-section-banner h2 {
    margin: 0;
    color: #ffffff;
    font-size: 18px;
}

.pm-photo-section-banner p {
    margin: 2px 0 0;
    color: rgba(255,255,255,.8);
    font-size: 11px;
}


/* Filters */

.pm-photo-filter-row {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
    padding: 11px 12px 2px;
}

.pm-photo-filter-row button {
    padding: 5px 8px;
    border: 1px solid #cbd4da;
    border-radius: 999px;
    background: #ffffff;
    font-size: 9px;
    font-weight: 900;
}

.pm-photo-filter-row
    button.is-active {
    background: #303944;
    color: #ffffff;
}


/* Photo tiles */

.pm-photo-photo-grid {
    display: grid;
    grid-template-columns:
        repeat(2, minmax(0,1fr));
    gap: 8px;
    padding: 10px 12px;
}

.pm-photo-photo-tile {
    display: grid;
    gap: 6px;
    min-height: 85px;
    padding: 10px;
    border: 1px solid #d0d8dd;
    border-left-width: 5px;
    border-radius: 9px;
    background: #ffffff;
}

.pm-photo-check-line {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pm-photo-check-line input {
    flex: 0 0 auto;
    width: 18px;
    height: 18px;
    margin: 0;
}

.pm-photo-photo-name {
    font-size: 13px;
    font-weight: 900;
    color: #26343e;
}

.pm-photo-tile-detail-row {
    display: grid;
    grid-template-columns: 27px 1fr;
    gap: 7px;
    align-items: center;
}

.pm-photo-photo-icon {
    font-size: 22px;
}

.pm-photo-photo-detail {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 10px;
    color: #65717c;
}

.pm-photo-status {
    font-size: 9px;
    font-weight: 900;
}

.pm-status-mandatory {
    border-left-color: #c51f3a;
}

.pm-status-mandatory
    .pm-photo-photo-name,
.pm-status-mandatory
    .pm-photo-status {
    color: #c51f3a;
}

.pm-status-ifPresent {
    border-left-color: #e59a00;
}

.pm-status-ifPresent
    .pm-photo-status {
    color: #b57700;
}

.pm-status-directed {
    border-left-color: #1e5db7;
}

.pm-status-directed
    .pm-photo-status {
    color: #1e5db7;
}


/* Additional groups */

.pm-photo-additional-group {
    padding: 12px;
    border-bottom: 1px solid #e1e6e9;
}

.pm-photo-group-title {
    display: flex;
    align-items: center;
    gap: 9px;
}

.pm-photo-group-title > span {
    font-size: 27px;
}

.pm-photo-group-title h3 {
    margin: 0;
    font-size: 16px;
    color: #a71830;
}

.pm-photo-group-title small {
    color: #65717c;
}

.pm-photo-additional-group
    .pm-photo-photo-grid {
    padding: 9px 0;
}

.pm-photo-empty-additional {
    display: grid;
    place-items: center;
    min-height: 200px;
    padding: 30px;
    text-align: center;
    color: #65717c;
}

.pm-photo-empty-additional > span {
    font-size: 40px;
    color: #319665;
}


/* Expand buttons */

.pm-photo-expand-button {
    display: block;
    width: calc(100% - 24px);
    margin: 3px 12px 12px;
    padding: 8px;
    border: 1px solid #bfcbd3;
    border-radius: 7px;
    background: #f7fafb;
    color: #17345e;
    font-weight: 900;
}


/* Legend */

.pm-photo-legend {
    display: flex;
    justify-content: center;
    gap: 24px;
    flex-wrap: wrap;
    padding: 12px;
    border-top: 1px solid #d4dce1;
    font-size: 11px;
}

.pm-photo-legend .mandatory {
    color: #c51f3a;
}

.pm-photo-legend .if-present {
    color: #c48400;
}

.pm-photo-legend .directed {
    color: #1e5db7;
}


/* References */

.pm-photo-references summary {
    cursor: pointer;
    font-weight: 800;
}

.pm-photo-reference-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(250px,1fr)
        );
    gap: 8px;
    margin-top: 10px;
}

.pm-photo-reference {
    display: grid;
    gap: 4px;
    padding: 10px;
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text);
}

.pm-photo-reference span {
    font-size: 11px;
    color: #65717c;
}


/* Responsive */

@media (max-width: 1000px) {

    .pm-photo-special-decision-grid {
        grid-template-columns:
            repeat(3,1fr);
    }

    .pm-photo-two-column {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 700px) {

    .pm-photo-base-decision-grid {
        grid-template-columns: 1fr;
    }

    .pm-photo-special-decision-grid {
        grid-template-columns:
            repeat(2,1fr);
    }

    .pm-photo-position-buttons {
        grid-template-columns:
            repeat(2,1fr);
    }

    .pm-photo-checklist-title {
        display: grid;
    }
}

@media (max-width: 480px) {

    .pm-photo-special-decision-grid,
    .pm-photo-photo-grid {
        grid-template-columns: 1fr;
    }

    .pm-photo-decision-progress strong {
        display: none;
    }
}


/* =====================================================
   v1.4 — Large decision pages
===================================================== */

/*
Step 1 should visually fill the workspace with the
Adult and Paediatric choices.
*/

.pm-photo-decision-card {
    max-width: 1320px;
    min-height: calc(100vh - 150px);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.pm-photo-base-decision-grid {
    width: 100%;
    max-width: 1240px;
    gap: 26px;
}

.pm-photo-decision-tile {
    min-height: 330px;
    grid-template-columns: 150px 1fr 55px;
    padding: 42px;
    border-radius: 24px;
}

.pm-photo-decision-avatar {
    width: 140px;
    height: 140px;
    font-size: 88px;
}

.pm-photo-decision-tile strong {
    font-size: clamp(28px, 3vw, 42px);
}

.pm-photo-decision-tile small {
    margin-top: 12px;
    font-size: 18px;
    line-height: 1.4;
}

.pm-photo-decision-tile b {
    font-size: 52px;
}


/*
Step 2 uses large case tiles rather than small
dashboard-style buttons.
*/

.pm-photo-special-page {
    justify-content: flex-start;
}

.pm-photo-large-case-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice {
    position: relative;
    display: grid;
    grid-template-columns: 80px 1fr;
    grid-template-rows: auto auto auto;
    gap: 7px 14px;
    min-height: 165px;
    padding: 22px;
    border-radius: 16px;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice > span {
    grid-row: 1 / 4;
    font-size: 50px;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice strong {
    font-size: 18px;
    line-height: 1.2;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice small {
    font-size: 10px;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice em {
    display: block;
    color: #65717c;
    font-size: 12px;
    font-style: normal;
    line-height: 1.35;
}

.pm-photo-standard-choice {
    border-color: #0f3567 !important;
    background:
        linear-gradient(
            145deg,
            #eef5fc,
            #ffffff
        ) !important;
}

.pm-photo-standard-choice.is-selected {
    border-color: #0f3567 !important;
    background: #e5f0fb !important;
    box-shadow:
        inset 0 0 0 2px #0f3567;
}

.pm-photo-standard-choice
    strong {
    color: #0f3567;
}

.pm-photo-standard-choice
    small {
    background: #0f3567 !important;
    color: #ffffff !important;
}

.pm-photo-generate-button {
    min-width: 250px;
    min-height: 48px;
    font-weight: 900;
}


/*
The requested baseline identification photographs
are visually prominent because they are mandatory.
*/

.pm-status-mandatory
    .pm-photo-photo-name {
    font-weight: 900;
    color: #c51f3a;
}


/* Responsive large decisions */

@media (max-width: 1050px) {

    .pm-photo-large-case-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }

    .pm-photo-decision-tile {
        min-height: 270px;
        grid-template-columns:
            110px 1fr 45px;
        padding: 30px;
    }

    .pm-photo-decision-avatar {
        width: 105px;
        height: 105px;
        font-size: 68px;
    }
}

@media (max-width: 700px) {

    .pm-photo-decision-card {
        min-height: auto;
    }

    .pm-photo-base-decision-grid,
    .pm-photo-large-case-grid {
        grid-template-columns: 1fr;
    }

    .pm-photo-decision-tile {
        min-height: 190px;
        grid-template-columns:
            85px 1fr 35px;
        padding: 22px;
    }

    .pm-photo-decision-avatar {
        width: 80px;
        height: 80px;
        font-size: 50px;
    }

    .pm-photo-decision-tile strong {
        font-size: 24px;
    }

    .pm-photo-decision-tile small {
        font-size: 14px;
    }
}


/* =====================================================
   v1.5 — Larger decision icons and unmistakable selection
===================================================== */

/* STEP 1 — Adult / Paediatric fill the page */

.pm-photo-base-decision-grid {
    max-width: 1380px;
    gap: 32px;
}

.pm-photo-decision-tile {
    min-height: 430px;
    grid-template-columns: 260px 1fr 60px;
    padding: 46px 50px;
    border-width: 3px;
    border-radius: 28px;
}

.pm-photo-decision-avatar {
    width: 230px;
    height: 230px;
    border-radius: 32px;
    font-size: 150px;
    line-height: 1;
    background:
        linear-gradient(
            145deg,
            #eef5fb,
            #ffffff
        );
    box-shadow:
        inset 0 0 0 2px rgba(15,53,103,.08),
        0 10px 24px rgba(30,52,72,.08);
}

.pm-photo-decision-tile.paediatric
    .pm-photo-decision-avatar {
    background:
        linear-gradient(
            145deg,
            #fff1f6,
            #ffffff
        );
}

.pm-photo-decision-tile strong {
    font-size: clamp(34px, 3.4vw, 48px);
    letter-spacing: .01em;
}

.pm-photo-decision-tile small {
    max-width: 470px;
    margin-top: 14px;
    font-size: 20px;
    line-height: 1.45;
}

.pm-photo-decision-tile b {
    font-size: 62px;
    color: #2e69b3;
}


/* STEP 2 — much larger case-type tiles */

.pm-photo-large-case-grid {
    grid-template-columns:
        repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice {
    position: relative;
    min-height: 230px;
    grid-template-columns: 110px 1fr;
    grid-template-rows: auto auto auto;
    gap: 9px 18px;
    padding: 28px 26px;
    border-width: 3px;
    border-radius: 20px;
    transition:
        transform .15s ease,
        box-shadow .15s ease,
        border-color .15s ease,
        background .15s ease;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 30px rgba(36,48,60,.12);
}

.pm-photo-large-case-grid
    .pm-photo-special-choice > span:first-child {
    grid-row: 1 / 4;
    display: grid;
    place-items: center;
    width: 96px;
    height: 96px;
    border-radius: 22px;
    font-size: 60px;
    background: #f1f5f7;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice strong {
    padding-right: 42px;
    font-size: 22px;
    line-height: 1.2;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice small {
    padding: 5px 9px;
    font-size: 11px;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice em {
    max-width: 300px;
    font-size: 13px;
}


/* Very obvious selected state */

.pm-photo-large-case-grid
    .pm-photo-special-choice.is-selected {
    border-color: #c51f3a !important;
    border-width: 4px;
    background:
        linear-gradient(
            145deg,
            rgba(197,31,58,.14),
            rgba(197,31,58,.04)
        ) !important;
    box-shadow:
        0 0 0 4px rgba(197,31,58,.10),
        0 14px 30px rgba(197,31,58,.10);
    transform: translateY(-2px);
}

.pm-photo-large-case-grid
    .pm-photo-special-choice.is-selected
    > span:first-child {
    background: rgba(197,31,58,.14);
}

.pm-photo-large-case-grid
    .pm-photo-special-choice.is-selected
    strong {
    color: #a4162d;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice.is-selected
    small {
    background: #c51f3a;
    color: #ffffff;
}


/* Standard coronial case keeps Communio blue */

.pm-photo-large-case-grid
    .pm-photo-standard-choice.is-selected {
    border-color: #0f3567 !important;
    background:
        linear-gradient(
            145deg,
            rgba(15,53,103,.14),
            rgba(15,53,103,.04)
        ) !important;
    box-shadow:
        0 0 0 4px rgba(15,53,103,.10),
        0 14px 30px rgba(15,53,103,.10);
}

.pm-photo-large-case-grid
    .pm-photo-standard-choice.is-selected
    > span:first-child {
    background: rgba(15,53,103,.14);
}

.pm-photo-large-case-grid
    .pm-photo-standard-choice.is-selected
    strong {
    color: #0f3567;
}


/* Large selected check */

.pm-photo-selected-check {
    position: absolute;
    top: 16px;
    right: 16px;
    display: grid !important;
    place-items: center !important;
    width: 44px !important;
    height: 44px !important;
    border-radius: 50% !important;
    background: #c51f3a !important;
    color: #ffffff !important;
    font-size: 28px !important;
    font-weight: 900 !important;
    box-shadow:
        0 4px 12px rgba(0,0,0,.16);
}

.pm-photo-standard-choice
    .pm-photo-selected-check {
    background: #0f3567 !important;
}


/* Larger selected-base banner */

.pm-photo-selected-base {
    padding: 10px 18px;
    font-size: 17px;
}


/* Responsive scaling */

@media (max-width: 1150px) {

    .pm-photo-decision-tile {
        min-height: 350px;
        grid-template-columns: 190px 1fr 50px;
        padding: 34px;
    }

    .pm-photo-decision-avatar {
        width: 175px;
        height: 175px;
        font-size: 112px;
    }

    .pm-photo-large-case-grid {
        grid-template-columns:
            repeat(2, minmax(0,1fr));
    }
}

@media (max-width: 720px) {

    .pm-photo-decision-tile {
        min-height: 250px;
        grid-template-columns: 115px 1fr 35px;
        padding: 22px;
    }

    .pm-photo-decision-avatar {
        width: 105px;
        height: 105px;
        border-radius: 24px;
        font-size: 66px;
    }

    .pm-photo-decision-tile strong {
        font-size: 26px;
    }

    .pm-photo-decision-tile small {
        font-size: 14px;
    }

    .pm-photo-large-case-grid {
        grid-template-columns: 1fr;
    }

    .pm-photo-large-case-grid
        .pm-photo-special-choice {
        min-height: 180px;
    }
}
\n\n/* =====================================================\n   v1.6 — Tile text fit + cleaner case selection\n===================================================== */\n\n/* Never allow long case names to escape their tiles. */\n.pm-photo-decision-tile,\n.pm-photo-special-choice {\n    min-width: 0;\n    overflow: hidden;\n}\n\n.pm-photo-decision-tile > *,\n.pm-photo-special-choice > * {\n    min-width: 0;\n}\n\n.pm-photo-decision-tile strong,\n.pm-photo-decision-tile small,\n.pm-photo-special-choice strong,\n.pm-photo-special-choice small,\n.pm-photo-special-choice em {\n    max-width: 100%;\n    white-space: normal;\n    overflow-wrap: anywhere;\n    word-break: normal;\n    hyphens: auto;\n}\n\n.pm-photo-large-case-grid .pm-photo-special-choice {\n    grid-template-columns: minmax(82px, 96px) minmax(0, 1fr);\n    height: auto;\n    min-height: 230px;\n}\n\n.pm-photo-large-case-grid .pm-photo-special-choice strong {\n    font-size: clamp(17px, 1.45vw, 22px);\n    line-height: 1.18;\n}\n\n.pm-photo-large-case-grid .pm-photo-special-choice em {\n    width: 100%;\n    max-width: none;\n    line-height: 1.3;\n}\n\n.pm-photo-large-case-grid .pm-photo-special-choice small {\n    width: fit-content;\n    max-width: calc(100% - 48px);\n}\n\n/* Keep the selected tick clear of long headings. */\n.pm-photo-large-case-grid .pm-photo-special-choice strong {\n    padding-right: 52px;\n}\n\n@media (max-width: 1150px) {\n    .pm-photo-large-case-grid .pm-photo-special-choice {\n        grid-template-columns: 86px minmax(0, 1fr);\n    }\n\n    .pm-photo-large-case-grid .pm-photo-special-choice > span:first-child {\n        width: 80px;\n        height: 80px;\n        font-size: 48px;\n    }\n}\n\n@media (max-width: 720px) {\n    .pm-photo-large-case-grid .pm-photo-special-choice {\n        grid-template-columns: 72px minmax(0, 1fr);\n        padding: 22px 18px;\n    }\n\n    .pm-photo-large-case-grid .pm-photo-special-choice > span:first-child {\n        width: 66px;\n        height: 66px;\n        font-size: 40px;\n    }\n\n    .pm-photo-large-case-grid .pm-photo-special-choice strong {\n        padding-right: 42px;\n        font-size: 18px;\n    }\n}\n

/* =====================================================
   v1.7 — Corrected Adult / Paediatric base tiles
===================================================== */

.pm-photo-base-decision-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px;
    width: 100%;
    max-width: 1180px;
    margin: 0 auto;
}

.pm-photo-decision-tile {
    position: relative;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 20px;
    min-width: 0;
    min-height: 400px;
    padding: 34px 46px 42px;
    overflow: hidden;
    text-align: center;
    border-width: 3px;
    border-radius: 24px;
}

.pm-photo-decision-avatar {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 200px;
    height: 200px;
    margin: 0;
    border-radius: 28px;
    font-size: 126px;
    line-height: 1;
}

.pm-photo-decision-copy {
    display: grid;
    gap: 10px;
    justify-items: center;
    width: 100%;
    min-width: 0;
}

.pm-photo-decision-copy strong {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 0;
    font-size: clamp(30px, 3vw, 42px);
    line-height: 1.08;
    letter-spacing: 0;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.pm-photo-decision-copy small {
    display: block;
    width: 100%;
    max-width: 390px;
    margin: 0;
    font-size: clamp(16px, 1.5vw, 19px);
    line-height: 1.35;
    text-align: center;
    white-space: normal;
    color: #65717c;
}

.pm-photo-decision-arrow {
    position: absolute;
    top: 50%;
    right: 22px;
    transform: translateY(-50%);
    color: #2e69b3;
    font-size: 50px;
    font-weight: 900;
    line-height: 1;
}

.pm-photo-decision-tile > b {
    display: none !important;
}

/* Special case tiles: ensure text cannot escape */
.pm-photo-large-case-grid .pm-photo-special-choice {
    min-width: 0;
    overflow: hidden;
}

.pm-photo-large-case-grid .pm-photo-special-choice strong {
    min-width: 0;
    max-width: 100%;
    padding-right: 50px;
    font-size: clamp(16px, 1.55vw, 21px);
    line-height: 1.15;
    white-space: normal;
    overflow-wrap: break-word;
    word-break: normal;
}

.pm-photo-large-case-grid .pm-photo-special-choice em,
.pm-photo-large-case-grid .pm-photo-special-choice small {
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
}

@media (max-width: 900px) {
    .pm-photo-base-decision-grid {
        grid-template-columns: 1fr;
        max-width: 760px;
    }

    .pm-photo-decision-tile {
        min-height: 340px;
    }

    .pm-photo-decision-avatar {
        width: 165px;
        height: 165px;
        font-size: 104px;
    }
}

@media (max-width: 560px) {
    .pm-photo-decision-tile {
        min-height: 290px;
        padding: 24px 28px 32px;
    }

    .pm-photo-decision-avatar {
        width: 132px;
        height: 132px;
        font-size: 82px;
    }

    .pm-photo-decision-copy strong {
        font-size: 28px;
    }

    .pm-photo-decision-copy small {
        font-size: 15px;
    }

    .pm-photo-decision-arrow {
        right: 14px;
        font-size: 40px;
    }
}


/* =====================================================
   v1.9 — Photography tile text containment
   Prevents clipped text, split words and untidy overflow.
===================================================== */

.pm-photo-photo-tile,
.pm-photo-special-choice,
.pm-photo-decision-tile,
.pm-photo-standard-card,
.pm-photo-panel,
.pm-photo-section-card {
    min-width: 0;
    box-sizing: border-box;
}

.pm-photo-photo-name,
.pm-photo-photo-detail,
.pm-photo-special-choice strong,
.pm-photo-special-choice em,
.pm-photo-special-choice small,
.pm-photo-decision-tile strong,
.pm-photo-decision-tile small {
    min-width: 0;
    max-width: 100%;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;

    overflow-wrap: normal !important;
    word-wrap: normal !important;
    word-break: normal !important;
    hyphens: none !important;
}

.pm-photo-photo-name {
    font-size: clamp(12px, 1.15vw, 14px);
    line-height: 1.22;
}

.pm-photo-photo-detail {
    font-size: clamp(10px, 0.95vw, 12px);
    line-height: 1.35;
}

.pm-photo-photo-tile {
    height: auto;
    min-height: 108px;
    align-content: start;
}

.pm-photo-tile-detail-row {
    align-items: start;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice {
    height: auto;
    min-height: 250px;
    align-content: start;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice strong {
    font-size: clamp(18px, 1.7vw, 22px);
    line-height: 1.22;
}

.pm-photo-large-case-grid
    .pm-photo-special-choice em {
    max-width: none;
    line-height: 1.35;
}

@media (max-width: 1100px) {
    .pm-photo-photo-grid {
        grid-template-columns: 1fr;
    }

    .pm-photo-large-case-grid {
        grid-template-columns:
            repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .pm-photo-large-case-grid {
        grid-template-columns: 1fr;
    }

    .pm-photo-decision-tile {
        grid-template-columns: 1fr;
        min-height: 0;
        padding: 28px;
    }

    .pm-photo-decision-avatar {
        width: 150px;
        height: 150px;
        font-size: 96px;
    }
}
