.text-gallery {
    padding-left: var(--padding);
    align-items: center;
    justify-content: space-between;
}

.text-gallery li img {
    height: 100%;
    object-fit: cover;
}
.text-gallery .splide {
    margin-right: calc(0px - var(--padding));
    max-width: calc(100% + var(--padding));
    width: calc(100% + var(--padding));
}

.text-gallery .splide__slide img {
    height: 100%;
    object-fit: cover;
    max-height: 75vh;
    width: 100%;
}

.text-gallery .text {
    padding-left: var(--firstrow);
}

.text-gallery .splide__arrow--prev.custom-arrow {
    font-size: 40px;
    background: none;
    color: black;
    border: none;
    transform: rotate(270deg);
}

.text-gallery .splide__arrow--next.custom-arrow {
    font-size: 40px;
    background: none;
    color: black;
    border: none;
    transform: rotate(90deg);
}

@media screen and (max-width: 768px) {
    
    .text-gallery .splide__arrow--prev {
        left: 0;
        top: auto;
        bottom: 1em;
    }
    
    .text-gallery .splide__arrow--next {
        right: 0;
        top: auto;
        bottom: 1em;
    }
    .text-gallery .splide {
        margin-right: calc(0px - var(--padding));
        margin-left: calc(0px - var(--padding));
        max-width: calc(100% + var(--padding) * 2);
        width: calc(100% + var(--padding) * 2);
    }
}