*::before,
*::after {
  box-sizing: border-box;
}

.row {
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  margin: 0px !important;
}

.gallery-body {
  position: relative;
  background: #f9f9f9;
  overflow: hidden;
}

#lifeatyoungminds .video_section {
  position: relative;
  height: 100%;
  /* or set to a specific height (e.g., 500px) */
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

/* Optional: Make text resize based on viewport */

#lifeatyoungminds {
  display: block;
  height: 100vh;
  /* Use full viewport height */
  position: relative;
  width: 100%;
}

#lifeatyoungminds .video_section {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  /* Align text at the bottom */
  text-align: center;
  z-index: 1;
}

#lifeatyoungminds .video_section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url("https://ymtsindia.com/assets/img/gallery/team.jpg") no-repeat
    center center;
  background-size: cover;
  background-position: center;
  filter: brightness(0.5);
  z-index: -1;
}

#lifeatyoungminds .video_text {
  position: relative;
  color: #fff;
  padding: 0 20px;
}

.video_subtext {
  font-size: 22px;
  line-height: 1.5;
}

.gallery-body .video_section {
  position: relative;
  height: 100%;
  overflow-x: hidden;
}

.gallery-body .video_text {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 100%;
  color: #fff;
  text-align: center;
  padding: 12% 0;
}

.video_subtext {
  font-size: 22px;
  font-weight: 400;
}

.gallery-body .whyymts_content {
  padding: 50px 0;
}

h1 {
  font-size: 32px;
  text-align: center;
  margin-top: 0;
  margin-bottom: 0;
  line-height: 1.5;
}

.gallery-body .whyymts_content h1 {
  text-align: center;
}

.gallery-body .whyymts_content h5 {
  color: #222222;
  font-size: 20px;
  text-align: center;
  line-height: 34px;
  margin-top: 20px;
  font-weight: 300;
}

.gallery-body .lifeatymts_content h1,
.gallery-body .lifeatymts_content h2 {
  font-size: 30px;
  margin-top: 0;
  margin-bottom: 5px;
  text-align: center;
}

.gallery-body .gallery-container {
  padding: 0px 0 50px;
}

.gallery-container {
  display: flex;
  justify-content: center;
}

.gallery-body .gallery-container .card-image {
  border: 10px solid #1f3b7f;
  margin-bottom: 20px;
  position: relative;
  overflow: hidden;
}

.gallery-body .gallery-container .card-image img {
  width: 100%;
  height: 226px;
  object-fit: cover;
}

.gallery-body .gallery-container .album {
  position: relative;
}

.gallery-body .gallery-container .album a {
  display: block;
}

.gallery-body span.total-images {
  position: absolute;
  right: 0;
  bottom: 0;
  background: rgba(193, 197, 197, 0.82);
  padding: 3px 10px;
  font-weight: 600;
}

.gallery-body span.event-name {
  position: absolute;
  left: 0;
  top: 0;
  background: #ffeb3b;
  padding: 3px 10px;
  font-weight: 600;
}

.gallery-body .video_subtext {
  font-size: 20px;
  font-weight: 400;
}

@media (max-width: 1200px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 610px !important;
  }
}

@media (max-width: 1050px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 550px !important;
  }
}

@media (max-width: 950px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 500px !important;
  }
}

@media (max-width: 850px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 440px !important;
  }
}

@media (max-width: 750px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 390px !important;
  }
}

@media (max-width: 650px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 350px !important;
  }
}

@media (max-width: 575px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 325px !important;
  }
}

@media (max-width: 550px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 300px !important;
  }
}

@media (max-width: 500px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 280px !important;
  }
}

@media (max-width: 450px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 260px !important;
  }
}

@media (max-width: 400px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 250px !important;
  }
}

@media (max-width: 370px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 230px !important;
  }
}

@media (max-width: 350px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 215px !important;
  }
}

@media (max-width: 330px) {
  .gallery-body section#lifeatyoungminds,
  .gallery-body #lifeatyoungminds {
    height: 210px !important;
  }
}

@media (max-width: 991px) {
  .gallery-body .whyymts_content h1,
  .gallery-body .lifeatymts_content h1,
  .gallery-body .lifeatymts_content h2 {
    font-size: 30px;
  }

  .gallery-body .whyymts_content h5 {
    font-size: 18px;
    line-height: 30px;
    font-weight: 400;
  }

  .gallery-body .pb-250 {
    padding-bottom: 0;
  }

  .gallery-body .album-container {
    display: block;
    width: 395px;
    height: 226px;
    margin: auto;
    margin-bottom: 35px;
  }
}

@media (max-width: 767px) {
  .gallery-body .whyymts_content h1,
  .gallery-body .lifeatymts_content h1,
  .gallery-body .lifeatymts_content h2 {
    font-size: 26px;
  }

  .gallery-body .whyymts_content h5 {
    font-size: 16px;
    line-height: 26px;
    text-align: justify;
    padding: 0 15px;
  }

  .gallery-body .whyymts_content {
    padding: 30px 0;
  }
}

@media (max-width: 576px) {
  .gallery-body .whyymts_content h5 {
    font-size: 15px;
    margin-top: 10px;
    line-height: 23px;
  }

  .p-s-0 {
    padding: 0 !important;
  }
}

@media (max-width: 767px) {
  .gallery-body .whyymts_content h1,
  .gallery-body .lifeatymts_content h1,
  .gallery-body .lifeatymts_content h2 {
    font-size: 26px;
  }

  .gallery-body .whyymts_content h5 {
    font-size: 16px;
    line-height: 26px;
    text-align: justify;
    padding: 0 15px;
  }

  .gallery-body .whyymts_content {
    padding: 30px 0;
  }
}

@media (max-width: 576px) {
  .gallery-body .whyymts_content h5 {
    font-size: 15px;
    margin-top: 10px;
    line-height: 23px;
  }

  .p-s-0 {
    padding: 0 !important;
  }
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.gallery-body .gallery-container .card-image img {
  width: 375px;
  height: 226px;
  max-height: 100%;
  max-width: 100%;
  object-fit: cover;
}

@media (max-width: 400px) {
  .gallery-body .album-container {
    display: block;
    width: 90%;
    height: 226px;
    margin: auto;
    margin-bottom: 35px;
  }
}

.g-container {
  width: 100%;
}

.gallery-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.blue {
  color: rgb(49, 82, 176);
}
