@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,500;0,700;1,400;1,500&display=swap');

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

:root {
  --bg: #c8d400;
  --pink: #e8007d;
  --font: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

html, body {
  background-color: var(--bg);
  color: var(--pink);
  font-family: var(--font);
  min-height: 100vh;
}

/* NAV */
nav {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 18px 40px 14px;
  border-bottom: 1.5px solid var(--pink);
}

.nav-title {
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--pink);
  text-decoration: none;
}

.nav-links {
  display: flex;
  gap: 28px;
  list-style: none;
}

.nav-links a {
  color: var(--pink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 400;
  letter-spacing: 0.03em;
}

.nav-links a:hover {
  text-decoration: underline;
}

/* MAIN CONTENT */
main {
  max-width: 1100px;
  margin: 0 auto;
  padding: 50px 40px 80px;
}

/* HOME */
.home-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: start;
  margin-top: 20px;
}

.home-bio {
  font-size: 0.95rem;
  line-height: 1.75;
  font-style: italic;
}

.home-image img {
  width: 100%;
  height: auto;
  display: block;
}

/* PORTFOLIO INDEX */
.portfolio-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 40px 0;
}

.portfolio-links a {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  font-weight: 400;
  color: var(--pink);
  text-decoration: none;
  line-height: 1.35;
  text-align: center;
  transition: opacity 0.15s;
}

.portfolio-links a:hover {
  opacity: 0.7;
  text-decoration: underline;
}

/* SECTION PAGES */
.section-header {
  max-width: 780px;
  margin-bottom: 50px;
}

.section-period {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  opacity: 0.85;
}

.section-text {
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
}

.section-year {
  font-size: 0.85rem;
  font-weight: 400;
  letter-spacing: 0.05em;
  margin-bottom: 24px;
  opacity: 0.85;
}

.section-description {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 780px;
  margin-bottom: 50px;
  font-style: italic;
}

.section-description p + p {
  margin-top: 1.2em;
}

/* CONTACT PAGE */
.contact-page {
  padding: 40px 0;
}

.contact-page h1 {
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 20px;
}

.contact-page p {
  font-size: 0.95rem;
  line-height: 1.8;
  font-style: italic;
}

.nav-prev, .nav-next {
  line-height: 1.6;
}

.nav-prev span, .nav-next span {
  font-style: italic;
}

/* GALLERY GRID */
.gallery {
  columns: 3;
  column-gap: 12px;
}

@media (max-width: 900px) {
  .gallery { columns: 2; }
}

@media (max-width: 580px) {
  .gallery { columns: 1; }
  nav { padding: 14px 20px; }
  main { padding: 30px 20px 60px; }
  .home-hero { grid-template-columns: 1fr; gap: 30px; }
}

.gallery-item {
  break-inside: avoid;
  margin-bottom: 12px;
}

.gallery-item img {
  width: 100%;
  height: auto;
  display: block;
  cursor: pointer;
  transition: opacity 0.2s;
}

.gallery-item img:hover {
  opacity: 0.88;
}

/* SECTION NAV */
.section-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 60px;
  padding-top: 20px;
  border-top: 1px solid var(--pink);
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.section-nav a {
  color: var(--pink);
  text-decoration: none;
}

.section-nav a:hover {
  text-decoration: underline;
}

/* ARCHIVE */
.archive-intro {
  font-size: 0.95rem;
  line-height: 1.8;
  max-width: 780px;
  margin-bottom: 50px;
  font-style: italic;
}

/* MARQUEE */
.marquee-wrapper {
  overflow: hidden;
  white-space: nowrap;
  margin: 40px 0;
  border-top: 1px solid var(--pink);
  border-bottom: 1px solid var(--pink);
  padding: 10px 0;
}

.marquee-text {
  display: inline-block;
  animation: marquee 20s linear infinite;
  font-size: 0.9rem;
  letter-spacing: 0.05em;
  font-style: italic;
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* CONTACT */
.contact-info {
  padding: 20px 0;
  font-size: 1.05rem;
  line-height: 2.4;
}

.contact-info a {
  color: var(--pink);
}

/* LIGHTBOX */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(200, 212, 0, 0.95);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.lightbox.active {
  display: flex;
}

.lightbox img {
  max-width: 92vw;
  max-height: 92vh;
  object-fit: contain;
  cursor: default;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 30px;
  font-size: 2rem;
  color: var(--pink);
  cursor: pointer;
  line-height: 1;
  font-weight: 700;
}
