* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  font-family: "NB Architekt Std";
  background: #0f0f0f;
  color: #fff;
}

body.modal-open {
  overflow: hidden;
}

h1 {
  font-weight: 500;
  margin: 4em 50px 2em 50px;
}

p {
  margin: 0;
  padding: 0;
  font-size: 12px;
  color: gray;
}

img {
  width: 100%;
  object-fit: cover;
}

.container {
  width: 90%;
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
}

.gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 10em;
}

.item {
  width: calc(12.5% - 20px);
  height: 200px;
  border: 1px solid rgba(255, 255, 255, 0.125);
  overflow: hidden;
  padding: 15px;
  cursor: pointer;
}

.item-img {
  margin-bottom: 10px;
  height: calc(100% - 40px);
  overflow: hidden;
}

.item-name {
  height: 30px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

@media (max-width: 767px) {
  .item {
    width: calc(50% - 5px);
  }
}

.img-modal {
  position: fixed;
  top: 0;
  width: 100vw;
  height: 100vh;
  background: #090909;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 6em 0;
  pointer-events: none;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
}
.img-modal .img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 400px;
  height: 500px;
  clip-path: polygon(0 100%, 100% 100%, 100% 100%, 0% 100%);
}

.img-modal .img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.modal-item {
  position: relative;
  width: max-content;
  height: max-content;
}

.modal-item p {
  position: relative;
  font-size: 14px;
  color: #fff;
  top: 15px;
}

.modal-item-revealer {
  position: absolute;
  top: 0;
  width: 100%;
  height: 100%;
}

.modal-item-revealer:after {
  content: "";
  position: absolute;
  top: 15px;
  width: 100%;
  height: 100%;
  background: #090909;
}

.close-btn {
  cursor: pointer;
}
