.speaker-cards {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
    /* display: grid; */
}

.speaker-section {
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.speaker-section h4 {
    margin-bottom: 20px;
}

.speaker-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    justify-content: center;
}

.speaker-card {
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
	padding: 0 0 8px !important;
}

.speaker-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}
 
.speaker-headshot {
    width: 100%;
    height: 160px;
    background-size: cover;
    background-position: center top;  
}

.speaker-details {
    padding: 0;
    flex-grow: 1;
}

.speaker-name {
    margin: 0 0 4px 0;
    font-size: 22px;
    font-weight: bold;
    line-height: 1.2;
}

.speaker-job {
    margin: 0 0 4px 0;
}

.speaker-bio {
    margin: 0 0 4px 0;
}
.speaker-linkedin {
    display: block;
    text-align: center;
    padding: 0 0 0;
}

.speaker-linkedin svg {
    width: 20px;
}



.bio-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5);
}

.bio-modal-content {
  background-color: #fff;
  margin: 5% auto;
  padding: 2rem;
  border-radius: 8px;
  width: 90%;
  max-width: 600px;
  position: relative;
  text-align: center;
}

.bio-modal-close {
  position: absolute;
  top: 10px;
  right: 16px;
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.bio-modal-body {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bio-modal-headshot {
  width: 120px;
  height: 120px;
  background-size: cover;
  background-position: center;
  border-radius: 100%;
  margin-bottom: 1rem;
}

.modal-job {
  font-style: italic;
  color: #555;
  margin-top: 0;
}

.modal-bio {
  margin-top: 1rem;
  text-align: left;
}


p.speaker-job {
    font-size: 12px;
}

h5.speaker-name {
    font-size: 14px;
}

.speaker-details {
    text-align: center !important;
    padding: 4px 4px 0;
}

@media (min-width: 400px) {
    .speaker-cards {
        grid-template-columns: 1fr 1fr;
    }

}

@media (min-width: 600px) {
.speaker-cards {
    grid-template-columns: 1fr 1fr 1fr 1fr 1fr !important;
}
}
/*
@media (min-width: 900px) {
    .speaker-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (min-width: 1200px) {
    .speaker-cards {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}
/*