body.overlay-active::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}

.feature-image img.enlarged {
  position: fixed;
  inset: 0; /* fill the viewport */
  margin: auto; /* center naturally */
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.7);
  cursor: zoom-out;
  max-width: 90vw;
  max-height: 90vh;
  transform: scale(1);
  width: auto; /* maintain original aspect ratio */
  height: auto; /* maintain original aspect ratio */
  transition: transform 0.4s ease, box-shadow 0.4s ease;
  z-index: 10001;
}

.feature-image.enlarged img {
  display: block;
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  margin: auto;
}


#profile-pic {
  object-position: top;
}


.feature-image-toggle input[type="checkbox"] {
  display: none;
}

.feature-image-toggle .feature-image {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: zoom-in;
}

.feature-image-toggle input[type="checkbox"]:checked + .feature-image {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1.5);
  z-index: 9999;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.8);
  cursor: zoom-out;
}

body:has(.feature-image-toggle input[type="checkbox"]:checked)::before {
  content: '';
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 9998;
}


@media screen and (max-width: 1152px) {
  #wrapper > section.intro > header {
    height: 40vh;
  }
  #wrapper > section.intro > .content {
    height: 60vh;
  }
}

#wrapper section:has(.projectinfo) > header h2 {
    margin: 0 0 1rem 0 !important;
}

#wrapper section.get-in-touch > header h2 {
  margin: 0 0 1rem 0 !important;
}

@media screen and (max-width: 1152px) {
  #wrapper section.get-in-touch > header h2 {
    margin: 0 0 0rem 0 !important;
  }

  section.get-in-touch ul.items > li > h3
  {
    margin: 1.5rem 0 0 0;
  }
}

section:not(:has(.projectinfo)) > header h2 {
  margin-bottom: 0;
}

header .projectinfo {
    margin: 0 0 0.5rem 0;
}

header ul {
  text-align: left;
}


@media screen and (max-width: 1152px) {
  header ul.skills {
    display: block;
    max-width:none !important;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
  }

  header ul.skills li:before {
    display:none;
    background-image: none;
  }

  header .skills li {
    display: inline-block;
    text-align: center;
    text-decoration: none;
    width: auto;
    background-color: rgba(144,144,144,0.5);
    border: none;
    color: black;
    padding: 0px 20px;
    text-decoration: none;
    margin: 4px 2px;
    cursor: pointer;
    border-radius: 10px;
  }
}

@media screen and (max-width: 1152px) {
  .publications li {
    padding:0.5rem 0 0 2.5rem!important;
  }
}


@media screen and (max-width: 736px) {
  #wrapper > section.publications > .content {
    padding: 1rem 1rem;
  }
}

a.prev,
a.next {
  border-bottom: none;
}

.slideshow .modal {
  display: none;
}
.modal .modal-content {
  background-color: inherit;
}

.gallery-container {
  position: relative;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  background: rgb(0, 0, 0);
  background: rgba(0, 0, 0, 0.6); /* Black see-through */
  color: #f1f1f1;
  width: 100%;
  transition: .5s ease;
  opacity:0;
  color: white;
  font-size: 2rem;
  padding: 20px;
  text-align: center;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.gallery-container:hover .overlay {
  opacity: 1;
}

@media screen and (max-width: 1152px) {
  .overlay {
    opacity: 1;
  }
}

.capt-wrapper {
  visibility: inherit;
}

.capt {
  position: absolute;
  width: 100%;
  background-color: inherit;
  color: white;
}

.mySlides video,
.mySlides img {
  display: block;
height: 25vw;
min-height: 18rem;
object-fit: contain;
object-position: center;
width: 100%;
}

.publications li {
  list-style: none;
  margin: 0.5rem 0 0 0;
  padding:0.5rem 0 0 3.5rem;
}

.publications li:before {
  position: absolute;
  top: 1.25rem;
  left:0;

}

.row > .column {
    padding: 0 8px;
  }
  
  .row:after {
    content: "";
    display: table;
    clear: both;
  }
  
  /* Create four equal columns that floats next to eachother */
  .column {
    float: left;
    width: 25%;
  }
  
  /* The Modal (background) */
  .modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: black;
  }
  
  /* Modal Content */
  .modal-content {
    position: relative;
    background-color: #fefefe;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 1200px;
  }
  
  /* The Close Button */
  .close {
    color: white;
    position: absolute;
    top: 10px;
    right: 25px;
    font-size: 35px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: #999;
    text-decoration: none;
    cursor: pointer;
  }
  
  /* Hide the slides by default */
  .mySlides {
    display: none;
  }
  
  /* Next & previous buttons */
  .prev,
  .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -50px;
    color: white;
    font-weight: bold;
    font-size: 20px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    -webkit-user-select: none;
  }
  
  /* Position the "next button" to the right */
  .next {
    right: 0;
    border-radius: 3px 0 0 3px;
  }
  
  /* On hover, add a black background color with a little bit see-through */
  .prev:hover,
  .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
  }
  
  /* Number text (1/3 etc) */
  .numbertext {
    color: #f2f2f2;
    margin: 2rem 12px;
    position: fixed;
    top: 0;
    font-size: 1rem;
  }
  
  /* Caption text */
  .caption-container {
    text-align: center;
    background-color: black;
    padding: 2px 16px;
    color: white;
  }
  
  img.demo {
    opacity: 0.6;
  }
  
  .active,
  .demo:hover {
    opacity: 1;
  }
  
  img.hover-shadow {
    transition: 0.3s;
  }
  
  .hover-shadow:hover {
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  }

.get-in-touch ul.items li h3 {
  margin: 0 0 0 0;
}













