* {
  box-sizing: border-box;
}
body {
  padding: 0px;
  background: #000;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0 0 5px 0;
}
p {
  margin: 0 0 20px 0;
}
.close {
  background: none;
  color: black;
  border: 0;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, 60px);
  grid-auto-rows: 100px;
  grid-auto-flow: dense;
  width: 104%;
}
.item {
  overflow: hidden;
  display: grid;
  grid-template-columns: 1;
  grid-template-rows: 1;
}
.item img {
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.item__overlay {
  background: #f2c60d70;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  position: relative;
  display: grid;
  justify-items: center;
  align-items: center;
  transition: 0.2s;
  transform: translateY(100%);
}
.item__overlay button {
  background: none;
  border: 1px solid #f2c60d70;
  color: #000;
  background: rgba(0, 0, 0, 0.7);
  margin: 5px;
  text-transform: lowercase;
  font-size: 10px;
}
.item:hover .item__overlay {
  transform: translateY(0);
}
.item.v2 {
  grid-row: span 2;
}
.item.v3 {
  grid-row: span 3;
}
.item.v4 {
  grid-row: span 4;
}
.item.h2 {
  grid-column: span 2;
}
.item.h3 {
  grid-column: span 3;
}
.item.h4 {
  grid-column: span 4;
}
.overlay {
  position: sticky;
  background: rgba(0, 0, 0, 0.7);
  top: 100px;
  right: 0;
  bottom: 0;
  left: 0;
  display: none;
  z-index: 2;
}
.overlay.open {
  display: grid;
  align-items: center;
  justify-items: center;
}
.overlay-inner {
  background: #f2c60d90;
  width: 90%;
  margin: 10px;
}
.overlay img {
  width:  100%;
}
