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

body {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 300;
  color: #111;
  background: #fff;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

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

/* —— Sidebar —— */
.sidebar {
  position: fixed;
  top: 0;
  left: 0;
  width: 200px;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 36px 28px;
  border-right: 1px solid #e5e5e5;
  background: #fafafa;
  z-index: 100;
}

.sidebar-name {
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  line-height: 1;
  margin-bottom: 40px;
}

.sidebar-name a {
  color: inherit;
  text-decoration: none;
}

.sidebar-name a:hover {
  opacity: 0.45;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  font-size: 0.9rem;
  color: #888;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.sidebar-link:hover {
  color: #111;
}

.sidebar-link.is-active {
  color: #111;
  font-weight: 400;
}

/* —— Main —— */
.main-content {
  flex: 1;
  margin-left: 200px;
  padding: 36px 32px 80px;
  max-width: 1200px;
}

.main-content--photos {
  max-width: none;
  padding-right: 40px;
}

.page-text {
  max-width: 480px;
  font-size: 0.95rem;
  line-height: 1.75;
  color: #333;
}

.page-text p + p {
  margin-top: 1em;
}

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

.page-text a:hover {
  opacity: 0.55;
}

.photo-tabs {
  display: flex;
  gap: 20px;
  margin-bottom: 28px;
}

.photo-tab {
  font-size: 0.9rem;
  color: #aaa;
  text-decoration: none;
  letter-spacing: 0.01em;
  transition: color 0.2s ease;
}

.photo-tab:hover {
  color: #111;
}

.photo-tab.is-active {
  color: #111;
}

.video-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  max-width: 720px;
}

@media (min-width: 900px) {
  .video-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: none;
  }
}

.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.photo-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.photo-thumb {
  appearance: none;
  -webkit-appearance: none;
  border: 0;
  padding: 0;
  background: transparent;
  cursor: pointer;
  overflow: hidden;
  display: block;
  width: 100%;
}

.photo-thumb img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease;
}

.photo-thumb:hover img {
  opacity: 0.82;
}

.photo-thumb:focus-visible {
  outline: 1px solid #111;
  outline-offset: 2px;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: #fff;
  z-index: 2000;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 36px;
  overflow-y: auto;
}

.lightbox-content {
  position: relative;
  max-width: 1100px;
  width: 100%;
}

#lightbox-image {
  width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.close-lightbox {
  position: absolute;
  top: -36px;
  right: 0;
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #111;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  opacity: 0.5;
  transition: opacity 0.2s ease;
}

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

.photo-grid--small {
  grid-template-columns: repeat(4, 1fr);
  gap: 3px;
}

@media (min-width: 640px) {
  .photo-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
  }

  .photo-grid--small {
    grid-template-columns: repeat(6, 1fr);
    gap: 3px;
  }
}

@media (min-width: 900px) {
  .photo-grid--small {
    grid-template-columns: repeat(8, 1fr);
  }
}

@media (min-width: 1200px) {
  .photo-grid--small {
    grid-template-columns: repeat(10, 1fr);
    gap: 4px;
  }
}

@media (min-width: 1100px) {
  .photo-grid {
    gap: 10px;
  }
}

@media (max-width: 640px) {
  .sidebar {
    position: fixed;
    width: 100%;
    height: auto;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
    padding: 16px 20px;
    border-right: none;
    border-bottom: 1px solid #e5e5e5;
  }

  .sidebar-name {
    margin-bottom: 0;
    margin-right: auto;
  }

  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px 16px;
    width: 100%;
  }

  .main-content {
    margin-left: 0;
    margin-top: 108px;
    padding: 20px 16px 64px;
  }

  .photo-grid--small {
    grid-template-columns: repeat(5, 1fr);
    gap: 2px;
  }

  .photo-grid {
    gap: 6px;
  }

  .lightbox {
    padding: 32px 16px;
  }

  .close-lightbox {
    top: -32px;
  }
}
