/* =========================
   Base / Typography
   ========================= */

body {
  margin-left: 50px;
  margin-top: 1em;
  font-family: "Times New Roman", "EB Garamond", serif;
  font-size: 16px;
  line-height: 1.2;
  font-weight: normal;
  font-style: normal;
  background-color: var(--bgcolor, white);
}

a {
  color: black;
  text-decoration: underline;
}

a:visited {
  color: black;
}

/* =========================
   Header / Navigation
   ========================= */


nav.menu {
  width: 65%;
  max-width: 1200px;
  font-size: 16px;
  border-top: 1px dotted black;
  border-bottom: 1px dotted black;
  padding-top:5px;
  padding-bottom:5px;
}

/* Project menu (ordered list) */
ul.project-menu {
  padding-inline-start: 10px;
  list-style-type: disc;
}

.project-menu a {
  text-decoration: none;
}

.project-menu li a:hover,
.project-menu li.is-active a {
  color: var(--hover-color, #6316e0);
  text-decoration: none;
}

    .project-menu {
      list-style: none;
      padding-inline-start: 1.2em;
    }

   /* .project-menu li::marker {
      content: "* ";
    }*/

/* =========================
   Main Content
   ========================= */

main.main {
  margin-top: 1em;
  width: 65%;
  max-width: 1200px;
  display: block;
}

p.project-description {
  margin-top: 1em;
  margin-bottom: 1em;
}

/* Infrastructure page */
.infrastructure {
  width: 65%;
  max-width: 1200px;
  font-size: 16px;
  padding-bottom:10px;
}

p.infrastructure a {
  text-decoration: underline;
}

p.infrastructure a:hover {
  color: black;
}

/* =========================
   Images / Figures
   ========================= */

img {
  width: 100%;
  cursor: zoom-in;
  cursor: -webkit-zoom-in; /* Safari fallback */
  margin-top: 10px;
}

figure {
  margin: 0;
}

figcaption {
  display: block;
  margin-top: 10px;
  margin-bottom:10em;
}

figcaption a:hover {
  color: black;
  text-decoration: underline;
}

/* Project image list */
ul.project-list {
  padding: 0;
  list-style: none;
}

/* Home preview images */
main.home img {
  height: 150px;
  width: auto;
}

/* =========================
   Footer
   ========================= */

a#myBtn {
  cursor: pointer;
  padding-bottom:50px;
}

/* =========================
   Lightbox
   ========================= */

.lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  z-index: 99;
}

.lightbox.is-open {
  display: block;
}

.lightbox-close {
  position: fixed;
  inset: 0;
  cursor: zoom-out;
  z-index: 999;
}

.lightbox-figure {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  margin: 10vh auto 0 auto;
}

.lightbox-figure img {
  max-width: 90vw;
  max-height: 80vh;
  width: auto;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* =========================
   Mobile
   ========================= */

@media (max-width: 768px) {
  body {
    margin: 15px;
    padding: 0;
    font-size: 17px;
  }

  nav.menu {
    width: 100%;
    font-size: 17px;
    padding-top:0;
  }

.project-menu li {
      margin-left:7px;
  }

  p.infrastructure{
     font-size: 17px;  
     padding-bottom:0; 
  }

  main.main {
    width: 100%;
  }

  img{
    margin-top:3px;
  }

  .logo{
    font-size: 17px;
  }
  h1 {
    font-size: 17px;
    width: 100%;
  }

  figcaption {
    margin-top: 5px;
    margin-bottom:20px;
    font-size: 16px;
  }

  .footer {
    font-size: 17px;
  }

  a#myBtn {
    font-size: 17px;
    padding:0;
  }

  .topline{
    display:flex;
    flex-wrap:nowrap;
    justify-content: space-between; /* <-- ADD THIS */
    align-items: center;            /* better for emoji */
    gap: 12px;
    font-size:17px;
 
  }

  .topline > span:first-child{
    min-width: 100%;

  }

  .lang{
    position:absolute;
    right:15px;
  }

}

/* =========================
   Language Switcher
   ========================= */

.lang a,
.lang a:link,
.lang a:visited,
.lang a:hover,
.lang a:active {
  text-decoration: none;
}

.lang a[aria-current="page"] {
  text-decoration: underline;
}

.topline {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.topline > span:first-child{
  min-width: 0;
}

.lang {
  white-space: nowrap;
}