/* Basic Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  color: #222;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 10px;
  min-height: 100vh;
}

/* Header */
.header {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-size: 14;
  font-weight: 400;
}

.header a {
  text-decoration: none;
  color: #000;
  margin-right: 20px;
}

.logo {
  font-size: 30px;
  font-weight: 450;
  text-transform: lowercase;
}

nav {
  display: flex;
  gap: 20px; /* Space between each nav link */
}

nav a {
  text-decoration: none;
  color: #000;
  font-size: 16px;
  position: relative;
}

nav a::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: black;
  opacity: 0;
  transition: opacity 0.3s ease;
}

nav a:hover::after {
  opacity: 1;
}

/* Main Content */
.main-content {
  width: 100%;
  padding: 0px 20px;
  text-align: center;
  margin-top: 40px;
  flex-grow: 1;
  margin-bottom: 10px;
}

.main-content h1 {
  font-weight: 600;
  font-size: 45px;
  margin-bottom: 20px;
}

.video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1200px;
  aspect-ratio: 16 / 9; /* Keep 16:9 aspect ratio */
  background-color: #000;
  overflow: hidden;
  margin-bottom: 20px;
  margin-left: auto;
  margin-right: auto;
}

.video-wrapper video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover; /* Maintain aspect ratio without stretching */
}

.video-preview {
  pointer-events: auto;
}

.video-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark overlay */
  opacity: 0; /* Initially hidden */
  transition: opacity 0.3s ease;
  pointer-events: none; /* Allow clicks to pass through to video */
}

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

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

.video-preview.playing + .video-overlay {
  display: none;
}

.video-preview.clickable {
  cursor: pointer;
}

.play-icon {
  pointer-events: none; /* Allow clicks to pass through to the overlay */
}

.video-preview.playing {
  cursor: auto;
}


/* Share Button */
.share-button {
  background-color: black;
  color: white;
  padding: 10px 20px;
  font-size: 14px;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}

/* Footer */
.footer {
  width: 100%;
  max-width: 1000px;
  text-align: left;
  font-size: 14px;
  color: #555;
  margin-top: auto;
}

.footer a {
  color: #000;
  text-decoration: none;
}

/* Burger Menu - Hidden by Default */
.burger-menu {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

.burger-menu span {
  font-size: 15px;
}

/* Gallery */

.gallery-container{
  max-width: 85%;
  margin:20px auto;
}

.gallery-container .image-container{
  columns:3 350px;
  gap:15px;
}

.gallery-container .image-container img{
  margin-bottom: 10px;
  border-radius: 5px;
  width: 100%;
}

.gallery-container .image-container img:hover {
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.7);
}

/* Lightbox overlay */
.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Dark background */
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1000;
}

/* Show overlay */
.lightbox-overlay.show {
  opacity: 1;
  visibility: visible;
}

/* Lightbox image styling */
.lightbox-image {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5);
  border-radius: 8px;
}

/* Close button */
.close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  font-size: 24px;
  color: white;
  cursor: pointer;
  transition: color 0.3s ease;
}

.close-button:hover {
  color: #ff6666;
}

/* move to another css file gallery? */

/* Responsive Styles */
@media (max-width: 1000px) {
  .header {
    padding: 20px 10px;
  }

  .main-content h1 {
    font-weight: 600;
    font-size: 35px;
    margin-bottom: 20px;
  }

  .nav-links {
    display: none; /* Hide links initially */
    flex-direction: column;
    position: absolute;
    top: 60px;
    right: 20px;
    background: white;
    padding: 10px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
    gap: 10px;
    z-index: 1;
  }

  /* Show Burger Menu Icon */
  .burger-menu {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  /* Show the Nav Links when Active */
  .nav-links.active {
    display: flex;
  }
}