/**
 * Nečiūnas NT Elementor Team widget.
 */

.neciunasnt-team,
.neciunasnt-team *,
.neciunasnt-team *::before,
.neciunasnt-team *::after {
    box-sizing: border-box;
}

.neciunasnt-team {
    --neciunasnt-team-burgundy: #391214;
    --neciunasnt-team-cream: var(--color-cream, #f2eee3);
    --neciunasnt-team-gap: 40px;
    --neciunasnt-team-overlay: rgb(16 8 9 / 88%);
    --neciunasnt-team-decoration-opacity: 1;

    position: relative;
    isolation: isolate;
    width: 100%;
    overflow: hidden;
    padding-block: clamp(88px, 8.35vw, 120px);
    color: var(--neciunasnt-team-burgundy);
    background-color: var(--neciunasnt-team-cream);
    font-family: var(--font-primary, "TT Firs Neue", Arial, sans-serif);
}

.neciunasnt-team::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background-image: var(--neciunasnt-team-decoration);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    content: "";
    opacity: var(--neciunasnt-team-decoration-opacity);
    pointer-events: none;
}

.neciunasnt-team__inner {
    position: relative;
    z-index: 1;
    width: min(calc(100% - 48px), 1240px);
    margin-inline: auto;
}

.neciunasnt-team__heading {
    margin: 0 0 64px;
    text-align: center;
}

.neciunasnt-team__eyebrow,
.neciunasnt-team__title,
.neciunasnt-team__role,
.neciunasnt-team__name {
    margin: 0;
}

.neciunasnt-team__eyebrow {
    margin-bottom: 12px;
    color: var(--neciunasnt-team-burgundy);
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.18em;
    line-height: 1.4;
    text-transform: uppercase;
}

.neciunasnt-team__title {
    color: var(--neciunasnt-team-burgundy);
    font-size: clamp(34px, 3.1vw, 40px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.1;
    text-transform: uppercase;
}

.neciunasnt-team__viewport {
    width: 100%;
    min-width: 0;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
}

.neciunasnt-team__viewport::-webkit-scrollbar {
    display: none;
}

.neciunasnt-team__cards {
    display: flex;
    width: 100%;
    align-items: stretch;
    gap: var(--neciunasnt-team-gap);
}

.neciunasnt-team.is-single-page .neciunasnt-team__cards {
    justify-content: center;
}

.neciunasnt-team__card {
    position: relative;
    min-width: 0;
    aspect-ratio: 392 / 499;
    flex: 0 0 calc((100% - (var(--neciunasnt-team-gap) * 2)) / 3);
    overflow: hidden;
    border: 1px solid var(--neciunasnt-team-burgundy);
    border-radius: 20px;
    background-color: rgb(142 127 115 / 16%);
    scroll-snap-align: start;
}

.neciunasnt-team__media,
.neciunasnt-team__media img,
.neciunasnt-team__image-placeholder {
    position: absolute;
    width: 100%;
    height: 100%;
    inset: 0;
}

.neciunasnt-team__media img {
    display: block;
    object-fit: cover;
    object-position: center;
}

.neciunasnt-team__image-placeholder {
    display: block;
    background:
        linear-gradient(145deg, rgb(57 18 20 / 8%), rgb(57 18 20 / 22%));
}

.neciunasnt-team__overlay {
    position: absolute;
    z-index: 1;
    inset: 36% 0 0;
    background: linear-gradient(to bottom, transparent 0%, var(--neciunasnt-team-overlay) 100%);
    pointer-events: none;
}

.neciunasnt-team__member-text {
    position: absolute;
    z-index: 2;
    right: 24px;
    bottom: 38px;
    left: 24px;
    display: grid;
    gap: 9px;
    color: #fff;
    text-align: center;
}

.neciunasnt-team__role {
    color: #fff;
    font-size: 12px;
    font-weight: 400;
    letter-spacing: 0.1em;
    line-height: 1.4;
}

.neciunasnt-team__name {
    color: #fff;
    font-size: clamp(20px, 1.8vw, 24px);
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.18;
    text-transform: uppercase;
}

.neciunasnt-team__dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 36px;
}

.neciunasnt-team__dots[hidden],
.neciunasnt-team__dot[hidden] {
    display: none;
}

.neciunasnt-team__dot {
    width: 10px;
    height: 10px;
    flex: 0 0 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    appearance: none;
    background-color: #8e7f73;
    cursor: pointer;
    transition: background-color 180ms ease, transform 180ms ease;
}

.neciunasnt-team__dot[aria-current="true"] {
    background-color: var(--neciunasnt-team-burgundy);
    transform: scale(1.2);
}

.neciunasnt-team__dot:focus-visible,
.neciunasnt-team__viewport:focus-visible {
    outline: 2px solid var(--neciunasnt-team-burgundy);
    outline-offset: 4px;
}

.neciunasnt-team__placeholder {
    padding: 24px;
    border: 1px dashed #8e7f73;
    border-radius: 12px;
    color: #6b645d;
    text-align: center;
}

@media (max-width: 1024px) {
    .neciunasnt-team {
        --neciunasnt-team-gap: 24px;

        padding-block: 88px;
    }

    .neciunasnt-team__heading {
        margin-bottom: 52px;
    }

    .neciunasnt-team__card {
        flex-basis: calc((100% - var(--neciunasnt-team-gap)) / 2);
    }
}

@media (max-width: 767px) {
    .neciunasnt-team {
        --neciunasnt-team-gap: 18px;

        padding-block: 64px;
    }

    .neciunasnt-team__inner {
        width: min(calc(100% - 32px), 1240px);
    }

    .neciunasnt-team__heading {
        margin-bottom: 38px;
    }

    .neciunasnt-team__eyebrow {
        margin-bottom: 10px;
        font-size: 11px;
        letter-spacing: 0.15em;
    }

    .neciunasnt-team__title {
        font-size: clamp(30px, 10vw, 36px);
    }

    .neciunasnt-team__card {
        flex-basis: min(88%, 360px);
    }

    .neciunasnt-team__member-text {
        right: 20px;
        bottom: 30px;
        left: 20px;
    }

    .neciunasnt-team__dots {
        margin-top: 28px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .neciunasnt-team__viewport {
        scroll-behavior: auto;
    }

    .neciunasnt-team__dot {
        transition: none;
    }
}
