:root {
  --bg: #fbfaf8;
  --text: #111;
  --muted: #555;
}

/* Reset & global */
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body {
  height: 100%;
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  color: var(--text);
  background: var(--bg);
  line-height: 1.5;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

/* Header */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255,255,255,0.95);
  border-bottom: 1px solid #ddd;
  padding: 28px 0; /* taller header */
  height: auto;
}
.header-inner {
  position: relative; 
  display: flex;
  align-items: center;
  justify-content: flex-start; /* left-align nav items */
  padding: 0 20px;
}
.site-title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  font-family: 'Josefin Sans', sans-serif;
  font-size: 52px;
  font-weight: 100;
  text-align: center;
  z-index: 1;
}
.header-inner .gallery-title { font-size: 20px; font-weight: 200; }
.site-nav {
  margin-left: auto;
  display: flex;
  gap: 16px;
}

.site-nav .contact-link {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-weight: 250; /* match your home page captions */
  text-transform: none; /* ensures normal capitalization */
  letter-spacing: 1px;
}

.site-nav a {
  font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial;
  font-weight: 250; /* match home page captions */
  text-transform: none; /* normal capitalization */
  letter-spacing: 1px;
}


.nav-toggle { display: none; font-size: 28px; background: none; border: none; cursor: pointer; }
.mobile-nav { display: none; flex-direction: column; gap: 12px; text-align: center; margin-top: 10px; }
.mobile-nav.open { display: flex; }

/* Main content */
.site-main {
  padding: 100px 0 20px; /* tighter top/bottom spacing */
  width: 100vw;
}

/* Home gallery */
.home-gallery-wrapper {
  display: flex;
  justify-content: center;
  padding: 10px 0 10px;
}
.home-gallery {
  display: flex;
  gap: 40px;
  flex-wrap: wrap;
  justify-content: center;
  width: 100%;
}
.home-item-wrapper {
  flex: 1 1 300px;
  max-width: 450px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.home-item-wrapper img {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0,0,0,0.06);
  border-radius: 0;
  height: 70vh;
  max-height: 85vh;
}
.home-item-caption {
  margin-top: 12px;
  font-size: 17px;
  font-weight: 250;
  text-align: center;
  text-transform: uppercase; /* makes all letters capital */
  letter-spacing: 1px;
}

/* Gallery pages */
.list .site-main {
  padding-top: 60px; /* bring gallery closer to title */
}

.gallery-flex {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 0 10px;
  scroll-behavior: smooth;
  width: 100vw;
  align-items: center; /* vertically center gallery images */
  height: 80vh; /* optional fixed scroll window height */
}
.gallery-item img {
  width: auto;       
  max-height: 85vh;
  object-fit: contain;
  flex-shrink: 0;
  border-radius: 0;
  opacity: 0;
  animation: fadeIn 0.8s forwards;
  margin-top: 0; /* remove extra top gap */
  margin-bottom: 0;
}
.gallery-flex::-webkit-scrollbar { display: none; }

/* Contact page */
.contact-page {
  padding: 60px 20px;
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.contact-page img {
  max-width: 100%;
  height: auto;
  margin-bottom: 24px;
  border-radius: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.contact-intro {
  font-size: 18px;
  margin-bottom: 24px;
  color: #333;
}
.contact-details {
  font-size: 16px;
  line-height: 1.8;
}

.contact-page h1 {
  font-family: 'Josefin Sans', sans-serif; /* match gallery page headers */
  font-weight: 400;                        /* match gallery header weight */
  font-size: 28px;
  margin-bottom: 24px;
  text-align: center;
}

.contact-page hr {
  border: none;
  border-top: 1px solid #333;
  width: 60%;        /* adjust width to match image roughly */
  max-width: 600px;  /* match your contact-page max width */
  margin: 24px auto; /* spacing above/below */
}

.contact-details a { text-decoration: underline; }


/* Lightbox */
.lightbox {
display: none;
  position: fixed;
  top: 80px; /* adjust to match header height */
  left: 0;
  width: 100%;
  height: calc(100% - 80px); /* reduce height by header height */
  background-color: rgba(0,0,0,0.85);
  justify-content: center;
  align-items: center;
  padding: 20px;
}
.lightbox-img {
  max-width: 90%;
  max-height: 90%;
  border-radius: 0;
  box-shadow: 0 8px 24px rgba(0,0,0,0.6);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 30px;
  color: #fff;
  font-size: 36px;
  font-weight: bold;
  cursor: pointer;
}

/* Footer */
.site-footer {
  padding: 40px 20px;
  text-align: center;
  color: var(--muted);
  font-size: 14px;
}

/* Animations */
@keyframes fadeIn { to { opacity: 1; } }

/* Responsive tweaks */
@media (max-width: 768px) {
  .site-title { font-size: 40px; }
  .home-item-wrapper img { height: 55vh; }
  .gallery-item img { max-height: 55vh; }
}
@media (max-width: 480px) {
  .site-title { font-size: 32px; }
  .site-nav a { font-size: 15px; }
  .home-item-wrapper { flex: 1 1 100%; max-width: 100%; }
  .home-item-wrapper img { height: 45vh; }
  .gallery-item img { max-height: 45vh; }
  .home-item-caption { font-size: 15px; }
}
