/* S.B. WALKER — Static Site */

@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:wght@400;500&family=Raleway:wght@300;400&display=swap');

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

html, body {
  height: 100%;
}

body {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 300;
  color: #333;
  background: #fff;
  line-height: 1.6;
}

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

/* ─────────────────────────────────────────
   LAYOUT: fixed sidebar + scrollable content
───────────────────────────────────────── */

.layout {
  display: flex;
  min-height: 100vh;
}

/* ─────────────────────────────────────────
   SIDEBAR
───────────────────────────────────────── */

.sidebar {
  width: 340px;
  flex-shrink: 0;
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  padding: 48px 40px 44px;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 10;
}

.site-title {
  font-family: 'Raleway', 'Helvetica Neue', Helvetica, sans-serif;
  font-size: 26px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: #2b2b2b;
  margin-bottom: 56px;
  display: block;
  line-height: 1.2;
}

.site-title:hover {
  color: #222;
}

/* ── NAVIGATION ── */

nav {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.nav-item {
  display: block;
  font-size: 14px;
  font-weight: 300;
  letter-spacing: 0.1em;
  color: #3e3e3e;
  padding: 10px 0;
  cursor: pointer;
  transition: color 0.15s;
}

.nav-item:hover {
  color: #7a1a1a;
}

.nav-item.active {
  color: #b9b9b9;
}

.nav-item.active:hover {
  color: #b9b9b9;
}

/* Sub-items under Projects */
.nav-sub {
  display: flex;
  flex-direction: column;
  padding-left: 10px;
  margin-bottom: 6px;
}

.nav-sub .nav-item {
  font-size: 14px;
  color: #3e3e3e;
  padding: 5px 0;
}

.nav-sub .nav-item:hover {
  color: #7a1a1a;
}

.nav-sub .nav-item.active {
  color: #b9b9b9;
}

.nav-sub .nav-item.active:hover {
  color: #b9b9b9;
}

/* Gap above News */
.nav-gap {
  height: 28px;
}

/* ── INSTAGRAM ICON ── */

.instagram-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #7a1a1a;
  margin-top: 28px;
  color: #fff;
  transition: background 0.15s;
}

.instagram-icon:hover {
  background: #5e1313;
}

.instagram-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: #fff;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── GALLERY CONTROLS in sidebar ── */

.gallery-controls {
  margin-top: auto;
  padding-top: 40px;
}

.gallery-controls .slide-nav {
  font-size: 13px;
  letter-spacing: 0.1em;
  font-weight: 400;
  color: #333;
  margin-bottom: 14px;
}

.gallery-controls .slide-nav span {
  cursor: pointer;
  color: #333;
}

.gallery-controls .slide-nav span:hover {
  color: #7a1a1a;
}

.gallery-controls .slide-nav .sep {
  margin: 0 6px;
  color: #999;
  cursor: default;
}

.thumb-toggle {
  font-size: 12px;
  letter-spacing: 0.1em;
  color: #999;
  font-weight: 400;
  cursor: pointer;
  text-transform: uppercase;
}

.thumb-toggle:hover {
  color: #555;
}

/* ─────────────────────────────────────────
   MAIN CONTENT AREA
───────────────────────────────────────── */

.content {
  margin-left: 340px;
  flex: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ─────────────────────────────────────────
   GALLERY SLIDESHOW
───────────────────────────────────────── */

.slideshow {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 70px 30px 40px;
  min-height: 100vh;
}

.slide {
  display: none;
  width: 100%;
  height: 100%;
}

.slide.active {
  display: flex;
  align-items: center;
  justify-content: center;
}

.slide img {
  max-width: 100%;
  max-height: calc(100vh - 60px);
  width: auto;
  height: auto;
  display: block;
  object-fit: contain;
}

/* ── THUMBNAIL GRID ── */

.thumb-grid {
  display: none;
  grid-template-columns: 1fr 1fr;
  gap: 22px;
  align-items: start;
  padding: 40px 70px 60px 40px;
}

.thumb-grid.open {
  display: grid;
}

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

.thumb-grid img:hover {
  opacity: 0.8;
}

/* ─────────────────────────────────────────
   HOME PAGE
───────────────────────────────────────── */

.home-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 70px 80px;
}

.home-block {
  margin-bottom: 80px;
}

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

