.community-gallery .owl-carousel .item {
    max-width: 1024px;
    margin: 0 auto;
}

.community-gallery .owl-carousel .item img {
    width: auto;
    max-width: 1024px;
    height: auto;
    object-fit: contain;
    object-position: center;
    margin: 0 auto;
}

.community-gallery .owl-nav .owl-next,
.community-gallery .owl-nav .owl-prev {
    width: 50px;
    height: 50px;
    font-size: 50px !important;
}

.community-gallery .owl-nav {
    position: absolute;
    top: 40%;
    left: 0;
    right: 0;
    margin-top: 0;
}

.community-gallery .owl-theme .owl-nav [class*=owl-]:hover {
    background: transparent;
    color: black;
}

.community-gallery .owl-nav .owl-next {
    position: absolute;
    top: 50%;
    right: 0;
    background: transparent;
    border: none;
    outline: none;
}

.community-gallery .owl-nav .owl-prev {
    position: absolute;
    top: 50%;
    left: 0;
    background: transparent;
    border: none;
    outline: none;
}

.community-gallery .owl-nav .owl-prev .et-pb-icon,
.community-gallery .owl-nav .owl-next .et-pb-icon {
    font-family: FontAwesome!important;
    font-weight: 900!important;
    color: white;
    font-size: 50px;
}

@media(max-width: 980px) {
    .community-gallery .owl-carousel .item {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }
}

@media(max-width: 767px) {
    .community-gallery .owl-carousel .item {
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .community-gallery .owl-carousel .item img {
        width: 100%;
    }
}

@media(max-width: 480px) {
    .community-gallery .owl-carousel .item {
        grid-template-columns: repeat(1, 1fr);
        grid-template-rows: auto;
    }
}

@media(min-width: 900px) {
    .community-gallery .owl-nav {
        margin-left: -100px;
        margin-right: -100px;
    }
}
