/* Video Gallery Container */
.video-gallery {
  /*display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 16px;*/
  justify-content: center;
  padding: 20px;
}

/* Individual Video Thumbnail */
.video-thumb {
  width: 100%;
}

.thumb-wrapper {
   position: relative;
    width: 100%;
    overflow: hidden;

    background-color: transparent !important;
    cursor: pointer;
}

.thumb-wrapper img {
    width: 100%;
    height: auto;
    display: block;
   
    object-fit: cover;
    transform: scale(1.4);
    background-color: transparent !important;
}

/* Overlay effect (only on image) */
.thumb-wrapper .overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.4);
  
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 1;
  pointer-events: none;
}

.thumb-wrapper:hover .overlay {
  opacity: 1;
}

/* Play Button */
.thumb-wrapper .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 64px;
  height: 64px;
  background-color: transparent;
  border: 2px solid white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s ease;
}

/* Triangle Play Icon */
.thumb-wrapper .play-button::before {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 16px solid white;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
}

/* Hover effect for play button */
.thumb-wrapper:hover .play-button {
  background-color: #f15822;
  border: 0px;
}

.video-thumb {
  position: relative;
  overflow: visible;
}

.video-thumb p {
  position: relative;

  width:fit-content;
  max-width: 90%;
  
  margin: 0;
  font-size: 16px !important;
  color: #000;
  /*background: #fff;*/
  padding: 20px 10px;
  
  box-sizing: border-box;
  transition: all 0.3s ease;
  z-index: 1;
  
}



/* Modal Styles */
.video_modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.85);
  align-items: center;
  justify-content: center;
  padding: 20px;
  box-sizing: border-box;
}

.video_modal-content {
  position: relative;
  width: 100%;
  max-width: 800px;
  background: transparent;
  
}

.video_modal-content iframe {
  width: 100%;
  height: 450px;
  border: none;
  
}

/* Close Button */
.close-btn {
  position: absolute;
  top: -30px;
  right: 0;
  font-size: 30px;
  color: white;
  cursor: pointer;
  z-index: 10;
}
.video-thumb p {
   position: relative;
   
    width: 100%;
    max-width: 100%;
    font-weight: 500;
    margin: 0;
    font-size: 15px !important;
    line-height: 1.5 !important;
    color: #000;
    background: #fff;
    padding: 10px 10px;
    box-sizing: border-box;
    transition: all 0.3s ease;
    z-index: 1;
}

.video-thumb p::before {
    position: absolute;
    content: '';
    width: 40px;
    height: 8px;
    left: 0;
    bottom: 0;
    background: #f15822;
    
}
.video-thumb p::after {
    position: absolute;
    content: '';
    width: 40px;
    height: 8px;
    right: 0;
    top: 0;
    background: #332e84;
    
}
