.single-format-image {
    & .site-main {
        & section.block:has(.content .is-layout-constrained):not(:has(.content.slideshow-wrapper)) {
            & .content {
                & .is-layout-constrained {
                    & .featured-picture--wrapper {
                        & .wp-post-image {
                            max-width: 600px;
                        }
                    }
                }
            }
        }
    }
}

.site-main {
    & article {
        & .block.breadcrumbs--wrapper {
            & .content {
                padding: .47rem 0;
            }
        }

        & header.block {
            position: relative;
            overflow: hidden;
            text-align: center;
            background-color: var(--wp--preset--color--background);

            & .content {
                padding-top: .5rem;

                & .post--tags {
                    flex-wrap: wrap;
                    justify-content: center;
                }

                & .page-title {
                    font-size: var(--wp--preset--font-size--xx-large);
                    text-align: center;
                    position: relative;
                    max-width: 40.313rem;
                    margin-inline: auto;
                }

                & .latest-modified,
                & .metadata {
                    text-align: center;

                    & .date {
                        display: inline-flex;
                        align-items: baseline;
                        line-height: 1;

                        & svg {
                            margin-right: .5rem;
                        }
                    }
                }

                & .metadata {
                    display: inline-flex;
                    justify-content: center;
                    flex-wrap: wrap;

                    &>div:not(:last-child) {
                        position: relative;

                        &:after {
                            content: '●';
                            margin: 0 1rem;
                            opacity: .2;
                        }
                    }

                    & .comments {
                        display: inline-flex;
                        align-items: baseline;
                        line-height: 1;

                        & svg {
                            margin-right: .5rem;
                            position: relative;
                            top: 3px;
                        }

                        & span {
                            display: inline-flex;
                            width: .438rem;
                        }
                    }
                }
            }
        }
    }

    section.block:has(.content .is-layout-constrained):not(:has(.content.slideshow-wrapper)) {
        & .content {
            padding: 3rem 0;
            display: grid;
            gap: 1rem;

            & .is-layout-constrained {
                & .featured-picture--wrapper {
                    position: relative;
                    width: fit-content;
                    margin-inline: auto;
                    margin-bottom: 2.5rem;
                    box-shadow: var(--wp--preset--shadow--post-shadow);

                    &::before,
                    &::after {
                        position: absolute;
                        content: '';
                        top: 0;
                        left: 0;
                        width: 100%;
                        height: 100%;
                        max-height: 100%;
                        border: 2px solid light-dark(hsla(0, 0%, 100%, 0.849), hsla(0, 0%, 100%, 0.849));
                        mask-image: linear-gradient(135deg, light-dark(hsla(0, 0%, 100%, 0.849), hsla(0, 0%, 100%, 0.849)), light-dark(hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0)) 50%);
                        mask-position: 0 0;
                        transition: mask-position .3s ease, max-height .3s ease;
                        z-index: 2;
                        transition: max-height .3s ease .3s;
                    }

                    &::after {
                        height: calc(100% - 2px);
                        max-height: calc(100% - 2px);
                        mask-image: linear-gradient(135deg, light-dark(hsla(0, 0%, 100%, 0), hsla(0, 0%, 100%, 0)) 76%, light-dark(hsla(0, 0%, 100%, 0.644), hsla(0, 0%, 100%, 0.644)));
                        transition: max-height .3s ease .3s;
                    }

                    & .featured-picture__overlay {
                        position: absolute;
                        bottom: 0;
                        left: 0;
                        width: 100%;
                        height: 4rem;
                        box-shadow: rgba(0, 0, 0, .15) 0 -2px 0 inset;
                        z-index: 2;
                        transition: transform .3s ease .3s;
                    }

                    & .wp-post-image {
                        width: 100%;
                        height: auto;
                        object-fit: cover;
                    }
                }
            }
        }
    }
}

@media (width < 31.25rem) {
    .site-main {
        & article {
            header.block {
                & .content {
                    & .metadata {
                        display: grid;
                        gap: .5rem;

                        &>div:not(:last-child) {
                            position: relative;

                            &:after {
                                content: '';
                                margin: 0;
                            }
                        }
                    }
                }
            }
        }
    }
}