.gallery {
    background: #f1ede7;
    padding: 40px;
    max-width: 960px;
    margin: auto;
  }
  
  .main-image {
    text-align: center;
    margin-bottom: 20px;
    height: 600px;
    object-fit: contain;
  }
  
  .main-image img {
    width: 100%;
    max-height: 600px;
    object-fit: contain;
  }
  
  .thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
  }
  
  .thumb {
    width: 138px;
    height: 90px;
    object-fit: contain;
    filter: brightness(0.3);
    cursor: pointer;
    transition: 0.3s ease;
    background: #F2EDE8;
  }
  
  .thumb.active {
    filter: brightness(1);
  }
  .panel {
    overflow: hidden;
    height: 0;
    opacity: 0;
    margin: auto;
    box-shadow:unset;
    border: unset;
    border-radius: unset;
    background-color: #F2EDE8!important;
}
.panel.active {
    overflow: visible;
    height: auto;
    opacity: 1;
    transition: opacity .8s ease-in-out;
}
.w-wrap{
    width: 100%;
    margin: auto;
    border-bottom: solid 1px #80a8aa;
}
.hr{
    width: 100%;
    max-width: 1200px;
    margin: auto;
    display: flex;
    margin-bottom: -1px;
    column-gap: 10px;
    justify-content: center;
}
.hr .tab{
    width: calc(100%/4);
    padding: 10px 15px;
    color: #fff;
    background-color: #3A8290;
    border: solid 1px #3A8290;
    border-bottom: unset;
    letter-spacing: 2px;
    line-height: 20px;
    cursor: pointer;
    text-align: center;
}
.hr .tab.active{
    background-color: #F2EDE8;
    color: #005155;
}
.hr .tab:last-child{
    border-right: solid 1px #3A8290;
}
  @media screen and (max-width:767px) {
    .main-image{
      height: 250px;
    }
    .gallery {
        padding: 0px;
      }
      .thumb {
        width: 31%;
        height: 70px;

    }
    .hr{
      width: 95%;
      column-gap: 5px
  }
  .hr .tab{
    width: calc(100%/2);
      font-size: 0.5rem;
      padding: 5px;
      line-height: 10px;
  }
  }