@media screen and (max-width: 700px) {
  #nature-1, #nature-2, #nature-3, #nature-4, #nature-5, #nature-6, #nature-7, #nature-8, #nature-9, #nature-10, #nature-11, #nature-12, #nature-13 {
    
    grid-column: span 1;
    grid-row: span 1;
  }
}

p {
  font-family: 'Comfortaa', 'Arial';
  font-size: 1rem;
  padding: 1vh 0 1vh 0;
}

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


#grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  grid-auto-rows: 350px;
  gap: 20px;
  height: 100vh;
  overflow-y: scroll;
  padding-right: 10px;
  grid-auto-flow: dense;
  padding-bottom: 70px;
}

#grid::-webkit-scrollbar {
  background-color: #dedede;
  width: 10px;
}

#grid::-webkit-scrollbar-thumb {
  background-color: #ff3131;
}

.grid-item {
  overflow: hidden;
  cursor: pointer;
  transition: all 0.2s ease;
}
.popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 50%;
  height: 50%;

}
@media screen and (min-width: 700px) {
  

  #nature-1,
  #nature-3 {
    grid-row: span 1;
    grid-column: span 1;
  }

  #nature-2,
  #nature-10
  {
    grid-column: span 2;
  }


  #nature-5 {
    grid-row: span 2;
  }

  /* #nature-10 {
    grid-column: span 2;
  } */

  #nature-4,
  #nature-5 {
    grid-column: span 2;
    grid-row: span 1;
  }
}

.grid-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.2s ease;
}

.grid-item:hover {
  transform: scale(1.05);
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.6);
  z-index: 2;
  /*bug correction */
}

.grid-img:hover {
  transform: scale(1.2);
}

#popup-bg {
  display: none;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(34, 9, 44, 0.8);
  z-index: 3;
  justify-content: center;
  align-items: center;
}

#popup-bg.active {
  display: flex;
}

#popup-content {
  max-width: 70%;
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

#popup-img {
  width: 100%;
  height: auto;
}

#popup-close {
  position: absolute;
  top: 0;
  right: 0;
  transform: translate(50%, -50%);
  height: 40px;
  width: 40px;
  border-radius: 50%;
  background-color: rgb(0, 0, 0);
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

#popup-close:hover {
  background-color: #ff3131;
}

