
* {
  -webkit-font-smoothing: antialiased;
  -moz-box-sizing: border-box;
  box-sizing: border-box; }

/* montserrat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 400;
  src: url('https://yannickhofmann.de/fonts/montserrat-v25-latin-regular.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-italic - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 400;
  src: url('https://yannickhofmann.de/fonts/montserrat-v25-latin-italic.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}
/* montserrat-500 - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 500;
  src: url('https://yannickhofmann.de/fonts/montserrat-v25-latin-500.woff2') format('woff2'); /* Chrome 36+, Opera 23+, Firefox 39+, Safari 12+, iOS 10+ */
}


html, body {
    /*font-family: 'Montserrat', sans-serif;*/
    font-family: 'montserrat-regular - latin', system-ui, -apple-system, sans-serif;
    margin: 0px;
    height: 100%;
    width: 100%;
}

body {
  /*padding: 20px;*/
  /*padding-top: 40px;*/
  min-width: 800px;
}

.main {
  /*padding: 20px;*/
  margin: 0px auto;
  /*width: 800px;*/
}




h1, footer h1 {
  font-weight: normal;
  /*width: 464px;*/
  width: calc(100%);
  
  /*background: #e9e9e9;*/
  /*
  background: #000000;
  border: 1px solid #000;

  color: #fff;*/
  color: #000;
  font-size: 20px;
  min-height: 55px;
  line-height: 55px;
  margin: auto;
  margin-top: 0px;
  margin-bottom: 20px;
  text-align: center;
}


p {
  font-weight: normal;
  /*width: 464px;*/
  /*background: #ff0000;*/
  color: #000;
  font-size: 14px;
  /*height: 55px;
  line-height: 55px;*/
  margin: auto;
  margin-top: 0px;
  margin-bottom: 20px;
  text-align: left;
  width: 100%;
}

footer p {
  font-weight: normal;
  /*width: 464px;*/
  /*background: #ff0000;*/
  color: #000;
  font-size: 14px;
  /*height: 55px;
  line-height: 55px;*/
  margin: auto;
  margin-top: 0px;
  margin-bottom: 50px;
  text-align: left;
  width: 800px;
}

.demos {
  text-align: center;
  margin-top: 20px;
  /*width: 490px;*/
  margin: auto;
  /*min-width: 800px;*/
}

.demo-image {
  /*cursor: url("https://yannickhofmann.de/images/wishing_well01.jpg") 25 25, auto;*/
  display: inline-block;
  /*
  width: 220px;
  height: 220px;
  */
  background-size: cover;
  background-position: 50% 50%;
  /*margin-left: 8px;*/
  /*margin-right: 8px;*/
  margin-bottom: 16px; }

footer h1 {
  padding-left: 20px;
  /*background: #e9e9e9;
  color: #222222;*/
  color: #000;
  font-size: 14px; }

footer h1 a {
    color: #222222; }

a {
    color: #000;
    text-decoration: underline;
    
}
a:hover {
    color: #808080;
}


.fa {
    display: inline-block;
    font: normal normal normal 14px/1 FontAwesome;
    font-size: inherit;
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
    /*border: 1px solid #000;*/
    background: #fff;
    -moz-osx-font-smoothing: grayscale;
    line-height: 20px;
    font-size: 32px;
    cursor: pointer;
    /* width: auto; */
}



*:before,
*:after,
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

.container {
  /*width: 1400px;*/
  width: 800px;

  margin: 20px auto;
  columns: 2;
  column-gap: 20px;
}

.container .box {
  width: 100%;
  margin-bottom: 10px;
  break-inside: avoid;
}

.container .box img {
  max-width: 100%;
  /*border-radius: 15px;*/
}



.overlay-container {

  position: relative;
  /*overflow: hidden;*/
  /*
  display: inline-block;
  
  */
}

.title {
  color: #fff;
  position: absolute;
  top: 50%;
  text-align: center;
  width: 100%;
  transition: translate(-50%, -50%);
}

.image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}


.artist, .format, .description, .funding, .credits, .year  {
  display: none;
}

#funding, #credits {
    font-size: 14px;
}


/*Initial overlay setup*/
.overlay {
  position: absolute;
  transition: all .3s ease;
  opacity: 0;
  background: rgba(0, 0, 0, .6);
}

