
#our-team.container.container_big {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    float: none !important;
}

.team-carousel-section {
    --tp-card-h: 460px;
    position: relative;
    max-width: 100%;
    width: 100%;
    margin-top: 24px;
    margin-left: auto;
    margin-right: auto;
}

.team-carousel-viewport {
    overflow-x: hidden;
    overflow-y: visible;
    padding: 6px 2px 10px;
    touch-action: pan-y;
}

.team-carousel-rail {
    display: flex;
    align-items: flex-start;
    gap: 24px;
    will-change: transform;
    transition: none;
    cursor: grab;
}

.team-carousel-viewport:active .team-carousel-rail {
    cursor: grabbing;
}

.team-carousel-nav {
    position: absolute;
    top: 0;
    height: var(--tp-card-h);
    z-index: 5;
    display: flex;
    align-items: center;
}

.team-carousel-nav-prev {
    left: 8px;
}

.team-carousel-nav-next {
    right: 8px;
}

.team-carousel-nav-btn {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid #e6e9ee;
    background: #ffffff;
    color: #04123a;
    box-shadow: 0 2px 10px rgba(4, 18, 58, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.team-carousel-nav-btn:hover,
.team-carousel-nav-btn:focus-visible {
    background: #025b6b;
    color: #ffffff;
    outline: none;
}

@media (max-width: 1024px) {
    .team-carousel-section {
        --tp-card-h: 400px;
    }
}

@media (max-width: 640px) {
    .team-carousel-section {
        --tp-card-h: 360px;
    }
    .team-carousel-rail {
        gap: 14px;
    }
    .team-carousel-nav-btn {
        width: 40px;
        height: 40px;
        font-size: 14px;
    }
}

.team-photo-card {
    position: relative;
    flex: 0 0 auto;
    width: 340px;
    height: var(--tp-card-h);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(4, 18, 58, 0.08);
    background: #04123a;
    transition: box-shadow 0.3s ease;
}

@media (max-width: 640px) {
    .team-photo-card {
        width: min(78vw, 320px);
    }
}

.team-photo-card:hover,
.team-photo-card:focus-within {
    box-shadow: 0 10px 28px rgba(4, 18, 58, 0.14);
}

.team-photo-card-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 20%;
    pointer-events: none;
    transition: transform 0.5s ease;
}

.team-photo-card:hover .team-photo-card-img,
.team-photo-card:focus-within .team-photo-card-img {
    transform: scale(1.05);
}

.team-photo-card-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 64px;
    color: rgba(255, 255, 255, 0.85);
    background: linear-gradient(135deg, #04123a 0%, #025b6b 100%);
}

.team-photo-card-scrim {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(4, 18, 58, 0) 0%, rgba(4, 18, 58, 0.22) 55%, rgba(2, 8, 22, 0.82) 100%);
    pointer-events: none;
    transition: background 0.3s ease;
}

.team-photo-card:hover .team-photo-card-scrim,
.team-photo-card:focus-within .team-photo-card-scrim {
    background: linear-gradient(180deg, rgba(4, 18, 58, 0.05) 0%, rgba(4, 18, 58, 0.4) 45%, rgba(2, 8, 22, 0.92) 100%);
}

.team-photo-card-bottom {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2;
    padding: 16px 24px 24px;
}

.team-photo-card-name {
    margin: 0;
    font-family: 'Raleway', sans-serif;
    font-weight: 800;
    font-size: 19px;
    line-height: 1.32;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 4px 14px rgba(0, 0, 0, 0.7);
}

.team-photo-card-role {
    margin: 8px 0 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    font-family: 'Open Sans', sans-serif;
    font-size: 13px;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.9);
    transition: max-height 0.35s ease, opacity 0.3s ease;
}

.team-photo-card:hover .team-photo-card-role,
.team-photo-card:focus-within .team-photo-card-role {
    max-height: 100px;
    opacity: 1;
}

@media (max-width: 560px) {
     .team-photo-card-role {
        max-height: 100px;
        opacity: 1;
    }
}

@media (prefers-reduced-motion: reduce) {
    .team-photo-card,
    .team-photo-card-img,
    .team-photo-card-scrim,
    .team-photo-card-role {
        transition: none !important;
    }
}
