
.photos .wrapper {
  width: 1200px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  margin: auto;
}

.photos .image {
  width: 22%;
  height: 200px;
  overflow: hidden;
  margin: 10px;
  cursor: pointer;
  border-radius: 4px;
}

.photos .image:hover img {
  transform: scale(1.2);
}

.photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: 0.25s;
}

.photos .gallery {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.8);
  z-index: 1;
  display: flex;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.8);
  transition: 0.25s;
  user-select: none;
}

.photos .gallery.show {
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.photos .gallery-inner {
  width: 70%;
  height: 70%;
  margin: auto;
}

.photos .control {
  position: absolute;
  color: rgba(255, 255, 255, 0.8);
  font-size: 50px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
}

.photos .photos .prev {
  left: 15px;
}

.photos .next {
  right: 15px;
}

.photos .close {
  color: white;
  font-size: 35px;
  position: absolute;
  top: 15px;
  right: 25px;
  cursor: pointer;
}

.photos .hide {
  display: none;
}


@media screen and (max-width: 768px) {
	.photos .wrapper {width:100%}
	.photos .image {width: 40%;height: 150px;}
}