#Bauprojekt,
#ChronikDetail{

    display: flex;
    flex-direction: column;
    align-items: center;
    /*padding-bottom: 17.3913rem; /* 400 */

    main,
    article{
        width: 100%;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    figure[data-ffLightbox-API]{
        cursor: pointer;
    }

    figcaption{
        display: none;
        &::before{
            content: "©\00a0";
        }

        &:empty{
            display:none;
        }
    }


    main{

        >header{
            width: 50%;
            padding:5rem 0;
            align-self: start;

            .header-description:has(>span:not(:empty)){
                margin-top: var(--lh);
            }
        }


        >figure{
            position: relative;

            /* - image should fit in a picture box of max 824 x 481 */
            /* - if image is taller, image box remains and image shrinks */
            /* - if image is wider, image box should shrink */
            >picture{
                width: 35.826087rem; /* 824 */
                max-height: 20.91304rem; /* 481 */
                max-width: var(--content-width);
                display: flex;
                align-items: center;
                justify-content: center;

                >img{
                    display: block;
                    width: 100%;
                    height: 100%;
                    object-fit: contain;
                    object-position: center;
                }
            }

            &[data-referenced-ratio*="0."]{
                >picture{
                    aspect-ratio: 1.713097713097713;
                }
            }

            &:empty{
                background:var(--color-accent);
            }
        }
        >figure~figure{
            margin-top:9.13043rem /* 210 px */;
        }
    }

    article{
        gap:var(--ch-big-text);
        figure{
            position: relative;
            picture{
                display: block;
                img{
                    width:100%;
                    max-width:100%;
                    height:auto;
                }
            }

            >figcaption{
                position: absolute;
                bottom:-1rem;
            }

            &:not(.empty){
                line-height: 0;
            }
        }

        .story-block{
            width:100%;
            min-height:5rem;
        }

        /* sizes of images are defined by 3 t-shirt-sizes */
        /* Those are different depending on the orientation of the image */

        .story-block--large{
            max-width: 30.60870rem; /* 704px */
            &:has(>figure[data-orientation='portrait']){
                max-width: 25.3913rem; /* 584px */
            }
        }

        .story-block--medium{
            max-width: 25.3913rem; /* 584px */
            &:has(>figure[data-orientation='portrait']){
                max-width: 20.17391rem; /* 464px */
            }
        }

        .story-block--small{
            max-width: 20.17391rem; /* 464px */
            &:has(>figure[data-orientation='portrait']){
                max-width: 14.95652rem; /* 344px */
            }
        }
    }


    @media all and (max-width: 900px) {
        main {
            > header {
                width: 100%;
                padding: 4.2105rem /* 80px */ 0;
            }
        }

        article{
            gap:1.7895rem; /* 34px */
            figure>figcaption{
                display: flex;
                font-size:0.6316rem;
                bottom: -0.8rem !important;
            }
        }

        main>figure>picture,
        article .story-block{
            max-width:var(--content-width) !important;
        }

        main>figure>picture {
            max-width: calc(var(--content-width) - var(--col-width) * 2) !important;
        }

        article .story-block{
            max-width:var(--content-width) !important;
        }



    }


}