  

/*Videos Section*/
.youtube {
  background: #111 url(image/youtube\ bg\ s.png) no-repeat center/cover;
  padding: 40px 20px;
}

.videos h4 {
  color: #f37021;
  font-size: 28px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 25px;
  margin-top: 100px;
}

/* Main Container */
.container {
  max-width: 1100px;
  margin: 0 auto;
}

/* Video Player */
.youtube_video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  background: #000;
  margin-bottom: 25px;
  border-radius: 10px;
  overflow: hidden;
}

.youtube_video iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
}

.item {
  position: relative;
  text-align: center;
}

.item img {
  width: 100%;
  display: block;
  border-radius: 8px;
  cursor: pointer;
  transition: transform 0.3s ease;
}

.item img:hover {
  transform: scale(1.05);
}

/* Caption below thumbnails */
.caption {
  font-size: 14px;
  font-family: 'Montserrat', sans-serif;
  color: #fff;
  margin-top: 8px;
  line-height: 1.4;
  text-align: center;
  white-space: normal;   /* allow wrapping */
  word-wrap: break-word;
}

/* Overlay YouTube Icon */
.youtube_icon {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  opacity: 0;
  transition: opacity 0.3s ease;
  cursor: pointer;
}

.item:hover .youtube_icon {
  opacity: 1;
}

.youtube_icon img {
  width: 50px;
}

.youtube_icon.active {
  background-color: transparent;
}

.youtube_icon.active img {
  opacity: 0;
}

/* ===== Tablet ===== */
@media (max-width: 992px) {
  .videos h4 {
    font-size: 26px;
  }
  .gallery {
    gap: 15px;
  }
  .caption {
    font-size: 13px;
  }
}

/* ===== Mobile ===== */
@media (max-width: 600px) {
  .videos h4 {
    font-size: 20px;
  }
  .gallery {
    grid-template-columns: repeat(2, 1fr); /* 2 per row */
    gap: 12px;
  }
  .youtube_icon img {
    width: 32px;
  }
  .caption {
    font-size: 12px;
  }
}


