
/* ==================================================================== */
/* ======================= MAIN ARTICLE TYPOGRAPHY ==================== */
/* ==================================================================== */

.bd-article {
  line-height: 1.6;
}
h1 {
  font-size: 2.0em;
  font-weight: 500;
  color: #555;
  margin-top: 1em;
  margin-bottom: 0.4em;
}
h2 {
  font-size: 1.4em;
  font-weight: 500;
  color: #555;
  margin-top: 1em;
  margin-bottom: 0.4em;
}
h3 {
  font-size: 1.0em;
  font-weight: 500;
  color: #555;
  margin-top: 1em;
  margin-bottom: 0.4em;
}
body {
  font-size: 1.05em;
}

/* ==================================================================== */
/* ===================== LOGO AND BUTTONS ============================= */
/* ==================================================================== */

.bd-sidebar .navbar-brand img {
  display: block;
  margin-left: 0;
  margin-right: auto;
  padding-left: 0.5rem;
  max-height: 40px;
  width: auto;
}

.prev-next-area,
.bd-page__inner .prev-next-area,
.bd-footer-article .prev-next-area,
nav.bd-page-nav {
  display: none !important;
}

button.dropdown-toggle,
button.theme-switch-button,
a.btn-source-repository-button,
button.btn-source-repository-button {
  display: none !important;
}

/* ==================================================================== */
/* ======== NARROWER SIDEBARS AND NO HAMBURGER IN DESKTOP MODE ======== */
/* ==================================================================== */

@media (min-width: 992px) {
  .bd-sidebar-primary {
    flex-basis: 13% !important;
  }
  .bd-sidebar-secondary {
    flex-basis: 18%; !important;
  }
  /* Middle content: fill remaining width */
  .bd-main .bd-content {
    flex-basis: 100% !important; 
    max-width: 100% !important;
    flex-grow: 1 !important;
  }
  /* Remove content max-width limits from theme */
  .bd-page-width,
  .bd-main .bd-content .bd-article-container {
    max-width: none !important;
  }
  /* Hide the hamburger/toggles */
  button.sidebar-toggle,
  button#navbar-toggler,
  button[data-bs-toggle="collapse"] {
    display: none !important;
  }
}

/* ==================================================================== */
/* ================== NARROWER SIDEBARS IN MOBILE MODE ================ */
/* ==================================================================== */

@media (max-width: 991.8px) {
  .bd-sidebar-primary {
    width: 200px !important; 
  }
  .bd-sidebar-secondary {
    width: 200px !important; 
  }
}

/* Hide the search icon button on small/mobile screens */
@media (max-width: 991.8px) {
  button.search-button,
  button.search-button__button,
  .pst-navbar-icon.search-button {
    display: none !important;
  }
}

a,
a:link,
a.reference.external {
  color: #0050b3;  /* darker blue */
}
a:hover,
a:focus {
  color: #cc5500;  /* darker orange */
}
a:visited {
  color: #663399;  /* muted purple tone */
}

/* ==================================================================== */
/* ====================== FOR CURRICULUM LISTS ======================== */
/* ==================================================================== */

/*remove shading, striping, and hover color from tables */
.cv-table,
.cv-table tbody,
.cv-table tr,
.cv-table td {
  background: none !important;
  border: none !important;
  box-shadow: none !important;
}

.cv-table tr:nth-child(even),
.cv-table tr:nth-child(odd):hover {
  background: none !important;
}

.cv-table td {
  vertical-align: top;
  padding: 0.15rem 0.6rem;
  line-height: 1.25;
}

.cv-table td:first-child {
  width: 9ch;
  white-space: nowrap;
  text-align: right;
  color: #222;
  font-weight: normal;
  padding-right: 1rem;
}

.cv-table td > p {
  margin: 0;
}

/* ==================================================================== */
/* =============== THIS IS TO MAKE FIGURES 100% ON MOBILE ============= */
/* ==================================================================== */

/* To activate -> :class: fullwidth-on-mobile */

/* Preserve float + add gutter */
.align-left.fullwidth-on-mobile {
  float: left !important;
  margin: 0 1.0rem 0 0;   /* right gutter */
}
.align-right.fullwidth-on-mobile {
  float: right !important;
  margin: 0 0 0 1.0rem;   /* left gutter */
}

/* Don’t override inline width on desktop */
.fullwidth-on-mobile { display: block; border-radius: 6px; }

/* Mobile: kill float and go full width */
@media (max-width: 991.8px) {
  .fullwidth-on-mobile {
    float: none !important; 
    width: 100% !important;
    margin: 0 0 1.5rem 0 !important; 
  }
}

.fullwidth-on-mobile img { max-width: 100%; height: auto;}

/* ==================================================================== */
/* ====================== GROUP MEMBER MUGSHOTS ======================= */
/* ==================================================================== */

/* Base grid layout */
.people-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  justify-content: left; 
}

.people-grid .person-card figcaption p { margin: 0.5rem 0 0; line-height: 1.3; }
.person-caption { text-align: center; }
.person-caption p { margin: 0; line-height: 1.3; }  /* stacks as 3 tight lines */

