/* Gallery page styles */

.gallery-page-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.gallery-page-grid a:nth-child(1),
.gallery-page-grid a:nth-child(6) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-page-grid img {
  width: 100%;
  height: 230px;
  border-radius: 8px;
  object-fit: cover;
}

.gallery-page-grid a:nth-child(1) img,
.gallery-page-grid a:nth-child(6) img {
  height: 478px;
}


.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: -8px 0 34px;
}

.gallery-filter button {
  min-height: 38px;
  padding: 0 18px;
  border: 1px solid #dbe6e9;
  border-radius: 999px;
  color: var(--blue);
  font-weight: 700;
  background: #fff;
}

.gallery-filter button.active,
.gallery-filter button:hover {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}

.masonry-gallery {
  position: relative;
}

.masonry-sizer,
.masonry-item {
  width: 32%;
}

.masonry-gutter {
  width: 2%;
}

.masonry-item {
  display: block;
  position: relative;
  overflow: hidden;
  margin-bottom: 24px;
  border-radius: 8px;
  color: #fff;
  background: #eef6f4;
  box-shadow: 0 12px 26px rgba(23, 74, 120, .09);
}

.masonry-item img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform .45s ease;
  border-radius: 7px;
}

.masonry-item:hover img {
  transform: scale(1.045);
}

.masonry-item::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 42%;
  pointer-events: none;
}

.masonry-caption {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  z-index: 2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  display: none;
}

.masonry-video .play-btn {
  display: grid;
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 3;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  color: var(--blue);
  background: #fff;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .18);
  transform: translate(-50%, -50%);
}

.masonry-video .play-btn i {
  margin-left: 3px;
}
