/* SINGLE */

.slug {
    display: flex;
    flex-direction: row;
    gap: 2rem;
    padding: 8rem 60px 4rem;

    a {
        text-decoration: none;

        @media (min-width:900px) {
            &:hover {
                text-decoration: underline;
            }
        }
    }

    a,
    span {
        padding: .5rem 0;
        color: var(--gray);
    }

    @media (max-width:1300px) {
        & {
            padding: 8rem 2rem 0;
        }
    }

    @media (max-width:800px) {
        & {
            padding: 6rem 1rem 0;
        }
    }
}

.imageInfo {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    padding: 0 60px 100px;
    gap: 0 3vw;

    .imageMask {
        overflow: hidden;
        aspect-ratio: 1;
        grid-column: 1 / 2;
        grid-row: 1 / 3;

        img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            object-position: right center;
            opacity: 0;
        }
    }

    .basic {
        grid-column: 2;
        grid-row: 1;

        h1 {
            font-size: 48px;
            line-height: 100%;
            text-transform: uppercase;
            opacity: 0;
        }

        .basicInfo {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap;
            gap: 2px;
            margin: .75rem 0 3rem;
            opacity: 0;
        }

        .downloads {
            h3 {
                font-size: 16px;
                line-height: 16px;
                font-weight: 300;
                text-transform: uppercase;
                margin-bottom: .25rem;
                opacity: 0;
            }

            p {
                line-height: 122%;
                opacity: 0;

                a {
                    color: var(--black);
                    font-size: 12px;
                    letter-spacing: -0.12px;
                }
            }
        }

        strong {
            display: none;
        }
    }

    .bottom {
        grid-column: 2;
        grid-row: 2;
        align-self: end;

        @media (min-width:800px) {
            .downloads {
                display: none;
            }
        }

        .info {
            p {
                font-size: 12px;
                line-height: 16px;
                letter-spacing: -0.12px;
                padding: 1rem 0;
                max-width: 30rem;
                border-bottom: .25px solid var(--black);
                opacity: 0;
    
                strong {
                    font-size: 16px;
                    font-weight: 300;
                    line-height: 16px;
                    letter-spacing: -0.16px;
                    text-transform: uppercase;
                }
            }
        }
    }

    @media (max-width:1300px) {
        & {
            grid-template-columns: repeat(3, 1fr);
            padding: 50px 2rem 100px;

            .imageMask {
                grid-column: 1 / 3;
                grid-row: 1 / 3;
            }
        
            .basic {
                grid-column: 3;
                grid-row: 1;
            }
        
            .bottom {
                grid-column: 3;
                grid-row: 2;
            }
        }
    }

    @media (max-width:800px) {
        & {
            display: flex;
            flex-direction: column;
            gap: .5rem;
            padding: 3rem 1rem 6rem;

            .imageMask {
                grid-column: 2 / 5;
                grid-row: 1 / 4;
                order: 2;
            }
        
            .basic {
                grid-column: 1 / 4;
                grid-row: 1;
                order: 1;

                h1 {
                    font-size: 32px;
                    line-height: 32px;
                }

                .basicInfo {
                    margin: .5rem 0;
                }

                .downloads {
                    display: none;
                }
            }
        
            .bottom {
                display: grid;
                grid-template-columns: repeat(3, 1fr);
                gap: 1rem;
                width: 100%;
                order: 3;
                
                .downloads {
                    grid-column: 1 / 2;
                    padding: 1rem 0;

                    h3 {
                        font-size: 16px;
                        line-height: 16px;
                        font-weight: 300;
                        text-transform: uppercase;
                        margin-bottom: .25rem;
                    }
        
                    p {
                        line-height: 122%;
                        padding: .25rem 0;
        
                        a {
                            color: var(--black);
                            font-size: 12px;
                            letter-spacing: -0.12px;
                        }
                    }
                }

                .info {
                    grid-column: 2 / 4;
                }
            }
        }
    }
}

