/***

==================================================================
	gallery section
==================================================================

***/

.gallery-section{
    position: relative;
    padding: 120px 0;
    background-color: var(--theme-color3);
    .sec-title {
        margin-bottom: 85px;
    }
}

.gallery-block{
    position: relative;
    .inner-box{
        &:hover{
            .image-box{
                &:before{
                    height: 0%;
                }
                .image{
                    img{
                        transform: scale(1.1);
                    }
                }
            
                .title{
                    &:before {
                        transform: scale(1);
                    }
                }    
            }
        }
        .image-box{
            position: relative;
            &:before{
                position: absolute;
                left: 0;
                bottom: 0;
                width: 100%;;
                height: 80%;
                background: linear-gradient(to top, #000, transparent);
                z-index: 1;
                opacity: .5;
                transition: all 300ms ease;
                content: "";
            }
            .image {
                position: relative;
            }
            .title{
                position: absolute;
                bottom: 48px;
                left: 50%;
                width: 210px;
                height: 61px;
                line-height: 61px;
                display: inline-block;
                white-space: nowrap;
                color: var(--theme-color-light);
                padding: 0 23px;
                margin-bottom: 0;
                transform: translateX(-50%);
                transition: all 300ms ease;
                z-index: 3;
                &:before {
                    content: '';
                    @include overlay;
                    pointer-events: none;
                    background-color: var(--bg-theme-color1);
                    transform: scale(0);
                    transition: all 300ms ease;
                    z-index: -1;
                }
                &:after {
                    content: '';
                    position: absolute;
                    top: 0;
                    left: 50%;
                    width: 34px;
                    height: 61px;
                    border: 1px solid var(--bg-theme-color1);
                    transform: translateX(-60%);
                }
            }
            .image{
                overflow: hidden;
                img{
                    transition: all 0.3s ease;
                }
            }
        }
    }
}


/***

==================================================================
	Gallery Section Two
==================================================================

***/

.gallery-section-two{
    position: relative;
    padding: 120px 0;
    .sec-title{
        margin-bottom: 65px;
        .icon-divider {
            margin-bottom: 10px;
        }
        .text{
            font-size: 18px;
            line-height: 36px;
            margin-top: 65px;
            @include media-breakpoint-down(xl){
                margin-top: 20px;
            }
        }
    }
    .outer-box {
        padding: 0 20px;
    }
    
    &.style-two {
        padding-top: 0;
        padding-bottom: 0;
        background-color: var(--bg-theme-color3);
        .gallery-block{
            .info-box {
                &:after {
                    top: 17px;
                    left: 17px;
                    right: 17px;
                    bottom: 17px;
                }
                .title {
                    font-size: 18px;
                }
                .text {
                    font-size: 10px;
                }
            }
        }
        .outer-box{
            position: relative;
            z-index: 2;
        }
    }
}

.gallery-block-two{
    .inner-box{
        position: relative;
        height: 100%;
        &:hover{
            .image{
                img{
                    transform: scale(1.1);
                }
            }
            .info-box {
                opacity: 1;
                visibility: visible;
                &:before{
                    transform: scale(1);
                }
                &:after {
                    opacity: 1;
                    transform: scale(1);
                    transition-delay: 200ms;
                }
                .title{
                    transform: translate(0);
                    opacity: 1;
                    transition-delay: 600ms;
                }
                .text{
                    transform: translate(0);
                    opacity: 1;
                    transition-delay: 400ms;
                }
            }
        }
        .image-box{
            overflow: hidden;
            .image{
                position: relative;
                margin-bottom: 0;
                img{
                    transition: all 300ms ease;
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                }
            }
        }
        .info-box{
            position: absolute;
            top: 0;
            left: 0;
            display: flex;
            align-items: center;
            justify-content: center;
            flex-direction: column;
            background-color: transparent;
            height: 100%;
            width: 100%;
            z-index: 3;
            opacity: 0;
            visibility: hidden;
            transition: all 300ms ease;
            &::before{
                content: "";
                @include overlay;
                background-color: rgba(0, 0, 0, 0.7);
                transform: scale(.8);
                transition: all 300ms ease;
                z-index: 3;
            }
            &::after{
                content: "";
                position: absolute;
                top: 27px;
                left: 29px;
                right: 29px;
                bottom: 27px;
                pointer-events: none;
                border: 1px solid var(--theme-color1);
                z-index: 3;
                opacity: 0;
                transform: scale(.8);
                transition: all 400ms ease;
            }
            .title{
                margin-bottom: 2px;
                color: var(--theme-color-light);
                opacity: 0;
                transform: translateY(-20px);
                transition: all 300ms ease;
                z-index: 3;
                a:hover {
                    color: var(--theme-color1);
                }
            }
            .text{
                font-size: 14px;
                color: var(--theme-color-light);
                white-space: nowrap;
                opacity: 0;
                transform: translateY(-40px);
                transition: all 300ms ease;
                z-index: 3;
            }
        }
    }
}


/***

==================================================================
	Gallery Section Three
==================================================================

***/

.gallery-section-three{
    position: relative;
    padding: 120px 0 90px;
}

.gallery-block-three{
    margin-bottom: 50px;
    .inner-box{
        position: relative;
        &:hover{
            .image-box{
                .image{
                    img{
                        transform: scale(1.1);
                    }
                }
            }
        }
        .image-box{
            .image{
                position: relative;
                margin-bottom: 30px;
                overflow: hidden;
                @include media-breakpoint-down(md){
                    margin-bottom: 15px;
                }
                img{
                    width: 100%;
                    height: 100%;
                    object-fit: cover;
                    transition: all 300ms ease;
                }
            }
        }
        .info-box{
            position: relative;
            margin-top: 10px;
            text-align: center;
            .text {
                color: var(--theme-color1);
                letter-spacing: .1em;
                text-transform: uppercase;
                font-size: 14px;
                margin-bottom: 0;
                line-height: 1.3em;
            }
            .title{
                a:hover {
                    color: var(--theme-color1);
                }
            }
        }
    }
}