.gallerystyle {
  columns: 35rem;
  column-gap: 1rem;
  width: 100%;
  position: relative;
  overflow: visible;
}

.gallerystyle__item {
  transform: translateZ(0);
  margin: 0 0 2rem;
  position: relative;
  page-break-inside: avoid;
  break-inside: avoid;
}

.gallerystyle__item:after {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  z-index: 0;
  top: 0;
  left: 0;
  /* box-shadow: 0 2.8px 2.2px rgba(0, 0, 0, 0.034), 0 6.7px 5.3px rgba(0, 0, 0, 0.048),
    0 12.5px 10px rgba(0, 0, 0, 0.06), 0 22.3px 17.9px rgba(0, 0, 0, 0.072),
    0 41.8px 33.4px rgba(0, 0, 0, 0.086), 0 100px 80px rgba(0, 0, 0, 0.12); */
}

.gallerystyle__item img {
  display: block;
  height: auto;
  width: 100%;
  max-width: 100%;
}

.gallerystyle__link {
  display: block;
  position: relative;
  z-index: 11;
  overflow: hidden;
  text-decoration: none;
}

.gallerystyle__caption-wrap {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  left: 0;
  top: 100%;
  height: 100%;
  transition: top 0.5s ease 0s;
}

.gallerystyle__item:hover .gallerystyle__caption-wrap {
  top: 0;
}

.gallerystyle__image:after {
  width: 100%;
  height: 100%;
  position: absolute;
  left: 0;
  top: 0;
  opacity: 0;
  content: "";
  background-color: rgba(38, 50, 56, 0.7);
  transition: opacity 0.3s ease 0s;
}

.gallerystyle__item:hover .gallerystyle__image:after {
  opacity: 1;
}

.gallerystyle__title {
  font-family: "Museo Sans Cyrl 500", sans-serif;
  color: #fff;
}
