@media (max-width: 650px) {
  .nav-left {
    display: none;
  }

  .nav-toggle.show-menu {
    animation: pulse 0.5s infinite ease-in-out alternate;
  }

  .nav-toggle {
    display: flex !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
  }

  .nav-toggle:hover {
    transform: scale(1.1);
  }

  .nav-toggle > img {
    width: var(--icon-width);
    height: var(--icon-height);
  }

  .nav-center, .nav-right {
    display: none !important;
    position: absolute;
    left: 10px;
    right: 0;
    background: var(--background);
    padding: 10px 0;
    border: 2px var(--border-primary) solid; 
    border-radius: 5px;
  }

  .nav-center {
    top: 100px;
    border-top: 0px;
  }

  .nav-right {
    top: 50px;
    border-bottom: 0px;
  }

  .nav-center.show-menu, .nav-right.show-menu {
    display: flex !important;
    max-width: 150px;
  }

  .nav-center.show-menu {
    flex-direction: column;
    align-items: flex-start;
  }

  .nav-right.show-menu {
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    max-height: 50px;
  }
}

:root {
  /* --background-dark: #121721; */
  --icon-height: 25px;
  --icon-width: 25px;
  --background-dark: #000000;
  --abackground-dark: rgba(0,0,0,0.7);
  --border-primary-dark: #434650;
  --text-dark:  #FFFFFF;
  --menu-dark: #1D222C;
  --color-dark-alter: #121721;

  --background-light: #FFFFFF;
  --abackground-light: rgba(255,255,255,0.7);
  --text-light: #000000;
  --border-primary-light: #E0E3EB;
  --menu-light: #FFFFFF;
  --color-light-alter:  #D1D4DC;

  --light-n-dark: #797C87;
  --light-n-dark-a: rgba(121,124,135,0.8);
  --page-color-transition: background .2s ease, color .2s ease;
}

/* [data-theme="dark"] { */
.dark {
  --background: var(--background-dark);
  --abackground: var(--abackground-dark);
  --border-primary: var(--border-primary-dark);
  --text: var(--text-dark);
  --color-alter: var(--color-dark-alter);
  --menu: var(--menu-dark);
}

/* [data-theme="light"] { */
.light {
  --background: var(--background-light);
  --abackground: var(--abackground-light);
  --border-primary: var(--border-primary-light);
  --text: var(--text-light);
  --color-alter: var(--color-light-alter);
  --menu: var(--menu-light);
}
@keyframes pulse {
    /* from { transform: scale(0.6); } */
    /* to { transform: scale(0.8); } */
    from { transform: scale(1.1) rotate(10deg); }
    to { transform: scale(1.1) rotate(-10deg); }
}

@keyframes pulselight {
    /* from { transform: scale(0.6); } */
    /* to { transform: scale(0.8); } */
    from { transform: scale(0.7) rotate(10deg); }
    to { transform: scale(0.7) rotate(-10deg); }
}

body {
  margin: 0;
  color: var(--text);
  background-color: var(--background);
  transition: transform 0.5s ease-in-out, var(--page-color-transition);

  line-height: 28px;

  font-size: 16px;
  font-family: "Roboto Mono", monospace;
  font-optical-sizing: auto;
  font-style: normal;
  font-weight: 350;
  /* min-width: 400px; */
}

.strong {
  color: var(--light-n-dark);
  font-size: 1.5rem;
  font-weight: bold;
}

.strong-desc {
  font-weight: 500;
}

.container {
  max-width: 800px;
  margin: 0 auto;
}

.sticky-top {
  position: sticky;
  z-index: 1;
  top: 0;
  right: 0;
  backdrop-filter: blur(10px);
  border-radius: 10px;
}

.nav-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 60px;
  color: var(--light-n-dark);
}

/* .nav-left, .nav-center, .nav-right { */
/*   width: 30%; */
/* } */
/**/
/* .nav-left, .nav-right { */
/*   justify-items: center */
/* } */

.nav-toggle {
  display: none;
  padding: 10px;
}

.nav-center, .nav-right {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-around;
    margin: 0;
}

.nav-item {
  padding: 5px 10px;
}

.current-time {
  font-weight: 400;
}

input[name="menu"] {
  display: none;
}

.menu-label {
  font-size: 18px;
  text-decoration: none;
  color: var(--light-n-dark);
}

input[name="menu"]:checked + .menu-label {
    /* background-color: var(--border-secondary); */
    color: var(--text);
    font-weight: 400;
}

input[name="menu"]:hover + .menu-label {
    /* background-color: var(--border-secondary); */
    font-weight: bold;
}

.contact-link-div > * {
  width: 100%;
  height: 100%;
}

.contact-link > img {
  /* margin: auto; */
  vertical-align: middle; 
  width: var(--icon-width);
  height: var(--icon-height);
  /* display: inline-block; */
}

.contact-link > img:hover {
  animation: pulse 0.5s infinite ease-in-out alternate;
}

.main {
}

/* PAGE */
.main-content > * {
  margin: 20px;
  padding: 10px;
}

.header {
  font-size: 28px;
  font-weight: 500;
}

.title {
  font-size: 24px;
  font-weight: 450;
}

.title-desc {
  font-size: 20px;
  font-weight: 450;
  color: var(--light-n-dark);
}

.portrait {
  margin: 0 auto;
  display: flex;
  justify-content: center;
}

