.js-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr); 
  gap: 20px;                             
  padding: 20px;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
}

.js-item img {
  width: 100%;        
  height: 250px;      
  object-fit: cover;  
  cursor: pointer;

}


.box {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.85);
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
  z-index: 1000;
}

.box.is-open {
  opacity: 1;
  pointer-events: all;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 40px;
    color: white;
    background: none;
    border: none;
    cursor: pointer;
}