/* SINGLE --------------------------------------------------------- */
h1, .h1{
    margin-top: 4rem;
}
.single .title{
    display: flex;
    flex-direction: column;
    width: 100%;
}
.single .tags{
    padding-top: 1rem;
}
.single .presentation{
    display: flex;
    padding: 2rem;
    gap: 2rem;
    border-radius: 1rem;
    background-color: var(--colorlight32);
    min-height: 16rem;
    width: 100%;
}
.single .presentation img{
    object-fit: contain;
}
.single .text{
    width: calc(50% - 1rem);
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.single .image{
    width: calc(50% - 1rem);
    position: relative;
}
.single .image img{
    position: absolute;
    top: -9rem;
    left: 50%;
    transform: translateX(-50%);
    height: 21rem;
    width: auto;
}
.single .wrapper{
    justify-content: flex-start;
}
.single .wrapper figure{
    width: calc(100% / 3 - 2rem * 2 / 3);
    height: auto;
    aspect-ratio: 16/9;
    cursor: pointer;
}
figure.figma, figure.link{
    background-color: #1E1E1E;
    display: flex;
    align-items: center;
    justify-content: center;
}
figure.figma svg, figure.link svg{
    height: 64%;
    width: auto;
}
figure.link{
    background-color: var(--colorlight32);
}
figure.link a{
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
/* GALERY --------------------------------------------------------- */
section.galery{
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 100%;
    opacity: 0;
    z-index: -1;
    pointer-events: none;
    background-color: transparent;
    transition: opacity 300ms, z-index 0ms 300ms;
}
section.galery.active{
    opacity: 1;
    z-index: 11;
    pointer-events: all;
    transition: opacity 300ms, z-index 0ms;
}
.galery-background{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    background-color: var(--black48);
}
.galery .container{
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 1rem;
    justify-content: space-between;
    align-items: center;
    padding: 2rem;
    position: relative;
    z-index: 2;
    transform: scale(0.7);
    pointer-events: none;
    transition: transform 300ms;
}
section.galery.active .container{
    transform: scale(1);
}
.slider-buttons{
    position: absolute;
    width: calc(100% - 4rem);
    display: flex;
    z-index: 2;
    pointer-events: none;
    justify-content: space-between;
    top: 50%;
    transform: translateY(-50%);
}
.slider-buttons button{
    pointer-events: all;
}
.galery .slider{
    width: 100%;
    height: 100%;
    padding: 4rem;
    position: relative;
    z-index: 1;
}
.galery .slider-wrapper{
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: row;
    gap: 2rem;
    align-items: center;
    flex-wrap: nowrap;
    transition: transform 300ms;
}
.galery figure{
    width: 100%;
    height: 100%;
    flex-shrink: 0;
    border-radius: unset;
    overflow: unset;
}
.galery img{
    object-fit: contain;
}
.galery figure.figma{
    pointer-events: all;
}
.galery figure.figma iframe{
    height: 100%;
    width: 100%;
}
.galery figure.scroll{
    pointer-events: all;
    overflow: auto;
    background-color: var(--black);
}
.galery figure.scroll img{
    object-fit: unset;
    width: auto;
    margin: auto;
    height: auto;
}
@media screen and (max-width: 1000px) {
    .single .presentation{
        flex-direction: column-reverse;
        gap: 2rem;
    }
    .single .text{
        margin-top: -5rem;
        width: 100%;
    }
    .single .image{
        width: 100%;
    }
    .single .image img{
        position: relative;
        top: -4rem;
        left: unset;
        transform: unset;
        height: unset;
    }
    .single .presentation{
        margin-top: 3rem;
    }
}
@media screen and (max-width: 900px) {
    h1, .h1{
        margin-top: unset;
    }
    .single .wrapper figure{
        width: calc(100% / 2 - 2rem * 1 / 2);
    }
}
@media screen and (max-width: 600px) {
    .single .wrapper figure{
        width: calc(100%);
    }
    /* .galery .container{
        padding: 0 2rem;
        align-items: flex-end;
        justify-content: center;
        gap: 2rem;
    }
    .galery .slider{
        position: absolute;
        top: 0;
        left: 0;
        padding: 0 2rem;
        padding-bottom: 5rem;
    } */
    .galery .container{
        padding: 1rem;
        padding-bottom: 4rem;
    }
    .slider-buttons{
        justify-content: center;
        top: unset;
        bottom: 1rem;
        gap: 4rem;
        width: calc(100% - 2rem);
        transform: unset;
    }
    .galery .slider{
        width: 100%;
        height: 100%;
        padding: 1rem;
        /* padding-bottom: 4rem; */
        position: relative;
        z-index: 1;
    }
    .galery .slider-wrapper{
        gap: 1rem;
    }
}