/*All overlay fade-in*/
.overlay-container:hover .overlay {
  opacity: 1;
}

.overlay-left {
  height: 100%;
  width: 0;
  top: 0;
  left: 0;
}

.overlay-right {
  height: 100%;
  width: 0;
  top: 0;
  right: 0;
}

.overlay-top {
  height: 0;
  width: 100%;
  top: 0;
  right: 0;
}

.overlay-bottom {
  height: 0;
  width: 100%;
  bottom: 0;
  right: 0;
}

.overlay-fade {
  height: 100%;
  width: 100%;
  top: 0;
  right: 0;
}

.overlay-cross {
  height: 0;
  width: 0;
  top: 0;
  left: 0;
}


/*Hover states for each of the overlays*/
.overlay-container:hover .overlay-left, .overlay-container:hover .overlay-right {
  width: 100%;
}

.overlay-container:hover .overlay-top, .overlay-container:hover .overlay-bottom {
  height: 100%;
}

.overlay-container:hover .overlay-cross {
  width: 100%;
  height: 100%;
}


.overlay-circle {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 50%;
    opacity: 0;
    transition: opacity 0.3s ease;
}

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


.theme-control {
  background: transparent;
  color: #000;
  padding: 5px 10px;
  border: 1px solid #000;
  /*border-radius: 3px;*/
  margin: 5px;
  cursor: pointer;
  transition: all 0.5s ease;
}

.theme-control.active {
  background: #000;
  color: #fff;
}



.overlay-fullscreen {
    display: none;
    position: fixed;
    top: 0px;
    left: 0;
    width: 100%;
    height: 100%;
    /*background: rgba(0, 0, 0, 0.8);*/
    background: rgba(255, 255, 255, 1.0);
    z-index: 9999;
    overflow-y: auto;

}

.overlay-content {
    display: flex;
    flex-direction: column;
    margin-top: 30px;
    justify-content: top;
    align-items: center;
    /*height: 100%;*/
}

.overlay-thumbnail {
    /*min-width: 800px;*/
    /*display: flex;*/
    /*width: 100%;*/
}

.overlay-thumbnail img {
    /*max-width: calc(100% - 40px); */ /* Remove the max-width constraint */
    /*max-height: calc(33.33vh);*/ /* Set max-height to one-third of viewport height */
    /*width: 50%;*/ /* Ensure the width adjusts accordingly */
    
    max-height: calc(50vh);
    /*max-width: 50%;*/

}

.overlay-text {
    color: #fff;
    width: 50%;
    margin-top: 20px;
    margin-bottom: 20px;

}

.overlay-text h1 {
    font-size: 14px;

}

.overlay-close {
    position: absolute;

    font-size: 20px;
    font-weight: 500;
    cursor: pointer;
    top: 10px;
    right: 10px;
    background: #fff;
    border: 1px solid #000;
    line-height: 20px;
    width: 20px;
    color: #000;
    transition: transform 0.2s ease-in-out, background-color 0.2s ease-in-out;

}

.overlay-close:hover {
  background-color: #000; /* Example background color on hover */
  color: #fff; /* Example background color on hover */
  transform: scale(1.1); /* Increase the size on hover */
}


.overlay-text title {

    font-weight: bold;
    /*width: 464px;*/
    width: calc(100%);
    
    /*background: #e9e9e9;*/
    background: #000000;
    border: 1px solid #000;

    color: #fff;
    font-size: 20px;
    margin: auto;
    margin-top: 0px;
    margin-bottom: 0px;
    text-align: left;
}

.overlay-text p {
    font-size: 14px;
    margin: 5px 0;
    text-align: justify;

}

/* Optional: Add spacing between paragraphs */
.overlay-text p + p {
    margin-top: 5px;
}

#title {
    font-weight: bold;
}

/*
#year,
#artist,
#format {
    font-style: italic;
}
*/
#description {
    margin-top: 10px;
    font-size: 14px;

}

#credits,
#funding {
    margin-top: 10px;
}


