.team__inner {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
	grid-gap: 2rem;
}
.person {
    position: relative;
    box-shadow: 0 0 0 transparent;
    background: var(--white);
    transition: box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease; /* unified duration */
    display: flex;
    flex-direction: column;
    height: 100%;
}

.person:hover {
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    background: var(--grey);
    transform: translateY(-4px);
}
.person__image {
    aspect-ratio: 1/1;
    display: flex;
    justify-content: center;
    align-items: center;
}
.person__image img {
    object-fit: cover;
    object-position: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 25px solid #00C2F3; /* default blue border */
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.3s ease, transform 0.3s ease;
}
.person:hover .person__image img {
    border-color: #F05238; /* red on hover */
}
.person__info {
	padding: 1rem;
	display: block;
	display: flex;
	gap: 0 1rem;
}
.person__identity {
	color: var(--black);
	text-decoration: none;
	line-height: 1.2;
	flex: 1;
}
.person__linkedin {
    position: relative;
    z-index: 2;
    width: 40px;
    height: 40px;
    background: var(--color1);
    padding: 0.5rem;
    transition: background 0.25s ease;
    display: grid;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
    margin-top: 0.5rem;
}
.person__linkedin > svg {
    fill: var(--white);
    margin: auto;
}
.person__linkedin:hover {
    background: var(--color2);
}
.person__linkedin:hover > svg {
	/* fill: var(--color1); */
}

.person__identity::before {
	content: "";
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 1;
}
.person__name {
	font-size: 1.5rem;
	font-weight: 700;
	display: block;
}
.person__title {
	font-size: .9rem;
	color: var(--color2)
}

.team__modal {
	display: none;
	background: rgba(0,0,0,.75);
    width: 100%;
    position: fixed;
    top: 0;
    bottom: 0;
    z-index: 200;
}
.team__modal--open {
	display: grid;
}
.team__modal__inner {
    margin:  100px auto  50px auto;
    max-width:  800px;
	max-height: 600px;
    width: 80%;
    padding: 2rem;
    box-shadow: 0 10px 30px rgba(0,0,0,.5);
	background: var(--white);
	border-radius: 1rem;
	overflow-Y: auto;
}
.team__modal__close {
	position: absolute;
	display: block;
	top: 1rem;
	right: 1rem;
	width: 60px;
	height: 60px;
	padding: 0;
	margin: 0;
	background: transparent;
	border: 0;
	color: var(--white);
	font-size: 4rem;
	line-height: 60px;
}
.team__modal__name {
	margin-top: 0;
}
.team__modal__title {
	font-weight: 700;
	font-size: .9rem;
}

@media screen and (max-width: 768px) {
    .person__image img {
        border-width: 15px;
    }
    .person__name {
        font-size: 1.1rem;
    }
    .person__title {
        font-size: 0.8rem;
    }
}

@media screen and (max-width: 480px) {
    .person__image img {
        border-width: 10px;
    }
    .person__name {
        font-size: 1rem;
    }
    .person__title {
        font-size: 0.75rem;
    }
}