/* Font and page styling */
body {
  font-family: 'Georgia', 'Cambria', serif;
  background-color: #ffffff;
  color: #212529;
}

/* Header & Nav styling */
.navbar {
  background-color: #002147 !important; /* Unimelb blue */
}

.navbar-brand,
.navbar-nav .nav-link {
  color: #ffffff !important;
  font-weight: 600;
}

.navbar-nav .nav-link:hover {
  color: #a6d5fa !important;
}

/* Links */
a {
  color: #0055a5;
}
a:hover {
  color: #002147;
  text-decoration: underline;
}

/* Headings */
h1, h2, h3 {
  color: #002147;
  font-weight: 700;
}

/* Hero blocks */
.hero,
.hero * {
  color: #fff !important;
  
}

.hero-flex {
  display: flex;
  align-items: center;
  gap: 1rem;
}


section.footnotes,
section.footnotes h2,
section.footnotes .footnote-back {
  display: none !important;
}

.headshot {
  width: 170px;
  height: 170px;
  object-fit: cover;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 8px rgba(0,0,0,.3);
}

.project-card {
  border: 1px solid #e6e6e6;
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,.06);
  transition: transform .15s ease, box-shadow .15s ease;
  margin-bottom: 1.25rem;
}
.project-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(0,0,0,.10);
}
/* replace your .project-img block with this */
.project-card .project-img {
  width: 100%;
  height: auto;       /* don't use 100% here */
  display: block;     /* avoids inline-gap issues */
}

@media (min-width: 768px) {
  .project-card .project-img {
    height: 260px;    /* consistent card height on desktop */
    object-fit: cover;
  }
}

.project-card .project-body { padding: 1rem 1.25rem; }
.project-meta { font-size: .9rem; opacity: .75; }

/* Alternate image/text automatically for even cards on ≥ md screens */
@media (min-width: 768px) {
  .project-list .project-card:nth-child(even) .row {
    flex-direction: row-reverse;
  }
}


