/* Portfolio layout: name/nav bar across the top, three-column photo grid below. Emerald/gold palette. */

:root {
  --text: #d4af37;
  --muted: #a68a2e;
  --bg: #0b3d2e;
  --photo-max: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a:hover { color: var(--muted); }

.topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  max-width: var(--photo-max);
  margin: 0 auto;
  padding: 30px;
}

.brand {
  font-family: "Archivo Black", sans-serif;
  font-size: 58px;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.topbar nav ul { list-style: none; }
.topbar nav li { display: inline-block; margin-left: 24px; }
.topbar nav a { color: var(--muted); }
.topbar nav a:hover { color: var(--text); }

/* Masonry via CSS columns, matching the template: 3 columns, ~48px gutters, natural aspect ratios. */
.gallery {
  columns: 3;
  column-gap: 48px;
  max-width: var(--photo-max);
  margin: 0 auto;
  padding: 10px 30px 80px;
}

.gallery img {
  display: block;
  width: 100%;
  height: auto;
  margin-bottom: 48px;
  break-inside: avoid;
}

footer {
  color: var(--muted);
  font-size: 12px;
  max-width: var(--photo-max);
  margin: 0 auto;
  padding: 0 30px 40px;
}

.gallery img { cursor: pointer; }

.lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(4, 24, 18, 0.95);
  z-index: 10;
  padding: 40px;
}

.lightbox.open { display: flex; }

.lightbox figure {
  max-width: 90vw;
  max-height: 90vh;
  text-align: center;
}

.lightbox figure img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
}

.lightbox figcaption {
  color: var(--text);
  margin-top: 14px;
  font-size: 14px;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  background: none;
  border: none;
  color: var(--text);
  font-size: 36px;
  cursor: pointer;
  line-height: 1;
}
.lightbox-close:hover { color: var(--muted); }

@media (max-width: 700px) {
  .gallery {
    columns: 2;
    column-gap: 20px;
    padding: 10px 20px 60px;
  }
  .gallery img { margin-bottom: 20px; }
  .brand { font-size: 36px; }
  .topbar nav li { margin-left: 0; margin-right: 16px; }
}
