/*=========================================================
    GALLERY SECTION CSS START HERE
=========================================================*/

.gallery-section{
    position: relative;

   /* padding: 90px 0;
*/    padding: 50px 0;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #0f172a 0%,
            #1e293b 50%,
            #334155 100%
        );
}


/*=========================================================
    BACKGROUND ANIMATION SHAPES
=========================================================*/

.gallery-section::before,
.gallery-section::after{
    content: "";

    position: absolute;

    border-radius: 50%;

    z-index: 1;
}

.gallery-section::before{
    top: -140px;
    left: -120px;

    width: 340px;
    height: 340px;

    background: rgba(255,255,255,0.05);

    animation: floatGallery 8s ease-in-out infinite;
}

.gallery-section::after{
    bottom: -120px;
    right: -120px;

    width: 280px;
    height: 280px;

    background: rgba(244,162,97,0.12);

    animation: floatGallery 10s ease-in-out infinite;
}


/*=========================================================
    CONTAINER
=========================================================*/

.gallery-section .container{
    position: relative;
    z-index: 5;
}


/*=========================================================
    SECTION TITLE
=========================================================*/

.gallery-section h2{
    position: relative;

    font-size: 35px;
    font-weight: 800;

    color: #ffffff;

    margin-bottom: 55px !important;

    text-align: center;

    animation: fadeDown 1s ease;
}

.gallery-section h2::after{
    content: "";

    display: block;

    width: 90px;
    height: 4px;

    margin: 18px auto 0;

    border-radius: 50px;

    background:
        linear-gradient(
            to right,
            #f4a261,
            #ffbe7a
        );
}


/*=========================================================
    CAROUSEL
=========================================================*/

#galleryCarousel{
    position: relative;
}


/*=========================================================
    CAROUSEL ITEM
=========================================================*/

.gallery-section .carousel-item{
    padding: 10px 0;
}


/*=========================================================
    ROW GAP
=========================================================*/

.gallery-section .row{
    row-gap: 24px;
}


/*=========================================================
    GALLERY ITEM
=========================================================*/

.gallery-item{
    position: relative;

    overflow: hidden;

    border-radius: 24px;

    background: rgba(255,255,255,0.08);

    padding: 8px;

    backdrop-filter: blur(10px);

    box-shadow:
        0 15px 40px rgba(0,0,0,0.18);

    transition: all 0.4s ease;

    animation: fadeUp 1s ease;
}


/*=========================================================
    IMAGE STYLE
=========================================================*/

.gallery-item img{
    width: 100%;
    height: 260px;

    object-fit: cover;

    border-radius: 18px;

    transition: all 0.6s ease;
}


/*=========================================================
    IMAGE OVERLAY
=========================================================*/

.gallery-item::before{
    content: "";

    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            to top,
            rgba(15,23,42,0.75),
            rgba(15,23,42,0.10)
        );

    opacity: 0;

    transition: all 0.4s ease;

    z-index: 2;

    border-radius: 24px;
}


/*=========================================================
    SHINE EFFECT
=========================================================*/

.gallery-item::after{
    content: "";

    position: absolute;
    top: 0;
    left: -120%;

    width: 100%;
    height: 100%;

    background:
        linear-gradient(
            120deg,
            transparent,
            rgba(255,255,255,0.25),
            transparent
        );

    transform: skewX(-25deg);

    transition: 0.8s ease;

    z-index: 3;
}

.gallery-item:hover::after{
    left: 150%;
}


/*=========================================================
    HOVER EFFECT
=========================================================*/

.gallery-item:hover{
    transform: translateY(-10px);

    box-shadow:
        0 25px 60px rgba(0,0,0,0.30);
}

.gallery-item:hover img{
    transform: scale(1.08);
}

.gallery-item:hover::before{
    opacity: 1;
}


/*=========================================================
    CAROUSEL CONTROLS
=========================================================*/

.gallery-section .carousel-control-prev,
.gallery-section .carousel-control-next{
    width: 60px;
    height: 60px;

    top: 50%;

    transform: translateY(-50%);

    border-radius: 50%;

    opacity: 1;

    background:
        linear-gradient(
            135deg,
            rgba(255,255,255,0.15),
            rgba(255,255,255,0.05)
        );

    backdrop-filter: blur(10px);

    transition: all 0.4s ease;
}


