

figure {
  margin: 0;
  padding: 0;
}

@media (max-width: 756px) {
  .gallery {
    display: block;
  }
}
@media (min-width: 757px) {
  .gallery {
    display: grid;
  }
}
.container {
  width: 100%;
  height: 100%;
  

}

.wrap {
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}

.gallery {
  grid-template-columns: repeat(8, 1fr);
  grid-template-rows: repeat(8, 5vw);
  grid-gap: 15px;
  width: 100%;
  padding-top: 60px;
}

.gallery__item--1 {
  grid-column-start: 1;
  grid-column-end: 3;
  grid-row-start: 1;
  grid-row-end: 3;
}

.gallery__item--2 {
  grid-column-start: 3;
  grid-column-end: 5;
  grid-row-start: 1;
  grid-row-end: 3;
}

.gallery__item--3 {
  grid-column-start: 5;
  grid-column-end: 9;
  grid-row-start: 1;
  grid-row-end: 6;
}

.gallery__item--4 {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 3;
  grid-row-end: 6;
}

.gallery__item--5 {
  grid-column-start: 1;
  grid-column-end: 5;
  grid-row-start: 6;
  grid-row-end: 9;
}

.gallery__item--6 {
  grid-column-start: 5;
  grid-column-end: 9;
  grid-row-start: 6;
  grid-row-end: 9;
}

.gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: .4s linear;
}

.gallery__item {
  overflow: hidden;
}

.gallery__item > a {
  display: block;
  width: 100%;
  height: 100%;
}

.gallery__img:hover {
  opacity: .5;
  transition: .4s linear;
  transform: scale(1.2);
}

.lightbox {
  position: fixed;
  z-index: 999;
  height: 0;
  width: 0;
  text-align: center;
  top: 0;
  left: 0;
  background: rgba(0, 0, 0, 0.8);
  opacity: 0;
  display: flex;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  

}

.lightbox img {
  max-width: 100%;
  height: auto;
  margin: 0 auto;
  opacity: 0;
}

.lightbox:target {
  outline: none;
  width: 100%;
  height: 100%;
  opacity: 1 !important;
}

.lightbox:target img {
  opacity: 1;
  transition: opacity 0.6s;
  transition: opacity 0.6s;
}

.btn-close {
  font-size: 32px;
  display: block;
  margin: 0 auto;
  max-width: 200px;
  width: 100%;
  padding: 0 20px;
  color: white;
  font-weight: bold;
  text-decoration: none;
  height: auto;
}