/* Body & font */
body {
  font-family: 'Montserrat', sans-serif;
  margin: 0;
  background: #ffffff; /* white background */
  color: #333;
}

/* Make sure the page and hero fill the viewport with no gaps */
html, body {
  height: 100%;
  background: transparent; /* avoid default white showing through */
}

/* Page-specific backgrounds
   - homepage: no background or borders, image should fill viewport and no scrollbars
   - photography page: keep white background for the gallery area */
body.home {
  background: none;
  color: #fff;
  overflow: hidden; /* prevent scrollbars on homepage */
}

/* Make the homepage hero truly full-bleed and ignore header padding */
body.home header {
  padding: 0;
}

body.home .hero {
  position: fixed;
  inset: 0; /* top:0; right:0; bottom:0; left:0 */
  width: 100vw;
  height: 100vh;
}

body.photography {
  background: #fff;
  color: #333;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 3rem; /* more spacing from edges */
}

header h1 {
  font-family: 'Playfair Display', serif; /* prettier, elegant font */
  font-size: 2.5rem;                      /* slightly smaller */
  font-weight: 400;                        /* lighter weight for elegance */
  letter-spacing: 1px;
  margin: 0;
}

/* Hero / fullscreen background with left-side vertical menu */
.hero {
  height: 100vh;
  min-height: 100vh;
  width: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: url('gallery/000000010003-2.jpg');
  background-size: cover;
  background-position: center center;
  color: #fff;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.15) 40%, rgba(0,0,0,0.0) 100%);
  pointer-events: none;
}

.side-menu {
  position: absolute;
  top: 2.5rem;
  left: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 5;
  font-size: 0.95rem;
  letter-spacing: 0.6px;
}

/* Top navigation button for photography page */
.top-nav {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  z-index: 6;
}

.home-btn {
  display: inline-block;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  backdrop-filter: blur(4px);
}

.home-btn:hover {
  background: rgba(255,255,255,0.18);
}

/* On photography page, invert the home button so it's visible on white */
.photography .home-btn {
  background: rgba(0,0,0,0.06);
  color: #111;
  backdrop-filter: none;
}

.photography .home-btn:hover {
  background: rgba(0,0,0,0.12);
}

.side-menu a {
  color: rgba(255,255,255,0.92);
  text-decoration: none;
  opacity: 0.95;
}

.side-menu a:hover {
  text-decoration: underline;
  opacity: 1;
}

.hero-brand {
  position: absolute;
  left: 2.5rem;
  bottom: 2rem;
  color: rgba(255,255,255,0.9);
  font-weight: 600;
  z-index: 5;
}

/* Mobile responsive for homepage hero elements */
@media (max-width: 768px) {
  .side-menu {
    top: 1.5rem;
    left: 1.5rem;
    gap: 0.4rem;
    font-size: 0.85rem;
  }
  
  .side-menu a {
    padding: 0.3rem 0;
  }
  
  .hero-brand {
    left: 1.5rem;
    bottom: 1.5rem;
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .side-menu {
    top: 1rem;
    left: 1rem;
    gap: 0.3rem;
    font-size: 0.75rem;
    letter-spacing: 0.4px;
  }
  
  .side-menu a {
    padding: 0.2rem 0;
  }
  
  .hero-brand {
    left: 1rem;
    bottom: 1rem;
    font-size: 0.75rem;
    font-weight: 500;
  }
}

/* Masonry-style gallery: same width, varying height */
.gallery {
  column-count: 3;
  column-gap: 1rem;    
  padding: 1.5rem 2rem;    /* increased padding from page edges */
}

/* Ensure gallery starts below the hero when present */
main { display:block; }

@media (max-height: 700px) {
  .hero { height: 60vh; }
}

.gallery img {
  width: 100%;           
  height: auto;          
  display: block;
  margin-bottom: 1rem; 
  cursor: pointer;
  opacity: 0;            
  transform: translateY(20px); 
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  animation: fadeIn 0.6s ease forwards;
}

/* Staggered fade-in: slight delay per image */
.gallery img:nth-child(1) { animation-delay: 0s; }
.gallery img:nth-child(2) { animation-delay: 0.1s; }
.gallery img:nth-child(3) { animation-delay: 0.2s; }
.gallery img:nth-child(4) { animation-delay: 0.3s; }
.gallery img:nth-child(5) { animation-delay: 0.4s; }
.gallery img:nth-child(6) { animation-delay: 0.5s; }
.gallery img:nth-child(7) { animation-delay: 0.6s; }
.gallery img:nth-child(8) { animation-delay: 0.7s; }
.gallery img:nth-child(9) { animation-delay: 0.8s; }
.gallery img:nth-child(10) { animation-delay: 0.9s; }
.gallery img:nth-child(11) { animation-delay: 1s; }
.gallery img:nth-child(12) { animation-delay: 1.1s; }

/* Prevent images from breaking between columns */
.gallery img {
  break-inside: avoid;
}

/* Hover effect with slight scale + shadow */
.gallery img:hover {
  transform: scale(1.06);
  box-shadow: 0 12px 30px rgba(0,0,0,0.25);
}

/* Fade-in keyframes */
@keyframes fadeIn {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive: adjust column count */
@media (max-width: 900px) {
  .gallery {
    column-count: 2;
    padding: 2rem 2rem;  /* smaller padding on tablets */
  }
}

@media (max-width: 600px) {
  .gallery {
    column-count: 2;
    column-gap: 0.75rem;
    padding: 1rem 1rem; /* more space on mobile edges */
  }
  
  .gallery img {
    margin-bottom: 0.75rem;
    break-inside: avoid;
    column-span: auto;
  }
}

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.8);
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.lightbox.show {
  display: flex;
  backdrop-filter: blur(3px); 
}

.lightbox-content {
  max-width: 90%;
  max-height: 90%;
  box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.close {
  position: absolute;
  top: 1rem;
  right: 2rem;
  font-size: 3rem;
  color: white;
  cursor: pointer;
}