.portrait img {
  max-width: 100%;
  max-height: 450px;
  width: auto;
  height: auto;
  margin: 0 auto;
  border: 2px var(--color-alter) solid;
  border-radius: 5px;
}

.desc {
  font-size: 1rem;
  font-weight: 350;
}

.hide {
  display: none !important;
}

.show {
  display: block !important;
}

.show-option-btn {
  font-size: 0.8rem;
  cursor: pointer;
  color: var(--light-n-dark);
}

.show-option-btn:hover {
  color: var(--text);
  font-weight: bold;
}

.content-list {
  list-style: none;
  /* border: 1px var(--light-n-dark) solid; */
}

.content-list-item {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  margin-bottom: 2rem;
  gap: 1rem;
}

.project.content-list-item {
  max-height: 120px;
}

.blog.content-list-item {
  max-height: 150px;
}

.content-list-item-attach {
  flex-basis: 30%;
  position: relative;
  overflow: hidden;
}

.gallery-slider {
  position: relative;
  /* width: 100%; */
  width: auto;
  max-width: 100%;
  height: 100%;
  /* max-height: 400px; */
  max-height: 400px;
}

img.content-img {
  max-width: 100%;
  max-height: 300px;
  width: auto;
  height: auto;
  margin: 0 auto;
  display: block;
  border: 2px rgba(121, 124, 135, 0.4) solid;
  border-radius: 5px;
  padding: 10px;
}

.content-img-div {
  display: flex;
  justify-content: center;
}

.gallery-slide {
  display: none;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  /* border: 1px var(--light-n-dark-a) solid; */
  border: 2px rgba(121, 124, 135, 0.4) solid;
  box-sizing: border-box;
  border-radius: 5px;
  padding: 10px;
}

.gallery-slide-img {
  width: 100%;
  height: 100%;
  max-height: 400px;
  object-fit: scale-down;
}

.gallery-slide-num, .gallery-slide-title {
  position: absolute;
  top: 8px;
  /* left: 12px; */
  /* background: rgba(0, 0, 0, 0.6); */
  background: var(--light-n-dark-a);
  color: var(--text-dark);
  padding: 0px 10px;
  font-size: 0.8rem;
  border-radius: 5px;
  font-weight: 500;
}

.gallery-slide-num {
    left: 12px;
}

.gallery-slide-title {
    right: 12px;
}

/* Arrows */
.gallery-slider-prev,
.gallery-slider-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* background: rgba(0, 0, 0, 0.5); */
  background: var(--light-n-dark-a);
  color: var(--text-dark);
  border: none;
  padding: 5px 8px;
  margin: 0 8px;
  cursor: pointer;
  border-radius: 50%;
  font-size: 1rem;
  z-index: 5;
  transition: background 0.2s ease;
  font-weight: 100;
}

.gallery-slider-prev:hover,
.gallery-slider-next:hover {
  font-weight: bold;
  background: var(--light-n-dark);
}

.gallery-slider-prev {
  left: 8px;
}

.gallery-slider-next {
  right: 8px;
}

.content-list-item-text {
  flex-basis: 70%;
  height: 100%;
  overflow: hidden;

  display: flex;
  flex-direction: column;;
  align-content: space-between;
  justify-content: space-evenly;
}

.content-list-item-text-title {
  overflow: hidden;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 1; /* Number of lines to show */
  -webkit-box-orient: vertical;
  margin-bottom: 0.5rem;
}

.content-list-item-text-date {
  /* color: var(--light-n-dark-a); */
  font-weight: bold;
  font-size: 0.8rem;
}

.content-list-item-text-title > a {
  text-decoration: none;
  color: var(--text);
  z-index: 3;
}

.content-list-item-text-title-span:hover {
  text-decoration: underline;
  /* background: var(--light-n-dark-a); */
  cursor: pointer;
  font-weight: 600;
}

.content-list-item-text-desc {
  /* white-space: nowrap; */
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 3; /* Number of lines to show */
  -webkit-box-orient: vertical;
  color: var(--light-n-dark);
  font-size: 0.9rem;
}

.content-list-item-text-category > span {
  color: var(--light-n-dark);
  border: 2px var(--light-n-dark) solid;
  padding: 5px;
  border-radius: 5px;
  /* color: var(--background); */
  font-weight: bold;
}

.ts-title {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: center;
  color: var(--light-n-dark);
  margin-bottom: 0px;
}

.ts-title > .show-option-btn {
  font-size: 1rem;
  margin-right: 10px;
}

.ts-items {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 0px;
  padding-top: 0px;
}

.stackline {
  display: flex;
  align-items: baseline;   /* aligns text nicely */
  color: var(--light-n-dark);
  font-size: 0.9rem;
  width: 100%;
  margin-left: 1rem;
}

.stackline-cat {
  flex-shrink: 0;
  font-weight: 500;
  /* margin-right: 0.3rem; */
}

.stackline-fw {
  flex: 1;
  min-width: 0;            /* enables ellipsis in flexbox */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.stackline::before {
  content: "▌";
  color: var(--light-n-dark);
  margin-right: 0.4rem;
}

.blog.title, .blog.title-date, .project.title {
  text-align: center;
}

.blog.title-date {
  color: var(--light-n-dark);
  font-weight: 400;
  font-size: 0.9rem;
}
