/* CSS Document*/

.roster{
	display: grid;
	text-align: center;
	gap: 15px;
	max-width: 1320px;
	margin: auto;
    padding: var(--wp--preset--spacing--50);
}

/* Roster Members */
.roster-member{
    padding: var(--wp--preset--spacing--20);
}

.roster-member img {
    width: 100%;
    max-width: 150px;
    height: auto;
    border-radius: 4px;
}
.roster-member.has-biography{
    cursor: pointer;
}

.roster-member.has-biography img{
    transition: filter 0.3s ease-in-out;
}

.roster-member.has-biography img:hover{
    filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.5));
}

.card-border.primary-color{
	border: var(--wp--preset--color--primary) solid 1px;
}
.card-border.secondary-color{
	border: var(--wp--preset--color--secondary) solid 1px;
}
.card-border.tertiary-color{
	border: var(--wp--preset--color--tertiary) solid 1px;
}
.card-border.black-color{
	border: var(--wp--preset--color--black) solid 1px;
}
.card-border.white-color{
	border: var(--wp--preset--color--white) solid 1px;
}


/* Grid Columns */
.is-two-columns{
	grid-template-columns: repeat(2, 1fr);
}
.is-three-columns{
	grid-template-columns: repeat(3, 1fr);
}
.is-four-columns{
	grid-template-columns: repeat(4, 1fr);
}
.is-five-columns{
	grid-template-columns: repeat(5, 1fr);
}


@media screen and (max-width: 1245px){
	.roster.is-five-columns{grid-template-columns: repeat(4, 1fr);}
}

@media screen and (max-width: 1020px){
	.roster.is-four-columns{grid-template-columns: repeat(3, 1fr);}
	.roster.is-five-columns{grid-template-columns: repeat(3, 1fr);}
}

@media screen and (max-width: 795px){
	.roster.is-three-columns{grid-template-columns: repeat(2, 1fr);}
	.roster.is-four-columns{grid-template-columns: repeat(2, 1fr);}
	.roster.is-five-columns{grid-template-columns: repeat(2, 1fr);}
}

@media screen and (max-width: 570px){
	.roster.is-two-columns{grid-template-columns: repeat(1, 1fr);}
	.roster.is-three-columns{grid-template-columns: repeat(1, 1fr);}
	.roster.is-four-columns{grid-template-columns: repeat(1, 1fr);}
	.roster.is-five-columns{grid-template-columns: repeat(1, 1fr);}
}


/* Modal Styles */
.roster-modal .modal {
    background: var(--wp--preset--color--white);
    max-width: 90vw;
    max-height: 90vh;
    width: 100%;
    overflow: hidden;
    border: 10px solid var(--wp--preset--color--primary);
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    color: var(--wp--preset--color--black);
    text-align: left;
    display: flex;
    flex-direction: column;
}
.roster-modal .modal-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.headshot {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.headshot img {
    width: auto;
    max-width: 300px;
    height: 100%;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.bio {
    padding: 30px;
    flex: 1;
}

.bio h2.modal-name {
    font-size: 2rem;
    line-height: 1.2;
    font-weight: bold;
    margin-bottom: 10px;
    color: var(--wp--preset--color--primary);
}

.bio h3.modal-title {
    font-size: 1.2rem;
    color: var(--wp--preset--color--black);
    margin-bottom: 20px;
    font-weight: 600;
    margin-block-end: 20px;
}

.bio p {
    margin-bottom: 15px;
    font-size: 1rem;
    line-height: 1.6;
    color: #444;
}

/* Responsive Breakpoints */

/* Tablets and larger phones (768px and up) */
@media (min-width: 768px) {
    .roster-modal .modal-content {
        flex-direction: row;
    }
    
    .headshot {
        flex: 0 0 40%;
        min-height: 400px;
        background: none;
        padding: 30px;
    }
    
    .headshot img {
        max-width: 100%;
        max-height: 600px;
        object-fit: cover;
    }
    
    .bio {
        flex: 1;
        padding: 40px;
        padding-right: 70px;
        margin-top: 20px;
    }
    
    .bio h2.modal-name {
        font-size: 2.2rem;
    }
    
    .bio h3.modal-title {
        font-size: 1.3rem;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .headshot {
        flex: 0 0 35%;
    }
    
    .bio {
        padding: 50px;
        padding-right: 80px;
    }
    
    .bio h2.modal-name {
        font-size: 2.5rem;
    }
    
    .bio h3.modal-title {
        font-size: 1.4rem;
    }
    
    .bio p {
        font-size: 1.1rem;
    }
}

/* Large Desktop (1400px and up) */
@media (min-width: 1400px) {
    .headshot {
        flex: 0 0 30%;
    }
}

/* Mobile devices (767px and below) - Hide image completely */
@media (max-width: 767px) {
    .roster-modal .modal {
        max-height: 80vh; /* Prevent content being cut off by mobile browser toolbars */
    }
    
    .headshot {
        display: none;
    }
    
    .bio {
        padding: 25px;
    }
    
    .bio h2.modal-name {
        width: calc(100% - 65px) /* Offset to account for close button */
    }
}

/* Small phones (480px and down) */
@media (max-width: 480px) {
    .bio {
        padding: 20px;
    }
    
    .bio h2.modal-name {
        font-size: 1.5rem;
        width: calc(100% - 50px) /* Offset to account for close button */
    }
    
    .bio h3.modal-title {
        font-size: 1rem;
    }
    
    .bio p {
        font-size: 0.9rem;
    }
}

/* Very small screens (320px and down) */
@media (max-width: 320px) {
    .bio {
        padding: 15px;
    }
    
    .bio h2.modal-name {
        font-size: 1.3rem;
    }
}