
.popup-image {
    height: auto;
    cursor: pointer;
    object-fit: contain;
}
.popup {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    justify-content: center;
    align-items: center;
}

.popup-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.close {
    position: absolute;
    top: 15px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
}

.person-name {
    margin: 5px 0 0;
    font-size: 16px;
    font-weight: bold;
}

.small {
    max-width:auto;
    max-height: 250px;
}

.medium {
    max-width: 180px;
    max-height: 180px;
}

.large {
    max-width: 650px;
    height:auto;
}
#container {
    text-align: center;
}

.boxi_row_1or2 {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

.boxi_row_1or2 > #container,
.boxi_row_1or2 > .container {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box;
    text-align: center;
}

.boxi_row_1or2 img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto;
}




#container {
    min-width: 0;
    text-align: center;
}

#container .image {
    max-width: 100%;
    height: auto;
    cursor: pointer;
}
.boxi_main_1or2 {
  display: flex;
  flex-direction: column;
  width:100%;
  gap: 20px;
  padding-top:40px;
  padding-bottom:40px;
  text-align:center;
}
.box_main_1or2 {
  display: flex;
  flex-direction: column;
  width:100%;
  gap: 20px;
  padding-top:40px;
  padding-bottom:40px;
  text-align:center;
}
.boxi_row_1or2 {
  display: flex;
  align-items: center;
  width: 100%;
  gap: 20px;
  flex-direction: row;
  justify-content: center;
  text-align:center;
}

.boxi_column_1or2 {
  text-align:center;
  width:49%;
  display:inline-block;padding-bottom:15px;
}

.boxi_column_1or2 img {
flex: 1;
max-width: 100%;
height: auto;
max-height: 250px;
}
.boxi_column_1or2 .names{
text-align:center;

}

/* Mobile devices */
@media screen and (max-width: 600px) {
    .boxi_row_1or2 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 10px;
		width:100%;
    }
	 .boxi_row_1or2 > #container img,
    .boxi_row_1or2 > .container img {
        width: 100% !important;
        max-width: 100%;
        height: auto;
        display: block;
        object-fit: cover;
    }
}

/* Very small mobile devices */
@media screen and (max-width: 360px) {
    .boxi_row_1or2 {
        grid-template-columns: 1fr !important;
    }
}


/* Tablets */
@media (max-width: 768px) {
    #container {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 15px;
    }

}

/* Mobile phones */
@media (max-width: 480px) {
    #container {
        grid-template-columns: 1fr; 
    }
#container img{
        width:100%;
    }
}
/* Mobile phones */
@media (max-width: 600px) {
.popup-image {
    width: 200px;
    cursor: pointer;
}

}


.youtube-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: 0 auto;
}

.youtube-item {
    min-width: 0;
    background: #fff;
    padding: 15px;
    border-radius: 8px;
    box-sizing: border-box;
}

.youtube-item h3 {
    font-size: 18px;
    margin: 0 0 12px;
}

.youtube-video {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
}

.youtube-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-item p {
    font-size: 14px;
    line-height: 1.6;
    margin: 12px 0 0;
}

/* Tablets: 2 videos per row */
@media (max-width: 900px) {
    .youtube-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile: 1 video per row */
@media (max-width: 600px) {
    .youtube-grid {
        grid-template-columns: 1fr;
    }
}

.contentbio {
  line-height: 1.8;
}

.content-img {
width: 250px;
    max-width: 100%;
    height: auto;
    float: left;
    margin: 15px 15px 15px 0;
    cursor: zoom-in;
}

.popup {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(0, 0, 0, 0.9);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.popup:target {
  display: flex;
}

.popup img {
  position: relative;
  z-index: 2;
  max-width: 90vw;
  max-height: 85vh;
  object-fit: contain;
}

.popup-bg {
  position: absolute;
  inset: 0;
}

.close {
  position: absolute;
  top: 15px;
  right: 30px;
  z-index: 3;
  color: white;
  font-size: 45px;
  text-decoration: none;
}