/* Venula – skupni CSS za operiranke A, B, C in D. Vključuje celotno predhodno oblikovanje operiranke A. */
.patient-page, .patient-page * {
    box-sizing: border-box;
}

.patient-page {
    width: 100%;
    overflow-x: clip;
    color: #24435f;
    padding: 0 0 64px;
}

    .patient-page .patient-wrap {
        width: min(1180px,calc(100% - 40px));
        margin: 0 auto;
    }

    .patient-page .patient-article {
        min-width: 0;
        width: 100%;
    }

    .patient-page .patient-hero {
        display: grid;
        grid-template-columns: minmax(0,1fr) minmax(0,1fr);
        align-items: center;
        gap: 38px;
        padding: 40px;
        margin: 24px 0 46px;
        background: #f0f7fc;
        border-radius: 22px;
    }

        .patient-page .patient-hero > * {
            min-width: 0;
        }

    .patient-page .patient-eyebrow {
        color: #16749c;
        font-size: 13px;
        font-weight: 700;
        letter-spacing: .1em;
        text-transform: uppercase;
        margin: 0 0 12px;
    }

    .patient-page .patient-hero h1 {
        color: #064b78;
        font-size: clamp(31px,3.6vw,50px);
        line-height: 1.13;
        font-weight: 800;
        margin: 0 0 16px;
    }

    .patient-page .patient-lead {
        font-size: clamp(19px,2vw,26px);
        font-weight: 700;
        color: #075985;
        margin: 0 0 14px;
    }

    .patient-page .patient-hero p:not(.patient-eyebrow):not(.patient-lead) {
        font-size: 17px;
        line-height: 1.75;
        margin: 0;
    }

    .patient-page .patient-hero-photo img {
        display: block;
        width: 100%;
        max-height: 390px;
        height: auto;
        object-fit: contain;
        border-radius: 18px;
        background: #e6eff5;
    }

    .patient-page .patient-section {
        margin: 0 0 48px;
    }

    .patient-page .patient-section-heading {
        display: flex;
        align-items: flex-start;
        gap: 18px;
        margin-bottom: 22px;
    }

    .patient-page .patient-step {
        flex: 0 0 50px;
        width: 50px;
        height: 50px;
        border-radius: 14px;
        display: grid;
        place-items: center;
        color: white;
        background: #0876ac;
        font-size: 20px;
        font-weight: 800;
    }

    .patient-page .patient-section-heading h2 {
        color: #064b78;
        font-size: clamp(24px,2.7vw,34px);
        line-height: 1.25;
        margin: 0 0 5px;
    }

    .patient-page .patient-section-heading p {
        color: #55758b;
        font-size: 16px;
        margin: 0;
    }

    .patient-page .patient-gallery {
        display: grid;
        grid-template-columns: repeat(3,minmax(0,1fr));
        gap: 18px;
        margin-bottom: 22px;
    }

    .patient-page .patient-photo {
        min-width: 0;
        margin: 0;
        background: #fff;
        border: 1px solid #dce9f3;
        border-radius: 18px;
        overflow: hidden;
        box-shadow: 0 8px 30px #093c6512;
    }

        .patient-page .patient-photo img {
            display: block;
            width: 100%;
            height: 300px;
            object-fit: contain;
            background: #f4f8fa;
        }

        .patient-page .patient-photo figcaption {
            padding: 14px 16px;
            font-size: 14px;
            line-height: 1.5;
            color: #49677c;
        }

    .patient-page .patient-copy {
        padding: 24px 30px;
        background: #f2f8fc;
        border: 1px solid #e1edf5;
        border-radius: 18px;
    }

        .patient-page .patient-copy p {
            margin: 0;
            font-size: 17px;
            line-height: 1.85;
        }

        .patient-page .patient-copy a, .patient-page .patient-back a {
            color: #07518c;
            text-decoration: underline;
            text-underline-offset: 3px;
        }

    .patient-page .patient-back {
        margin-top: 28px;
        font-size: 17px;
        font-weight: 700;
    }

