/* Separate CSS file: styles.css */
body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  color: #acaaaf; /* Default font color for body text */
  max-width: 1280px; /* Maximum width for the entire site */
  margin-left: auto;
  margin-right: auto; /* Center the content horizontally */
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
}

.logo {
  text-align: center;
  margin-top: 10px;
}

.logo img {
  max-width: 100%;
  height: auto;
}

.services {
  text-align: center;
  font-size: 1em;
  margin: 10px 0;
}

.hero-video {
  position: relative;
  width: 100%;
  max-width: 1280px; /* Maximum width */
  max-height: 720px; /* Maximum height */
  height: calc(100vh - 40px); /* Full height minus padding, but no more than 1080px */
  margin: 20px auto; /* Center and add padding around the video */
  overflow: hidden;
  border: 0px solid #ccc; /* Optional: adds a border around the video */
}

.hero-video video {
  width: 100%;
  height: 100%;
  object-fit: cover; /* Ensures the video covers the area without distortion */
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  padding: 0px;
  width: 100%; /* Ensure grid matches the container width */
}

.video-thumbnail {
  position: relative;
  width: 100%;
  overflow: hidden;
  cursor: pointer;
  background-color: white; /* Set white background behind the thumbnail */
  transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

.video-thumbnail img,
.video-thumbnail video {
  width: 100%;
  height: auto;
  object-fit: cover;
  opacity: 1; /* Set initial opacity to 30% */
  transition: opacity 0.3s ease; /* Smooth transition for opacity */
}

.video-thumbnail:hover img,
.video-thumbnail:hover video {
  opacity: 1; /* Fully opaque on hover */
}

/* Only show overlay on hover IF not clicked */
.video-thumbnail:not(.played):hover .video-overlay {
  opacity: 1;
}

.video-thumbnail.played .video-overlay {
  opacity: 0 !important;
  pointer-events: none;
}



.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7); /* Slightly darker overlay */
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease-in-out;
  color: white; /* Set text color to black */
  font-size: 33px;
	text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  text-align: center;
  z-index: 1; /* Ensure overlay is above image */
}


.video-thumbnail:hover .video-overlay {
  opacity: 1;
}


/* Hide overlay once video is activated */
.video-thumbnail.played .video-overlay {
  opacity: 0;
  pointer-events: none; /* prevents overlay from blocking video controls */
}

/* Optional: make thumbnail fully opaque once playing */
.video-thumbnail.played img,
.video-thumbnail.played video {
  opacity: 1;
}
