.no-scroll {
  overflow: hidden;
}
.tabs-container {
  display: none;
}
.gallery-banner {
  width: 100%;
  border-radius: 50px;
}
.a-backgallery {
  margin-top: 20px;
  font-size: 32px;
  line-height: 35px;
  color: #2a2e6d;
  text-decoration: none;
}
.mt-gallery {
  margin-top: 30px;
}
.gallery-hosp {
  margin-top: 30px;
  position: relative;
}
.gallery-hosp .overlay {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
  /* background: linear-gradient(to right, rgba(0, 0, 0, 1), transparent); */
  background: linear-gradient(
    to left,
    rgba(0, 0, 0, 1) 0%,
    rgba(0, 0, 0, 0.4) 30%,
    transparent 100%
  );
  border-radius: 30px;
}
.gallery-hosp .overlay-in {
  position: absolute;
  bottom: 50px;
  right: 50px;
}
.gallery-hosp .gallery-icon {
  display: block;
  width: 90px;
  height: 90px;
  margin: 0 auto;
  padding: 0;
}
.gallery-hosp .overlay-in h1 {
  padding-right: 50px;
  color: white;
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 25px;
}
/* tabs option */
#gallery-cont-input{
    margin-top: 50px;
}
.tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.section-titleg {
    font-size: 32px;
    line-height: 35px;
    color: #2a2e6d;
    margin-top: 15px;
}
.tab {
    padding: 15px 35px;
    background-color: #e9e9e9;
    border-radius: 50px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.tab.active {
    background-color: #3f3f8e;
    color: white;
}

.search-container {
    margin-bottom: 20px;
    position: relative;
}

.search-container input {
    width: 388px;
    padding: 10px 15px 10px 50px;
    border: 1px solid #ddd;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
}

.search-icon {
    position: absolute;
    background: none;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #666;
}
.search-icon img{
    margin-top: 8px;
}
#gallery-activities {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.gallery-section {
    border-radius: 15px;
    padding: 20px;
}

.section-yellow {
    background-color: #fff3cd;
}

.section-blue {
    background-color: #e7e9ff;
}

.section-white {
    background-color: #ffffff;
}

.section-title {
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: bold;
    color: #333;
}

.cards-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.card {
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    background-color: white;
    cursor: pointer;
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.view-all {
    position: absolute;
    bottom: 15px;
    left: 15px;
    color: white;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}
.count{
    position: absolute;
    bottom: 5px;
    right: 15px;
    color: #000;
    font-weight: bold;
    font-size: 14px;
    cursor: pointer;
    padding: 10px;
    background: #ffffff70;
    border-radius: 50%;
}


/* Modal styles */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    position: relative;
    width: 90%;
    max-width: 1200px;
    margin: 40px auto;
    padding: 20px;
    background-color: white;
    border-radius: 15px;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 24px;
    color: #333;
    cursor: pointer;
    z-index: 1100;
}

.modal-title {
    font-size: 22px;
    margin-bottom: 20px;
    padding-right: 30px;
}

.modal-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 15px;
}

.modal-image {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.modal-image img {
    width: 100%;
    height: auto;
    display: block;
}
/* tab active */
.active[data-tab-content] {
    display: block;
  }
  
[data-tab-content] {
    visibility: hidden;
    opacity: 0;
    height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, height 0.3s ease;
  }
  
  .active[data-tab-content] {
    visibility: visible;
    opacity: 1;
    height: auto;
  }
/*  */
/* Responsive card display with specific counts */
@media (min-width: 1025px) {
    .cards-container {
        grid-template-columns: repeat(4, 1fr);
    }
    
    .card:nth-child(n+5) {
        display: none;
    }
    
    .modal-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 1024px) {
    .cards-container {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .card:nth-child(n+4) {
        display: none;
    }
    
    .modal-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    .gallery-hosp .overlay-in h1{
        margin-top: 10px;
    }
}

@media (max-width: 768px) {
    .cards-container {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .card:nth-child(n+3) {
        display: none;
    }
    
    .modal-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    .gallery-hosp .overlay-in h1{
        font-size: 30px;
    }
    .gallery-hosp .gallery-icon {
        margin-top: 10px;
        width: 60px;
        height: 60px;
    }
}

@media (max-width: 499px) {
    .section-titleg {
        font-size: 22px;
        line-height: 22px;
        color: #2a2e6d;
    }
    .cards-container {
        grid-template-columns: 1fr;
    }
    
    .card:nth-child(n+2) {
        display: none;
    }
    
    .modal-gallery {
        grid-template-columns: 1fr;
    }
    .search-container input {
        width: 240px;
    }
    #gallery-cont-input .tabs{
        flex-wrap: nowrap;
        overflow-x: scroll;
    }
    #gallery-cont-input .tabs::-webkit-scrollbar{
        display: none;
    }
    #gallery-cont-input .tab{
        flex: 0 0 40%;
        max-width: 40%;
        border-radius: 50px;
        padding: 10px;
        text-align: center;
    }
    .gallery-hosp .overlay-in {
        bottom: 20px;
        left: 40px;
    }
    .gallery-banner{
        height: 433px;
        width: 100%;
        object-fit: cover;
    }
    .gallery-hosp .gallery-icon{
        margin: 0;
    }
    .gallery-hosp .overlay-in h1 {
        font-size: 45px;
    }
    .gallery-hosp .gallery-icon {
        width: 80px;
        height: 80px;
    }
    .gallery-hosp .overlay {
        background: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 30%, transparent 100%);
    }
}
/* tabs ends */
/* @media (max-width:768px){
    .st-johns-corporate-gallery-listing-tabs {
        flex-wrap: nowrap;
        overflow-x: scroll;
    }
    .st-johns-corporate-gallery-listing-tabs::-webkit-scrollbar{
        display: none;
    }
    .st-johns-corporate-gallery-listing-tab{
        flex: 0 0 40%;
        max-width: 40%;
        border-radius: 50px;
        padding: 10px;
    }

} */