/*----- SPONSORS -----*/
.priority-1-sponsors > .elementor-widget-container > .elementor-posts {
    margin: 0 !important;
}

.priority-1-sponsors article .elementor-post__thumbnail__link {
    margin-bottom: 0 !important;
}

.priority-1-sponsors .elementor-post__thumbnail {
    padding-bottom: 100% !important;
}

/* Fix on Firefox */
.sponsors .elementor-post__thumbnail img {
    height: auto;
    position: absolute !important;
    top: calc(50% + 1px);
    left: calc(50% + 1px);
    -webkit-transform: scale(1.01) translate(-50%,-50%);
    -ms-transform: scale(1.01) translate(-50%,-50%);
    transform: scale(1.01) translate(-50%,-50%);
}

.priority-1-sponsors .elementor-grid {
    display: flex !important;flex-wrap:wrap!important;
}

.priority-1-sponsors .elementor-grid > .elementor-post {
    transition: all .3s ease;
    width: 14% !important;
    padding: 0 !important;
}

.priority-1-sponsors .elementor-grid > .elementor-post:first-child,
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(2),
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(3),
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(4) {
    margin-right: 7%;
}

.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(6) {
    margin-right: 7%;
    margin-left: calc(7% + 3.5%);
    margin-top: 30px;
}
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(7),
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(8) {
    margin-right: 7%;
    margin-top: 30px;
}
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(9) {
    margin-right: calc(3.5% + 7%);
    margin-top: 30px;
}

.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(10) {
    margin-right: 7%;
    margin-top: 30px;
}
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(11) {
    margin-right: 7%;
    margin-top: 30px;
}
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(12) {
    margin-right: 7%;
    margin-top: 30px;
}
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(13) {
    margin-right: 7%;
    margin-top: 30px;
}
.priority-1-sponsors .elementor-grid > .elementor-post:nth-child(14) {
    margin-top: 30px;
}

.sponsor-button .elementor-button {
    width: 315px !important;
    line-height: 24px !important;
}

/* HOVERS */
@media (min-width: 768px) {
    .priority-1-sponsors .elementor-grid > .elementor-post:hover {
        width: calc(14% + 20px) !important;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:first-child:hover,
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(2):hover,
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(3):hover,
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(4):hover {
        margin-top: -10px;
        margin-right: calc(7% - 10px);
        margin-bottom: -10px;
        margin-left: -10px;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(5):hover {
        margin-top: -10px;
        margin-right: -10px;
        margin-bottom: -10px;
        margin-left: -10px;
    }

    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(6):hover {
        margin-top: calc(30px - 10px);
        margin-right: calc(7% - 10px);
        margin-bottom: -10px;
        margin-left: calc(7% + 3.5% - 10px);
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(7):hover,
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(8):hover {
        margin-top: calc(30px - 10px);
        margin-right: calc(7% - 10px);
        margin-bottom: -10px;
        margin-left: -10px;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(9):hover {
        margin-top: calc(30px - 10px);
        margin-right: calc(3.5% + 7% - 10px);
        margin-bottom: -10px;
        margin-left: -10px;
    }

    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(10):hover {
        margin-top: 20px;
        margin-right: calc(7% - 10px);
        margin-bottom: -10px;
        margin-left: -10px !important;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(11):hover {
        margin-top: calc(30px - 10px);
        margin-right: calc(7% - 10px);
        margin-bottom: -10px;
        margin-left: -10px;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(12):hover {
        margin-top: 20px;
        margin-right: calc(7% - 10px) !important;
        margin-bottom: -10px;
        margin-left: -10px !important;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(13):hover {
        margin-top: 20px;
        margin-right: calc(7% - 10px) !important;
        margin-bottom: -10px;
        margin-left: -10px !important;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(14):hover {
        margin-top: 20px;
        margin-right: -10px !important;
        margin-bottom: -10px;
        margin-left: -10px !important;
    }

    .priority-1-sponsors > .elementor-widget-container > .elementor-posts-container {
        grid-column-gap: 0 !important;
        grid-row-gap: 0 !important;
    }
}

@media (max-width: 767px) {
    .priority-1-sponsors .elementor-grid {
        display: grid !important;
    }
    .priority-1-sponsors .elementor-grid > .elementor-post {
        width: unset !important;
        margin-right: 0 !important;
        margin-left: 0 !important;
        margin-top: 0 !important;
    }
    .priority-1-sponsors.elementor-grid-tablet-2 .elementor-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
    .priority-1-sponsors .elementor-posts-container {
        grid-column-gap: 30px !important;
    }

    .priority-1-sponsors .elementor-grid > .elementor-post:nth-child(12) {
        margin-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .priority-1-sponsors.elementor-grid-tablet-2 .elementor-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
    .priority-1-sponsors .elementor-posts-container {
        grid-column-gap: 30px !important;
    }

    .priority-1-sponsors > .elementor-widget-container > .elementor-posts-container {
        grid-column-gap: 10px !important;
        grid-row-gap: 15px !important;
        margin-left: -15px !important;
        margin-right: -15px !important
    }

    .sponsor-button {
        margin-left: -10px !important;
        margin-right: -10px !important;
    }
    .sponsor-button .elementor-button {
        width: 100% !important;
    }
}
