/* by Creasant */
@media only screen and (max-width: 768px) {
  .speakers-section-wrapper .field--name-field-mtpc-profile-listing-item {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .cal-loc-info .field__item {
    flex-direction: column;
    gap: 30px;
    left: 55px;
    position: relative;
 } 
 
 .reg-card table tr td:first-child .tbl-line tbody tr td {
    min-width: auto;
 }
 
 .reg-card table tr td:first-child .tbl-line tbody tr td:first-child {
    min-width: 150px;
 }
 
  .venue-iframe-wrapper table tr {
    flex-direction: column;
  }
  .venue-iframe-wrapper table tr td {
    flex-basis: 100%;
  }
  
  .venue-iframe-wrapper table tr td iframe {
    min-height: 300px;
  }
}


@media only screen and (max-width: 767px) {
  .speakers-section-wrapper .field--name-field-mtpc-profile-listing-item .mtpc_pl_item_wrapper {
    display: flex;
  }
  
  .speakers-section-wrapper .field--name-field-mtpc-profile-listing-item .mtpc_pl_texts {
    margin-top: 0;
  }
  
  .banner-section .mtpc-image-caption, .mtpc-block-image-block-image-caption {
    font-size: 28px;
  }
  
  #block-mtpc-secondfooter table {
    width: calc(100% - 40px) !important;
    margin: 20px;
  }
  
  #block-mtpc-secondfooter table tbody tr td:first-child {
    flex-direction: row;
    gap: 0;
  }
  
  #block-mtpc-secondfooter table tbody tr {
    flex-direction: column;
    gap: 50px;
  }
  
  #block-mtpc-secondfooter table tbody tr td p:first-child {
    margin-bottom: 10px;
  }
    
  #block-mtpc-secondfooter table tbody tr td:nth-child(2):before {
    left: auto;
    width: 100%;
    height: 1px;
    top: -30px;
  }
  #block-mtpc-secondfooter table tbody tr td:nth-child(2):after {
    right: auto;
    width: 100%;
    height: 1px;
    top: unset;
    bottom: -30px;
  }
  
  #block-mtpc-secondfooter table tbody tr td {
    padding: 0;
    width: 100%;
    justify-content: flex-start;
  }
  
  #block-mtpc-secondfooter table tbody tr td img:nth-child(2) {
    margin-right: 20px;
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 580px) {
  #block-mtpc-secondfooter table tbody tr td {
     justify-content: space-between; 
  }
  
  #block-mtpc-secondfooter table tbody tr td img:nth-child(2) {
    margin-right: unset;
  }
  
  #block-mtpc-secondfooter .block-body .block-field-blockblock-contentbasicbody {
    padding-top: 20px;
    padding-bottom: 20px;
  }
}

@media only screen and (max-width: 520px) {
  #block-mtpc-secondfooter table tbody tr td img {
    width: 46%;
    flex-basis: auto;
    align-self: anchor-center;
  }
}

@media only screen and (max-width: 480px) {
  .speakers-section-wrapper .field--name-field-mtpc-profile-listing-item {
    grid-template-columns: 1fr;
  }
  
  .space-top-80 {
    margin-top: 0;
  }
}

@media only screen and (max-width: 400px) {
    .tab-selector ul {
      flex-direction: column;
      gap: 20px;
    }
    
    .tab-selector ul li {
      text-align: center;
    }
    
    .tab-selector ul li::before {
      display: none;
    }
    
    #block-mtpc-secondfooter table tbody tr td img:nth-child(2) {
      margin-bottom: 30px !important;
    }
    
    #block-mtpc-secondfooter table tbody tr td:first-child img:last-child {
     margin-top: 20px !important; 
    }
    
    #block-mtpc-secondfooter table tbody tr td img {
      display: block;
      width: auto !important;
      margin: 0 !important;
    }

}


