  /*HEADER*/


@media (max-width: 768px) {
  body {
    margin-top: 0px;
  }

  .projectstitle {
    display: flex;
    flex-direction: row !important;
    justify-content: center;
    align-items: center;
    height: auto !important;
    width: auto !important;
  }

  .projectstitle h1 {
    font-family: "Space Mono",monospace;
    font-size: 45px !important;
    font-weight: 700;
    color: blue !important;
  }

  .projectstitle img {
    height: 100px;
    width: 100px;
    margin-right: 10px;
    border: 5px solid black;
    border-radius: 5px;
    margin-top: 150px;
  }

  /*===BILDERGALERIE===*/
  .gallery {
    column-count: 3;       /* Anzahl Spalten */
    column-gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    padding-left: 10px;
    padding-right: 10px;
  }

  .image {
    display: inline-block;
    width: 100%;
    margin-bottom: 20px;
    break-inside: avoid;
    text-align: center;
  }

  .image img {
    width: 100%;
    border: 5px solid black;
    border-radius: 8px;
    cursor: pointer;
  }

  /* Bildbeschreibung */
  .image p {
    font-family: "Space Mono", monospace;
    font-size: 14px;
    margin-top: 5px;
    text-align: left;
  }

  /* Lightbox Overlay */
  .lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
  }

  .lightbox img {
    max-width: 90%;
    max-height: 90%;
    border: none;
    border-radius: 8px;
    background: white;
  }

  /*SUBTITLE STYLING*/
  .arrowicon {
    width: 40px;      /* Größe anpassen */
    height: 40px;
    display: block;   /* verhindert extra Inline-Raum */
  }

  .subtitle-link:hover .arrowicon {
    filter: brightness(1.2);
  }

  .projectsubtitle span.current-year {
    font-family: "Space Mono", monospace;
    font-size: 50px;
    font-weight: 700;
    color: blue !important;       
    padding: 0 10px;      
    margin-bottom: 20px;
  }

  .projectsubtitle {
    display: flex;             /* Flexbox aktivieren */
    flex-direction: row;       /* horizontal */
    justify-content: center;   /* zentriert im Container */
    align-items: center;       /* vertikal zentriert */
    gap: 10px;                 /* Abstand zwischen Pfeilen und Jahr */
  }
}