/* Speaker Card Container */
.speaker-box1 {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 10px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    text-align: center;
}

.speaker-box1:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

/* Speaker Image */
.speaker-head1 img {
    width: 100%;
    height: 320px; /* slightly taller images */
    object-fit: cover;
    border-bottom: 1px solid #ddd;
}

/* Speaker Name */
.speaker-head1 h5 {
    font-size: 22px;
    font-weight: 600;
    margin: 15px 0 5px;
    color: #222;
}

/* Optional small role or tagline */
.speaker-head1 span {
    color: #888;
    font-size: 14px;
    margin-bottom: 10px;
}

/* Speaker Description */
.speaker-body1 {
    padding: 0 20px 20px;
}

.speaker-body1 p {
    color: #555;
    font-size: 15px;
    line-height: 1.6;
    margin: 0;
}

/* Card Layout in Row */
.row.res-caro .col-md-4 {
    display: flex;
    justify-content: center;
    align-items: stretch;
    margin-bottom: 30px;
}

.speaker-box1 {
    height: 100%;
}

/* Grid layout */
.event-row2 {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.event-img2 {
  width: 23%;
  cursor: pointer;
  border-radius: 8px;
  transition: transform 0.3s ease;
}

.event-img2:hover {
  transform: scale(1.05);
}

/* Fullscreen modal */
.img-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.9);
  justify-content: center;
  align-items: center;
}

.img-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(255,255,255,0.3);
}

/* Close button */
.close {
  position: absolute;
  top: 20px;
  right: 40px;
  color: white;
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
}
.close:hover {
  color: #aaa;
}