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

body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  padding: 20px;
}

header {
  text-align: center;
  margin-bottom: 20px;
}

header h1 {
  font-size: 3rem;
  color: #333;
}

header h2 {
  font-size: 1.5rem;
  color: #666;
}

nav {
  display: flex;
  justify-content: center;
}

nav ul {
  list-style-type: none;
  padding: 0;
  margin: 0;
  display: flex;
}

nav ul li {
  padding: 5px .8em 5px .8em;
}

nav .current {
  background-image: linear-gradient(to bottom, transparent, silver);
  position: relative;
}

nav .current::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background: silver;
}

nav ul li {
  margin-right: 20px;
}

nav ul li a {
  text-decoration: none;
  color: #333;
  font-weight: bold;
}

main {
  max-width: 1100px;
  margin: 0 auto;
}

section {
  clear: both;
  margin: 20px 0  30px 0;
}

h3 {
  font-size: 1.8rem;
  margin-bottom: 10px;
}

ul {
  list-style: none;
  padding-left: 0;
}

li {
  padding: 10px 0;
  border-bottom: 1px solid #ddd;
}

.career-details {
  padding-left: 1em;
}

abbr {
  cursor: help;
}

.career-table-hr {
  border-top: 1px solid grey;
}
.career-table-hr td div {
  height: .5em;
}

table {
  margin: 0 auto 0 auto;
  border-collapse: collapse;
}

tr.subheader {
  text-align: center;
}

table.thesis-results tr:nth-child(2) { background: #ccc; border-color: #ccc; }
table.thesis-results tr:nth-child(4) { background: #ccc; border-color: #ccc; }

table.thesis-results tr:not(.subheader) td:nth-child(2) { text-align: right; }
table.thesis-results tr:not(.subheader) td:nth-child(3) { text-align: right; }
table.thesis-results tr:not(.subheader) td:nth-child(4) { text-align: right; }
table.thesis-results tr:not(.subheader) td:nth-child(5) { text-align: right; }

table.thesis-results td:nth-child(2) { padding: .2em 1em .2em 1em; }
table.thesis-results td:nth-child(3) { padding: .2em 1em .2em 1em; }
table.thesis-results td:nth-child(4) { padding: .2em 1em .2em 1em; }
table.thesis-results td:nth-child(5) { padding: .2em 1em .2em 1em; }

td {
  padding: .2em 2em .2em 0;
}

p.tags {
  margin-top: .5em;
  font-weight: bold;
}

img {
  max-width: 100%;
  height: auto;
  margin: 0 20px 20px 20px;
}

img.profile-photo {
  float: left;
  width: 8rem;
}

img.portfolio-image {
  float: left;
  width: 25rem;
}

img.interests-photo {
  float: left;
  width: 15rem;
}

.image-container {
  float: left;
  display: flex;
/*  justify-content: space-between;*/
  align-items: center;
  text-align: center;
/*  background-color: #f4f4f4;*/
  padding: 10px;
  max-width: 300pt;
}

.image-item {
  flex: 1;
  margin: 0 5px; /* Space between items */
}

.image-item img {
/*  display: block;*/
  width: 100%;
  height: auto; /* Maintain image aspect ratio */
  margin: 0 auto; /* Center images horizontally */
}

.image-item p {
  margin-top: 5px; /* Space between image and caption */
  font-size: 14px; /* Adjust caption font size */
/*  color: #333; /* Optional: caption color */*/
}

footer {
  clear: both;
  border-top: 1px solid #ccc;
  padding-top: 10px;
  margin-top: 20px;
  text-align: center;
  font-size: 0.9rem;
  color: #888;
}
