/* Header of team section */
.team__header {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 48px;
    margin-bottom: 80px;
}

.team__header .team__heading {
    margin-bottom: 0;
}


/* Pagination */
.team__pagination {
    display: flex;
    flex-direction: row;
    gap: 8px;
}

.team__pagination-item {
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 100px;
    width: 48px;
    height: 48px;
    border: 1px solid var(--theme-palette-color-1);
    cursor: pointer;
    transition: .25s ease;
}

.team__pagination-item svg path {
    fill: var(--theme-palette-color-1);
}

.team__pagination-item:not(.swiper-button-lock) {
    opacity: 1 !important;
    transition: .25s ease;
}

.team__pagination-item.swiper-button-lock {
    display: flex !important;
    opacity: 0 !important;
    transition: .25s ease;
    pointer-events: none;
}

.team__pagination .team__pagination-next {
    transform: rotate(180deg);
}



/* Pagination states - disabled, hover... */
.team__pagination-item.swiper-button-disabled {
    cursor: not-allowed;
}

/* Hover */
.team__pagination-item:not(.swiper-button-disabled):hover {
    border-color: var(--theme-palette-color-3);
    background-color: var(--theme-palette-color-3);
    transition: .25s ease;
}

.team__pagination-item:not(.swiper-button-disabled):hover svg path {
    fill: var(--theme-palette-color-8) !important;
    transition: .25s ease;
}




/* Filters */
.team__filters {
    display: flex;
    flex-direction: row;
    gap: 8px;
    margin-bottom: 40px;
}

.team__filter-btn {
    padding: 8px 16px;
    border: none;
    cursor: pointer;
    color: var(--theme-palette-color-2);
    background-color: transparent;
    border-radius: 100px;
    font-size: 16px;
}

.team__filter-btn.team__filter-btn-active {
    background-color: #A7B9CD;
}


/* Team swiper overrides */
.team__swiper,
.team__swiper .swiper-wrapper {
    overflow: visible;
}

/* Hidden slides */
.team__slide.team__slide-hidden {
    display: none !important;
}

/* Slides */
.team__slide {
    display: flex;
    flex-direction: column;
    align-items: start;
    height: auto;
}

/* Team link */
.team__link {
    position: absolute;
    left: 24px;
    top: 20px;
    width: fit-content;
    padding: 8px;
    line-height: 0;
    background-color: var(--theme-palette-color-4);
    border-radius: 8px;
    transition: opacity 0.3s ease-in-out;
}

/* Image container */
.team__image-container {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 16px;
    margin-bottom: 12px;
    overflow: hidden;
    aspect-ratio: 1/1;
}

.team__image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 16px;
    transition: opacity 0.3s ease-in-out;
}


/* Description - layer behind image*/
.team__description {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 300px;
    padding: 16px;
    border-radius: 16px;
    background-color: var(--theme-palette-color-8);
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    overflow: auto;
    z-index: 10;
}

.team__description,
.team__description * {
    font-size: 16px;
    color: var(--theme-palette-color-1);
    text-align: left;
    margin: 0;
}

/* Mobile close */
.team__description-close {
    display: none;
}

@media (max-width: 768px) {
    .team__description {
        padding-bottom: 40px;
        position: relative;
    }
    .team__description-close {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        right: 16px;
        bottom: 16px;
        background: none;
    }
}



/* Slide texts  */
.team__swiper .team__content {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    width: 100%;
}

.team__swiper .team__name {
    font-size: 24px;
    font-weight: 500;
    margin-bottom: 4px;
}

.team__swiper .team__position {
    font-size: 16px;
    margin: 0;
}


/* Hover effect */
@media only screen and (min-width:1025px) {
    .team__image-container:hover .team__image,
    .team__image-container:hover .team__link {
        opacity: 0;
    }

    .team__image-container:hover .team__description {
        opacity: 1;
    }
}


/* Click effect */
@media only screen and (max-width:1024px) {
    .team__image-container.active .team__image,
    .team__image-container.active .team__link {
        opacity: 0;
    }

    .team__image-container.active .team__description {
        opacity: 1;
    }
}




/* Media query */
@media only screen and (max-width:767px) {
    .team__header {
        margin-bottom: 32px;
    }

    .team__pagination-item {
        width: 36px;
        height: 36px;
    }

    .team__filters {
        margin-bottom: 16px;
    }

    .team__swiper .team__name {
        font-size: 20px;
    }
}