.dg-program-story-hero {
    background: #001e16 url('program-office-background.jpg') center right / cover no-repeat;
}

.dg-program-story-hero .dg-about-hero-photo {
    display: flex;
    justify-content: flex-end;
    overflow: hidden;
}

.dg-program-story-hero .dg-about-hero-photo img {
    width: min(100%, 610px);
    object-position: center 11%;
    mask-image: linear-gradient(90deg, transparent, #000 26%, #000 77%, transparent);
}

.dg-program-story-hero--wide-photo,
.dg-program-story-hero--no-photo {
    background: #001e16;
}

.dg-program-story-hero--wide-photo .dg-about-hero-photo img {
    width: 100%;
    object-position: 70% top;
    mask-image: none;
}

@media (min-width: 651px) {
    .dg-program-story-hero--wide-photo .dg-about-hero-photo {
        inset: 0;
    }
}

.dg-program-story-hero h1 {
    font-size: clamp(48px, 5.3vw, 76px);
}

.dg-program-story-hero h1 em {
    display: block;
}

.dg-program-story-hero--group h1 {
    white-space: nowrap;
}

.dg-program-story-hero--group h1 em {
    display: inline;
}

.dg-program-story-hero--group .dg-product-hero-grid > div:first-child > .dg-lead {
    margin-block-start: 3px;
}

@media (min-width: 1200px) {
    .dg-program-story-hero--group .dg-product-hero-grid > div:first-child > .dg-lead {
        font-size: 18px;
        margin-block-start: 0;
    }
}

.dg-program-story-hero--group::before,
.dg-program-story-hero--group::after {
    display: none;
}

.dg-program-story-hero--group .dg-about-hero-photo,
.dg-program-story-hero--group .dg-about-hero-photo img {
    mask-image: none;
}

.dg-program-story-hero--group .dg-about-hero-photo img {
    width: 100%;
    object-position: 57% top;
}

@media (min-width: 701px) {
    .dg-program-story-hero--group .dg-product-hero-grid {
        grid-template-columns: minmax(0, min(480px, 45%)) 1fr;
        min-height: clamp(432px, 30vw, 620px);
    }
}

@media (max-width: 700px) {
    .dg-interior .dg-program-story-hero--group {
        display: flex;
        flex-direction: column;
    }

    .dg-program-story-hero--group .dg-about-hero-photo {
        position: relative;
        inset: auto;
        order: -1;
        height: auto;
        aspect-ratio: 1.59;
        margin: 0;
    }

    .dg-program-story-hero--group .dg-about-hero-photo img {
        object-position: 73% top;
    }

    .dg-program-story-hero--group .dg-product-hero-grid {
        display: block;
        min-height: 0;
    }
}

.dg-program-story-hero--owner .dg-product-hero-grid > div:first-child {
    display: grid;
    justify-items: start;
    align-content: center;
    gap: 20px;
}

.dg-program-story-hero--owner .dg-product-hero-grid > div:first-child > * {
    margin: 0;
}

.dg-program-story-hero--owner .dg-lead {
    max-width: 100%;
}

.dg-program-story-hero--owner .dg-product-hero-grid > div:first-child > .dg-lead {
    margin-block-start: clamp(-15px, -1.1vw, -11px);
}

@media (min-width: 651px) {
    .dg-program-story-hero--owner .dg-product-hero-grid {
        grid-template-columns: minmax(0, min(575px, 56%)) 1fr;
    }
}

.dg-program-story h2 {
    scroll-margin-top: 85px;
}

.dg-program-video-player {
    position: relative;
    aspect-ratio: 16 / 9;
}

.dg-program-video-player > video {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 8px;
    background: #001e16;
    object-fit: contain;
}

.dg-program-video-play {
    position: absolute;
    inset: 50% auto auto 50%;
    display: grid;
    width: 64px;
    height: 64px;
    place-items: center;
    border: 1px solid #75d4ad;
    border-radius: 50%;
    background: #006e46;
    transform: translate(-50%, -50%);
    cursor: pointer;
}

.dg-program-video-play[hidden] {
    display: none;
}

.dg-program-video-play::after {
    content: '';
    margin-left: 4px;
    border-style: solid;
    border-width: 9px 0 9px 14px;
    border-color: transparent transparent transparent #fff;
}

.dg-program-video-play:is(:hover, :focus-visible) {
    background: #008c53;
}

.dg-program-video-links {
    display: flex;
    gap: 8px;
    margin-top: 12px;
}

.dg-program-story .dg-prose .dg-program-video-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    padding: 8px 12px;
    border-radius: 6px;
    background: #005f3e;
    color: #fff;
    font: 700 14px/1.3 Arial, Helvetica, sans-serif;
    text-align: center;
    text-decoration: none;
}

