.syrakus-partner-list-container {
    --syrakus-partner-border-radius: 12px;
    margin-bottom: 2rem;
}

.syrakus-partner-list-title {
    margin-bottom: 1.5rem;
}

/* Grid Layout */
.syrakus-partner-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: stretch;
}

/* List Layout */
.syrakus-partner-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.syrakus-partner-item {
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
    overflow: hidden;
    border-radius: var(--syrakus-partner-border-radius, 12px);
}

.syrakus-partner-grid .syrakus-partner-item,
.syrakus-carousel-inner .syrakus-partner-item {
    height: 150px;
    width: 100%;
}

.syrakus-partner-item a {
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: inherit;
    transition: opacity 0.2s ease-in-out;
    width: 100%;
    height: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.syrakus-partner-item a:hover {
    opacity: 0.8;
}

.syrakus-partner-logo,
.syrakus-partner-name {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    box-sizing: border-box;
}

/* If no link exists, center content directly in the item div */
.syrakus-partner-item > .syrakus-partner-logo,
.syrakus-partner-item > .syrakus-partner-name {
    padding: 20px;
}

.syrakus-partner-logo img {
    max-width: 100%;
    max-height: 100%;
    height: auto;
    width: auto;
    object-fit: contain;
}

/* Carousel Layout (Sidewards scrolling) */
.syrakus-carousel-wrapper {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.syrakus-carousel-inner {
    display: flex;
    gap: 30px;
    animation: scroll-left 60s linear infinite;
    width: max-content;
}

.syrakus-carousel-inner .syrakus-partner-item {
    flex: 0 0 200px;
}

@keyframes scroll-left {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

/* For the animation to be "endless", we need enough items or duplicate them.
   In basic CSS, we assume the user provides enough or we duplicate in PHP.
*/

.syrakus-layout-carousel .syrakus-carousel-inner:hover {
    animation-play-state: paused;
}
