/* Base reset */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  background-color: #fff;
  color: #000;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Sidebar layout */
.header {
  width: 200px;
  padding: 40px 20px;
  background-color: #fff;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 15px;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 1000;
}

.links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}

.links a {
  color: #000;
  text-decoration: none;
  font-size: 1rem;
  transition: opacity 0.3s ease;
}

.links a:hover {
  opacity: 0.6;
}

/* Top-right floating title */
.top-corner-title {
  position: fixed;
  top: 20px;
  right: 30px;
  z-index: 999;
}

.top-corner-title p {
  font-size: 0.8rem;
  letter-spacing: 0.5px;
  color: #000;
  text-transform: lowercase;
  opacity: 0.9;
}

/* Gallery layout (desktop/tablet) */
.main-content {
  margin-left: 240px;
  padding: 40px;
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.gallery-row {
  display: flex;                 /* desktop: keep your current wrap layout */
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
}

.gallery-row img {
  width: 300px;
  height: auto;
  object-fit: cover;
  border-radius: 4px;
  cursor: pointer;
  transition: transform 0.3s ease, opacity 0.3s ease;
  /* loading is an HTML attribute, not CSS */
}

.gallery-row img:hover {
  transform: scale(1.03);
  opacity: 0.85;
}

/* Footer */
.footer {
  width: 100%;
  text-align: center;
  padding: 60px 0;
  margin-top: auto;
}

.footer img {
  max-width: 200px;
  height: auto;
  opacity: 0.9;
}

/* Lightbox styles */
.lightbox {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.lightbox img {
  max-width: 90%;
  max-height: 90%;
}

.lightbox.active {
  display: flex;
}

/* =========================
   Responsive (mobile grid)
   ========================= */
@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  /* Keep mobile sidebar behavior like before */
  .header {
    position: static;
    width: 100%;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    padding: 20px;
  }

  .main-content {
    margin-left: 0;
    padding: 20px;
  }

  /* Switch gallery to a real grid on phones */
  .gallery-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);  /* 2 per row on phones */
    gap: 12px;
    max-width: 100%;
  }

  /* Images fill their grid cells */
  .gallery-row img {
    width: 100%;
    height: auto;            /* keep aspect ratio */
    border-radius: 4px;
  }

  .footer img {
    max-width: 140px;
  }
}

/* Video thumbs inside index gallery */
.video-thumb {
  position: relative;
  display: block;
  line-height: 0;
}

.video-thumb img {
  display: block;
  width: 300px;   /* matches your photo size */
  height: auto;
  border-radius: 4px;
  box-shadow: 0 0 10px rgba(0,0,0,.2);
  transition: transform .3s ease, opacity .3s ease;
}

.video-thumb:hover img {
  transform: scale(1.03);
  opacity: 0.9;
}

.play-badge {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 2rem;
  color: white;
  text-shadow: 0 2px 8px rgba(0,0,0,.6);
  opacity: 0;
  transition: opacity .2s ease;
  pointer-events: none;
}

.video-thumb:hover .play-badge {
  opacity: 1;
}

/* Mobile: thumbnails shrink into the grid like photos */
@media (max-width: 768px) {
  .video-thumb img {
    width: 100%;
  }
}


/* Optional: 3 columns on bigger phones (uncomment if you want)
@media (min-width: 600px) and (max-width: 768px) {
  .gallery-row {
    grid-template-columns: repeat(3, 1fr);
  }
}
*/