.dg-program-story .dg-prose .dg-program-video-links a:is(:hover, :focus-visible) {
    background: #007346;
}

.dg-program-video-links img {
    flex: none;
}

@media (max-width: 430px) {
    .dg-program-video-links {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .dg-program-story .dg-prose .dg-program-video-links a {
        flex-direction: column;
        gap: 4px;
        padding-inline: 5px;
        font-size: 12px;
    }
}

.dg-program-text-photo {
    display: grid;
    align-items: start;
    gap: 24px;
    margin-top: 24px;
}

.dg-program-story .dg-prose .dg-program-text-photo > div > p {
    margin: 0 0 12px;
}

.dg-program-text-photo ol {
    margin: 0;
    padding-inline-start: 1.35em;
}

.dg-program-text-photo li + li {
    margin-top: 10px;
}

.dg-program-story .dg-prose .dg-program-text-photo figure {
    width: min(100%, 460px);
    margin: 0;
}

.dg-program-text-photo img {
    height: auto;
    border-radius: 6px;
}

.dg-program-story .dg-prose .dg-program-text-photo .dg-program-chat-example {
    width: min(100%, 280px);
    justify-self: center;
}

.dg-program-story .dg-prose .dg-program-chat-example img {
    max-height: none;
}

@media (min-width: 1040px) {
    .dg-program-text-photo {
        grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    }
}

.dg-program-story .dg-prose .dg-program-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 22px 0 26px;
    padding: 0;
    list-style: none;
}

.dg-program-steps li {
    margin: 0;
    padding: 18px 16px;
    border-top: 2px solid #008c53;
    border-radius: 4px;
    background: #eaf2ec;
}

.dg-program-steps strong {
    color: #005b39;
}

.dg-program-story .dg-prose .dg-program-steps p {
    margin: 6px 0 0;
    font-size: 16px;
    line-height: 1.5;
}

.dg-program-gallery,
.dg-program-examples {
    display: grid;
    gap: 14px;
    margin: 20px 0 26px;
}

