.article {
    max-width: 1000px;
}

main {
    margin-bottom: 4em;
}

.wrapper img {
    margin: 1em 0;
    object-fit: cover;
    margin: 1em auto;
    object-fit: cover;
    max-width: 480px;
}

.wrapper .image {
    width: calc(100% + 40px);
    margin: 1em -20px;
    display: flex;
    gap: 1%;
    aspect-ratio: 3/2;
}

.wrapper .image img:first-child {
    width: 59.5%;
}

.wrapper .image img:last-child {
    width: 39.5%;
    object-position: 84% 50%;
}

.wrapper .image.img-half img {
    width: 49.5%;
    object-position: center;
}

.wrapper img:nth-of-type(2n-1):not(.image img) {
    margin-left: -20px;
    margin-right: auto;
}

.wrapper img:nth-of-type(2n):not(.image img) {
    margin-left: auto;
    margin-right: -20px;
}

.imgs-wr {
    display: none;
}

.next-page {
    background-repeat: no-repeat;
    background-size: cover;
}

.concrete .next-page {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),url(./formwork.jpg);
    background-position: center;
}

.formwork .next-page {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),url(./curb.jpg);
    background-position: bottom;
}

.curb .next-page {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),url(./fibc.jpg);
    background-position: 50% 75%;
}

.fibc .next-page {
    background-image: linear-gradient(to right, rgba(0, 0, 0, 0), rgba(0, 0, 0, 0.5)),url(./concrete.jpg);
    background-position: bottom;
}

@media(min-width:750px) {
    hgroup {
        text-align: center;
    }

    .work-inner {
        display: flex;
        flex-direction: row-reverse;
        gap: 36px;
    }

    .wrapper {
        width: 60%;
    }

    .wrapper img {
        margin-top: 0;
    } 

    .wrapper .imgs-inner {
        display: flex;
        gap: 1%;
        aspect-ratio: 3/2;
    }

    .wrapper .imgs-inner img {
        width: 49.5%;
        margin-left: 0;
    }

    .imgs-wr {
        display: block;
        width: 40%;
        position: sticky;
        top: 10vh;
        height: fit-content;
    }
    
    .imgs-wr img {
        margin-bottom: 1em;
    }
}