/* Alexrivera.vegas—neilmclean.com—portfolio code */
/* Video Player Class */
/* Copyright 2024 Estebagel */

/* General styles for the video gallery container */
.video-gallery {
  display: flex;
  flex-wrap: nowrap;
  gap: 20px;
}

/* Horizontal layout for desktop */
@media screen and (min-width: 768px) {
  .video-gallery {
    flex-direction: row;
    height: 100%;
/*    overflow-x: auto;*/ /*Perhaps I need to make the function to enque after the entire gallery is rendered.*/
  }

  .video-container {
    flex: 0 0 auto;
    width: 1030px;
    height: 100%;
    padding: 10px;
  }

  .video-wrapper,
  .elementor-shortcode {
    height: 100%;
  }
}

/* Vertical layout for mobile */
@media screen and (max-width: 767px) {
  .elementor-widget-shortcode {
    width: 100%; /* Always use the full width of the screen */
    padding: 0; /* Remove any extra padding if necessary */
  }

  .video-gallery {
    flex-direction: column;
    align-items: center;
  }

  .video-container {
    width: 100%;
    padding: 5px 0;
  }

  .video-title {
    padding-left: 10px;
  }

  .video-description {
    padding-left: 15px;
  }
}

/* Responsive Video Player */
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* Aspect ratio for 16:9 videos */
  height: 0;
  max-width: 100%;
  background: #000;
  z-index: 1;
  transition: transform 0.2s ease-in-out;
  cursor: pointer; /* Optional: indicates interactivity */

}

/* Slight zoom on hover */
/*.video-wrapper:hover {
  transform: scale(1.02);
}*/

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  /*width: 100%; */ /* Ensures full width but might not be needed */
  height: 100%;
  pointer-events: none;
}

/* Video title and description */
.video-title {
  font-size: 2em;
  font-weight: bold;
  margin: 10px 0 5px 0;
}

.video-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 15px;
}

/* Basic Responsiveness */
@media screen and (max-width: 768px) {
  .video-title {
    font-size: 1.8em;
  }

  .video-description {
    font-size: 1em;
  }
}