@media(max-width:900px) {
    .patient-page .patient-hero {
        grid-template-columns: minmax(0,1fr);
        gap: 22px;
        padding: 30px;
    }

    .patient-page .patient-hero-photo img {
        max-height: 420px;
    }

    .patient-page .patient-gallery {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:600px) {
    .patient-page .patient-wrap {
        width: calc(100% - 28px);
    }

    .patient-page .patient-hero {
        margin: 14px 0 32px;
        padding: 24px 18px;
        border-radius: 16px;
    }

        .patient-page .patient-hero h1 {
            font-size: 32px;
        }

        .patient-page .patient-hero p:not(.patient-eyebrow):not(.patient-lead) {
            font-size: 16px;
            line-height: 1.65;
        }

    .patient-page .patient-section-heading {
        gap: 12px;
    }

    .patient-page .patient-step {
        flex-basis: 42px;
        width: 42px;
        height: 42px;
        font-size: 16px;
    }

    .patient-page .patient-gallery {
        grid-template-columns: minmax(0,1fr);
        gap: 14px;
    }

    .patient-page .patient-photo img {
        height: auto;
        max-height: 460px;
    }

    .patient-page .patient-copy {
        padding: 19px 18px;
    }

        .patient-page .patient-copy p {
            font-size: 16px;
            line-height: 1.7;
        }
}


/* Dodatki za primerjavo fotografij operiranke B; ne vplivajo na ostale primere. */
.patient-page-b .patient-hero-photo {
    display: flex;
    align-items: center;
    justify-content: center;
}

    .patient-page-b .patient-hero-photo img {
        width: auto;
        max-width: 100%;
        max-height: 420px;
    }

.patient-page-b .patient-gallery-b .patient-photo {
    display: flex;
    flex-direction: column;
}

    .patient-page-b .patient-gallery-b .patient-photo img {
        width: 100%;
        height: auto;
        aspect-ratio: 3/5;
        object-fit: contain;
        background: #f4f8fa;
    }

    .patient-page-b .patient-gallery-b .patient-photo figcaption {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .patient-page-b .patient-gallery-b .patient-photo figcaption strong {
            font-size: 17px;
            color: #064b78;
        }

@media(max-width:900px) {
    .patient-page-b .patient-hero-photo img {
        max-height: 400px;
    }
}

@media(max-width:600px) {
    .patient-page-b .patient-gallery-b .patient-photo img {
        height: auto;
        max-height: none;
        aspect-ratio: 3/5;
    }

    .patient-page-b .patient-hero-photo img {
        max-height: 340px;
    }
}

/* Operiranka C – pet fotografij, skupni slog A/B ostane nespremenjen. */
.patient-page-c .patient-hero-photo img {
    max-height: 380px;
    object-fit: contain;
}

.patient-page-c .patient-gallery-c {
    grid-template-columns: repeat(3,minmax(0,1fr));
}

    .patient-page-c .patient-gallery-c .patient-photo {
        display: flex;
        flex-direction: column;
    }

        .patient-page-c .patient-gallery-c .patient-photo img {
            width: 100%;
            height: 290px;
            object-fit: contain;
        }

    .patient-page-c .patient-gallery-c figcaption {
        display: flex;
        flex-direction: column;
        gap: 5px;
    }

        .patient-page-c .patient-gallery-c figcaption strong {
            color: #064b78;
            font-size: 16px;
        }

.patient-page-c .patient-copy-c h3 {
    font-size: 20px;
    color: #064b78;
    margin: 25px 0 9px;
}

    .patient-page-c .patient-copy-c h3:first-child {
        margin-top: 0;
    }

.patient-page-c .patient-copy-c p {
    margin: 0 0 14px;
}

@media(max-width:900px) {
    .patient-page-c .patient-gallery-c {
        grid-template-columns: repeat(2,minmax(0,1fr));
    }
}

@media(max-width:600px) {
    .patient-page-c .patient-gallery-c {
        grid-template-columns: minmax(0,1fr);
    }

        .patient-page-c .patient-gallery-c .patient-photo img {
            height: auto;
            max-height: 460px;
        }

    .patient-page-c .patient-copy-c h3 {
        font-size: 18px;
    }
}

/* V3 – operiranka C: pet širokih kartic, slika in pripadajoče besedilo skupaj. */
.patient-page-c .patient-c-heading {
    padding: 32px 38px;
    background: #f0f7fc;
    border-radius: 20px;
    margin: 18px 0 26px;
}

    .patient-page-c .patient-c-heading h1 {
        color: #064b78;
        font-size: clamp(30px,3.6vw,48px);
        line-height: 1.15;
        margin: 0 0 12px;
    }

    .patient-page-c .patient-c-heading > p:last-child {
        margin: 0;
        font-size: 17px;
        line-height: 1.65;
    }

.patient-page-c .patient-c-wide-card {
    display: grid;
    grid-template-columns: minmax(0,44%) minmax(0,1fr);
    gap: 30px;
    align-items: center;
    width: 100%;
    background: #f2f8fc;
    border: 1px solid #dce9f3;
    border-radius: 18px;
    padding: 22px;
    margin: 0 0 22px;
    box-shadow: 0 5px 18px #093c650b;
}

.patient-page-c .patient-c-wide-image {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .patient-page-c .patient-c-wide-image img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 530px;
        object-fit: contain;
        border-radius: 12px;
        background: #fff;
    }

.patient-page-c .patient-c-wide-content {
    min-width: 0;
}

.patient-page-c .patient-c-index {
    color: #0876ac;
    font-size: 13px;
    font-weight: 800;
    letter-spacing: .1em;
}

.patient-page-c .patient-c-wide-content h2 {
    color: #064b78;
    font-size: clamp(21px,2.2vw,28px);
    line-height: 1.3;
    margin: 10px 0 16px;
}

.patient-page-c .patient-c-wide-content p {
    font-size: 17px;
    line-height: 1.75;
    margin: 0;
    overflow-wrap: break-word;
}

.patient-page-c .patient-c-wide-content a {
    color: #07518c;
    text-decoration: underline;
    text-underline-offset: 3px;
}

@media(max-width:760px) {
    .patient-page-c .patient-c-heading {
        padding: 24px 20px;
        margin: 12px 0 20px;
    }

        .patient-page-c .patient-c-heading > p:last-child {
            font-size: 16px;
        }

    .patient-page-c .patient-c-wide-card {
        grid-template-columns: minmax(0,1fr);
        gap: 16px;
        padding: 14px;
        margin-bottom: 18px;
    }

    .patient-page-c .patient-c-wide-image img {
        max-height: none;
    }

    .patient-page-c .patient-c-wide-content {
        padding: 4px 4px 8px;
    }

        .patient-page-c .patient-c-wide-content p {
            font-size: 16px;
            line-height: 1.7;
        }
}

/* V5 – operiranka C: izmenična razporeditev fotografij, brez sprememb povezav. */
@media (min-width:761px) {
    .patient-page-c .patient-c-wide-card:nth-of-type(even) {
        grid-template-columns: minmax(0,1fr) minmax(0,44%);
    }

        .patient-page-c .patient-c-wide-card:nth-of-type(even) .patient-c-wide-image {
            grid-column: 2;
            grid-row: 1;
        }

        .patient-page-c .patient-c-wide-card:nth-of-type(even) .patient-c-wide-content {
            grid-column: 1;
            grid-row: 1;
        }
}

@media (max-width:760px) {
    .patient-page-c .patient-c-wide-card .patient-c-wide-image,
    .patient-page-c .patient-c-wide-card .patient-c-wide-content {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Operiranka D: fotografija cez celotno sirino kartice, opis spodaj. */
.patient-page-d .patient-c-wide-card,
.patient-page-d .patient-c-wide-card:nth-of-type(even) {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    width: 100%;
    padding: 20px;
}

    .patient-page-d .patient-c-wide-card .patient-c-wide-image,
    .patient-page-d .patient-c-wide-card:nth-of-type(even) .patient-c-wide-image {
        display: block;
        width: 100%;
        min-width: 0;
        order: 0;
        grid-column: auto;
        grid-row: auto;
    }

.patient-page-d .patient-c-wide-image img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    max-height: none;
    object-fit: contain;
    border-radius: 12px;
}

.patient-page-d .patient-c-wide-card .patient-c-wide-content,
.patient-page-d .patient-c-wide-card:nth-of-type(even) .patient-c-wide-content {
    width: 100%;
    order: 1;
    grid-column: auto;
    grid-row: auto;
}

.patient-page-d .patient-c-index {
    display: none;
}

@media(max-width:760px) {
    .patient-page-d .patient-c-wide-card,
    .patient-page-d .patient-c-wide-card:nth-of-type(even) {
        padding: 12px;
        gap: 14px;
    }

    .patient-page-d .patient-c-wide-image img {
        width: 100%;
        height: auto;
        max-height: none;
    }
}


/* V8: A, B, C ohranijo prvotno velikost in razporeditev fotografij; D ostane celoširinska. */
.patient-page:not(.patient-page-d) .patient-step,
.patient-page-c .patient-c-index {
    display: none;
}
