.li-person-wrapper {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;

    .li-person-outter-wrapper {
        display: flex;
        flex-direction: column;

        .li-share {
            border-top: 3px solid var(--e-global-color-primary);

            .li_share_button {
                display: block;
            }
        }
    }
}


.li-person-outter-wrapper {
    transition: transform 0.2s ease-in-out;
}

.li-person-outter-wrapper:hover {
    transform: scale(1.05);
}


.li-person-wrapper figure img {
    border-radius: 0px;
    aspect-ratio: 1/1;
    object-fit: cover;
    width: 100%;
}

.li-person-wrapper .li-person-card-quote {
    margin: auto 0 0 0;

    p {
        line-height: 1.3;
    }
}

.li-person-card-function {
    line-height: 1.3;
    font-weight: 500;
    font-size: 14px;
}

@media (min-width: 768px) and (max-width: 1400px) {
    .li-person-wrapper {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .li-person-wrapper {
        grid-template-columns: repeat(1, 1fr);
    }
}


.li-person-card-media {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    position: relative;
}

.li-person-card {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
    position: relative;
    overflow: hidden;

    &.has-video {
        overflow: visible;
    }

    .li-person-video-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: calc(100% + 49px);
        background: var(--e-global-color-accent);
        z-index: 100;
        display: flex;
       /* flex-direction: column;
        justify-content: start;*/
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    }
}

.li-person-card sub {
    bottom: 0;
    font-size: 14px;
}


.li-person-card p {
    margin: 0 0 10px 0;
}


.li-person-card-content {
    background: var(--e-global-color-accent);
    padding: 0 20px 20px 20px;
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
    height: 100%;
}

.li-person-card-content .li-person-card-name {
    margin: 0;
    font-size: 24px;
    line-height: 26px;
}


.li-person-card-media::before {
    content: "";
    position: absolute;
    display: block;
    bottom: -20px;
    left: 0;
    right: 0;
    width: 100%;
    height: 60px;
    background-color: var(--e-global-color-accent);
    transform: skewY(-5deg);
}


/* single view */
.single-li-person {
    .single-person-quote {
        .quote-left,
        .quote-right {
            max-width: 20px;
            max-height: 12px;
        }

        .quote-left {
            margin-right: 2px;
        }

        .quote-right {
            position: absolute;
        }
    }


    .li-share-trigger {
        .li-share-button {
            /*   display: inline-flex;
               width: auto;*/
        }
    }

    /*.slogan-wrapper {
        &:before {
            content: "";
            background-image: url("../img/quote-left-solid.svg");
            display: inline-block;
            height: 10px;
            width: 12px;
            background-repeat: no-repeat;
            vertical-align: top;
        }

        &:after {
            content: "";
            background-image: url("../img/quote-right-solid.svg");
            display: inline-block;
            height: 10px;
            width: 20px;
            background-repeat: no-repeat;
            vertical-align: top;
        }
    }*/
}

.li-pagination {
    display: flex;
    align-items: center;
    gap: 4px;

    .li-page-btn,
    .li-page-prev,
    .li-page-next {
        font-family: 'Alliance No2', sans-serif;
        background: var(--e-global-color-accent);
        border: none;
        padding: 6px 12px;
        cursor: pointer;
        border-radius: 4px;
        color: #000;

        &.active {
            background: #000;
            color: #fff;
        }

        &:hover:not(:disabled):not(.active) {
            background: #333;
            color: #fff;
        }

        &:disabled {
            opacity: 0.4;
            cursor: default;
        }
    }

    .li-page-numbers {
        display: flex;
        align-items: center;
        gap: 4px;
    }

    .li-page-ellipsis {
        padding: 0 4px;
    }
}

.li-pagination-top {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.li-pagination-bottom {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 20px;
}

.li-video-play-button {
    position: absolute;
    top: 5px;
    left: 5px;
    z-index: 999;
}

.li-video-close-button {
    position: absolute;
    background: var(--e-global-color-accent);
    padding: 5px 10px;
    z-index: 9999;
}

.li-video-container {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.li-video-container video {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover; /* This matches your image style */
    display: block;
}

.person-filter-buttons {
    margin-bottom: 20px;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: wrap;
    gap: 10px;

    .person-sort-controls {
        display: flex;
        flex-direction: column;
        gap: 6px;

        .person-sort-label {
            font-size: 12px;
            font-weight: 500;
            text-transform: uppercase;
            letter-spacing: 0.05em;
            color: #666;
        }

        .person-sort-buttons {
            display: flex;
            align-items: center;
            gap: 8px;
            flex-wrap: wrap;
        }

        .person-sort-reset {
            font-family: 'Alliance No2', sans-serif;
            font-size: 13px;
            background: none;
            border: none;
            padding: 4px 0;
            cursor: pointer;
            color: #666;
            text-decoration: underline;
            text-underline-offset: 2px;

            &:hover {
                color: #000;
            }
        }
    }

    .person-sort-btn {
        font-family: 'Alliance No2', sans-serif;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: #e5e5e5;
        padding: 10px 20px;
        text-decoration: none;
        color: #000;
        border-radius: 4px;
        border: none;
        cursor: pointer;

        &.active,
        &:hover {
            background: #000;
            color: #fff;
        }

        .sort-icon::after {
            content: '';
        }

        .sort-icon.sort-asc::after {
            content: ' ↑';
        }

        .sort-icon.sort-desc::after {
            content: ' ↓';
        }
    }
}

@media (max-width: 767px) {
    .person-filter-buttons {
        flex-direction: column;
        align-items: flex-start;
    }

    .li-pagination-top {
        justify-content: center;
        width: 100%;
    }
}

@keyframes li-card-enter {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.li-card-enter {
    animation: li-card-enter 0.35s ease both;
}