/* KD Design Pattern 7: refined photo display — replace previous portrait refresh stylesheet. */
body.pattern-seven .dp7-hero-visual {
    isolation: isolate;
    background: linear-gradient(155deg, #e9ece7 0%, #dce7e3 62%, #c1d4d0 100%);
}
body.pattern-seven .dp7-hero-visual::before {
    content: "";
    position: absolute;
    inset: auto -22% -37% 18%;
    aspect-ratio: 1;
    border: 1px solid rgba(34, 83, 78, 0.12);
    border-radius: 50%;
    box-shadow: 0 0 0 50px rgba(255,255,255,0.11);
    pointer-events: none;
}
body.pattern-seven .dp7-photo-halo { display: none; }
body.pattern-seven .dp7-photo-wrap {
    z-index: 1;
    inset: 3% 0 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
}
body.pattern-seven .dp7-photo-wrap img {
    object-fit: contain;
    object-position: center bottom;
}
body.pattern-seven .dp7-photo-wrap::after { display: none; }
body.pattern-seven .dp7-photo-name {
    z-index: 3;
    background: rgba(15, 48, 54, 0.96);
}
body.pattern-seven .dp7-photo-watermark {
    z-index: 0;
    color: #3b6b69;
    opacity: 0.10;
}
/* One photo on the homepage: retain the existing non-photo timeline design. */
body.pattern-seven .dp7-story-signature {
    position: relative;
    min-height: 510px;
    padding: clamp(32px, 4vw, 55px);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    background: linear-gradient(155deg, #e7eadd, #f5f1e8 53%, #d4e3dd);
    border: 1px solid #ccd8cf;
}
body.pattern-seven .dp7-story-signature::before {
    content: "KD";
    position: absolute;
    top: -55px;
    right: -18px;
    font: 600 clamp(170px, 24vw, 360px)/1 Georgia, serif;
    letter-spacing: -.12em;
    color: rgba(34, 88, 82, .075);
}
body.pattern-seven .dp7-story-signature > * { position: relative; z-index: 1; }
body.pattern-seven .dp7-story-signature-label,
body.pattern-seven .dp7-story-signature-foot {
    font: 800 10px/1.6 var(--dp7-sans);
    letter-spacing: .17em;
    color: #326b63;
}
body.pattern-seven .dp7-story-signature-year {
    margin: 24px 0 15px;
    font: 500 clamp(47px, 5vw, 75px)/1.05 var(--dp7-serif);
    letter-spacing: -.055em;
    color: #133e42;
}
body.pattern-seven .dp7-story-signature-year span { padding: 0 6px; color: #a17a54; }
body.pattern-seven .dp7-story-signature-rule { width: 64px; height: 2px; background: #ae865f; }
body.pattern-seven .dp7-story-signature p {
    max-width: 350px;
    margin: 20px 0 32px;
    color: #405f5c;
    font-size: 16px;
    line-height: 1.75;
}
body.pattern-seven .dp7-story-signature-foot {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    padding-top: 17px;
    border-top: 1px solid #c7d2c9;
}
/* The full-profile photo uses the blue blazer, with a clean neutral background. */
body.pattern-seven .dp7-profile-hero {
    background: linear-gradient(125deg, #f0f2ef, #f8f6f0 65%, #e7efeb);
}
body.pattern-seven .dp7-profile-grid figure {
    overflow: hidden;
    padding: 0;
    border: 1px solid #d7e2dc;
    border-radius: 16px;
    background: linear-gradient(155deg, #f5f5f1, #e6ece8);
    box-shadow: 0 18px 42px rgba(27, 67, 67, .12);
}
body.pattern-seven .dp7-profile-grid img {
    width: 100%;
    height: auto;
    aspect-ratio: 4 / 5;
    object-fit: contain;
    object-position: center bottom;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
body.pattern-seven .dp7-profile-grid figcaption { padding: 12px; }
@media (max-width: 600px) {
    body.pattern-seven .dp7-hero-visual { min-height: 420px; }
    body.pattern-seven .dp7-story-signature { min-height: 390px; }
}

/* ---------------------------------------------------------------
   Professional portrait correction: both assets have studio-style
   opaque backgrounds. No checkerboard or transparent patch remains.
   These rules intentionally suppress older decorative photo effects.
   --------------------------------------------------------------- */
body.pattern-seven .dp7-hero-visual {
    background: linear-gradient(180deg, #f7f7f3 0%, #e0eae5 100%);
    border-radius: 18px;
    overflow: hidden;
}

body.pattern-seven .dp7-hero-visual::before,
body.pattern-seven .dp7-photo-halo,
body.pattern-seven .dp7-photo-watermark {
    display: none;
}

body.pattern-seven .dp7-photo-wrap {
    inset: 0;
    border: none;
    border-radius: 0;
    background: #f7f7f3;
    box-shadow: none;
}

body.pattern-seven .dp7-photo-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center top;
}

body.pattern-seven .dp7-photo-wrap::after {
    display: none;
}

body.pattern-seven .dp7-profile-grid figure {
    padding: 0;
    overflow: hidden;
    border: 1px solid #dce5e2;
    border-radius: 16px;
    background: #f8f7f2;
    box-shadow: 0 20px 45px rgba(19, 53, 53, 0.11);
}

body.pattern-seven .dp7-profile-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    height: auto;
    object-fit: cover;
    object-position: center top;
    border: none;
    border-radius: 0;
    box-shadow: none;
}
