/* Legacy clearfix pseudo-elements must not become flex children. */
body.home #company_home_portofolio .hgroup::before,
body.home #company_home_portofolio .hgroup::after,
body.home #company_home_projects_descr .hgroup::before,
body.home #company_home_projects_descr .hgroup::after {
    content: none;
    display: none;
}

body.home #company_home_portofolio .home_section_link,
body.home #company_home_projects_descr .home_section_link {
    flex: 0 0 auto;
    margin-left: auto;
    text-align: right;
}

/* Keep already visible content stable when it enters the viewport. */
.landio-motion-active body.home .landio-reveal,
.landio-motion-active body.home .landio-reveal.is-visible {
    animation: none;
    opacity: 1;
    transform: none;
}

body.home .home_service_media img,
body.home .landio_home_project_image img,
body.home .home_article_media img,
body.home .home_service_media:hover img,
body.home .landio_home_project_image:hover img,
body.home .home_article_media:hover img {
    transform: none;
    transition: none;
}

/* Match the existing theme's 409x285 catalogue thumbnails; never modify full files. */
body.post-type-archive-work #mixItUp .mix {
    vertical-align: top;
}

body.post-type-archive-work #mixItUp .has_hover > a:first-child,
body.home .landio_home_project_image {
    aspect-ratio: 409 / 285;
    display: block;
    overflow: hidden;
}

body.post-type-archive-work #mixItUp .has_hover > a:first-child > img,
body.home .landio_home_project_image img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

/* Uniform gallery previews, with uncut technical drawings and unchanged lightbox originals. */
body.landio-imported-project .project .blog_post > .gallery .gallery-icon > a {
    aspect-ratio: 3 / 2;
    display: block;
    overflow: hidden;
}

body.landio-imported-project .project .blog_post > .gallery .gallery-icon img {
    display: block;
    height: 100%;
    width: 100%;
    object-fit: cover;
    object-position: center;
}

body.landio-imported-project .project .blog_post > .gallery .gallery-icon img.landio-drawing {
    object-fit: contain;
}

body.landio-imported-project .project .blog_post > .gallery-columns-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 600px) {
    body.landio-imported-project .project .blog_post > .gallery-columns-2 {
        grid-template-columns: minmax(0, 1fr);
    }
}
