body {
  margin: 0;
  padding: 2rem;
  background: #f5f1ea;
  color: #222;
  font-family: Georgia, serif;
}
body {
  max-width: 1200px;
  margin: 0 auto;
  padding: 3rem 2rem;
}
h1 {
  font-size: 2.5rem;
  margin: 0 0 0.5rem;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  grid-auto-rows: 180px;
  grid-auto-flow: dense;
  gap: 1rem;
  margin-top: 2rem;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.big  { grid-column: span 2; grid-row: span 2; }
.wide { grid-column: span 2; }
.tall { grid-row: span 2; }

nav {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

nav a {
  color: #222;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

nav a:hover {
  border-bottom-color: #c1121f;
}
.photo-gallery {
  columns: 250px;
  column-gap: 1rem;
  margin-top: 2rem;
}

.photo-gallery img {
  width: 100%;
  height: auto;
  display: block;
  margin-bottom: 1rem;
  break-inside: avoid;
}
body { font-family: 'Inter', sans-serif; }
h1   { font-family: 'Cormorant Garamond', serif; font-size: 3.5rem; letter-spacing: 0.02em; }
.gallery img, .photo-gallery img {
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.gallery img:hover, .photo-gallery img:hover {
  transform: scale(1.02);
  opacity: 0.92;
}
.seal {
  width: 48px;
  height: 48px;
  background: #c1121f;
  color: #f5f1ea;
  display: grid;
  place-items: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.8rem;
  font-weight: 700;
}
.gallery img, .photo-gallery img { cursor: zoom-in; }

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(20, 18, 15, 0.92);
  align-items: center;
  justify-content: center;
  z-index: 1000;
}
.lightbox.open { display: flex; }

.lb-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
}

.lightbox button {
  position: absolute;
  background: none;
  border: none;
  color: #f5f1ea;
  font-size: 2.5rem;
  cursor: pointer;
  padding: 1rem;
}
.lightbox button:hover { color: #c1121f; }
.lb-close { top: 0.5rem; right: 1rem; }
.lb-prev  { left: 0.5rem; }
.lb-next  { right: 0.5rem; }

.collage {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 2rem;
}

.collage img {
  --r: 1.5;  /* set automatically by the script */
  --s: 1;    /* size multiplier */
  flex-grow: calc(var(--r) * var(--s) * 100);
  flex-basis: calc(var(--r) * var(--s) * 200px);
  height: auto;
  max-width: 100%;
  cursor: zoom-in;
}

.collage img.lg { --s: 1.5; }
.collage img.sm { --s: 0.7; }
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.door img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block; }

.collage::after {
  content: '';
  flex-grow: 100000;
}
