@font-face {
  font-family: 'Cormorant';
  font-style: normal;
  font-weight: 300 700;
  font-display: swap;
  src: url('../fonts/cormorant-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 400 600;
  font-display: swap;
  src: url('../fonts/inter-var.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../fonts/spectral-400.woff2') format('woff2');
}

@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('../fonts/spectral-500.woff2') format('woff2');
}

:root {
  --serif: 'Cormorant', serif;
  --label: 'Spectral', serif;
  --sans: 'Inter', sans-serif;
  --ink: rgb(30, 30, 30);
  --paper: #ffffff;
  --muted: #8a8a8a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  height: 100vh;
  min-height: 560px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.hero__bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.2);
}

.hero__credit {
  position: absolute;
  top: 40px;
  left: 38px;
  margin: 0;
  color: #fff;
  font-family: var(--label);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 1.8px;
  line-height: 15px;
  text-transform: uppercase;
}

.hero__content {
  position: relative;
  z-index: 1;
  padding-left: 38px;
  max-width: 700px;
}

.hero__title {
  font-family: var(--serif);
  font-weight: 300;
  color: #fff;
  font-size: clamp(34px, 5.2vw, 64px);
  line-height: 1;
  letter-spacing: -0.64px;
  margin: 0 0 18px;
}

.hero__date {
  color: #fff;
  font-family: var(--label);
  font-size: 16px;
  font-weight: 400;
  letter-spacing: 1.65px;
  text-transform: uppercase;
  margin: 0;
}

.hero__cta {
  position: absolute;
  left: 38px;
  bottom: 60px;
  z-index: 1;
  color: #fff;
  text-decoration: none;
  font-family: var(--label);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 1.65px;
  text-transform: uppercase;
  line-height: 16px;
  border: 1px solid rgba(255,255,255,.7);
  padding: 12px 24px;
  transition: background .25s ease, color .25s ease;
}

.hero__cta:hover {
  background: #fff;
  color: var(--ink);
}

/* ---------- Toolbar ---------- */
.toolbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: #fff;
  border-bottom: 1px solid #eee;
}

.toolbar__title h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 19.8px;
  letter-spacing: 0.2px;
  color: var(--ink);
}

.toolbar__title span {
  font-family: var(--label);
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--muted);
}

.toolbar__actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.toolbar__icon {
  position: relative;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  color: var(--ink);
}

.toolbar__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.toolbar__icon polygon {
  fill: currentColor;
  stroke: none;
}

.toolbar__icon.is-active svg,
.lightbox__icon.is-active svg {
  fill: var(--ink);
}

.toolbar__hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
  padding: 4px;
}

.toolbar__hamburger svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
}

.mobile-menu {
  display: none;
  flex-direction: column;
  position: sticky;
  top: 78px;
  z-index: 9;
  background: #fff;
  border-bottom: 1px solid #eee;
  box-shadow: 0 8px 20px rgba(0,0,0,.06);
}

.mobile-menu.is-open { display: flex; }

.mobile-menu__link {
  background: none;
  border: none;
  border-top: 1px solid #f2f2f2;
  text-align: left;
  padding: 14px 24px;
  font-family: var(--label);
  font-size: 14px;
  color: var(--ink);
  text-decoration: none;
  cursor: pointer;
}

@media (max-width: 780px) {
  .toolbar__actions--desktop { display: none; }
  .toolbar__hamburger { display: block; }
}

/* ---------- Gallery grid (true brick masonry, JS-positioned) ---------- */
.gallery {
  position: relative;
  padding: 14px;
}

.gallery__item {
  position: absolute;
  box-sizing: border-box;
  padding: 3px;
  cursor: pointer;
  transition: top .25s ease, left .25s ease;
}

.gallery__item__inner {
  overflow: hidden;
  width: 100%;
  height: 100%;
  background: #f4f3f1;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  opacity: 0;
  transition: transform .4s ease, opacity .35s ease;
}

.gallery__item img[src] {
  opacity: 1;
}

.gallery__item:hover img {
  transform: scale(1.03);
}

@media (max-width: 640px) {
  .hero__content, .hero__credit, .hero__cta { padding-left: 24px; left: 24px; }
  .toolbar { padding: 14px 20px; }
  .hero__title { font-size: clamp(44px, 10vw, 60px); }
  .hero__date { font-size: 13px; }
  /* Push the title+date block up so it sits roughly between the center of
     the page's first quarter and first third, instead of dead center. */
  .hero { justify-content: flex-start; }
  .hero__content { margin-top: 15vh; }
}

/* ---------- Footer ---------- */
.site-footer {
  text-align: center;
  padding: 40px 0;
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Lightbox (single-photo view) ---------- */
.lightbox {
  position: fixed;
  inset: 0;
  background: #fff;
  display: none;
  flex-direction: column;
  z-index: 100;
}

.lightbox.is-open { display: flex; }

.lightbox__bar {
  height: 78px;
  flex: 0 0 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  border-bottom: 1px solid #f0f0f0;
}

.lightbox__back {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 28px;
  color: var(--ink);
  line-height: 1;
}

.lightbox__bar-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lightbox__icon {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink);
}

.lightbox__icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lightbox__icon polygon { fill: currentColor; stroke: none; }

.lightbox__stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px 90px;
  min-height: 0;
}

.lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 78px - 80px);
  object-fit: contain;
}

.lightbox__caption {
  margin: 0;
  font-family: var(--label);
  font-size: 12.5px;
  color: rgba(30,30,30,.6);
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--ink);
  cursor: pointer;
  font-size: 40px;
  line-height: 1;
  padding: 10px 16px;
}

.lightbox__nav--prev { left: 12px; }
.lightbox__nav--next { right: 12px; }

/* ---------- Slideshow ---------- */
.slideshow {
  position: fixed;
  inset: 0;
  background: #000;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
}

.slideshow.is-open { display: flex; }

.slideshow__img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  animation: slideshow-fade .6s ease;
}

@keyframes slideshow-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}

.slideshow__exit,
.slideshow__pause {
  position: absolute;
  background: rgba(255,255,255,.1);
  border: none;
  color: #fff;
  cursor: pointer;
  line-height: 1;
}

.slideshow__exit {
  top: 24px;
  right: 32px;
  font-size: 26px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
}

.slideshow__pause {
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 12px;
  padding: 12px 16px;
  border-radius: 20px;
}

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 32px;
  transform: translateX(-50%) translateY(20px);
  background: var(--ink);
  color: #fff;
  font-family: var(--sans);
  font-size: 13px;
  padding: 12px 22px;
  border-radius: 4px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease, transform .25s ease;
  z-index: 300;
  max-width: 90vw;
  text-align: center;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}
