
/********** Gallery media **********/
.blur{
  filter: blur(6px);
  opacity: 0.3;
}
.gallery-media {
  padding: 10px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  margin: 0 auto;
  justify-items: center;
  transition: 0.4s;
  gap: 10px;
  overflow-x: hidden;
  overflow-y: hidden;
  animation: 2s fadeInUp;
  max-width: 840px;
}

@keyframes fadeInUp {
  0% {
    transform: translateY(100%);
    opacity: 0;
  }
  50% {
    opacity: 0;
  }
  100% {
    transform: translateY(0%);
    opacity: 1;
  }
}
.gallery-media img {
  width: 160px;
  height: 200px;
  object-fit: cover;
  transition: 0.3s;
}
.gallery-media img:hover {
  scale: 1.03;
}
.gallery:after {
  content: "";
  clear: both;
}
/********** Gallery filter **********/
#title-bar {
  font-family: "Albura";
  font-variation-settings: "wght" 500;
  text-align: center;
  padding: 1rem;
  font-size: large;
  font-weight: bold;
}
#FilterContainer {
  text-align: center;
  padding: 0;
  overflow-x: hidden;
  margin: 0px 20px;
  width: 150px;
}
#FilterContainer li {
  list-style-type: none;
  padding: 5px;
}
.L {
  float: left;
}
.btn {
  cursor: pointer;
  transition: 0.3s;
}
.btn:hover {
  transform: translateY(-2px) translateX(1px);
}
.btn.active {
  background-color: rgba(172, 172, 172, 0.5);
}

@keyframes rainbow-text {
  0%,
  17%,
  100% {
    color: #ff3b3b;
  }
  34% {
    color: #f2d053;
  }
  51% {
    color: #30e45a;
  }
  68% {
    color: #3eded9;
  }
  85% {
    color: #a20eb5;
  }
}
.filter {
  /* Settings to make "filter-again.js" work */
  display: none;
}
.show {
  display: block;
  animation: fadeIn 1s ease;
}
@keyframes fadeIn {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
/*========================= FANCYBOX UI ===========================*/
/* Previous/next toggle buttons */
.fancybox-navigation .fancybox-button {
  height: auto !important;
  z-index: 999;
}
/* Fancybox info container (aka 'Fancybox caption') */
.fancybox-caption > div {
  /* padding: 20px;
    margin:  20px; */
  max-height: calc(30vh - 10vh);
  overflow-y: auto;
  overflow-x: hidden;
}
.fancybox-show-caption.fancybox-vertical-caption .fancybox-caption {
  transform: translate3d(0, 0, 0);
}
.info,
.fancybox-caption::before {
  display: none;
}
.fancybox-show-caption .fancybox-caption,
.fancybox-caption {
  transition: transform 0.5s !important;
}
/* .fancybox-navigation .fancybox-button[disabled],
  .fancybox-navigation .fancybox-button[disabled]:hover {
    color: blue !important;
  } */
h4 {
  padding-bottom: 20px;
}
h3, h4, p {
  font-family: "Catamaran";
  text-wrap: pretty;
  max-width: 1000px;
  margin: 0 auto;
}
p {
  font-size: 1.05rem;
}
.fancybox-caption a {
  color: #d14747;
}
.fancybox-caption {
  height: 30vh;
  box-shadow: 0 0 20px #00000031;
  z-index: 999;
  /* Hidden under viewport by default */
  transform: translate3d(0, 100%, 0);
}
/********** Filter nav **********/
.nav-button-2, #nav-check-2 {
  display: none;
}
@media (max-width: 880px) {
  .L {
    width: 100%;
    margin-right: 0;
    float: none;
  }
  /* NAV/MOBILE MENU */
  .nav-button-2 {
    display: inline-block;
  }
  .nav-button-2 > label {
    display: inline-block;
    cursor: pointer;
  }
  #FilterContainer {
    width: 50%;
    height: 0px;
    transition: all 0.4s ease-in-out;
    overflow: hidden;
    z-index: 999;
  }
  #FilterContainer,
  #FilterContainer a {
    display: block;
  }
  #nav-check-2:checked ~ #FilterContainer {
    height: calc(200px - 0px);
    overflow-y: none;
  }
  .L {
    float: none;
    justify-items: center;
  }
  .gallery-media {
    max-width: none;
  }
}

@media (max-width: 400px) {
  .gallery-media img {
    width: 150px;
    height: 150px;
    object-fit: cover;
    transition: 0.3s;
  }
}