


/* FRONTEND */
.tl_sponsors_wrap {
    padding: 6rem 0;
    padding-bottom: 6.2rem;
}

.tl_sponsors_wrap h2 {
    text-align: center;
    font-size: 2.4rem;
    font-weight: 700;
    margin: 0 0 6rem;
    letter-spacing: 0.5px;
}

.tl_sponsors {
    display: flex;
    width: 100%;
    max-width: var(--wrapper-width-medium, 1200px);
    margin: 0 auto;
    gap: 3rem;
    flex-wrap: wrap;
    justify-content: center;
}

.tl_sponsors > a {
    flex: 1 1 calc(25% - 3rem);
    max-width: calc(25% - 3rem);
    height: 140px;
    background-position: center;
    background-size: contain;
    background-repeat: no-repeat;
    filter: grayscale(100%);
    transition: filter 0.25s ease, transform 0.25s ease;
    border-radius: 6px;
}

.tl_sponsors > a:hover {
    filter: grayscale(0%);
    transform: scale(1.07);
}

/* Large tablets / small desktops */
@media (max-width: 1300px) {
    .tl_sponsors {
        max-width: calc(100vw - 4rem);
        gap: 2.5rem;
    }
}

/* Medium tablets */
@media (max-width: 1000px) {
    .tl_sponsors > a {
        flex: 1 1 calc(33.333% - 2.5rem);
        max-width: calc(33.333% - 2.5rem);
        height: 120px;
    }
}

/* Phones landscape / small tablets */
@media (max-width: 800px) {
    .tl_sponsors > a {
        flex: 1 1 calc(50% - 2rem);
        max-width: calc(50% - 2rem);
        height: 110px;
    }
}

/* Small phones */
@media (max-width: 450px) {
    .tl_sponsors_wrap {
        padding: 4rem 0 4.5rem;
    }

    .tl_sponsors_wrap h2 {
        font-size: 2rem;
        margin-bottom: 4rem;
    }

    .tl_sponsors {
        gap: 1.5rem;
    }

    .tl_sponsors > a {
        flex: 1 1 100%;
        max-width: 260px;
        height: 100px;
    }
}



/* Admin */
.tlsponsors-admin-wrapper {
    padding:10px;
}
.image-list {
    margin-bottom:10px;
}
.image-item {
    border:1px solid #ddd;
    padding:12px;
    background:#fff;
    border-radius:8px;
    margin-bottom:12px;
}
.image-preview img {
    max-width:120px;
    display:block;
    margin-bottom:8px;
}
.image-item button {
    margin-top:6px;
    margin-right:5px;
}


.tl_sponsor-link {
    margin: 1rem 0;
}