.home-block .caption {
  font-size: 12.5px;
  color: #777;
  margin-top: 12px;
  letter-spacing: 0.03em;
  line-height: 1.7;
}

.home-block .caption em {
  font-style: italic;
}

.home-block .caption a {
  color: #888;
}

.home-block .caption a:hover {
  color: #7a1a1a;
}

.home-block .body-text {
  font-size: 12px;
  color: #555;
  margin-top: 12px;
  line-height: 1.9;
  max-width: 600px;
}

.polaroid-venues {
  font-size: 11px;
  color: #888;
  margin-top: 12px;
  line-height: 2.1;
}

.polaroid-venues a {
  color: #888;
}

.polaroid-venues a:hover {
  color: #7a1a1a;
}

/* ─────────────────────────────────────────
   EXHIBITIONS
───────────────────────────────────────── */

.exhibitions-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 60px 70px 80px;
}

.exhibition-block {
  margin-bottom: 80px;
}

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

.exhibition-block .caption {
  font-size: 12.5px;
  color: #777;
  margin-top: 12px;
  line-height: 1.7;
}

.exhibition-block .caption em {
  font-style: italic;
}

.exhibition-block .virtual-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #7a1a1a;
}

.exhibition-block .virtual-link:hover {
  opacity: 0.7;
}

.video-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ─────────────────────────────────────────
   ABOUT
───────────────────────────────────────── */

.about-content {
  padding: 60px 40px 80px;
  max-width: 640px;
}

.about-content p {
  font-size: 13.5px;
  line-height: 1.95;
  color: #444;
  margin-bottom: 28px;
}

.about-content em {
  font-style: italic;
}

.about-content h2 {
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #aaa;
  margin-bottom: 10px;
  margin-top: 36px;
}

.about-content a {
  color: #444;
}

.about-content a:hover {
  color: #7a1a1a;
}

/* ─────────────────────────────────────────
   NEWS
───────────────────────────────────────── */

.news-content {
  padding: 60px 40px 80px;
  max-width: 760px;
}

.news-item {
  border-top: 1px solid #e8e8e8;
  padding: 24px 0;
}

.news-item:last-child {
  border-bottom: 1px solid #e8e8e8;
}

.news-item .date {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #bbb;
  margin-bottom: 6px;
}

.news-item h2 {
  font-size: 13px;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.5;
  color: #333;
}

.news-item h2 a:hover {
  color: #7a1a1a;
}

.news-item img {
  display: block;
  max-width: 100%;
  max-height: 240px;
  object-fit: cover;
  margin-top: 14px;
}

.news-item .excerpt {
  font-size: 11.5px;
  color: #777;
  margin-top: 10px;
  line-height: 1.8;
}

.news-item .excerpt em {
  font-style: italic;
}

/* ─────────────────────────────────────────
   PROJECT DESCRIPTION
───────────────────────────────────────── */

.project-description {
  font-size: 11.5px;
  color: #888;
  line-height: 1.9;
  padding: 30px 40px 0 30px;
  max-width: 640px;
}

/* ─────────────────────────────────────────
   LIGHTBOX
───────────────────────────────────────── */

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox img {
  max-width: 90vw;
  max-height: 88vh;
  object-fit: contain;
}

.lightbox-close {
  position: fixed;
  top: 20px;
  right: 26px;
  color: #fff;
  font-size: 28px;
  cursor: pointer;
  font-weight: 300;
  line-height: 1;
  z-index: 1001;
}

.lightbox-close:hover { opacity: 0.6; }

.lightbox-nav {
  display: flex;
  gap: 24px;
  margin-top: 16px;
  color: #ddd;
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.lightbox-nav span { cursor: pointer; }
.lightbox-nav span:hover { color: #fff; }

/* ─────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────── */

@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 24px 24px 16px;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-start;
    border-bottom: 1px solid #eee;
  }

  .content {
    margin-left: 0;
  }

  .site-title {
    margin-bottom: 0;
    width: 100%;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 20px;
  }

  .nav-sub {
    flex-direction: row;
    flex-wrap: wrap;
    padding-left: 0;
    gap: 8px 16px;
  }

  .gallery-controls {
    margin-top: 0;
    padding-top: 12px;
    width: 100%;
  }

  .thumb-grid {
    padding: 16px;
  }

  .slideshow {
    padding: 16px;
    min-height: 60vh;
  }
}
