/* --- Base typography --- */
body {
  font-family: 'Ubuntu', sans-serif;
  line-height: 1.6;
  background-color: #fafafa;
  color: #444;
}

/* --- Content width (replaces $body-max-width) --- */
#quarto-content .content,
.quarto-container .content,
main.content {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Navbar width alignment --- */
.navbar .container-fluid {
  max-width: 1200px;
}

/* --- Headings --- */
h1 {
  font-weight: 600;
  color: #A51C30;
}

/* --- Links --- */
a {
  color: #A51C30;
  text-decoration: none;
}

a:hover {
  color: #7A0F1F;
  text-decoration: underline;
}

/* --- Social icons --- */
.social-icons {
  display: flex;
  gap: 16px;
  margin: 10px 0 16px 0;
}

.social-icons a {
  font-size: 1.5rem;
  color: #A51C30;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  text-decoration: none;
}

.social-icons a:hover {
  opacity: 0.6;
}

/* --- Affiliation line --- */
.affiliation {
  font-weight: 500;
  color: #555;
  margin-bottom: 0.4rem;
}

/* --- Subtle divider --- */
hr {
  border-top: 1px solid #e5e5e5;
}

/* --- Optional: subtle Harvard accent in navbar --- */
.navbar {
  border-bottom: 2px solid #A51C30;
}

/* --- Navbar background --- */
.navbar {
  background-color: #ffffff !important;
  border-bottom: 2px solid #A51C30;
}

/* --- Navbar links --- */
.navbar .nav-link {
  color: #A51C30 !important;
}

/* --- Navbar links hover --- */
.navbar .nav-link:hover {
  color: #7A0F1F !important;
}

/* --- Active page link --- */
.navbar .nav-link.active {
  color: #7A0F1F !important;
  font-weight: 500;
}

/* --- Navbar brand (your name) --- */
.navbar-brand {
  color: #A51C30 !important;
  font-weight: 600;
}

/* hover */
.navbar-brand:hover {
  color: #7A0F1F !important;
}

/* --- Social icons: force Harvard color --- */
.social-icons a,
.social-icons i {
  color: #A51C30 !important;
}

/* hover effect */
.social-icons a:hover,
.social-icons a:hover i {
  color: #7A0F1F !important;
}

.navbar-logo {
  height: 32px;
  width: auto;
  margin-right: 8px;
  vertical-align: -4px;
}

.affiliation {
  color: #666;
}

/* --- Force identical content width everywhere --- */

#quarto-content,
#quarto-document-content,
.quarto-container,
main,
.content {
  max-width: 900px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  width: 100% !important;
}

.photo-grid-3 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 36px;
  max-width: 1200px;     /* wider than before */
  margin: 40px auto;
}

.photo-item img {
  width: 100%;
  aspect-ratio: 4 / 3;                     /* IMPORTANT: better for landscapes */
  object-fit: cover;
  border-radius: 8px;
}

.photo-item p {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #666;
  text-align: center;
}

@media (max-width: 900px) {
  .photo-grid-3 {
    grid-template-columns: 1fr;            /* go straight to 1 column */
    max-width: 500px;
    gap: 28px;
  }
}

.navbar-brand::before {
  content: "";
  display: inline-block;
  width: 26px;
  height: 26px;
  background-image: url("files/icons/mountain_bw.ico");
  background-size: contain;
  background-repeat: no-repeat;
  margin-right: 8px;
  vertical-align: middle;
}