.acf-media-library-gallery-block .img {
    flex: 0 0 calc((100% / 3) - 7.5px);
    width: calc((100% / 3) - 7.5px);
    margin-bottom: 10px;
    cursor: pointer;
}

.acf-media-library-gallery-block .img:nth-child(3n+2) {
    margin-left: 10px;
    margin-right: 10px;
}

.acf-media-library-gallery-block .img .hover-opacity-effect {
    position: absolute;
    inset: 0;
    background: rgb(18 53 108 / 34%);
    transition: all .3s ease-in-out;
    opacity: 0;
}
.acf-media-library-gallery-block .img .hover-opacity-effect .donwload {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 17px;
    height: 27px;
    padding: 8px;
}

.acf-media-library-gallery-block .img .hover-opacity-effect .donwload img {
    filter: brightness(0) saturate(100%) invert(100%) sepia(0%) saturate(7486%) hue-rotate(9deg) brightness(103%) contrast(104%);
}

.acf-media-library-gallery-block .img:hover .hover-opacity-effect {
    opacity: 1;
}

.acf-media-library-gallery-block .img .hover-opacity-effect .plus {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 40px;
    height: 40px;
}

.acf-media-library-gallery-block .img .hover-opacity-effect .plus > span {
    position: absolute;
    top: 50%;
    left: 0;
    transform: translateY(-50%);
    width: 100%;
    height: 3px;
    background-color: #fff;
}

.acf-media-library-gallery-block .img .hover-opacity-effect .plus > span:nth-child(2) {
    transform: translateY(-50%) rotate(90deg);
}

.acf-media-library-gallery-block.logos .img {
    width: 550px;
    margin-bottom: 120px;
    cursor: pointer;
}

.acf-media-library-gallery-block.logos > .wrapper {
    flex-direction: column;
    align-items: center;
}

.acf-media-library-gallery-block.logos .img:nth-child(2n-1) {
    margin-right: 0;
}

@media screen and (max-width: 820px) {
    .acf-media-library-gallery-block .img:nth-child(3n+2) {
        margin-left: 0;
        margin-right: 0;
    }

    .acf-media-library-gallery-block .img {
        flex: 0 0 calc((100% / 2) - 5px);
        width: calc((100% / 2) - 5px);
        margin-bottom: 20px;
    }

    .acf-media-library-gallery-block .img:nth-child(2n-1) {
        margin-right: 10px;   
    }
}

@media screen and (max-width: 580px) {
    .acf-media-library-gallery-block.logos .img {
        width: 100% !important;
        padding-top: 14%;
        margin-bottom: 50px !important;
    }

    .acf[class*="acf-"]:not([class*="acf-welcome-"]):not([class*="acf-nav-"]).logos {
        padding: 50px 0 0 0;
        margin-bottom: 0;
    }
}

@media screen and (max-width: 520px) {
    .acf-media-library-gallery-block .img {
        flex: 0 0 100%;
        width: 100%;
        margin-bottom: 20px;
    }

    .acf-media-library-gallery-block .img:nth-child(2n-1) {
        margin-right: 0;   
    }
}