/* Restricted content block: one or two columns of text, image or video.
   Presentation lives here rather than in tenant-authored markup, since the sanitizer
   strips inline styles and classes from editor content.
   Chrome intentionally mirrors the LifeStyle widget so both read as the same section type. */

.content-block {
    position: relative;
    background: var(--primary-bg);
    padding: 60px 85px;
    color: #ffffff;
    overflow: hidden;
}

/* Bottom fade, matching .lifeStyle-section::after. */
.content-block::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    height: 100px;
    width: 100%;
    background: linear-gradient( to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 1) 100% );
    z-index: 2;
}

.content-block > * {
    position: relative;
    z-index: 3;
}

.content-block .container {
    padding-left: 0;
    padding-right: 0;
    max-width: none;
}

/* Title/subtitle span the full block width, above both columns. */
.content-block-header {
    margin-bottom: 2rem;
}

/* The slogan carries Bootstrap's mb-5; trim it so the media does not float far below. */
.content-block .section-title {
    margin-bottom: 2rem !important;
}

/* Same treatment as .lifeStyle-title. */
.content-block-title {
    font-family: Arial, sans-serif;
    font-size: 1.6991rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 400;
    color: inherit;
    margin-bottom: 20px;
}

.content-block-subtitle {
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: inherit;
    opacity: .85;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .content-block {
        padding: 40px 20px;
    }

    .content-block-title {
        font-size: 1.25rem;
    }
}

.content-block-row {
    align-items: flex-start;
}

.content-block-col + .content-block-col {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .content-block-col + .content-block-col {
        margin-top: 0;
    }
}

/* Text column: styles target the sanitizer's allow-list of tags. */
.content-block-text {
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: inherit;
}

/* Headings are authored inline in the text editor, so they carry no classes. */
.content-block-text h2 {
    font-family: Arial, sans-serif;
    font-size: 1.6991rem;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    font-weight: 400;
    color: inherit;
    margin-bottom: 20px;
}

.content-block-text h3 {
    font-family: Arial, sans-serif;
    font-size: 1.25rem;
    line-height: 1.5;
    color: inherit;
    opacity: .85;
    margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
    .content-block-text h2 {
        font-size: 1.25rem;
    }
}

.content-block-text p {
    margin-bottom: 1rem;
}

.content-block-text p:last-child {
    margin-bottom: 0;
}

.content-block-text ul,
.content-block-text ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.content-block-text li {
    margin-bottom: .35rem;
}

.content-block-text a {
    text-decoration: underline;
    color: inherit;
}

.content-block-figure {
    margin: 0;
}

.content-block-media {
    position: relative;
}

/* Offset outline behind the media, matching .image-frame on the LifeStyle widget. The outline is
   a pseudo-element so it never affects layout or the image's own box. Sizing with inset:0 plus a
   translate keeps it exactly the same box as the media, only shifted, whatever the media's
   aspect ratio; per-edge offsets drifted out of alignment when the image did not fill the column. */
.content-block-figure--framed .content-block-media::before {
    content: "";
    position: absolute;
    inset: 0;
    transform: translate(22px, -32px);
    border: 1px solid currentColor;
    pointer-events: none;
}

.content-block-figure--framed .content-block-media > * {
    position: relative;
    z-index: 2;
}

.content-block-figure--framed {
    margin: 32px 22px 32px 0;
}

@media (max-width: 767.98px) {
    .content-block-figure--framed {
        margin: 0;
    }

    .content-block-figure--framed .content-block-media::before {
        display: none;
    }
}

.content-block-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: .25rem;
}

.content-block-video iframe {
    border: 0;
    border-radius: .25rem;
}

.content-block-caption {
    margin-top: .5rem;
    font-size: .875rem;
    color: inherit;
    opacity: .8;
}
