/* ====================================
    Video Styles
==================================== */

.portfolio-video-gallery {
  width: 100%;
  max-width: var(--max-width-lg, 80rem);
  margin: 0 auto;
  text-align: center;
  padding: var(--spacing-sm, 1rem);
  margin-bottom: var(--spacing-lg, 2rem);
}
  
.featured-portfolio-video-gallery {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: var(--max-width-lg, 80rem);
  margin: 0 auto;
}

.featured-video-container {
  font-size: 0; /* Remove inline-block spacing */
  line-height: 0; /* Remove line-height spacing */
}
  
.featured-video-item {
  position: relative;
  display: block;
  cursor: pointer;
  width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0 auto;
  line-height: 0; /* Prevent extra space below */
  margin-bottom: 2rem;
}

body.dark-mode .featured-video-item {
  border: 1px solid var(--color-dark, #333);
}
  
.video-thumbnail,
.embedded-video {
  width: 100%;
  height: 100%; 
  object-fit: cover; 
}
  
.gallery-title {
  font-size: var(--font-size-xxl, 2rem);
  font-weight: var(--font-weight-bold, 700);
  margin-bottom: var(--spacing-sm, 1rem);
}
  
.gallery-description {
  font-size: var(--font-size-md, 1rem);
  color: var(--color-secondary, #666);
  margin-bottom: var(--spacing-lg, 2rem);
}

body.dark-mode .gallery-description {
  color: var(--color-off-white, #efefef);
}
  
.video-grid {
  display: flex;
  flex-direction: column; 
  gap: var(--spacing-lg, 2rem);
  max-width: var(--max-width-lg, 80rem);
  margin: 0 auto;
}

@media (max-width: 767px) {
  .video-grid {
    gap: 15px;
  }
}

@media (max-width: 1024px) {
  .video-grid {
    display: flex;
    flex-direction: column;
    align-items: center;  
  }
}
  
.row-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-sm);
}

.row-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-sm);
}

@media (max-width: 767px) {
  .row-2,
  .row-3 {
    grid-template-columns: 1fr; 
  }
}
  
.video-item {
  position: relative;
  cursor: pointer;
  aspect-ratio: 16 / 9; 
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius-sm, 0.25rem);
  padding: 1rem;
}
  
.video-item .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: var(--color-white, #fff);
  font-size: var(--font-size-xxl, 2rem);
  pointer-events: none; 
}

@media (max-width: 767px) {
  .video-item .play-button {
    font-size: 1.5rem;
  }
}
  
.video-thumbnail {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-grid .video-item .caption {
  font-family: var(--font-body, 'Roboto Serif', serif);
  margin-top: var(--spacing-lg, 2rem);
  font-size: var(--font-size-md, 1rem);
  text-align: center;
}
  

.featured-video-item {
  position: relative;
  cursor: pointer;
  width: 100%;
  height: 33.75; 
  width: 80rem;
  border-radius: var(--border-radius-sm, 0.25rem);
}

.featured-video-item img {

  width: 100%; /* Ensure it fits the container */
  vertical-align: top; /* Eliminate alignment spacing */
}

.featured-video-item .play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  color: white;
  pointer-events: none;
}



@media (max-width: 1024px) {
  .featured-video-item {
    width: auto;
    height: auto;
    aspect-ratio: 16 / 9;
    margin: 1em;
  }
}

.video-thumbnail {
  width: 100%;
  height: 100%;
  display: block;
  transition: opacity 0.3s ease;
  border-radius: var(--border-radius-sm, 0.25rem);
}

.video-item:hover .video-thumbnail {
  opacity: 0.8;
}

.featured-video-item:hover .video-thumbnail {
  opacity: 0.8;
}

.play-button {
  font-family: Arial, sans-serif; /* Use a fallback font */
  font-size: 3rem;
  color: white;
  background: none; /* Ensure no background covers it */
}

.embedded-video {
  width: 100%;
  height: 100%;
  border-radius: 5px;
}
