/* Masonry grid */
.masonry {
  /*
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  grid-auto-rows: 280px;
  grid-gap: 1em;
  */
  column-count: 2;
  column-gap: 1em;
}

/* Masonry item */
.masonry .brick {
  position: relative;
  display: inline-block;
  width: 100%;
  margin-bottom: 1em;
}

.overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: rgb(68, 73, 80, 0.3);
  overflow: hidden;
  width: 100%;
  height: 100%;
  transition-duration: 0.1s;
  transition-property: opacity;
  transition-timing-function: cubic-bezier(0, 0, 1, 1);
  opacity: 0;
  pointer-events: none;
  border-radius: 8px;
}

/* When you mouse over the container, the overlay text will "zoom" in display */
.masonry .brick:hover .overlay {
  opacity: 1;
}

.masonry .brick .caption {
  position: absolute;
  width: 100%;
  bottom: 0;
  padding-bottom: 10px;
  padding-left: 8px;
}

i.i-play {
  background-image: url(/images/fRWHKEPmVbX.png);
  background-position: 0px -282px;
  background-size: 73px 392px;
  width: 20px;
  height: 20px;
  background-repeat: no-repeat;
  display: inline-block;
  filter: invert(1);
}

/* Masonry image effects */
.masonry .brick img,
.masonry .brick video {
  border-radius: 8px;
  width: 100%;
  height: 100%;
  object-fit: fill;
}

.masonry .brick .popup-youtube {
  display: flex;
}

/* Masonry on tablets */
@media only screen and (min-width: 768px) and (max-width: 1023px) {
  .masonry {
    column-count: 4;
  }
}

/* Masonry on big screens */
@media only screen and (min-width: 1024px) {
  .masonry {
    column-count: 6;
  }
}

.mfp-title {
  position: absolute;
  /* other formatting */
}