
.bio-photo {
    float: left;
    width: 150px;   /* or whatever size you prefer */
    height: auto;
    margin-right: 1em;  /* space between photo and text */
    margin-bottom: 0.5em; /* space under the image if text wraps below */
    border-radius: 4px;   /* optional, rounded corners */
}


body.dark-mode {
  color: #f2f2f2;
  background-color: #121212;
}

body.dark-mode a {
  color: #82aaff;
  text-decoration: none;
}

body.dark-mode a:hover {
  color: #ffffff;
  background-color: #333;
}

body.dark-mode p,
body.dark-mode h1,
body.dark-mode h2,
body.dark-mode h3,
body.dark-mode li {
  color: #f2f2f2;
} body {
  margin: 0;
  font-family: Arial, sans-serif;
  background-color: white;
  display: flex;
  flex-direction: row;
}

.layout {
  display: flex;
  flex-direction: row;
  height: 100%;
}

.sidebar {
  width: 225px;
  background-color: white;
  padding: 12px 10px 10px 16px;
  box-sizing: border-box;
  overflow-y: auto;
}

.sidebar a {
  display: block;
  color: #280F9C;
  text-decoration: none;
  padding: 4px 8px;
  border-radius: 4px;
  transition: background-color 0.2s ease;
}

.sidebar a:hover {
  background-color: #547ca5;
  color: #000000;
}

.sidebar p,
.sidebar span,
.sidebar img {
  margin: 0;
  padding: 0;
}

.main-content {
  flex: 1;
  padding: 6px 6px 20px 6px;
  box-sizing: border-box;
}

#name-heading {
  font-size: 1.8rem;
  font-weight: 500;
  margin-bottom: 12px;
  color: #222;
  text-align: left;
  font-family: 'Georgia', serif;
}

.carousel-container {
  position: relative;
  float: right;
  width: 100%;
  max-width: 700px;
  height: 50vw;
  max-height: 350px;
  margin: auto auto;
  overflow: hidden;
  background-color: white;
}

.carousel {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.carousel-item {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: white;
  display: none;
}

.carousel-item video,
.carousel-item img {
  width: 100%;
  height: calc(100% - 40px);
  object-fit: contain;
  background-color: white;
  display: block;
}

.carousel-caption {
  width: 100%;
  text-align: center;
  font-size: 0.9em;
  color: #333;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 6px 8px;
  box-sizing: border-box;
  line-height: 1.2em;
}

.icon-spacer {
  display: inline-block;
  width: 15px;
  height: 18px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  gap: 0px;
  margin: 0px 0;
  width: 100%;
}

.icon-link img {
  width: 15px;
  height: 18px;
  vertical-align: middle;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between; /* name on left, button on right */
    padding: 0.5em;
    /* background: #f0f0f0; /* optional: background color */
    /* border-bottom: 1px solid #ddd; /* optional: separator */
}

.site-title {
    font-size: 1.2em;
    margin: 0;
}

#menu-toggle {
	display: none;
    }

@media screen and (max-width: 768px) {

    .bio-photo {
	width: 25vw;   /* or whatever size you prefer */
    }
    
    .carousel-container {
	width: 70vw;           /* full viewport width */
	margin-left: -10px;     /* optional: pull to the edges if parent has padding */
	margin-right: -10px;    /* adjust this as needed */
	box-sizing: border-box; /* ensures padding doesn't exceed width */
	aspect-ratio: 16 / 9;
    }
    
    #menu-toggle {
      display: inline-flex;
      font-size: 28px;
      padding: 10px 15px;
      background: none;
      border: none;
      color: #280F9C;
      cursor: pointer;
      /* removed position, top, left, z-index */
    }
    
    .sidebar {
	position: fixed;
	top: 0;
	left: -100%;
	width: 100%;
	height: 100%;
	background-color: white;
	z-index: 2000;   /* <--- changed from 999 to 2000 */
	overflow-y: auto;
	padding-top: 60px;
	padding: 10px;
	border-bottom: 1px solid #ccc;
	text-align: center;
	transition: left 0.3s ease;
    }

  .sidebar.open {
    left: 0;
  }

  .sidebar a {
    display: inline-block;
    text-align: left;
  }

  .main-content {
    padding: 12px;
    margin-top: 50px;
  }

  .main-content::after {
    content: "";
    display: block;
    clear: both;
  }

}

body.dark-mode {
  background-color: #121212;
  color: #f2f2f2;
}

body.dark-mode a {
  color: #82aaff; /* Bright bluish link */
}

body.dark-mode a:visited {
  color: #c792ea; /* Soft lavender */
}

body.dark-mode a:hover {
  color: #ffffff;
  background-color: #333;
  border-radius: 4px;
}

body.dark-mode .sidebar {
  background-color: #1e1e1e;
}

body.dark-mode .sidebar a {
  color: #a0cfff;
}

body.dark-mode .sidebar a:hover {
  background-color: #2d2d2d;
  color: #ffffff;
}

body.dark-mode .main-content {
  background-color: #121212;
  color: #f2f2f2;
}

body.dark-mode #menu-toggle {
  color: #a0cfff;
}

body.dark-mode .carousel-caption {
  background-color: rgba(30, 30, 30, 0.85);
  color: #f2f2f2;
}

body.dark-mode .main-content a {
  color: #82aaff;
}

body.dark-mode .main-content,
body.dark-mode .main-content p,
body.dark-mode .main-content h1,
body.dark-mode .main-content h2,
body.dark-mode .main-content h3,
body.dark-mode .main-content li,
body.dark-mode .main-content span,
body.dark-mode .main-content div,
body.dark-mode .main-content strong,
body.dark-mode .main-content em {
  color: #f2f2f2;
}

.menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0;
}

.menu-item .icon {
  font-size: 18px;
  line-height: 1;
  width: 20px;
  text-align: center;
}

.sidebar h4 {
  margin: 14px 0 4px 0;
  padding-left: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #444;
  border-left: 3px solid #ccc;
  padding-left: 6px;
  text-align: left !important;
}

body.dark-mode .sidebar h4 {
  color: #bbb;
  border-left: 3px solid #555;
  margin: 14px 0 4px 0;
  padding-left: 2px;
  font-size: 0.95rem;
  font-weight: 600;
  padding-left: 6px;
  text-align: left !important;
}

body.dark-mode #name-heading {
  color: #f2f2f2;
}

body.dark-mode .carousel-container,
body.dark-mode .carousel-item,
body.dark-mode .carousel-item img,
body.dark-mode .carousel-item video {
  background-color: #121212; /* or transparent if you prefer */
}


body.sidebar-open #menu-toggle {
    position: fixed;
    top: 10px;
    right: 10px; /*  this keeps it on the right */
    z-index: 3000;
}

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.5em;
    flex-wrap: wrap; /* optional, lets it wrap on small screens */
}

.name-block {
    display: flex;
    align-items: center;
    gap: 1em; /* space between photo and name */
}

.name-block img {
    flex-shrink: 0; /* dont let image shrink too much */
    border-radius: 4px; /* optional, rounded corners */
}

#name-heading {
    font-size: 1.2em;
    margin: 0;
}


