/*
 Theme Name:   Zakra Child
 Template:     zakra
 Author:       Your Name
 Description:  Child theme for Zakra.
 Version:      1.0
*/

@import url("../zakra/style.css");

.container{
    display: flex;
    width:100%;
}

.team-member-image-div{
  flex-shrink: 0;
  width: 30%;
}

.team-member-image-div img {
  width:100%
}

.team-member-bio{
    flex:1;
    padding: 1px 3px; 
    margin-left: 10px
}

.team-member-title{
 color:#9b0404e8;
 margin:0;
}

.partner{
    display: flex;
    justify-content: center;
    align-items: center;

    height: 150px;
    background: #fff;
}

.partner>div{
    border: 1px solid #ccc;
    height: 144px;
    align-items: center;
    display: flex;
    justify-content: center;
    padding: 4px;
}

/*.team-member-list{
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}*/

.team-member-list {
  display: grid;
  grid-template-columns: repeat(4, 226px);
  gap: 20px;
  /*justify-content: center;*/ /* centers grid in page */
}

/*
.inner-team-list{    
    text-align:center;
    width: calc(33.333% - 1rem);
    box-sizing: border-box;    
}*/

/* Each team card */
.inner-team-list {
  width: 226px;
  text-align: center;
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  overflow: hidden;
}

/* .inner-team-list img{
    width:100%;    
    transition: all 0.3s ease;  
} */

/* Force thumbnail into fixed size */
.team-list-img-div img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* crop while preserving aspect ratio */
  object-position: center;
  display: block;
  transition: all 0.3s ease;
}

/* .team-list-img-div{
    max-height: 358px;
    overflow: hidden;
} */

/* Thumbnail wrapper */
.team-list-img-div {
  width: 226px;
  height: 300px;          /* fixed height */
  overflow: hidden;
}

.inner-team-list img:hover{
   transform:scale(1.2); 
   opacity: 0.7;
}

.place-item{
    padding: 5px;
    /*background-color: #f1efef;*/
    border: #cfcdcde8 solid 1px;
    margin-bottom: 10px;
}

.place-flex{
    display: flex;    
}

.place-item-img-div{
    width: 300px;
    max-height: 200px;
    overflow: hidden;
}

.place-text{
    flex:1;
    margin-left: 20px;
}

.place-item-img-div > img{
    width: 100%;
}

.page-title{
    font-weight: 600;
    font-size: 33px;
}

@media (max-width: 768px) {
   /* .team-member-list{
    display: block;    
   } */
  .team-member-list {
    grid-template-columns: repeat(2, 226px);
  }
   /* .inner-team-list{    
        text-align:center;
        width: 100%;
         
    } */
    
  .inner-team-list {
    width: 100%;
  }
  .team-list-img-div {
    width: 100%;
    aspect-ratio: 226/300; /* keeps same proportions */
    height: auto;
  }

}

/*
@media screen and (min-width: 768px) {
	.zak-content .zak-row {
		flex-direction: row;
		gap: 0;
		padding-top: 0;
		padding-bottom: 0;
	}
	.zak-primary {
		width: 100%;
		padding-top: 60px;
		padding-right: 30px;
		padding-bottom: 60px;
	}
}*/

.board-member-list {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px; /* space between cards */
}

.board-member-card {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    text-align: center;
    border: solid 1px #ccc;
}

.board-member-image {
    width: 100%;
    height: 250px; /* adjust height as needed */
    overflow: hidden;
}

.board-member-image img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* fill container no matter the image size */
    display: block; 
    transition: all 0.3s ease;
}

.board-member-image img:hover{
  transform: scale(1.2);
  opacity: 0.7;
}

@media (max-width: 1024px) {
  .board-member-list {
      grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 768px) {
  .board-member-list {
      grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .board-member-list {
      grid-template-columns: 1fr;
       width: 100%;
  }

  .board-member-card {
    width:100%
}
}