@charset "UTF-8";
/* CSS Document */
	
.grid {
    display: grid;
    grid-template-rows: repeat(3, 100px);
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 3px;
	
}
.item:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.item:nth-child(2) {
    grid-column: 2 / 4;
    grid-row: 1 / 2;
}
.item:nth-child(3) {
    grid-column: 4 / 5;
    grid-row: 1 / 2;
}
.item:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
.item:nth-child(5) {
    grid-column: 3 / 5;
    grid-row: 2 / 4;
}
.item:nth-child(6) {
    grid-column: 1 / 2;
    grid-row: 3 / 4;
}
.item:nth-child(7) {
    grid-column: 2 / 3;
    grid-row: 3 / 4;
}
.item:nth-child(8) {
    grid-column: 2 / 3;
    grid-row: 4 / 5;
}

/* .item:hover {
    transform: scale(1.03);
    transition: transform 0.3s ease;
} */

/* grid */

.grid {
    margin: 10px auto;
    max-width: 1000px;
}
.grid>.item {
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}



/* image preview */
#imgPreviewView {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    z-index: 100;
  }

  #imgPreview {
    padding: 24px;
    width: 98%;
    height: 98%;
    transition: transform 0.3s ease;
    z-index: 100;
    /* animation: zoomIn 0.3s ease, zoomOut 0.3s ease; */
  }

  #btnPreviewClose {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 2rem;
    color: white;
    cursor: pointer;
  }

  #outSideBox {
    width: 100%;
    height: 100vh;
    z-index: -1;
  }

  /* animation */
  @keyframes zoomIn {
    from {
      transform: scale(0);
      opacity: 0;
    }

    to {
      transform: scale(1);
      opacity: 1;
    }
  }

  @keyframes zoomOut {
    from {
      transform: scale(1);
      opacity: 1;
    }

    to {
      transform: scale(0);
      opacity: 0;
    }
  }