.dg-program-gallery {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dg-program-story .dg-prose .dg-program-gallery figure {
    margin: 0;
}

.dg-program-gallery img {
    height: auto;
    aspect-ratio: 9 / 16;
    border-radius: 5px;
}

.dg-program-examples {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dg-program-examples section {
    display: flex;
    flex-direction: column;
    min-width: 0;
    padding: 20px;
    border: 1px solid #dce7df;
    border-radius: 6px;
    background: #fff;
}

.dg-program-story .dg-prose .dg-program-examples h3 {
    margin: 0 0 10px;
}

.dg-program-examples--illustrated h3 span {
    display: block;
    margin-top: 4px;
    color: #50635a;
    font: 400 15px/1.4 Arial, Helvetica, sans-serif;
}

@media (min-width: 651px) {
    .dg-program-examples--illustrated h3 {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        min-height: calc(2lh + 25px);
    }
}

.dg-program-story .dg-prose .dg-program-case-photo {
    margin: 0 0 15px;
}

.dg-program-case-photo img {
    height: auto;
    aspect-ratio: 4 / 3;
    border-radius: 5px;
}

.dg-program-story .dg-program-examples blockquote {
    margin: 0 0 16px;
    padding-left: 12px;
    border-left: 2px solid #008c53;
    color: #385c4b;
}

.dg-program-story .dg-prose .dg-program-examples blockquote p {
    margin: 0;
}

.dg-program-story .dg-program-examples--illustrated blockquote {
    display: grid;
    padding: 10px 12px;
    background: #e7f2eb;
}

.dg-program-quote-mark {
    color: #008c53;
    font: 700 32px/.7 Georgia, serif;
}

.dg-program-quote-mark:last-child {
    justify-self: end;
}

.dg-program-examples section > a {
    align-self: flex-start;
    margin-top: auto;
}

@media (max-width: 650px) {
    .dg-program-story-hero--owner .dg-product-hero-grid > div:first-child {
        gap: 16px;
    }

    .dg-program-story-hero .dg-about-hero-photo {
        justify-content: center;
    }

    .dg-program-story-hero .dg-about-hero-photo img {
        width: min(100%, 430px);
        mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
    }

    .dg-program-story-hero--wide-photo:not(.dg-program-story-hero--group) .dg-about-hero-photo img {
        width: 100%;
        object-position: right center;
        mask-image: none;
    }

    .dg-program-story-hero--group .dg-about-hero-photo img {
        width: 100%;
        mask-image: none;
    }

    .dg-program-story-hero h1 {
        font-size: clamp(42px, 12vw, 62px);
    }

    .dg-program-story .dg-prose .dg-program-steps,
    .dg-program-examples {
        grid-template-columns: minmax(0, 1fr);
    }

    .dg-program-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 400px) {
    .dg-program-gallery {
        grid-template-columns: minmax(0, 1fr);
    }
}

.dg-razgon-sequence {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.dg-razgon-result-quote strong {
    color: inherit;
    font-size: inherit;
}

.dg-program-story .dg-prose .dg-razgon-sequence img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
    object-position: center 34%;
}

.dg-razgon-split,
.dg-razgon-photo-pair,
.dg-razgon-reviews {
    display: grid;
    align-items: start;
    gap: 20px;
}

.dg-razgon-split {
    grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
}

.dg-razgon-method > ol {
    margin-block-start: 0;
}

.dg-razgon-photo-pair {
    grid-template-columns: minmax(0, 1fr) minmax(0, .56fr);
    margin-block: 20px 26px;
}

.dg-program-story .dg-prose :is(.dg-razgon-split, .dg-razgon-photo-pair, .dg-razgon-reviews) figure {
    margin: 0;
}

.dg-razgon-split > div > p:first-child {
    margin-top: 0;
}

.dg-razgon-reviews {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 650px;
    margin: 0 auto 28px;
}

.dg-razgon-reviews .dg-program-video-player {
    aspect-ratio: 9 / 16;
}

.dg-razgon-reviews .dg-program-video-play:not([hidden]) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    width: auto;
    height: 52px;
    padding: 0 14px;
    border-radius: 30px;
    color: #fff;
    font: 700 14px/1 Arial, Helvetica, sans-serif;
    box-shadow: 0 4px 18px #001e1680;
}

.dg-razgon-reviews .dg-program-video-play::after {
    order: -1;
    margin-left: 0;
}

.dg-razgon-reviews figcaption strong {
    display: block;
    color: #102e24;
}

.dg-razgon-case-grid section {
    padding: 16px;
}

.dg-program-story .dg-prose .dg-razgon-case-grid h3 {
    display: block;
    min-height: 0;
    margin-bottom: 8px;
}

.dg-program-story .dg-prose .dg-razgon-case-grid .dg-program-case-photo {
    margin-bottom: 10px;
}

.dg-razgon-case-grid .dg-program-case-photo img {
    aspect-ratio: 7 / 5;
}

.dg-program-story .dg-prose .dg-razgon-case-grid section > p {
    margin-bottom: 12px;
    line-height: 1.45;
}

.dg-razgon-case-grid section > a {
    line-height: 1.35;
}

.dg-program-story .dg-prose .dg-razgon-case-grid .dg-razgon-case-video {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;
}

.dg-razgon-case-grid .dg-razgon-case-video + a {
    margin-top: 0;
}

.dg-program-story .dg-prose .dg-razgon-announcement {
    display: inline-flex;
    margin-top: 4px;
    border-color: #00754a;
    background: #00754a;
    color: #fff;
    text-decoration: none;
}

.dg-program-story .dg-prose .dg-razgon-announcement:is(:hover, :focus-visible) {
    border-color: #005d3a;
    background: #005d3a;
    color: #fff;
}

.dg-program-story .dg-prose .dg-razgon-announcement:focus-visible {
    outline: 2px solid #005d3a;
    outline-offset: 3px;
}

.dg-program-story .dg-prose .dg-razgon-consultation-intro {
    margin-top: 20px;
}

@media (max-width: 650px) {
    .dg-razgon-sequence,
    .dg-razgon-reviews {
        gap: 8px;
    }

    .dg-razgon-split,
    .dg-razgon-photo-pair {
        grid-template-columns: minmax(0, 1fr);
    }

    .dg-program-story .dg-prose .dg-razgon-split figure {
        max-width: 340px;
        margin-inline: auto;
    }

    .dg-razgon-sequence figcaption {
        overflow-wrap: anywhere;
    }
}
