/* Masonry Grid */
.imagegallery.design5 {
  display: block;
  padding: 10px;
}
.imagegallery.design5 a {
  flex: auto;
  height: 300px;
  min-width: 150px;
  margin: 0 0 8px 0;
  position: relative;
  overflow: hidden;
  display: block;
  height: auto;
}
.imagegallery.design5 > a:first-child[href*='null'] {
  display: none;
}
html.ie .imagegallery.design5 img {
  opacity: 0;
}
/* Empty Box with link arrow */
.imagegallery.design5 a.empty {
  position: relative;
  font-family: 'Trade Gothic 18';
  display: block;
  margin: 0 0 8px 0;
}
.imagegallery.design5 .empty-wrapper:before,
.imagegallery.design5 .empty-wrapper:after {
  content: '';
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  margin: 0 auto;
  max-width: 200px;
  height: 20px;
}
.imagegallery.design5 a.empty .empty-wrapper:before,
.imagegallery.design5 a.empty .empty-wrapper:after {
  opacity: 0;
  transition: all 0.2s ease-out;
}
.imagegallery.design5 a.empty:hover .empty-wrapper:before,
.imagegallery.design5 a.empty:hover .empty-wrapper:after {
  opacity: 1;
  transition: all 0.2s ease-out;
}
.imagegallery.design5 .empty-wrapper:before {
  content: '';
  background: url('i/ic-arrow_white.svg') no-repeat;
  height: 30px;
  width: 80px;
  bottom: 20px;
}
.imagegallery.design5 .empty-wrapper:after {
  content: 'MEHR';
  font-family: 'Trade Gothic 18';
  font-size: 1.2em;
  bottom: 55px;
  text-align: center;
  left: 0;
  right: 0;
  width: 80px;
  color: #fff;
}
.imagegallery.design5 a.empty .title {
  transition: all 0.4s ease-out;
}
.imagegallery.design5 a.empty:hover .title {
  opacity: 0;
  transition: all 0.2s ease-out;
}
.imagegallery.design5 a.empty:before {
  content: '';
  width: 100%;
  height: 100%;
  display: block;
}
.imagegallery.design5 a.empty:after {
  content: '';
  position: absolute;
  left: 15px;
  top: 15px;
  right: 15px;
  bottom: 15px;
  border: 1px solid #fff;
}
.imagegallery.design5 a.empty .text,
.imagegallery.design5 a.empty .text-inner {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  right: 0;
  display: block;
  color: #fff;
  text-align: center;
  font-size: 2rem;
  line-height: 100%;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 25px;
}
.imagegallery.design5 a.empty .descr {
  top: 0;
  transform: none;
}
.imagegallery.design5 a.empty .text.descr {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  align-content: center;
  line-height: 1.2;
  font-size: 1.6em;
  padding: 0 30px;
}
.imagegallery.design5 a.empty .text-inner {
  width: 100%;
  height: 100%;
  font-size: 0.9em;
  max-width: 500px;
  margin: 0 auto;
}
.imagegallery.design5 .text:not(.title):not(.descr),
.imagegallery.design5 .text.descr {
  display: flex;
  position: absolute;
  left: 0;
  right: 0;
  padding: 0 30px;
  top: 0;
  bottom: 0;
  opacity: 0;
  transition: all 400ms ease;
  -webkit-transition: all 400ms ease;
}
.imagegallery.design5 a:hover .text:not(.title):not(.descr),
.imagegallery.design5 a:hover .text.descr {
  opacity: 1;
  transition: all 0.4s ease-out;
}
.imagegallery.design5 .text-inner {
  margin: auto;
  text-align: center;
  font-size: 1.4em;
  color: #fff;
  width: 100%;
  text-shadow: 1px 1px rgba(84, 81, 84, 0.8);
}
.imagegallery.design5 a figure {
  width: 100%;
  height: 100%;
}
.imagegallery.design5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
/* Image Text */
.imagegallery.design5 > a:not(.empty) .text {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  font-family: 'Trade Gothic 20';
  padding: 20px;
  color: #fff;
  text-shadow: 1px 1px 1px #111;
  font-size: 1.8em;
  text-align: left;
  letter-spacing: 1px;
  line-height: 110%;
  width: 100%;
}
/* Masonry IE */
html.ie .imagegallery.design5 {
  display: flex;
  flex-flow: row wrap;
  margin-left: 0;
  /*width: calc(100% + 6px);*/
  width: 100%;
  overflow: hidden;
}
html.ie .imagegallery.design5:after {
  content: '';
  display: block;
  clear: both;
}
html.ie .imagegallery.design5 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html.ie .imagegallery.design5 figure {
  display: block;
  width: 100%;
  height: 100%;
}
html.ie .imagegallery.design5 a {
  flex: auto;
  height: 300px;
  min-width: 300px;
  margin: 0 8px 8px 0;
  position: relative;
}
html.ie .imagegallery.design5 a:nth-child(4n+1) {
  width: 30%;
}
html.ie .imagegallery.design5 a:nth-child(4n+2) {
  width: 250px;
}
html.ie .imagegallery.design5 a:nth-child(4n+3) {
  width: calc(30% - 16px);
}
html.ie .imagegallery.design5 a:nth-child(4n+4) {
  width: 20%;
}
html.ie .imagegallery.design5 a:nth-child(1) {
  width: 30%;
  height: 500px;
}
html.ie .imagegallery.design5 a:nth-child(2) {
  width: 30%;
  height: 500px;
}
html.ie .imagegallery.design5 a:nth-child(7) img {
  object-position: 50% 15%;
}
html.ie .imagegallery.design5 a:nth-child(9) img {
  object-position: 50% 15%;
}
html.ie .imagegallery.design5 a:nth-child(14) img {
  object-position: top;
}
@media screen and (min-width: 680px) {
  .imagegallery.design5 a {
    margin: 0 8px 8px 0;
  }
  .imagegallery.design5 a:nth-child(2),
  .imagegallery.design5 a:nth-child(3),
  .imagegallery.design5 a:nth-child(6),
  .imagegallery.design5 a:nth-child(7),
  .imagegallery.design5 a:nth-child(8),
  .imagegallery.design5 a:nth-child(9),
  .imagegallery.design5 a:nth-child(13),
  .imagegallery.design5 a:nth-child(14) {
    display: block;
  }
}
@media screen and (min-width: 800px) {
  .imagegallery.design5 a.empty .text {
    font-size: 2.2rem;
  }
}
@media screen and (min-width: 961px) {
  html.ie .imagegallery.design5 a:nth-child(3) {
    height: 500px;
  }
}
@media screen and (min-width: 1200px) {
  .imagegallery.design5 {
    padding: 0;
  }
}
@supports (display: grid) {
  @media screen and (min-width: 680px) {
    .imagegallery.design5 {
      display: flex;
    }
    .imagegallery.design5 a {
      flex: none;
      height: auto;
      min-width: 0;
      margin: 0;
    }
    .imagegallery.design5 a.empty {
      margin: 0;
    }
    .imagegallery.design5 a:nth-of-type(1) {
      grid-area: b1;
    }
    .imagegallery.design5 a:nth-of-type(2) {
      grid-area: b2;
    }
    .imagegallery.design5 a:nth-of-type(3) {
      grid-area: b3;
    }
    .imagegallery.design5 a:nth-of-type(4) {
      grid-area: b4;
    }
    .imagegallery.design5 a:nth-of-type(5) {
      grid-area: b5;
    }
    .imagegallery.design5 a:nth-of-type(6) {
      grid-area: b6;
    }
    .imagegallery.design5 a:nth-of-type(7) {
      grid-area: b7;
    }
    .imagegallery.design5 a:nth-of-type(8) {
      grid-area: b8;
    }
    .imagegallery.design5 a:nth-of-type(9) {
      grid-area: b9;
    }
    .imagegallery.design5 a:nth-of-type(10) {
      grid-area: b10;
    }
    .imagegallery.design5 a:nth-of-type(11) {
      grid-area: b11;
    }
    .imagegallery.design5 a:nth-of-type(12) {
      grid-area: b12;
    }
    .imagegallery.design5 a:nth-of-type(13) {
      grid-area: b13;
    }
    .imagegallery.design5 a:nth-of-type(14) {
      grid-area: b14;
    }
    .imagegallery.design5 a:nth-of-type(15) {
      grid-area: b15;
    }
    .imagegallery.design5 a:nth-of-type(16) {
      grid-area: b16;
    }
    .imagegallery.design5 {
      display: grid;
      grid-template-columns: 1fr 1fr;
      /*grid-template-rows: repeat(24, 115px);*/
      grid-template-rows: repeat(22, 115px);
      grid-gap: 10px;
      grid-template-areas: "b1 b2" "b1 b2" "b1 b2" "b1 b2" "b3 b2" "b3 b4" "b3 b4" "b5 b4" "b5 b6" "b5 b6" "b7 b6" "b7 b8" "b7 b8" "b9 b8" "b9 b10" "b9 b10" "b9 b10" "b9 b10" "b9 b10" "b11 b12" "b11 b12" "b11 b12" "b13 b12" "b13 b14" "b13 b14" "b15 b14" "b15 b16" "b15 b16";
    }
  }
  @media screen and (min-width: 1000px) {
    .imagegallery.design5 .text-inner {
      font-size: 2.2rem;
    }
    .imagegallery.design5 {
      max-height: 2000px;
      grid-template-columns: 2fr 2fr 3fr 4fr;
      /*grid-template-rows: repeat(24, 115px);*/
      grid-template-rows: repeat(16, 115px);
      grid-gap: 10px;
      grid-template-areas: "b1 b1 b2 b2" "b1 b1 b2 b2" "b1 b1 b2 b2" "b1 b1 b2 b2" "b1 b1 b4 b5" "b3 b3 b4 b5" "b3 b3 b4 b5" "b3 b3 b7 b5" "b6 b6 b7 b8" "b6 b6 b7 b8" "b6 b6 b7 b8" "b9 b9 b10 b8" "b9 b9 b10 b11" "b9 b9 b10 b11" "b9 b9 b10 b11" "b9 b9 b10 b11" "b12 b13 b13 b14";
    }
    .imagegallery.design5 a:nth-of-type(14) img {
      object-position: top;
    }
  }
}
