main {
    display: grid;

    gap: var(--gutter);

    grid-template-columns: repeat(1, 1fr);


}

.index.mobile {
    display: none;
}



section.images {


    grid-row: 1;
    height: 30vh;

    width: calc(100vw - var(--bm) * 2);

    picture.index-picture {
        width: 100%;

        height: auto;
        object-fit: cover;
        width: calc((100vw + var(--bm) * 2) / 12 * 4);

        height: 30vh;
        position: absolute;
        left: calc((100vw + var(--bm) * 2) / 12 * 4);
        z-index: -1;
        opacity: 0 !important;




        img {
            width: 100%;
            height: 100%;
            object-fit: contain;
            object-position: left;
        }
    }

    picture.index-picture.hovered {
        display: block;
        opacity: 1 !important;
    }
}

ul.index {

    grid-row: 2;
    width: calc(100vw - var(--bm) * 4);


    div.project {
        grid-column: 1/-1;
        margin-bottom: var(--gutter);
        display: grid;
        grid-template-columns: repeat(12, 1fr);
        gap: var(--gutter);
        width: 100%;

        &.matched {}
    }
}




div.project:hover picture.index-picture {


    display: block;


}

h2 {
    grid-column: 2/5;

}

span.date {
    grid-column: 1/2;
}

span.localisation {
    grid-column: 5/ span 2;
}

span.habitat {
    grid-column: 7/ span 2;
}

span.materials {
    grid-column: 9/ span 2;
}

span.projectStatus {
    grid-column: 11/ span 2;
    grid-row: 1
}

span.clientType {
    grid-column: 12/ 13;
    text-align: right;
    grid-row: 1;
}

.tag:hover {
    opacity: .2;

    cursor: pointer;
}


@media (width <=1400px) {



    ul.index {
        div.project {
            grid-template-columns: repeat(12, 1fr);
        }
    }

    picture.index-picture {
        width: 100%;
        left: 0;
    }


    span.date {
        grid-column: 1/2;
    }

    span.localisation {
        grid-column: 5/ span 2;
    }

    span.habitat {
        grid-column: 7/ span 2;
    }

    span.materials {
        grid-column: 9/ span 2;
    }

    span.projectStatus {
        grid-column: 11/ span 2;
        display: none;
        grid-row: 1
    }

    span.clientType {
        grid-column: 12/ 13;
        text-align: right;
        grid-row: 1;
    }
}



@media (width <=968px) {

    .index:not(.mobile),
    section.images {
        display: none;
    }

    .index.mobile {
        display: flex;
        width: 100%;
        ;
        flex-direction: column;

        margin-top: 1lh;



        /* Latest Chrome, Edge, Firefox */
        details:open::details-content {
            block-size: auto;


        }


        details::details-content {


            block-size: 0;
            overflow: hidden;


            transition: block-size 0.3s ease,
                content-visibility 1s;

            transition-behavior: allow-discrete;

        }


        details[open] {


            summary {

                span.tag,
                span.date {
                    opacity: 1;
                }
            }


        }

        .project {

            display: flex;
            flex-direction: column;
            margin-bottom: 2lh;
            gap: .5lh;

            summary {
                h2 {}

                list-style: none;

                display: flex;
                flex-direction: column;
                gap: var(--gutter);

                span.tag,
                span.date {
                    opacity: 0.3;
                    transition: all var(--easing-d) var(--easing);
                }

                section.details {
                    display: flex;
                    flex-direction: row;
                    gap: 3lh;


                }
            }



            summary::marker,
            details>summary::-webkit-details-marker {
                display: none;
            }



            a.img-link {
                display: flex;
                flex-direction: row;
                align-items: end;

            }

            a.img-link::after {
                content: '↗';
                display: block;

                text-align: center;
                width: fit-content;

                color: rgb(0, 0, 0);
                font-family: "Helvetica", Helvetica, Arial, sans-serif;

            }

            figure {
                width: 50%;
                height: auto;

                img {
                    width: 100%;
                    height: auto;
                    object-fit: cover;
                }


            }
        }


    }

    footer.mini {
        position: relative;
    }
}