* {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  font-family: "Rubik", sans-serif;
  line-height: 1;
  font-weight: 400;
  color: #555;
}

.container {
  position: relative;
  min-height: 100vh;
  background-color: rgb(219, 216, 216);
}

.container h1 {
  font-weight: 700;
  color: #333;
  letter-spacing: -0.5px;
  text-align: center;
  padding-top: 10px;
}

.container .image-container {
  padding: 10px;
  max-width: 1440px;
  margin: 0 auto;
  display: grid;
  grid-gap: 10px;
  grid-template-columns: repeat(autofit, minmax(250px, 1fr));
  grid-auto-rows: 250px;
  grid-auto-flow: dense;
  overflow: hidden;
}

.container .image-container .image {
  /* height: 250px;
  width: 350px;
  border: 10px solid #fff;
  box-shadow: 0 5px 15px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  overflow: hidden;
  cursor: pointer; */

  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: pointer;
  /* object-position: 30% 30%;
  transition: 0.25s linear; */
  /* border: 5px solid #fff;
  box-shadow: 5px 5px 2px #ccc; */
  background-color: white;
  padding: 10px;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
  border-radius: 15px;
}

.container .image-container .image img {
  height: 100%;
  width: 100%;
  object-fit: cover;
  /* transition: 0.2s linear; */
  transition: all 0.25s ease-in-out;
  object-position: 30% 30%;
  border-radius: 15px;
}

.container .image-container .image:hover img {
  transform: scale(1.01);
}

.container .popup-image {
  position: fixed;
  top: 0;
  left: 0;
  background-color: rgba(0, 0, 0, 0.9);
  height: 100%;
  width: 100%;
  z-index: 100;
  display: none;
}

.container .popup-image span {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 60px;
  font-weight: bolder;
  color: #fff;
  cursor: pointer;
  z-index: 100;
}

.container .popup-image img {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  border: 5px solid #fff;
  border-radius: 5px;
  width: 750px;
  object-fit: cover;
}

.v_img {
  grid-row: span 2;
}

.h_img {
  grid-column: span 2;
}

.l_img {
  grid-row: span 2;
  grid-column: span 2;
}

@media (max-width: 560px) {
  container .popup-image img {
    width: 95%;
  }

  .v_img {
    grid-row: span 1;
  }

  .h_img {
    grid-column: span 1;
  }

  .l_img {
    grid-row: span 1;
    grid-column: span 1;
  }
}
