.modal.open{
  display: flex;
}
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgb(0 0 0 / 30%);
  z-index: 999;
  overflow: hidden;

  justify-content: center;
  align-items: center;
}
.modal .content {
  position: relative;
  margin: .5rem;
  padding: .5rem;
  background-color: #fff;
  border-radius: 0.5rem;
}
.modal .close {
  border-radius: 100%;
  background-color: #fff;
  outline: solid 1px #000;
  position: absolute;
  top: -0.7rem;
  right: -0.7rem;
  width: 2rem;
  height: 2rem;
  text-align: center;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: end;
}
.modal img {
  width: 100%;
  pointer-events: none;
  user-select: none;
}

body.scroll-lock {
  overflow-y: hidden;
  padding-right: var(--scroll-width);
}

.photos {
  width: calc(100% / 3 - 2rem);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
}

.photos img {
  pointer-events: none;
  user-select: none;
}

.photo-list {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media only screen and (max-width: 940px) {
  .photos {
    width: 100%;
    flex-grow: 1;
  }

  .photo-list {
    flex-wrap: wrap;
  }
}
