.team-item {
    width: calc((100% / 4) - 36px);
}

.team-popup {
    cursor: pointer;
}

.team-list-main {
    display: flex;
    flex-wrap: wrap;
    gap: 48px;
    margin: 48px 0px;
}

.team-item-img {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.team-item-img-inner {
    background-size: 100% 100%;
    aspect-ratio: 1 / 1;
    transition: all 500ms ease;
}

.team-popup:hover .team-item-img-inner {
    filter: brightness(0.75);
    transform: scale(1.1);
}

h2.department-title {
    background: var(--main-background);
    color: var(--primary-color1);
    padding: 40px;
    border-radius: 15px;
    text-align: left;
    margin: 0px 0px 48px;
    display: flex;
    align-items: center;
}

h2.department-title.intralogistics-team {}

}

.team-item-img {
    margin-bottom: 20px;
    border-radius: 15px;
    overflow: hidden;
}

.team-item-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 500ms ease;
}

.team-list {
    margin: 40px 0px 120px;
}

.team-role {
    color: var(--primary-color1);
    font-weight: 400;
    margin: 0px;
}

.team-popup-wrapper {
    display: flex;
    overflow: hidden;
}

div#popup-team-popup {
    max-width: 1024px;
}

.team-filter-wrapper {
    padding: 120px 0px 0px;
}

.team-filter-wrapper select.department-filter {
    display: block;
    width: 240px;
    padding: 12px 40px 12px 16px; /* extra right padding for the custom arrow */
    border: solid 2px var(--primary-color1);
    border-radius: 15px;
    margin: 0;
    font-size: 18px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-color: #ffffff;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path fill='%333' d='M1 1l5 5 5-5'/></svg>");
    background-repeat: no-repeat;
    background-position: right 16px center; /* move this left/right as needed */
    background-size: 12px 8px;
    cursor: pointer;
}

/* IE/old Edge */
.team-filter-wrapper select.department-filter::-ms-expand {
    display: none;
}

.team-popup-text p {
    font-size: 16px;
    line-height: 26px;
}

.team-popup-content {
    padding: 48px;
    flex: 100;
    overflow-y: scroll;
}

.team-popup-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-top-left-radius: 14px;
    border-bottom-left-radius: 15px;
}

.team-popup-img {
    width: 420px;
}

.team-popup-title {
    margin-bottom: 24px;
}

.team-popup-title .smalltitle {
    margin: 0px;
    color: var(--primary-color2);
}