/*=========================================================
    CONTROL POSITION
=========================================================*/

.gallery-section .carousel-control-prev{
    left: -30px;
}

.gallery-section .carousel-control-next{
    right: -30px;
}


/*=========================================================
    CONTROL ICON
=========================================================*/

.gallery-section .carousel-control-prev-icon,
.gallery-section .carousel-control-next-icon{
    width: 24px;
    height: 24px;
}


/*=========================================================
    CONTROL HOVER
=========================================================*/

.gallery-section .carousel-control-prev:hover,
.gallery-section .carousel-control-next:hover{
    background:
        linear-gradient(
            135deg,
            #f4a261,
            #ffbe7a
        );

    transform:
        translateY(-50%)
        scale(1.08);
}


/*=========================================================
    FLOAT ANIMATION
=========================================================*/

@keyframes floatGallery{

    0%{
        transform: translateY(0px);
    }

    50%{
        transform: translateY(25px);
    }

    100%{
        transform: translateY(0px);
    }

}


/*=========================================================
    FADE DOWN
=========================================================*/

@keyframes fadeDown{

    from{
        opacity: 0;
        transform: translateY(-40px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}


/*=========================================================
    FADE UP
=========================================================*/

@keyframes fadeUp{

    from{
        opacity: 0;
        transform: translateY(40px);
    }

    to{
        opacity: 1;
        transform: translateY(0);
    }

}


/*=========================================================
    LARGE DESKTOP
=========================================================*/

@media (min-width: 1400px){

    .gallery-section h2{
        font-size: 60px;
    }

    .gallery-item img{
        height: 300px;
    }

}


/*=========================================================
    DESKTOP
=========================================================*/

@media (max-width: 1199px){

    .gallery-section{
        padding: 80px 0;
    }

    .gallery-item img{
        height: 240px;
    }

}


/*=========================================================
    TABLET DEVICE
=========================================================*/

@media (max-width: 991px){

    .gallery-section{
        padding: 70px 0;
    }

    .gallery-section h2{
        font-size: 40px;
    }

    .gallery-item{
        border-radius: 20px;
    }

    .gallery-item img{
        height: 220px;
        border-radius: 16px;
    }

    .gallery-section .carousel-control-prev,
    .gallery-section .carousel-control-next{
        width: 50px;
        height: 50px;
    }

    .gallery-section .carousel-control-prev{
        left: -10px;
    }

    .gallery-section .carousel-control-next{
        right: -10px;
    }

}


/*=========================================================
    MOBILE DEVICE
=========================================================*/

@media (max-width: 767px){

    .gallery-section{
        padding: 60px 0;
    }

    .gallery-section::before{
        width: 220px;
        height: 220px;
    }

    .gallery-section::after{
        width: 180px;
        height: 180px;
    }

    .gallery-section h2{
        font-size: 30px;
    }

    .gallery-section h2::after{
        width: 70px;
    }

    .gallery-item{
        border-radius: 18px;
        padding: 6px;
    }

    .gallery-item img{
        height: 180px;
        border-radius: 14px;
    }

    .gallery-section .carousel-control-prev,
    .gallery-section .carousel-control-next{
        width: 42px;
        height: 42px;
    }

    .gallery-section .carousel-control-prev{
        left: 0;
    }

    .gallery-section .carousel-control-next{
        right: 0;
    }

}


/*=========================================================
    SMALL MOBILE DEVICE
=========================================================*/

@media (max-width: 575px){

    .gallery-section{
        padding: 50px 0;
    }

    .gallery-section h2{
        font-size: 24px;
        line-height: 1.4;
    }

    .gallery-item{
        border-radius: 16px;
    }

    .gallery-item img{
        height: 150px;
        border-radius: 12px;
    }

    .gallery-section .row{
        row-gap: 16px;
    }

    .gallery-section .carousel-control-prev,
    .gallery-section .carousel-control-next{
        width: 38px;
        height: 38px;
    }

    .gallery-section .carousel-control-prev-icon,
    .gallery-section .carousel-control-next-icon{
        width: 18px;
        height: 18px;
    }

}