body {
  background-color: white;
  color: black;
  font-family: "Courier New", Courier, monospace;
  margin: 0;
  padding: 0;
}
.header {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  position: relative;
}
.header-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  width: 100%;
}
.menu-icon {
  font-size: 1.2em;
  cursor: pointer;
  user-select: none;
  margin-right: 10px;
  transition: color 0.2s;
  width: 1em;
  height: 1em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.title,
.title:visited,
.title:hover,
.title:active,
.title:focus {
  text-decoration: none !important;
  font-size: 1.5em;
  font-weight: bold;
  text-align: left;
  text-decoration: none;
  color: inherit;
}
.subtitle {
  font-size: 1em;
  color: #333;
  margin-top: 2px;
  margin-bottom: 10px;
  font-weight: normal;
  text-align: left;
  margin-left: 2em;
}
.dropdown-menu {
  display: none;
  flex-direction: column;
  margin-top: 10px;
  background-color: white;
  width: 150px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  position: absolute;
  left: 20px;
  top: 50px;
  z-index: 10;
}
.dropdown-menu a {
  padding: 10px;
  text-decoration: none;
  color: black;
  text-decoration: none !important;
}
.dropdown-menu a:hover {
  background-color: #f0f0f0;
}
.main-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
  padding: 0 20px 40px 20px;
}
.profile-photo {
  width: 225px;
  height: 300px;
  max-width: 100%;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.bio-text {
  max-width: 450px;
  margin-top: 20px;
  text-align: left;
  font-size: 1em;
  line-height: 1.6;
}
.cv-section {
  max-width: 450px;
  margin-top: 40px;
  text-align: left;
}
.cv-title {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 12px;
}
.cv-group-title {
  font-weight: bold;
  margin-bottom: 6px;
  margin-top: 18px;
}
.cv-section ul {
  margin-top: 0;
  margin-bottom: 16px;
  padding-left: 20px;
}
a.cv-link {
  color: #0077cc;
  text-decoration: underline;
  word-break: break-all;
}
@media (min-width: 600px) {
  .header {
    padding: 30px;
  }
  .dropdown-menu {
    width: 200px;
    top: 60px;
  }
  .main-content {
    margin-top: 10px;
  }
  .profile-photo {
    width: 450px;
    height: 600px;
  }
  .bio-text, .cv-section {
    max-width: 450px;
  }
}

/* Force all links to be black and underlined in all states */
a,
a:visited,
a:hover,
a:active,
a:focus {
  color: black !important;
  text-decoration: underline !important;
}

/* Gallery styles */
.gallery-container {
  position: relative;
  width: 100%;
  max-width: 450px;
  margin-top: 0px;
}
.gallery-image {
  width: 100%;
  max-width: 100%;
  height: auto;
  display: block;
}
.arrow-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 10px;
}

.arrow {
  font-size: 1.5em;
  color: black;
  background: none;
  border: none;
  cursor: pointer;
  user-select: none;
  padding: 0;
}
.spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    vertical-align: middle;
    border: 2px solid #ccc;
    border-top: 2px solid #000;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-left: 10px;
    margin-right: 10px;
}
@keyframes spin {
    0% { transform: rotate(0deg);}
    100% { transform: rotate(360deg);}
}