/* Lucy Begent Portfolio - Self-hosted version */

/* Zodiak from Fontshare (light weight for headers & menu) */
@import url('https://api.fontshare.com/v2/css?f[]=zodiak@300,400,700&display=swap');

:root {
  --bg: #f5f4f1;
  --text: #1a1a1a;
  --muted: #666;
  --accent: #000;
  --header-height: 80px;
  --max-width: 1400px;
  --gap: 24px;
  --radius: 4px;
  --font: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-heading: 'Zodiak', Georgia, 'Times New Roman', serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Header */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg);
  border-bottom: 1px solid rgba(0,0,0,0.06);
  height: var(--header-height);
  display: flex;
  align-items: center;
}

.header-inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Logo – supports image or text fallback */
.logo {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: #000;
  color: #fff;
}

.logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.logo span {
  display: block;
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 0.4px;
  text-align: center;
  line-height: 1.1;
  text-transform: uppercase;
}

.nav {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav a {
  font-family: var(--font-heading);
  font-size: 15px;
  font-weight: 300;          /* light weight as requested */
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}

.nav a:hover {
  opacity: 0.6;
}

.nav a.active {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.icon-instagram {
  display: flex;
  align-items: center;
  opacity: 0.85;
}

.icon-instagram:hover {
  opacity: 1;
}

/* Main content */
.main {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 40px 32px 80px;
}

/* Portfolio grid */
.portfolio-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--gap);
}

.project-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  background: #e8e4df;
  border-radius: var(--radius);
}

.project-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.project-card:hover img {
  transform: scale(1.03);
}

.project-card .overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.45) 0%, transparent 50%);
  display: flex;
  align-items: flex-end;
  padding: 24px;
  opacity: 0;
  transition: opacity 0.3s;
}

.project-card:hover .overlay {
  opacity: 1;
}

.project-card .title {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 18px;
  color: #fff;
  letter-spacing: 0.01em;
}

/* About page */
.about-layout {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 60px;
  padding-top: 20px;
}

.about-content h1 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 24px;
}

.about-content p {
  font-size: 17px;
  line-height: 1.65;
  margin-bottom: 18px;
  max-width: 520px;
}

.about-content p strong {
  font-weight: 600;
}

.about-images {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 40px;
}

.about-images img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
}

.contact-sidebar h2 {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.contact-block {
  margin-bottom: 36px;
}

.contact-block p {
  font-size: 15px;
  line-height: 1.55;
  margin-bottom: 8px;
}

.contact-block a {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.contact-block a:hover {
  opacity: 0.7;
}

/* Project detail page */
.back-link {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  display: inline-block;
  margin-bottom: 28px;
}

.back-link:hover {
  color: var(--text);
}

.project-header h1 {
  font-family: var(--font-heading);
  font-weight: 400;
  font-size: 32px;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
}

.project-header .meta {
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 24px;
}

.project-gallery {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: clamp(24px, 4vw, 64px) clamp(20px, 4vw, 60px);
  margin-top: 40px;
}

.gallery-item {
  position: relative;
  grid-column: 1 / -1;
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  color: inherit;
  background: #e8e4df;
  border: 0;
  border-radius: var(--radius);
  cursor: zoom-in;
}

.gallery-item--half,
.gallery-item--square {
  grid-column: span 6;
}

.gallery-item--center {
  grid-column: 3 / span 8;
}

.gallery-item--half {
  aspect-ratio: 0.93;
}

.gallery-item--square {
  aspect-ratio: 1;
}

.gallery-item--center {
  aspect-ratio: 1.36;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.25s ease;
}

.gallery-item--wide img {
  height: auto;
  max-height: 760px;
  object-fit: cover;
}

.gallery-item:hover img,
.gallery-item:focus-visible img {
  transform: scale(1.012);
}

.gallery-item:focus-visible {
  outline: 2px solid var(--text);
  outline-offset: 4px;
}

.gallery-item__expand {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 7px 10px;
  color: #fff;
  background: rgba(0, 0, 0, 0.68);
  border-radius: 3px;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0;
  transition: opacity 0.2s;
}

.gallery-item:hover .gallery-item__expand,
.gallery-item:focus-visible .gallery-item__expand {
  opacity: 1;
}

body.lightbox-open {
  overflow: hidden;
}

.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  grid-template-columns: minmax(48px, 8vw) minmax(0, 1fr) minmax(48px, 8vw);
  align-items: center;
  padding: 28px 0;
  color: #fff;
  background: rgba(10, 10, 10, 0.96);
}

.lightbox__figure {
  grid-column: 2;
  display: grid;
  justify-items: center;
  min-width: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 76px);
  object-fit: contain;
}

.lightbox__caption {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.08em;
  opacity: 0.7;
}

.lightbox__close,
.lightbox__previous,
.lightbox__next {
  color: #fff;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.lightbox__close {
  position: absolute;
  top: 14px;
  right: 20px;
  padding: 8px;
  font-size: 36px;
  line-height: 1;
}

.lightbox__previous,
.lightbox__next {
  padding: 18px;
  font-size: 52px;
  line-height: 1;
}

.lightbox__previous {
  grid-column: 1;
}

.lightbox__next {
  grid-column: 3;
}

.lightbox button:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Footer */
.footer {
  text-align: center;
  padding: 40px 20px;
  font-family: var(--font-heading);
  font-weight: 300;
  font-size: 13px;
  color: var(--muted);
}

/* Responsive */
@media (max-width: 900px) {
  .portfolio-grid {
    grid-template-columns: 1fr;
  }
  .about-layout {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .header-inner {
    padding: 0 20px;
  }
  .main {
    padding: 28px 20px 60px;
  }
  .nav {
    gap: 18px;
  }
  .project-gallery {
    display: block;
  }
  .gallery-item {
    margin-bottom: 20px;
    aspect-ratio: auto;
  }
  .gallery-item img,
  .gallery-item--wide img {
    width: 100%;
    height: auto;
    max-height: none;
  }
  .gallery-item__expand {
    display: none;
  }
  .lightbox {
    grid-template-columns: 48px minmax(0, 1fr) 48px;
  }
  .lightbox__previous,
  .lightbox__next {
    padding: 8px;
    font-size: 40px;
  }
}
