/*
 * SDHS Wall of Honor V3
 * Clean, isolated, client-safe component.
 */


/* =========================================================
   FULL WIDTH SHELL
   ========================================================= */

.sdhs-honor-v3-shell {
    position: relative;
    left: 50%;
    width: 100vw;
    max-width: none;
    transform: translateX(-50%);
    overflow: visible;
}


/* =========================================================
   FEATURE
   ========================================================= */

.sdhs-honor-v3 {
    width: min(1400px, calc(100vw - 48px));

    margin:
        clamp(3.5rem, 6vw, 6rem)
        auto
        clamp(5rem, 7vw, 7rem);

    display: grid;

    /*
     * More room for editorial copy,
     * less room for portrait.
     */
    grid-template-columns:
        minmax(390px, 42%)
        minmax(300px, 34%)
        minmax(210px, 24%);

    min-height: 340px;

    overflow: hidden;
    box-sizing: border-box;

    background: #0b2c49;
    color: #fff;
}


/* =========================================================
   LEFT COPY
   ========================================================= */

.sdhs-honor-v3-copy {
    min-width: 0;
    min-height: 340px;

    padding: 3rem 3.25rem;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-sizing: border-box;
    background: #0b2c49;
}

.sdhs-honor-v3-copy .sdhs-kicker {
    margin: 0 0 .9rem;

    color: rgba(255,255,255,.88);

    font-size: .66rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: .16em;
    text-transform: uppercase;
}


/*
 * Wide enough that "Celebrating Cavers"
 * remains on the first line.
 *
 * The renderer already has a BR before
 * "Who Inspire."
 */

.sdhs-honor-v3 h2 {
    width: max-content;
    max-width: 100%;

    margin: 0 0 1rem;

    color: #fff;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2rem, 2.4vw, 2.85rem);
    font-weight: 400;
    line-height: 1.02;
    letter-spacing: -.035em;
}

.sdhs-honor-v3-copy p {
    max-width: 30rem;
    margin-top: 0;

    color: rgba(255,255,255,.8);

    font-size: .88rem;
    line-height: 1.55;
}

.sdhs-honor-v3 .sdhs-text-link {
    color: #fff;
}


/* =========================================================
   PERSON WRAPPER
   ========================================================= */

.sdhs-honor-v3-person {
    display: contents;
}


/* =========================================================
   PORTRAIT FIELD
   ========================================================= */

.sdhs-honor-v3-image {
    position: relative;

    min-width: 0;
    min-height: 340px;

    display: flex;
    align-items: flex-end;
    justify-content: center;

    overflow: hidden;

    background: #102f49;
    isolation: isolate;
}


/*
 * Atmospheric layer:
 * the client's normal Featured Image,
 * enlarged, blurred, desaturated and darkened.
 */

.sdhs-honor-v3-image::before {
    content: "";

    position: absolute;
    z-index: 0;

    inset: -28px;

    background-image:
        linear-gradient(
            rgba(8,35,57,.55),
            rgba(8,35,57,.55)
        ),
        var(--honor-image);

    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;

    filter:
        blur(18px)
        saturate(.55)
        brightness(.7);

    transform: scale(1.1);
}


/*
 * Gentle navy shading at the outer edges,
 * like the original concept.
 */

.sdhs-honor-v3-image::after {
    content: "";

    position: absolute;
    z-index: 1;

    inset: 0;

    pointer-events: none;

    background:
        linear-gradient(
            90deg,
            rgba(11,44,73,.70) 0%,
            rgba(11,44,73,.18) 14%,
            rgba(11,44,73,0) 30%,
            rgba(11,44,73,0) 70%,
            rgba(11,44,73,.18) 86%,
            rgba(11,44,73,.70) 100%
        );
}


/*
 * The real photograph.
 * Smaller than the field, so it doesn't dominate.
 */

.sdhs-honor-v3-image img {
    position: relative;
    z-index: 2;

    display: block;

    width: auto;
    max-width: 88%;

    height: 318px;
    max-height: 94%;

    object-fit: contain;
    object-position: center bottom;
}


/* =========================================================
   BIO
   ========================================================= */

.sdhs-honor-v3-meta {
    min-width: 0;
    min-height: 340px;

    padding: 2.5rem 2.25rem;

    display: flex;
    flex-direction: column;
    justify-content: center;

    box-sizing: border-box;

    background: #0b2c49;
}

.sdhs-honor-v3-meta h3 {
    margin: 0 0 .7rem;

    color: #fff;

    font-size: .92rem;
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: .035em;
    text-transform: uppercase;
}

.sdhs-honor-v3-meta h3 a {
    color: inherit;
    text-decoration: none;
}

