/* Partners / customers logo slider — BEM: tgwv-psk */

.tgwv-psk {
    --tgwv-psk-title: var(--tgwv-brand, #000000);
    --tgwv-psk-subtitle: #555555;
    --tgwv-psk-card-bg: var(--tgwv-surface, #ffffff);
    --tgwv-psk-card-border: var(--tgwv-brand, #000000);
    --tgwv-psk-control: var(--tgwv-brand, #000000);
    --tgwv-psk-control-hover: var(--tgwv-secondary, color-mix(in srgb, var(--tgwv-brand, #000000) 85%, #000));
    --tgwv-psk-cols-d: 5;
    --tgwv-psk-cols-t: 3;
    --tgwv-psk-cols-m: 1;
    --tgwv-psk-aspect: 2 / 1;

    background-color: transparent;
    padding: 3rem 0;
    box-sizing: border-box;
}

.tgwv-psk *,
.tgwv-psk *::before,
.tgwv-psk *::after {
    box-sizing: border-box;
}

.tgwv-psk__inner {
    width: 100%;
    max-width: var(--tgwv-container-max-width, 1400px);
    margin: 0 auto;
}

.tgwv-psk__header {
    text-align: center;
    margin-bottom: 20px;
}

.tgwv-psk__title {
    font-size: 35px;
    font-weight: 700;
    color: var(--tgwv-psk-title);
    margin: 0 0 15px;
    line-height: 1.3;
}

.tgwv-psk__subtitle {
    color: var(--tgwv-psk-subtitle);
    font-size: 15px;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.6;
}

.tgwv-psk__subtitle > *:first-child {
    margin-top: 0;
}

.tgwv-psk__subtitle > *:last-child {
    margin-bottom: 0;
}

.tgwv-psk__subtitle p {
    margin: 0 0 0.5em;
}

.tgwv-psk__slider-wrapper {
    position: relative;
    margin-top: 0;
    padding: 0 0.75rem;
}

.tgwv-psk__track-container {
    width: 100%;
    overflow: hidden;
    padding: 15px 0;
}

.tgwv-psk__track {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    will-change: transform;
}

.tgwv-psk__slide {
    flex: 0 0 calc(100% / var(--tgwv-psk-cols-d));
    padding: 0 10px;
    min-width: 0;
}

.tgwv-psk__card {
    background-color: var(--tgwv-psk-card-bg);
    border: 1px solid var(--tgwv-psk-card-border);
    border-radius: 8px;
    padding: 15px;
    aspect-ratio: var(--tgwv-psk-aspect);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tgwv-psk--no-border .tgwv-psk__card {
    border: none;
}

.tgwv-psk__link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    text-decoration: none;
}

.tgwv-psk__img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    display: block;
    transform-origin: center center;
    transition: transform 0.25s ease, filter 0.25s ease, opacity 0.25s ease;
}

.tgwv-psk__card:hover .tgwv-psk__img,
.tgwv-psk__link:focus-visible .tgwv-psk__img {
    transform: scale(1.08);
}

.tgwv-psk--grayscale .tgwv-psk__img {
    filter: grayscale(1);
    opacity: 0.75;
}

.tgwv-psk--grayscale .tgwv-psk__card:hover .tgwv-psk__img,
.tgwv-psk--grayscale .tgwv-psk__link:focus-visible .tgwv-psk__img {
    filter: grayscale(0);
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    .tgwv-psk__img {
        transition: filter 0.25s ease, opacity 0.25s ease;
    }

    .tgwv-psk__card:hover .tgwv-psk__img,
    .tgwv-psk__link:focus-visible .tgwv-psk__img {
        transform: none;
    }
}

.tgwv-psk__control {
    position: absolute;
    width: 40px;
    height: 40px;
    background-color: #ffffff;
    border: 1px solid #d1d5db;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--tgwv-psk-control);
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    padding: 0;
    line-height: 1;
}

.tgwv-psk__control:hover {
    background-color: var(--tgwv-psk-control-hover);
    border-color: var(--tgwv-psk-control-hover);
    color: #ffffff;
}

.tgwv-psk__control--prev {
    left: -5px;
}

.tgwv-psk__control--next {
    right: -5px;
}

.tgwv-psk--no-nav .tgwv-psk__control {
    display: none;
}

.tgwv-psk--empty {
    padding: 2rem 1rem;
    text-align: center;
    border: 1px dashed #c9c9c9;
    background: #f7f7f7;
    border-radius: 4px;
}

.tgwv-psk__empty-note {
    margin: 0;
    color: #4a4a4a;
    font-size: 15px;
}

@media (max-width: 991.98px) {
    .tgwv-psk__title {
        font-size: 24px;
    }

    .tgwv-psk__slide {
        flex-basis: calc(100% / var(--tgwv-psk-cols-t));
    }

    .tgwv-psk__control--prev {
        left: 5px;
    }

    .tgwv-psk__control--next {
        right: 5px;
    }
}

@media (max-width: 767.98px) {
    .tgwv-psk {
        padding: 2rem 0;
    }

    .tgwv-psk__slide {
        flex-basis: calc(100% / var(--tgwv-psk-cols-m));
    }

    .tgwv-psk__slider-wrapper {
        padding: 0 0.5rem;
    }
}
