#pk_flex_content .flex_layout.speakers_grid {
  /* margin-right: 0;
  padding-right: 0; */
}

.flex_layout.speakers_grid {
  position: relative;
}


.flex_layout.speakers_grid .head {
  display: flex;
  flex-direction: column;
  gap: 34px;
  margin-bottom: 34px;
}

.flex_layout.speakers_grid .filtering ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  padding: 0;
  align-items: center;
}

.flex_layout.speakers_grid .filtering ul li {
  padding: 0;
}

.flex_layout.speakers_grid .filtering ul li ul li {
  background: transparent;
  color: var(--dark-blue);
border: 1px solid var(--dark-blue);
padding: 7px 20px;
border-radius: 100px;
cursor: pointer;
font-weight: 600;
  transition: all 0.3s ease;
  white-space: nowrap;
  font-weight: 400;
}

.flex_layout.speakers_grid .filtering ul li ul li input{
display: none;
}

.flex_layout.speakers_grid .filtering ul li ul li label{
  padding: 0;
  cursor: pointer;
  
  font-size: 16px;
  font-weight: 400;
  line-height: 140%; 
}

/* 'Clear selection' button display none if 'all speaker' is geselecteerd */

.flex_layout.speakers_grid .filtering ul li:first-child:has( ul > li:first-of-type.sf-option-active) + li.sf-field-reset {
  display: none;
}

.flex_layout.speakers_grid .filtering ul li ul li.sf-option-active {
background: var(--dark-blue);
color: white;
display: flex;
align-items: center;
}

#pk_flex_content .flex_layout.speakers_grid .filtering ul li ul li.sf-option-active  label {
  color: white;
}

.flex_layout.speakers_grid .filtering ul li.sf-field-reset {
  height: fit-content;
  display: flex;
  align-items: center;
}

.flex_layout.speakers_grid .filtering ul li.sf-field-reset::before {
  content: '';
  display: block;
  background-repeat: no-repeat;
  background-size: contain; 
 background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='17' height='17' viewBox='0 0 17 17' fill='none'%3E%3Cpath d='M10.9 6.1L6.1 10.9M6.1 6.1L10.9 10.9M16.5 8.5C16.5 12.9183 12.9183 16.5 8.5 16.5C4.08172 16.5 0.5 12.9183 0.5 8.5C0.5 4.08172 4.08172 0.5 8.5 0.5C12.9183 0.5 16.5 4.08172 16.5 8.5Z' stroke='%23113A56' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  height: 16px;
  width: 16px;
  transition: all 0.3s ease;
  margin-right: 10px;
}



.flex_layout.speakers_grid .filtering ul li ul li.sf-option-active::before {
  content: '';
  display: block;
  background-repeat: no-repeat;
  background-size: contain; 
  background-image: url("data:image/svg+xml,%3Csvg width='13' height='13' viewBox='0 0 13 13' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M6.5 12.5C9.81371 12.5 12.5 9.81371 12.5 6.5C12.5 3.18629 9.81371 0.5 6.5 0.5C3.18629 0.5 0.5 3.18629 0.5 6.5C0.5 9.81371 3.18629 12.5 6.5 12.5Z' stroke='%23E2EFFF' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E%0A");
  height: 16px;
  width: 16px;
  transition: all 0.3s ease;
  margin-right: 10px;
}


.flex_layout.speakers_grid .line {
  height: 1px;
  width: auto;
  background: var(--dark-blue);
  margin-bottom: 32px;
}

.flex_layout.speakers_grid .grid_container {
  display: grid;
grid-template-columns: repeat(3, minmax(0,1fr));
gap: 20px 20px;  
}


.flex_layout.speakers_grid .grid_container .block {
  width: 100%;
  border-radius: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  transition: all ease 0.5s;
  flex-shrink: 1;
}

.flex_layout.speakers_grid .grid_container .block img{
width: 100%;
height: 100%; 
object-fit: cover;
display: block;
position: relative;
  aspect-ratio: 424/500;
  border-radius: 10px; 
}
.flex_layout.speakers_grid .grid_container .block .information {
  background: var(--dark-blue);
  color: var(--light-blue);
  padding: 20px;
  border-radius: 10px;
  border: 1px solid var(--mid-blue);
  
  position: absolute;
  bottom: 20px;
  width: calc(100% - 40px);
  margin-inline: 20px;
}

.flex_layout.speakers_grid .grid_container .block .information .name {
font-size: clamp(16px, 2vw, 24px);
font-weight: 600;
line-height: 120%;
}

.flex_layout.speakers_grid .grid_container .block .information .function {
  font-size: 16px;
  font-weight: 400;
  line-height: 150%;
  opacity: 1;
  transition: all 0.3s ease;
}

.flex_layout.speakers_grid .grid_container .block.is-open .information .function {
opacity: 0;
  transition: all 0.3s ease;
}

.flex_layout.speakers_grid .grid_container .block .information .undertitle {
display: flex;
justify-content: space-between;
margin-top: 5px;
}

.flex_layout.speakers_grid .grid_container .block .information .undertitle .read-more-small {
  cursor: pointer;
}

.flex_layout.speakers_grid .grid_container .block.is-open .information .undertitle .read-more-small svg {
  transform: rotate(90deg);
}

.flex_layout.speakers_grid .grid_container .block .description {
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  /* margin-top: 12px; */
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
}

.flex_layout.speakers_grid .grid_container .block.is-open .description {
  max-height: 420px; 
  opacity: 1;
  margin-top: 12px;
  transition: all 0.6s ease;
  
}




@media screen and (max-width: 1320px) {
  .flex_layout.speakers_grid .grid_container {
  grid-template-columns: repeat(2, minmax(0,1fr));
  }
}

@media screen and (max-width: 820px) {
  .flex_layout.speakers_grid .grid_container {
  grid-template-columns: repeat(1, minmax(0,1fr));  
  }
}


@media screen and (max-width: 768px) {
  #pk_flex_content .flex_layout.speakers_grid {
   margin-inline: 0; 
  }
  
  .flex_layout.speakers_grid .speakers_grid_wrapper {
    flex-direction: column;
    align-items: center;
  }
  #pk_flex_content .flex_layout .title.flex {
      display: flex;
  }

  .flex_layout.speakers_grid .grid_container .block {
    width: 100%;
    height: auto;         
    max-height: 600px;  
    aspect-ratio: 2/3; 
  }

  .flex_layout.speakers_grid .grid_container .block img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    aspect-ratio: 313/381;
  }
  
  
  .flex_layout.speakers_grid .grid_container .block img{
  width: 100%;
  height: 100%; 
  object-fit: cover;
  display: block;
  position: relative;
    aspect-ratio: 313/381;
    border-radius: 10px; 
  }
}

