.intro {
    min-height: min(50vh, 450px);
}

main {
    margin: 3rem 0;
}

.return__link {
    margin-bottom: 2rem;
}

/* ================= Post ================= */
header {
    padding: 5rem 0;
}

.header__info {
    padding: 0;
    margin: 0;
}

.header__title {
    font-size: 2.225rem;
    margin: 0;

    position: relative;
}

.header__meta {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;

    margin-top: 0.775rem;
}

.header__desc {
    text-transform: uppercase;
    font-family: var(--ff-title);
    font-weight: 700;
    font-size: 0.7rem;

    font-style: normal;
}

.header__desc::after {
    content: ":";
    padding-right: 0.5rem;
}

.header__date {
    font-family: var(--ff-title);

    position: relative;
    letter-spacing: 0.07rem;
    padding-top: 0.375rem;
    margin-bottom: 0;
}

.header__date::before {
    content: "";
    position: absolute;

    top: 0;

    width: 100%;
    height: 0.188rem;

    background: var(--gradient-blue);
}

.header__footer {
    margin-bottom: 1.5rem;

    position: absolute;
    bottom: 0;

    width: 100%;
}

.header__footer > [class*="container"] {
    display: flex;
    justify-content: space-between;
}

@media only screen and (max-width: 1023px) {
    .intro {
        min-height: max(40vh, 200px);
    }

    header {
        padding: 3rem 0;
    }

    .header__title {
        margin: 0;
        font-size: clamp(1.5rem, 6vw, 2.225rem);
    }

    .header__footer {
        display: none;
    }

}

@media only screen and (max-height: 500px) {
    .header__footer {
        display: none;
    }
}


/* ================= Button ================= */
.button {
    background-color: transparent;
}

/* ================= Post ================= */
.post__subheader {
    display: flex;
    justify-content: space-between;

    position: relative;

    margin-bottom: 1rem;
    padding: 0.375rem 0;
    font-size: 1.75rem;
}

.post__subtitle {
    font-family: var(--ff-title);
    font-weight: 700;

    margin-bottom: 0;
}

.post__subheader::after,
.post__subheader::after {
    content: "";
    position: absolute;
    display: inline-block;

    bottom: 0;
    left: 0;

    width: 100%;
    height: 0.188rem;

    background-color: var(--clr-main);
}

[class|=block] {
    margin: 2rem 0;
}

.post__body > [class|=block]:first-child {
    margin-top: 0rem;
}

.post__body > [class|=block]:last-child {
    margin-bottom: 0rem;
}

.block-rich_text {
    margin: 1rem 0;
}

.block-rich_text :last-child {
    margin-bottom: 0rem;
}

.block-subheading {
    margin-bottom: 1rem;
}

.block-subheading + .block-single_image_block,
.block-subheading + .block-video_block,
.block-subheading + .block-gallery_block,
.block-subheading + .block-pdf_preview,
.block-subheading + .block-document_list,
.block-subheading + .block-sorted_pdf_previews {
    margin-top: 1rem;
}

.block-line_break_block {
    margin: 0 !important;
}

/* Grid block */
.block-grid [class|=col] > [class|=block]:first-child {
    margin-top: 0;
}

.block-grid [class|=col] > [class|=block]:last-child {
    margin-bottom: 0;
}

.block-grid + .block-grid {
    margin-top: 2rem;
}

.block-grid > .block-grid:last-child {
    margin-bottom: 0rem;
}

.post__body a,
.post__file {
    display: inline;
    background: var(--gradient-blue);
    background-size: 0% 0.125rem;
    background-repeat: no-repeat;
    background-position: 0 calc(100% - 0.125rem);

    padding-bottom: 0.26rem;

    transition: background-size 0.5s;
}

.post__body a:hover,
.post__body a:focus,
.post__file:focus,
.post__file:hover {
    background-size: 100% 0.125rem;
}


.block-rich_text p {
    font-size: clamp(1rem, 1vw, 1.3rem);
}

.block-rich_text a::after {
    content: "\F470";
    font-family: bootstrap-icons !important;

    padding-left: 3.885px;
    position: relative;
    top: 0.18rem;
}

.block-rich_text a[href^="mailto:"]::after {
    content: "\F32F";
    top: 0.10rem;
} 

.block-rich_text a[href^="tel:"]::after {
    content: "\F5C1";
    top: 0.04rem;
} 

.block-rich_text a[href^="/documents/"]::after {
    content: "\F356";
    top: 0.04rem;
} 

.post__body p:last-child {
    margin: 0;
}

.post__body h1,
.post__body h2,
.post__body h3,
.post__body h4 {
    font-family: var(--ff-title);
    font-weight: 700;
    text-align: left;

    color: var(--clr-black);
}

.post__body li {
    text-align: left;
}

.post__body ol li::marker {
    font-family: var(--ff-title);
    font-weight: 700;

    color: var(--clr-black);
}

.post__body ul li::marker {
    font-weight: 700;
    font-size: 1.2rem;

    color: var(--clr-black);
}

.post__body blockquote {
    margin-left: 2rem;
    position: relative;
}

.post__body blockquote::before {
    content: "";
    top: 0;
    bottom: 0;
    left: -0.625rem;

    background: var(--clr-main);
    width: 0.225rem;
    height: 100%;

    position: absolute;
}

@supports (text-decoration-color: var(--clr-black)) {
    .post__body u,
    .post__body s {
        text-decoration-color: var(--clr-black);
    }
}

@supports (text-decoration-thickness: 0.125rem) {
    .post__body u,
    .post__body s {
        text-decoration-thickness: 0.125rem;
    }
}

.post__single__image {
    object-fit: contain;
}

video {
    background-color: var(--clr-black);
    background-clip: content-box;
}

.post__files ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.post__file {
    vertical-align: middle;
}

.file__update__time {
    vertical-align: -1px;
}

.pdf__preview {
    width: 100%;
    max-height: 80vh;

    border: 1px solid #dee2e6;
}

.fileicon {
    font-size: 1.5rem;
    color: var(--clr-main);
}

@supports (aspect-ratio: 16/9) {
    video {
        aspect-ratio: 16/9;
    }

    .post__single__image {
        aspect-ratio: 16/9;
    }
}

/* ================= Carousel ================= */
.carousel {
    background-color: var(--clr-dk-gray);
}

.carousel-img {
    object-fit: contain;
}


/* On mobile phone / small screen */
@media screen and (max-width: 991px) {
    main {
        margin: 2rem 0;
    }

    .return__link {
        margin-bottom: 1rem;
    }

    [class|=block] {
        margin: 1rem 0;
    }
}
