.logoloop {
    overflow: hidden;
    position: relative;
    width: 100%;
    min-height: 100px;
}

.logoloop--horizontal {
    height: var(--logoloop-logoHeight, 28px);
    min-height: var(--logoloop-logoHeight, 28px);
}

.clients-section .logoloop {
    margin-top: 2rem;
    padding: 0 2rem;
}

.clients-section .logoloop--horizontal {
    height: auto !important;
    min-height: 350px;
}

.features-section .logoloop {
    margin-top: 3rem;
    padding: 0 2rem;
    /* allow feature cards to grow on hover without being cut */
    overflow: visible;
}

.features-section .logoloop--horizontal {
    height: auto !important;
    min-height: 500px;
}

.logoloop--vertical {
    width: var(--logoloop-logoHeight, 28px);
    height: 100%;
}

.logoloop__track {
    display: flex;
    will-change: transform;
}

.logoloop--horizontal .logoloop__track {
    flex-direction: row;
}

.logoloop__sequence {
    flex-shrink: 0;
}

.logoloop--horizontal .logoloop__sequence {
    margin-right: var(--logoloop-gap, 32px);
}

.logoloop--vertical .logoloop__track {
    flex-direction: column;
}

.logoloop__list {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: var(--logoloop-gap, 32px);
}

.logoloop--horizontal .logoloop__list {
    flex-direction: row;
    align-items: center;
}

.clients-section .logoloop--horizontal .logoloop__list,
.features-section .logoloop--horizontal .logoloop__list {
    align-items: stretch;
}

.logoloop--vertical .logoloop__list {
    flex-direction: column;
    align-items: center;
}

.logoloop__item {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    height: var(--logoloop-logoHeight, 28px);
}

.logoloop__item img {
    height: 100%;
    width: auto;
    object-fit: contain;
    display: block;
}

/* Support for HTML content in logo loop items */
.logoloop__item > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Clients section - testimonial cards */
.clients-section .logoloop__item {
    height: auto !important;
    min-height: 350px;
    align-items: stretch;
    width: 380px;
    min-width: 380px;
    flex-shrink: 0;
}

.clients-section .logoloop__item > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

.clients-section .logoloop__item .testimonial-card {
    width: 100%;
    height: 99%;
    display: flex;
}

/* Features section - feature cards */
.features-section .logoloop__item {
    height: auto !important;
    min-height: 500px;
    align-items: stretch;
    width: 420px;
    min-width: 420px;
    flex-shrink: 0;
}

.features-section .logoloop__item > div {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
}

.features-section .logoloop__item .feature-card-wrapper {
    width: 100%;
    min-width: 380px;
    max-width: 420px;
    height: 99%;
    display: flex;
    flex-shrink: 0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.features-section .logoloop__item:hover .feature-card-wrapper {
    transform: scale(1.05);
    box-shadow: 0 18px 45px rgba(15, 23, 42, 0.5);
}

.logoloop__link {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease;
}

.logoloop--scale-hover .logoloop__link:hover {
    transform: scale(1.1);
}

.logoloop--fade {
    mask-image: linear-gradient(
        to right,
        transparent,
        black 20%,
        black 80%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to right,
        transparent,
        black 20%,
        black 80%,
        transparent
    );
}

.logoloop--vertical.logoloop--fade {
    mask-image: linear-gradient(
        to bottom,
        transparent,
        black 20%,
        black 80%,
        transparent
    );
    -webkit-mask-image: linear-gradient(
        to bottom,
        transparent,
        black 20%,
        black 80%,
        transparent
    );
}
