/* About page story: text column beside a photo that stays in view while the text scrolls. */
.ocf-about-story-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: calc(var(--ocf-grid-gap) * 2.5);
    align-items: start;
}

.ocf-about-story-content .heading-2 {
    margin-bottom: calc(var(--ocf-grid-gap) * 0.75);
}

.ocf-about-story-content .prose h3 {
    margin-top: calc(var(--ocf-grid-gap) * 1.25);
}

.ocf-about-story-content .btn-primary {
    margin-top: calc(var(--ocf-grid-gap) * 0.5);
}

.ocf-about-story-image {
    position: sticky;
    top: var(--dakota-sticky-top);
    width: 100%;
    height: var(--ocf-about-story-image-height);
    object-fit: cover;
}

@media (max-width: 767px) {
    .ocf-about-story-grid {
        grid-template-columns: 1fr;
        gap: calc(var(--ocf-grid-gap) * 1.25);
    }

    .ocf-about-story-image {
        position: static;
        order: -1;
        height: var(--ocf-about-story-image-height-mobile);
    }
}

/* OCF_AGENT_BLOCK:about-story-full-image START */
.ocf-about-story-image {
    position: static;
    width: 100%;
    height: auto;
    object-fit: contain;
    align-self: start;
}

@media (max-width: 767px) {
    .ocf-about-story-image {
        height: auto;
        order: -1;
    }
}
/* OCF_AGENT_BLOCK:about-story-full-image END */

/* OCF_AGENT_BLOCK:family-photo-full-image START */
.ocf-about-story-grid {
    grid-template-columns: minmax(0, 500px) minmax(0, 1fr);
    align-items: center;
    max-width: var(--container-width);
    margin-inline: auto;
    padding: calc(var(--ocf-grid-gap) * 2);
}

.ocf-about-story-image {
    position: static;
    display: block;
    width: 100%;
    max-width: 500px;
    height: auto;
    margin-inline: auto;
    object-fit: contain;
    border-radius: var(--ocf-radius);
    align-self: center;
}

@media (max-width: 767px) {
    .ocf-about-story-grid {
        grid-template-columns: minmax(0, 1fr);
        gap: calc(var(--ocf-grid-gap) * 1.25);
        padding: calc(var(--ocf-grid-gap) * 1.5) var(--container-pad);
    }

    .ocf-about-story-image {
        position: static;
        order: -1;
        width: 100%;
        max-width: 500px;
        height: auto;
    }
}
/* OCF_AGENT_BLOCK:family-photo-full-image END */
