.other-page .gallery-parallax-background {
  background: linear-gradient(
      to bottom left,
      hsla(0, 0%, 36%, 0.7),
      hsla(0, 0%, 36%, 0.7)
    ),
    url(../images/DSC_1019.jpg);
  background-repeat: no-repeat;
  background-position: 50% 50%;
  background-size: cover;
}
.gallery-modal {
  display: none;
}
.gallery .article-grid-col {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 3rem;
  grid-auto-rows: 200px;
  grid-auto-flow: dense;
}

.gallery img {
  height: 100%;
  object-fit:cover;
  cursor: pointer;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
  border-radius: 5px;
}
.tall {
  grid-row: span 2;
}

.show-modal {
  position: fixed;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: rgba(119, 119, 119, 0.8);
  transition: var(--transition);
  z-index: 888;
}
.close-btn {
  position: absolute;
  top: -30px;
  right: -2rem;
  font-size: 1rem;
  color: var(--white);
  background: black;
  border-radius: 100%;
  width: 33px;
  height: 33px;
  border: 3px solid var(--white);
  box-shadow: 0px 0px 3px black;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btns {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3rem;
}

.next-btn,
.prev-btn {
  bottom: -55%;
  /* transform: translateY(-50%); */
  background: transparent;
  font-size: 3rem;
  color: var(--white);
  background-color: transparent;
  cursor: pointer;
  border: none;
}
.prev-btn {
  left: 20%;
}
.next-btn {
  right: 20%;
}
.modal-content {
  width: max-content;
  max-width: 300px;
  
  margin: 0 auto;
  margin-top: 15%;
  position: relative;
  z-index: 999;
  border: 15px solid var(--white);
  border-radius: 5px;
}
.main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}
.selected {
  font: inherit;
}
@media (min-width: 600px) {
  .gallery .article-grid-col {
    grid-auto-rows: 300px;
  }
  .modal-content {
    max-width: 500px;
  }
}
@media (min-width: 1024px) {
  .modal-content {
    width: max-content;
    max-width: 1000px;
    height: 70%;
    margin: 0 auto;
    margin-top: 50px;
    position: relative;
    z-index: 999;
    border: 15px solid var(--white);
    border-radius: 5px;
  }
  .gallery .article-grid-col {
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    grid-auto-rows: 250px;
    grid-auto-flow: dense;
  }
}
