/* Video wrapper container */
.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1500px;
  margin: auto;
  overflow: hidden;
}

/* Ensures the video maintains a 16:9 aspect ratio */
.media-container {
  position: relative;
  padding-top: 56.25%; /* 16:9 Aspect Ratio */
  width: 100%;
}

/* Poster image styling */
.poster-image,
#my-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
	
}

/* Initial state for the poster */
.poster-image {
  display: block;
  z-index: 1;
  visibility: visible;
  opacity: 1;
}

/* Video styling (hidden initially) */
#my-video {
  display: none;
  z-index: 1;
  visibility: hidden; /* Initially hidden */
  opacity: 0; /* Initially invisible */
  pointer-events: none; /* Prevent interaction when hidden */
  transition: opacity 0.5s ease; /* Smooth transition */
}

/* Play button styling */
.play-button {
  width: 80px;
  height: 80px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: #000;
  box-shadow: 0 0 12px rgba(255, 255, 255, 0.6);
  position: absolute;
  top: 50%; /* Centering the play button vertically */
  left: 50%; /* Centering the play button horizontally */
  transform: translate(-50%, -50%); /* Exact centering */
  border: none;
  z-index: 2; /* Ensure the play button stays on top */
  pointer-events: auto; /* Allow interaction with the play button */
  transition: opacity 0.3s ease; /* Smooth transition for hiding */
}

/* Pulse animation for the play button */
.play-button::before,
.play-button::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  border: 2px solid rgba(255, 255, 255, 0.6);
  animation: pulse 1.5s ease-out infinite;
  z-index: -1;
}

.play-button::after {
  animation-delay: 0.75s;
}

/* Keyframe for pulse animation */
@keyframes pulse {
  0% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(1.8);
    opacity: 0;
  }
}

/* Video and Play Button Transitions */
.video-wrapper.playing #my-video {
  visibility: visible; /* Show the video */
  opacity: 1; /* Fade the video in */
  display: block; /* Ensure the video is displayed */
  pointer-events: auto; /* Enable interaction with video controls */
	z-index:200;
}

.video-wrapper.playing .poster-image {
  visibility: hidden; /* Hide the poster */
  opacity: 0; /* Fade the poster out */
}

.video-wrapper.playing .play-button {
  opacity: 0; /* Fade out the play button */
  pointer-events: none; /* Prevent interaction with the play button once hidden */
}




