/* ===================== Reset & base ===================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #f5f4f2;
  --card: #ffffff;
  --accent: #c49a88;       /* dusty rose, like the "Home" link */
  --ink: #1f1f1f;
  --rule: #c49a88;
  --radius: 10px;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

html { scroll-behavior: smooth; }

body {
  font-family: Georgia, "Times New Roman", serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
}


img { max-width: 100%; display: block; }

/* ===================== Header ===================== */
.site-header { background: var(--card); box-shadow: var(--shadow); position: relative; z-index: 10; }

.header-inner { text-align: center; padding: 2.5rem 1rem 1.25rem; }

.site-title {
  font-family: "Alex Brush", cursive;
  font-weight: 400;
  font-size: clamp(2.75rem, 8vw, 4.5rem);
}
.site-title a { color: var(--ink); text-decoration: none; }

.site-tagline { font-size: 0.95rem; color: #444; margin-top: 0.25rem; }

/* ===================== Nav ===================== */
.navbar { border-top: 1px solid #eee; position: relative; }

.nav-menu {
  list-style: none;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  padding: 1.1rem 1rem;
}
.nav-menu a {
  text-decoration: none;
  color: var(--ink);
  font-family: "Playfair Display", Georgia, serif;
  font-weight: 700;
  font-size: 1.05rem;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--accent); }

/* Hamburger — hidden on desktop */
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.6rem;
  margin: 0.35rem 0;
}
.hamburger span {
  display: block;
  width: 26px;
  height: 2.5px;
  background: var(--ink);
  margin: 5px auto;
  transition: transform 0.25s ease, opacity 0.25s ease;
}
.hamburger.open span:nth-child(1) { transform: translateY(7.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7.5px) rotate(-45deg); }

/* ===================== Layout ===================== */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 2rem;
  max-width: 1200px;
  margin: 2rem auto;
  padding: 0 1.25rem;
  align-items: start;
}

.gallery-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem;
}

/* Masonry-style gallery */
.gallery {
  column-count: 3;
  column-gap: 1.25rem;
}
.gallery-item { break-inside: avoid; margin-bottom: 1.25rem; }
.gallery-item img {
  width: 100%;
  cursor: pointer;
  border-radius: 4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.gallery-item img:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

/* ===================== Sidebar cards ===================== */
.side-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
  margin-bottom: 2rem;
}

.side-heading {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.1rem;
}
.side-heading::before, .side-heading::after {
  content: "";
  flex: 1;
  border-top: 2px solid var(--rule);
}

.newsletter-box { text-align: center; }
.newsletter-box h3 {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
}
.newsletter-note { font-size: 0.9rem; color: #555; margin-bottom: 1rem; }

/* Style the form EmailOctopus injects */
.email-octopus-form input[type="email"],
.email-octopus-form input[type="text"] {
  width: 100%;
  max-width: 260px;
  padding: 0.65rem 0.75rem;
  margin: 0.3rem 0;
  border: 1px solid #ccc;
  border-radius: 4px;
  font-family: inherit;
  font-size: 1rem;
}
.email-octopus-form button[type="submit"],
.email-octopus-form input[type="submit"] {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 4px;
  padding: 0.65rem 1.5rem;
  margin-top: 0.5rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1rem;
  cursor: pointer;
  transition: opacity 0.2s ease;
}
.email-octopus-form button[type="submit"]:hover,
.email-octopus-form input[type="submit"]:hover { opacity: 0.85; }

/* ===================== Lightbox ===================== */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.35s ease;
}

/* Fixes the hidden attribute being overridden by display: flex */
.lightbox[hidden] { display: none; }

/* Optional belt-and-braces: lightbox elements never block clicks when hidden */
.lightbox[hidden] * { display: none; }

.lightbox.visible { opacity: 1; }

.lb-img {
  max-width: 88vw;
  max-height: 82vh;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}

.lb-nav, .lb-close {
  position: absolute;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 2rem;
  line-height: 1;
  border-radius: 50%;
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
  touch-action: manipulation;
}
.lb-nav:hover, .lb-close:hover { background: rgba(255, 255, 255, 0.28); }

.lb-close { top: 18px; right: 18px; }
.lb-prev { left: 18px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 18px; top: 50%; transform: translateY(-50%); }

.lb-caption {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #ddd;
  font-size: 0.95rem;
}

/* Prevent body scroll while lightbox open */
body.no-scroll { overflow: hidden; }

/* ===================== Footer ===================== */
.site-footer {
  background: #ffffff;
  text-align: center;
  padding: 1.5rem;
  font-size: 0.85rem;
  color: #666;
  border-top: 1px solid #eee;
}

/* ===================== Responsive ===================== */
@media (max-width: 900px) {
  .layout,
  .layout:not(.layout-single) {
    grid-template-columns: 1fr;
  }
  .gallery { column-count: 2; }
}

@media (max-width: 700px) {
  .gallery { column-count: 2; column-gap: 0.9rem; }
  .gallery-item { margin-bottom: 0.9rem; }

  /* Hamburger shows, menu collapses */
  .hamburger { display: block; }

  .nav-menu {
    flex-direction: column;
    align-items: center;
    gap: 0;
    max-height: 0;
    overflow: hidden;
    padding: 0;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  .nav-menu.open { max-height: 300px; padding: 1rem 0; }
  .nav-menu li { width: 100%; text-align: center; padding: 0.6rem 0; }
}

@media (max-width: 480px) {
  .gallery { column-count: 1; }
  .lb-prev { left: 8px; }
  .lb-next { right: 8px; }
  .lb-nav, .lb-close { width: 44px; height: 44px; font-size: 1.6rem; }
}

.lb-caption {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  color: #eee;
  font-size: 0.95rem;
  max-width: 80vw;
  text-align: center;
}
.lb-caption strong {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.1rem;
  letter-spacing: 0.02em;
}

.lb-counter {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: #aaa;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
}

.footer-links a {
  color: #666;
  text-decoration: none;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  margin: 0 0.75rem;
}
.footer-links a:hover { color: var(--accent); }

.footer-signature {
  font-family: "Alex Brush", cursive;
  font-size: 1.4rem;
  color: var(--ink);
  margin-bottom: 0.25rem;
}

.copyright {
  font-size: 0.78rem;
  color: #888;
  margin-top: 0;
}

/* Global link styling — prose links only */
main a,
.page-layout a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s ease;
}
main a:hover {
  color: #a87f6e;
  text-decoration: underline;
}


.store-button { color: #fff; }