/* yearbook page — loaded after styleNew.css, adds only yearbook-specific rules */

.year-menu {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  margin-bottom: 16px;
  flex-shrink: 0;
}

.year-menu a {
  cursor: pointer;
  color: #0b0b0b;
  text-decoration: none;
}

.year-menu a:hover {
  color: #003cff;
}

.year-menu a.selected {
  color: #2961f6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.yearbook-layout {
  display: grid;
  grid-template-columns: 2fr 3fr;
  gap: 20px;
  flex: 1;
  min-height: 0;
  align-items: stretch;
}

.panel-labels {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 18px;
  flex-shrink: 0;
}

.panel-labels a {
  cursor: pointer;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #0b0b0b;
  text-decoration: none;
}

.panel-labels a:hover {
  color: #003cff;
}

.panel-labels a.selected {
  color: #2961f6;
  text-decoration: underline;
  text-decoration-thickness: 1px;
}

.panel-content {
  min-height: 0;
  overflow-y: auto;
}

.panel-content p {
  margin: 0 0 6px;
}

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

.work-group + .work-group {
  margin-top: 16px;
}

.work-group h3 {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #555;
}

.work-entry {
  margin: 0 0 6px;
}

.work-entry:last-child {
  margin-bottom: 0;
}

.work-meta {
  color: #555;
}

/* the "other" tab is prose, so it gets more room to breathe than the lists */
.journal-entry {
  margin: 0 0 12px;
  line-height: 1.55;
}

.journal-entry:last-child {
  margin-bottom: 0;
}

.photo-gallery {
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
}

.gallery-columns {
  column-count: 3;
  column-gap: 10px;
}

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

.gallery-columns p {
  margin: 0;
}

@media (max-width: 1160px) {
  .yearbook-layout {
    grid-template-columns: 1fr;
    flex: none;
    gap: 14px;
  }

  .panel-content,
  .photo-gallery {
    overflow: visible;
  }

  .gallery-columns {
    column-count: 2;
  }
}