/* Desktop: 3 per row */
@media (min-width: 992px) {
  .people-grid .person-card {
    flex: 0 0 calc((100% - 2 * 1.25rem) / 3);   /* 3 per row */
    max-width: calc((100% - 2 * 1.25rem) / 3);
  }
}

/* Tablet: 2 per row */
@media (min-width: 768px) and (max-width: 991px) {
  .people-grid .person-card {
    flex: 0 0 calc((100% - 1.25rem) / 2);       /* 2 per row */
    max-width: calc((100% - 1.25rem) / 2);
  }
}

/* Mobile: 1 per row */
@media (max-width: 767px) {
  .people-grid .person-card {
    flex: 0 0 100%;
    max-width: 100%;
  }
}

/* Common card styling */
.people-grid .person-card {
  display: flex;
  flex-direction: column;
}

/* Rounded-corner mugshots */
.people-grid .person-card figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
}

.person-photo {
  width: 100%;
  height: auto;
  border-radius: 6px;
  object-fit: cover;
}

/* ==================================================================== */
/* ========================== ALUMNI TABLE ============================ */
/* ==================================================================== */

/* remove shading, striping, and hover color from list-tables */

.alumni-table,
.alumni-table tbody,
.alumni-table tr,
.alumni-table td {
  background: none !important; 
}

/* compact spacing and alignment */
.alumni-table td {
  vertical-align: middle;
  padding: 0.15rem 0.6rem;
  line-height: 1.5;
}

/* keep alternate shading (odd rows only) */
.alumni-table tr:nth-child(odd) td {
  background-color: #f0f0f0 !important; 
}

/* ==================================================================== */
/* ========================= FOR IMAGE GALLERY ======================== */
/* ==================================================================== */

/* Drop shadow only for journal cover images */
img.cover-photo {
    box-shadow: 0 7px 10px rgba(0, 0, 0, 0.18);
    border-radius: 6px;
}

/* Images */
.cover-photo {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* Captions */
.cover-caption {
  text-align: center;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive grid: auto-fit columns */
.cover-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
}

/* Cards */
.cover-card {
  padding: 0;
  border: none;
  border-radius: 6px;
  background: none;
}

/* ==================================================================== */
/* ========================= SPONSOR LOGOS  =========================== */
/* ==================================================================== */

/* Grid container for sponsor logos */
.sponsor-logos {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));  /* 4 equal columns */
  column-gap: 1rem;
  row-gap: 2rem;
  width: 100%;
  margin: 2rem auto;
  align-items: center;
  justify-items: center;
}

/* Make each logo fill its grid cell nicely */
.sponsor-logos img {
  max-width: 80%;
  height: auto;
  object-fit: contain;
}

/* Mobile: 2 columns instead of 4 */
@media (max-width: 600px) {
  .sponsor-logos {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ==================================================================== */
/* ========== REDUCE PADDING ABOVE PAGE TITLES IN DESKTOP ============= */
/* ==================================================================== */

/* desktop only so mobile spacing stays sane */
@media (min-width: 992px) {

  /* shrink the space under the toolbar */
  .bd-header-article {
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
  }

  /* remove padding/margin added before first section */
  .bd-article > section:first-of-type {
    padding-top: 0 !important;
    margin-top: 0 !important;
  }

  /* kill the top margin on the first h1 */
  .bd-article > section:first-of-type > h1:first-of-type {
    margin-top: 0 !important;
  }
  /* Hide the article toolbar for desktop (>=992px) */
    .bd-header-article {
        display: none !important;
  }
}

/* ==================================================================== */
/* ========================= SHADOWS ON FIGURES ======================= */
/* ==================================================================== */

/* use with :class: img-shadow */
.img-shadow {
    box-shadow: 0 7px 10px rgba(0,0,0,0.18);
    border-radius: 6px;
}

/* ==================================================================== */
/* ================ RESPONSIVE CROPPING FOR HERO IMAGE ================ */
/* ==================================================================== */

/* Base hero styling */
.hero-image {
  width: 100%;
  height: 50vh;            /* controls vertical crop window */
  object-fit: cover;        /* allow cropping */
  object-position: center top;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 0;
}

/* Desktop (crop bottom 25%) */
@media (min-width: 769px) {
  .hero-image {
/*    height: 60vh;  */
/*    height: clamp(260px, 55vh, 420px); */
    object-fit: cover;
    object-position: center 60%; 
  }
}

/* Mobile (crop sides by 50% total → zoom into center) */
@media (max-width: 768px) {
  .hero-image {
    height: 55vh;
    object-position: 50% 20%;  
  }
}

/* Allow overlay positioning */
.hero-container {
  position: relative;
}

/* The overlaid credit text */
.hero-credit-overlay {
  position: absolute;
  bottom: -12px;
  right: 12px;
  font-size: 0.75rem;
  color: rgba(255,255,255,0.85);
/*  text-shadow: 0 0 4px rgba(0,0,0,0.8);  */
  z-index: 10;
  pointer-events: none;   
  margin: 0;
  padding: 0;
}

/* Optional: nicer on small screens */
@media (max-width: 768px) {
  .hero-credit-overlay {
    font-size: 0.7rem;
    bottom: -12px;
    right: 6px;
  }
}

