.people-display{
    margin: var(--block-margin) auto;
    width: 100%;
    max-width: var(--wide-width);
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.people-display-header{
    margin-bottom: var(--item-row-gap);
}

.people-display-header.animate__animated{
    animation-name: fadeIn;
}

.people-display-header > *:last-child{
    margin-bottom: 0;
}

.people-display-grid{
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: var(--item-row-gap);
}

.people-display-item{
    border: 0.1rem solid;
    display: flex;
    flex-direction: column;
}

.people-display-item-inner{
    height: 100%;
    display: flex;
    flex-direction: column;
}

.people-display-item-inner.animate__animated{
    animation-name: fadeIn;
}

.people-display-item-image{
    overflow: hidden;
    flex-shrink: 0;
}

.people-display-item-image:focus{
    outline: none;
}

.people-display-item-image img{
    width: 100%;
    max-width: calc(100% + 0.1rem);
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    transition: all 0.3s ease;
}

button.people-display-item-image:is(:hover, :focus, :active) img{
    transform: scale(1.1);
}

.people-display-item-info{
    padding: 2.4rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-grow: 1;
}

.people-display-item-info h3{
    font: var(--font-headline-4);
    margin: 0;
}

.people-display-item-info h4,
.people-display-item-modal-info-meta h4{
    font: var(--font-headline-6);
    font-weight: 400;
    margin: 0;
    color: var(--text-color);
}

.people-display-item-info p,
.people-display-item-modal-info-meta p{
    font: var(--font-body-xsmall);
    opacity: 0.5;
    margin-bottom: 1.6rem;
}

.people-display-item-info button{
    margin-top: auto;
}

.people-display-item-modal{
    position: fixed;
    top: var(--admin-bar-height);
    left: 0;
    width: 100%;
    height: calc(100% - var(--admin-bar-height));
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: all 0.5s ease-in;
    background: rgba(0,0,0,.5);
    backdrop-filter: blur(0.7rem);
    display: flex;
    overflow: hidden;
}

.people-display-item-modal.open{
    opacity: 1;
    pointer-events: all;
}

.people-display-item-modal-inner{
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: minmax(0, auto);
    width: 80rem;
    max-width: var(--wide-width);
    height: 60rem;
    max-height: calc(100vh - var(--admin-bar-height) - var(--row-gap));
    margin: auto;
    position: relative;
    background: var(--color-white);
    overflow: auto;
    transform: scale(0);
    transition: all 0.5s ease-in;
}

.people-display-item-modal.open .people-display-item-modal-inner{
    transform: scale(1);
}

.people-display-item-modal-close{
    position: absolute;
    top: 3rem;
    right: 3rem;
    color: var(--hover-link-color);
    padding: 1rem;
}

.people-display-item-modal-close:is(:hover, :focus, :active){
    color: var(--link-color);
}

.people-display-item-modal-close svg{
    width: 2rem;
    height: auto;
}

.people-display-item-modal-image img{
    aspect-ratio: 1;
    object-fit: cover;
    object-position: center top;
    padding: calc( var(--item-column-gap) / 2);
}

.people-display-item-modal-info{
    padding: 3rem 0;
    display: flex;
    flex-direction: column;
}

.people-display-item-modal-info-meta{
    padding: 2rem 4rem 2rem 2rem;
}

.people-display-item-modal-info-meta :is(h3, h4){
    margin-bottom: 1rem;
}

.people-display-item-modal-info-meta h3{
    font: var(--font-headline-3);
}

.people-display-item-modal-info-bio{
    flex-grow: 1;
    overflow: auto;
    padding: 0 1rem 0 2rem;
    font: var(--font-body-small);
}

@media (max-width: 767px){
    .people-display-item-modal-close{
        background-color: var(--color-white);
        border-radius: 50%;
        position: fixed;
        top: var(--page-padding);
        right: var(--page-padding);
    }
}

@media (min-width: 768px){    
    .people-display-grid{
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .people-display-item-modal-inner{
        grid-template-columns: 35rem minmax(0, 1fr);
        display: grid;
        overflow: hidden;
    }

    .people-display-item-modal-info{
        padding: 3rem;
    }
} 

@media (min-width: 768px) and (max-width: 991px){
    .people-display-grid .people-display-item:nth-child(2n + 1) .people-display-item-image img{
        width: calc(100% + 0.1rem);
    }

    .people-display-grid .people-display-item:not(:nth-child(2n + 1)){
        border-left: none;
    }
}

@media (min-width: 992px){    
    .people-display-grid{
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
} 

@media (min-width: 992px) and (max-width: 1199px){
    .people-display-grid .people-display-item:nth-child(3n + 1) .people-display-item-image img{
        width: calc(100% + 0.1rem);
    }

    .people-display-grid .people-display-item:not(:nth-child(3n + 1)){
        border-left: none;
    }
}

@media (min-width: 1200px){
    .people-display-grid{
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .people-display-grid .people-display-item:nth-child(4n + 1) .people-display-item-image img{
        width: calc(100% + 0.1rem);
    }

    .people-display-grid .people-display-item:not(:nth-child(4n + 1)){
        border-left: none;
    }
}