@media (max-width: 1200px) {


  body {
    min-width: calc(100%);
    padding-top: 0px;
  }

  .container {
    /*width: calc(100% - 40px);*/
    columns: 3;
    width: calc(100% - 8px);

  }

  

  /*
  .main {
    width: calc(100% - 8px);
  }
   */

  footer h1 {
      width: calc(100%);
      /*width: calc(100% - 8px);*/
  }
  
  p, footer p {
      width: calc(100% - 8px);
  }

  .demos {
    min-width: calc(100% - 8px);
  }

}

@media (max-width: 768px) {

    body {
      min-width: calc(100%);
      padding-top: 0px;
    }
    
    .overlay-text {
        max-width: calc(100% - 8px);
    }
    

    .container {
    columns: 2;
    width: calc(100% - 8px);

  }

    /*
  .main {
    width: calc(100% - 8px);
  }
     */

  footer h1 {
      width: calc(100%);
      /*width: calc(100% - 8px);*/
  }
  
  p, footer p {
      width: calc(100% - 8px);
  }

  .demos {
    min-width: calc(100% - 8px);
  }

}

@media (max-width: 480px) {

    .container {
      columns: 1;
      width: calc(100% - 20px);
    }
    
    .theme-control {

        padding: 5px 6px;
    }

    .overlay-content {

    margin-top: 40px;
    }
    
    
    .overlay-close {
        position: absolute;

        
        right: 100%;
        left: 10px;
    }

    
    .overlay-text {
        width: calc(100% - 20px);
    }
    
    .overlay-thumbnail {
        /*display: block;*/
    }
    
    .overlay-thumbnail img {
        width: calc(100% - 20px);
    }
    
    
  body {
      max-width: calc(100%);
      padding-top: 0px;
  }
  
  /*
  .main {
    max-width: calc(100% - 20px);
  }
   */


  footer h1 {
      max-width: calc(100%);
      /*max-width: calc(100% - 20px);*/
  }
  
  p, footer p {
      /*max-width: calc(100% - 20px);*/
      
  }


  .demos {
    max--width: calc(100% - 20px);
    
  }
  
  
  
  
  
  .brilli {
      display: flex;
      justify-content: space-between;
      flex-wrap: wrap;
  }

  .brillimantel {
      width: calc(100% - 40px);
      float: left;
      margin-left: 20px;
      /* border: solid 1px blue; */
      text-align: center;
  }

  .button {

  display: inline-block;

  }

  .portfolio-themes {

      display: contents;
          grid-template-columns: auto 1fr auto;
          gap: 5px;
          max-width: 100%;
          border: 1px solid #ccc;
          align-items: center;
  }

  .theme-control {
      /* min-width: 100px; */
      text-align: center;
      background: transparent;
      color: #000;
      padding: 5px 13px;
      border: 1px solid #000;
      /* border-radius: 3px; */
      /*margin: 5px;*/
      cursor: pointer;
      transition: all 0.5s ease;
      font-size: 14px;

  }

      
  #bamba {
      flex: 1; /* Distribute available space evenly among buttons */
      margin: 5px; /* Add some spacing between buttons */
      padding: 10px; /* Add padding for better button appearance */
      min-width: 100px; /* Set a minimum width for buttons */
      text-align: center; /* Center the text inside buttons */
  }


  #bamba1{
      float:left;
  }
  #bamba4{
      float:right;
  }



}



@media (max-width: 420px) {
    .theme-control {
        /* min-width: 100px; */
        text-align: center;
        background: transparent;
        color: #000;
        padding: 5px 10px;
    }
}

@media (max-width: 389px) {
    .theme-control {
        /* min-width: 100px; */
        text-align: center;
        background: transparent;
        color: #000;
        padding: 5px 5px;
    }
}

@media (max-width: 380px) {
    .theme-control {
        /* min-width: 100px; */
        text-align: center;
        background: transparent;
        color: #000;
        padding: 5px 4px;
    }
}



@media (max-width: 350px) {
    .theme-control {
        /* min-width: 100px; */
        text-align: center;
        background: transparent;
        color: #000;
        padding: 5px 1px;
    }
}

/* width */
::-webkit-scrollbar {
  width: 10px;
}

/* Track */
::-webkit-scrollbar-track {
  /*background: #ffffff;
  border: 1px solid #000;*/
  overflow-y: auto;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #000;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #000;
}







#loader {
height: 100vh;
width: 100%;
background-color: white;
position: fixed;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
z-index: 999;
}

#loader img {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
width: 30%;
}
