@charset "UTF-8";
/* CSS Document */
.grid-container1 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 10px;
  justify-items: center;
}
.gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
  max-width: 1000px;
  margin: 0 auto;
  overflow: hidden;
}
/* (F) FULLSCREEN MODE */
.gallery img.full {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 999;
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: rgba(0, 0, 0, .7);
}
.gallery img.full:hover {
  z-index: 999;
  transform: none;
}
/* (E) OPTIONAL ZOOM ON HOVER */
.gallery img:hover {
  z-index: 9;
  transform: scale(1.3);
  /* linear | ease | ease-in | ease-out | ease-in-out */
  transition: transform ease .5s;
}
/* (D) ON SMALL SCREENS - 2 IMAGES PER ROW */
/* (C) GALLERY IMAGES */
.gallery img {
  /* (C1) DIMENSION */
  width: 100%;
  height: 180px;
  /* optional */
  padding: 10px;
  /* (C2) COLORS */
  border: 1px solid #ddd;
  background: #fff;
  /* (C3) IMAGE RESIZE */
  /* cover | contain | fill | scale-down */
  object-fit: cover;
}