.singleImage {
    width: 100%;
    height: fit-content;
    padding: 2rem 0;

    @media (max-width:900px) {
        & {
            padding: 1rem;
        }
    }

    img {
        width: 100%;
        height: fit-content;
        display: block;
        opacity: 0;
        max-width: 60rem;
        margin: auto;
    }
}

.imageCarousel {
    .splide__track {
        .splide__list {
            .splide__slide {
                img {
                    width: 100%;
                    height: 100%;
                    opacity: 0;
                }
            }
        }
    }
}

.cursor {
    z-index: 10;
    transform-origin: center;
    overflow: visible;
    opacity: 0;
    transition: opacity .3s, transform .2s ease-out;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) scale(0.5);
    position: fixed;
    pointer-events: none;

    path {
        transform-origin: center;
        transform: translateY(-100%);
        transition: all .3s;
    }

    @media (max-width:900px) {
        & {
            display: none;
        }
    }
}

.splide {
    position: relative;

    .splide__arrows {
        position: absolute !important;
        width: 100%;
        height: 100% !important;
        display: grid !important;
        grid-template-columns: repeat(5, 1fr);

        .splide__arrow {
            position: static !important;
            width: 100% !important;
            height: 100% !important;
            transform: none !important;
            border-radius: 0 !important;
            pointer-events: painted;
            opacity: 0;
        }

        .splide__arrow--prev {
            grid-column: 1;
        }

        .splide__arrow--next {
            grid-column: 5;
        }

        @media (max-width:900px) {
            & {
                position: relative !important;
                grid-template-columns: repeat(2, 1fr);
                transform: translateY(-2.2rem);
                width: 4rem;
                margin-left: auto;
                margin-right: 1rem;

                .splide__arrow {
                    opacity: 1;
                    background-color: transparent;
                    width: auto !important;
                    height: auto !important;
                    pointer-events: all !important;
                }
    
                .splide__arrow--next {
                    grid-column: 2;
                }
            }
        }
    }

    .splide__track {
        .splide__list {
            .splide__slide {

                img,
                video {
                    height: 100%;
                    max-width: 100vw;
                    object-fit: cover;
                }

                p {
                    position: absolute;
                    top: 50%;
                    left: 50%;
                    transform: translate(-50%,-50%);
                    z-index: 5;
                    font-size: 40px;
                    font-weight: 600;
                    text-transform: uppercase;
                    text-align: center;
                    color: var(--cream);

                    @media (max-width:1200px) {
                        & {
                            font-size: 30px;
                        }
                    }

                    @media (max-width:900px) {
                        & {
                            font-size: 20px;
                        }
                    }
                }

                &::after {
                    content: "";
                    display: block;
                    position: absolute;
                    inset: 0;
                    background-color: rgba(0, 0, 0, 0.1);
                    z-index: 1;
                }
            }
        }
    }
}

.relatedProducts {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 4rem 60px;

    h2 {
        display: flex;
        gap: 0.5rem;
        font-size: 48px;
        line-height: 58px;
        text-transform: uppercase;
        opacity: 0;

        .mask {
            overflow: hidden;

            span {
                display: block;
                transform-origin: center center;
            }
        }
    }

    .relatedList {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;

        .product {
            display: flex;
            flex-direction: column;
            gap: 10px;
            text-decoration: none;
            width: 100%;
            height: 100%;
            opacity: 0;

            .mask {
                overflow: hidden;

                img {
                    width: 100%;
                    height: 100%;
                    aspect-ratio: 1;
                    transition: transform .3s ease-out;
                }
            }

            p {
                color: var(--black);
                font-size: 16px;
            }

            @media (min-width:900px) {
                &:hover {
                    img {transform: scale(1.05);}
                }
            }
        }
    }

    @media (max-width:1300px) {
        & {
            padding: 4rem 1rem;

            h2 {
                font-size: 35px;
                line-height: 40px;
            }
        }
    }

    @media (max-width:800px) {
        & {
            h2 {
                font-size: 20px;
                line-height: 20px;
            }

            .relatedList {
                .product {
                    p {
                        font-size: 14px;
                    }
                }
            }
        }
    }
}