@use "../utilities" as *;

/**----------------------------------------
    START: Project CSS
----------------------------------------*/

.project-item{
    .project-thumb{
        margin-bottom: 25px;
        position: relative;
        .overlay{
            background-color: #000;
            height: 100%;
            width: 100%;
            border-radius: 16px;
            position: absolute;
            top: 0;
            left: 0;
            z-index: 1;
            opacity: 0.4;
            @include transition (all 0.3s ease-in-out);
            visibility: hidden;
            opacity: 0;
        }
        .project-btn{
            a{
                background-color: var(--cp-color-common-white);
                color: var(--cp-color-text-black);
                font-size: 30px;
                height: 100px;
                width: 100px;
                @include flex-center;
                position: absolute;
                top: 50%;
                left: 50%;
                transform: translate(-50%, -50%) scale(0);
                border-radius: 50%;
                z-index: 5;
                @include transition (all 0.3s ease-in-out);
                i{
                    transform: rotate(-45deg);
                    @include transition (all 0.3s ease-in-out);
                }
            }
            &:hover{
                i{
                    transform: rotate(0deg);
                }
            }
        }
        .main-img{
            overflow: hidden;
            position: relative;
            border-radius: 16px;
            transform: scale(0.9);
            img{
                transform-origin: center;
                border-radius: 16px;
            }
        }
    }
    .project-content{
        .title{
            font-size: 28px;
            font-weight: 600;
            @include breakpoint(md){
                font-size: 22px;
            }
        }
    }
    &:hover{
        .project-thumb{
            .overlay{
                visibility: visible;
                opacity: 0.4;
            }
        }
        .project-btn{
            a{
                transform: translate(-50%, -50%) scale(1);
            }
        }
    }
}

// Project 2

.project-top{
    .swiper-arrow{
        @include flex-vertical-center;
        column-gap: 10px;
        .swiper-nav{
            background-color: var(--cp-color-theme-primary);
            color: var(--cp-color-text-black);
            height: 56px;
            width: 56px;
            @include flex-center;
            border-radius: 50%;
            @include transition(all 0.3s ease-in-out);
            &:hover{
                background-color: var(--cp-color-common-white);
            }
        }
    }
}

.project-carousel{
    max-width: 850px;
    width: 100%;
    margin-left: 0;
    overflow: visible;
}

.project-item-2{
    .project-thumb{
        height: 550px;
        width: 100%;
        overflow: hidden;
        border-radius: 16px;
        @include breakpoint(md){
            height: 450px;
        }
        @include breakpoint(sm){
            height: 400px;
        }
        .main-img{
            height: 100%;
            width: 100%;
        }
        img{
            height: 100%;
            width: 100%;
            object-fit: cover;
        }
    }
}


// Project Details

.project-details-img{
    height: 600px;
    width: 100%;
    @include breakpoint(md){
        height: 400px;
    }
    .img-overlay{
        background-color: var(--cp-color-bg-1);
    }
    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
}

.project-details-content{
    .project-details-meta{
        @include flex-vertical-center;
        justify-content: space-between;
        column-gap: 20px;
        margin-top: 50px;
        margin-bottom: 50px;
        padding-bottom: 50px;
        border-bottom: 1px solid var(--cp-color-border-1);
        @include breakpoint(sm){
            flex-direction: column;
            row-gap: 30px;
            justify-content: baseline;
            align-items: baseline;
        }
        .project-meta{
            span{
                color: #E7E7E7;
                font-size: 16px;
                font-weight: 500;
                text-transform: uppercase;
                display: block;
                margin-bottom: 10px;
                opacity: 0.85;
            }
            .title{
                color: var(--cp-color-common-white);
                font-size: 18px;
                font-weight: 600;
                margin-bottom: 0;
            }
        }
    }
    .details-title{
        font-size: 64px;
        font-weight: 500;
        @include breakpoint(md){
            font-size: 50px;
            margin-bottom: 20px;
        }
        @include breakpoint(sm){
            font-size: 40px;
        }
        span{
            font-family: "NewYork", sans-serif;
            font-weight: 200;
        }
    }
    p{
        font-size: 17px;
        font-weight: 400;
    }
    .project-details-thumb-wrap{
        @include flex-vertical-center;
        column-gap: 24px;
        margin: 60px 0;
        @include breakpoint(md){
            margin: 40px 0;
        }
        @include breakpoint(sm){
            flex-direction: column;
            row-gap: 24px;
        }
        .project-details-thumb{
            height: 420px;
            width: 100%;
            @include breakpoint(md){
                height: 350px;
            }
            .img-overlay{
                background-color: var(--cp-color-bg-1);
            }
            img{
                width: 100%;
                height: 100%;
                object-fit: cover;
            }
        }
    }
    .details-title-2{
        font-size: 36px;
        font-weight: 600;
        @include breakpoint(md){
            font-size: 30px;
            margin-bottom: 20px;
        }
    }
}

/* !END: Project CSS */
