.with-cover {
  background-image: url(); /* Add your image URL here */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  min-height: 100vh;
  margin: 0;
  padding: 0;
}

.overlay {
  background-color: rgba(255, 255, 255, 0.9);
  min-height: 100vh;
  padding: 1rem;
  margin: 0 2rem 2rem 2rem; /* No top margin */
}

body, html {
  font-family: monospace;
  color: #111;
  margin: 0;
  padding: 0;
}

header {
  border-top: 2px solid black;
  border-bottom: 2px solid black;
  padding: 1rem 0;
  margin-top: 0.5rem;   /* reduced spacing above the header */
  margin-bottom: 2rem;  /* keeps spacing below the header */
}

main {
  margin: 1rem; /* Adds breathing room around your main content */
}

nav a {
  color: black;
  text-decoration: none;
  margin-right: 1rem;
}



/* Hover Image Reveal on Link */
.hover-link-container {
  position: relative;
  display: inline-block;
  margin: 1rem 0; /* Spacing between hover-links if stacked */
}


.hover-image {
  position: fixed;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 500px; /* Adjust as needed */
  display: none;
  border: 1px solid black;
  background: white;
  z-index: 999; /* Make sure it appears above everything */
  box-shadow: 0 0 10px rgba(0,0,0,0.5); /* Optional: add a nice shadow */
}

/* Show image when hovering over the link */
.hover-link-container:hover .hover-image {
  display: block;
}

/* Grid of Preview Images */
.preview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin: 2rem; /* Adds spacing around the grid itself */
}

img {
  width: 100%;
  border: 1px solid black;
  object-fit: cover;
}

/* Black-and-white to color image hover effect */
.preview-grid img {
  width: 100%;
  object-fit: cover;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
  border: 1px solid black;
  margin-bottom: 1rem;
}

.preview-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.02);
}

/* Responsive embedded video styling */
.video-wrapper {
  position: relative; /* ← Fixes the display issue */
  padding-bottom: 56.25%; /* 16:9 aspect ratio */
  height: 0;
  overflow: hidden;
  max-width: 100%;
  margin: 2rem auto;
  border: 2px solid black;
  box-shadow: 5px 5px 0px black;
  background: white;
}

.video-wrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.preview-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-start;
  padding-left: 2rem; /* optional */
}

.preview-grid img {
  width: 400px;
  cursor: pointer;
  transition: transform 0.3s;
  filter: grayscale(100%);
  transition: filter 0.4s ease, transform 0.4s ease;
  border: 1px solid black;
  margin-bottom: 1rem;
}

.preview-grid img:hover {
  filter: grayscale(0%);
  transform: scale(1.05);
}


/* Make sure the lightbox covers the full screen and centers the image */
.lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  justify-content: center;
  align-items: center;
  z-index: 999;
  padding: 2rem;
  box-sizing: border-box;
}

/* Make sure the image scales down if needed but never overflows */
.lightbox img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: none;
  box-shadow: 0 0 20px white;
}

/* Close button in top right */
.close-lightbox {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  color: white;
  text-decoration: none;
  background: black;
  padding: 0.5rem 1rem;
  border: 2px solid white;
  z-index: 1000;
}


.lightbox .nav {
  position: absolute;
  top: 50%;
  font-size: 2.5em;
  color: white;
  cursor: pointer;
  user-select: none;
  padding: 10px;
  z-index: 10;
}
.lightbox .prev { left: 10px; transform: translateY(-50%); }
.lightbox .next { right: 10px; transform: translateY(-50%); }

.hover-links {
  margin-left: 2rem; /* Adjust indent here */
}

.hover-link-container {
  margin-bottom: 1rem; /* Optional spacing between links */
}

