/* gallery design */
.design-img {
    min-height: 380px;
    max-height: 380px;
    width: 100%;
    object-fit: cover;
}
.design-hover:hover {
    z-index: 9;
    transform: scale(1.3);
    transition: transform ease 0.5s;
}

/* (A) GALLERY WRAPPER */
.gallery {
  /* (A1) GRID LAYOUT - 3 IMAGES PER ROW */
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  /* grid-gap: 20px; */

  /* (A2) OPTIONAL WIDTH RESTRICT */
    max-width: 1000px;
    margin: 0 auto;
    overflow: hidden;
}

/* (B) GALLERY IMAGES */
.gallery img {
  /* (B1) DIMENSION */
    width: 300px;
    height: 180px; /* optional */
    padding: 10px;

  /* (B2) COLORS */
    border: 1px solid #ddd;
    background: #fff;
    border-radius: 2%;

  /* (B3) IMAGE RESIZE */
  /* cover | contain | fill | scale-down */
    object-fit: cover;
}

@media only screen and (max-width: 450px) {
    .gallery {
        grid-template: none !important;
    }
}

/* (C) ON SMALL SCREENS - 2 IMAGES PER ROW */
@media only screen and (max-width: 767px) {
    .gallery {
        grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
    }
}

@media only screen and (min-width: 1000px) {
    .gallery {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}
@media only screen and (max-width: 991px) {
    .gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* (D) 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 0.5s;
}

/* (E) FULLSCREEN MODE */
.gallery img.full {
    position: fixed;
    top: 0;
    left: 0;
    z-index: 999;
    width: 100vw;
    height: 100%;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.7);
}
.gallery img.full:hover {
    z-index: 99;
    transform: none;
}
