<link rel="stylesheet" href="slick/slick.css">body {
  padding: 20px;
  font-family: sans-serif;
  background: #f2f2f2;
}
imga {
  width: 100%; /* need to overwrite inline dimensions */
  height: auto;
}

.grid-container {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  grid-gap: 1em;
}


/* hover styles */
.location-listing {
  position: relative;
}

.location-image {
  line-height: 0;
  overflow: hidden;
}

.location-image img {
  object-fit: cover;
  object-position: center center;
  filter: blur(0px);
  transition: filter 0.3s ease-in;
  height: auto;
  width: 100%;
}

.location-title {
  font-size: 1.5em;
  font-weight: bold;
  text-decoration: none;
  z-index: 1;
  position: absolute;
  height: 100%;
  width: 100%;
  top: 0;
  left: 0;
  opacity: 0;
  transition: opacity .5s;
  background: rgba(0,0,10,0.4);
  color: white;
  border-radius: 10px;
  text-align: center;
  /* position the text in t’ middle*/
  display: flex;
  align-items: center;
  justify-content: center;
}

.location-listing:hover .location-title {
  opacity: 1;
}

.location-listing:hover .location-image img {
  filter: blur(2px);
}


/* for touch screen devices */
/*@media (hover: none) { 
  .location-title {
    opacity: 1;
  }
  .location-image img {
    filter: blur(2px);
  }
}*/

@media (max-width: 1280px) {
  .slick-initialized .slick-slide.location-listing {
    display: flex;
    flex-direction: column-reverse;
  }

  .location-title {
    opacity: 1;
    position: relative;
    margin-top: 10px;
    min-height: 80px;
    line-height: 1.2;
  }
}

@media (max-width:1366px){
  #gallery-projekt .location-title {
    display: none;
  }
}