.sdhs-honor-v3-meta p {
    margin: 0;

    color: rgba(255,255,255,.8);

    font-size: .84rem;
    line-height: 1.5;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    

    .sdhs-honor-v3-copy {
        grid-column: 1;
        grid-row: 1 / span 2;
    }

    .sdhs-honor-v3 h2 {
        width: auto;
    }

    .sdhs-honor-v3-image {
        grid-column: 2;
        grid-row: 1;

        min-height: 310px;
    }

    .sdhs-honor-v3-image img {
        height: 290px;
    }

    .sdhs-honor-v3-meta {
        grid-column: 2;
        grid-row: 2;

        min-height: 0;
        padding: 1.75rem 2rem;

        border-top: 1px solid rgba(255,255,255,.12);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .sdhs-honor-v3 {
        width: calc(100vw - 28px);

        display: flex;
        flex-direction: column;

        min-height: 0;
    }

    .sdhs-honor-v3-copy,
    .sdhs-honor-v3-meta {
        min-height: 0;
    }

    .sdhs-honor-v3-copy {
        padding: 2.4rem 2rem 2.2rem;
    }

    .sdhs-honor-v3 h2 {
        width: auto;
        max-width: none;

        font-size: clamp(2rem, 9vw, 2.6rem);
    }

    .sdhs-honor-v3-image {
        width: 100%;
        min-height: 360px;
    }

    .sdhs-honor-v3-image img {
        width: auto;
        max-width: 88%;
        height: 340px;
    }

    .sdhs-honor-v3-meta {
        padding: 2rem;

        border-top: 1px solid rgba(255,255,255,.12);
    }
}


/* Honoree cutout refinement */
.sdhs-honor-v3-image {
    align-items: flex-end;
}

.sdhs-honor-v3-image img {
    position: relative;
    z-index: 2;
    width: auto;
    max-width: 84%;
    height: 320px;
    max-height: 94%;
    object-fit: contain;
    object-position: center bottom;
    background: transparent;
    filter: drop-shadow(0 14px 28px rgba(0,0,0,.28));
}

@media (max-width: 1050px) {
    .sdhs-honor-v3-image img {
        height: 290px;
        max-width: 82%;
    }
}

@media (max-width: 700px) {
    .sdhs-honor-v3-image img {
        width: auto;
        max-width: 88%;
        height: 340px;
        max-height: none;
    }
}

/* =========================================================
   WALL OF HONOR V3 — REFINEMENT PASS
   ========================================================= */


/* Slightly more editorial proportions */
.sdhs-honor-v3 {
    grid-template-columns:
        minmax(430px, 43%)
        minmax(320px, 36%)
        minmax(210px, 21%);

    min-height: 330px;
}


/* LEFT COPY */

.sdhs-honor-v3-copy {
    min-height: 330px;
    padding: 2.8rem 3.25rem;
}

.sdhs-honor-v3 h2 {
    font-size: clamp(2rem, 2.3vw, 2.7rem);
    line-height: 1.01;
    margin-bottom: .9rem;
}

.sdhs-honor-v3-copy p {
    margin-bottom: .85rem;
}


/* =========================================================
   PORTRAIT FIELD
   ========================================================= */

.sdhs-honor-v3-image {
    min-height: 330px;

    /*
     * Navy base matching the adjoining panels.
     */
    background: #0b2c49;
}


/*
 * Blurred original photo:
 * brighter, less gray, more like an atmospheric photograph.
 */
.sdhs-honor-v3-image::before {
    inset: -35px;

    background-image:
        linear-gradient(
            rgba(8,35,57,.34),
            rgba(8,35,57,.34)
        ),
        var(--honor-image);

    background-position: center 35%;
    background-size: cover;

    filter:
        blur(20px)
        saturate(.78)
        brightness(.82);

    transform: scale(1.12);
}


/*
 * Gentle navy integration at both ends.
 * This should read as a transition, not a visible gradient effect.
 */
.sdhs-honor-v3-image::after {
    background:
        linear-gradient(
            90deg,
            #0b2c49 0%,
            rgba(11,44,73,.72) 5%,
            rgba(11,44,73,.22) 15%,
            rgba(11,44,73,0) 27%,
            rgba(11,44,73,0) 73%,
            rgba(11,44,73,.22) 85%,
            rgba(11,44,73,.72) 95%,
            #0b2c49 100%
        );
}


/*
 * Cutout portrait:
 * a little smaller and lower so the person doesn't dominate.
 */
.sdhs-honor-v3-image img {
    width: auto;
    max-width: 80%;

    height: 300px;
    max-height: 91%;

    object-fit: contain;
    object-position: center bottom;

    transform: translateY(2px);

    filter:
        drop-shadow(0 12px 24px rgba(0,0,0,.22));
}


/* =========================================================
   BIO
   ========================================================= */

.sdhs-honor-v3-meta {
    min-height: 330px;
    padding: 2.4rem 1.9rem;
}

.sdhs-honor-v3-meta h3 {
    font-size: .88rem;
}

.sdhs-honor-v3-meta p {
    font-size: .82rem;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .sdhs-honor-v3 {
        grid-template-columns: 44% 56%;
    }

    .sdhs-honor-v3-image {
        min-height: 300px;
    }

    .sdhs-honor-v3-image img {
        height: 275px;
        max-width: 78%;
        transform: translateY(1px);
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .sdhs-honor-v3-copy {
        padding: 2.35rem 2rem;
    }

    .sdhs-honor-v3-image {
        min-height: 350px;
    }

    .sdhs-honor-v3-image img {
        height: 325px;
        max-width: 82%;
        transform: translateY(2px);
    }

    .sdhs-honor-v3-meta {
        padding: 1.9rem 2rem;
    }
}

