.gallery-section {
    position: relative;
    padding: 120px 0;
}

.gallery-block-one {
    position: relative;
    margin-bottom: 30px;
}

.gallery-block-one .inner-box {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
}

.gallery-block-one .image-box {
    position: relative;
    overflow: hidden;
}

.gallery-block-one .image-box img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    transition: all 0.5s ease;
}

.gallery-block-one .overlay-box {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    opacity: 0;
    transition: all 0.5s ease;
}

.gallery-block-one .overlay-inner {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-block-one .overlay-inner .content {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-block-one .overlay-inner .content a {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 50px;
    width: 50px;
    background: var(--primary-color);
    border-radius: 50%;
    color: #ffffff;
    font-size: 20px;
    transition: all 0.5s ease;
}

.gallery-block-one .overlay-inner .content a:hover {
    background: #ffffff;
    color: var(--primary-color);
}

.gallery-block-one:hover .overlay-box {
    opacity: 1;
}

.gallery-block-one:hover .image-box img {
    transform: scale(1.1);
}

.gallery-carousel .owl-nav {
    position: absolute;
    left: 0;
    top: -80px;
    width: 100%;
    display: flex;
    justify-content: flex-end;
    margin: 0;
}

.gallery-carousel .owl-nav button {
    position: relative;
    height: 50px;
    width: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 20px;
    color: #ffffff;
    background: var(--primary-color);
    border-radius: 50%;
    margin: 0 5px;
    transition: all 0.5s ease;
}

.gallery-carousel .owl-nav button:hover {
    background: #ffffff;
    color: var(--primary-color);
}

@media only screen and (max-width: 991px) {
    .gallery-section {
        padding: 80px 0;
    }
    
    .gallery-block-one .image-box img {
        height: 350px;
    }
}

@media only screen and (max-width: 767px) {
    .gallery-section {
        padding: 60px 0;
    }
    
    .gallery-block-one .image-box img {
        height: 300px;
    }
    
    .gallery-carousel .owl-nav {
        position: relative;
        top: 0;
        margin-top: 30px;
        justify-content: center;
    }
} 