body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
    background: #f9f9f9;
}

.gg-box {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    grid-auto-rows: 200px;
    grid-gap: 2px;
}

.gg-box img {
    object-fit: cover;
    cursor: pointer;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.02);
}

.gg-box img:hover {
    opacity: 0.98;
}

#gg-screen {
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    background: rgba(240, 240, 240, 0.9);
    z-index: 9999;
    text-align: center;
}

#gg-screen .gg-image {
    height: 100%;
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

#gg-screen .gg-image img {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

.gg-bt {
    width: 35px;
    height: 35px;
    background: #000;
    color: #fff;
    text-align: center;
    line-height: 35px;
    cursor: pointer;
    -moz-transition: all .4s ease;
    -o-transition: all .4s ease;
    -webkit-transition: all .4s ease;
    transition: all .4s ease;
    font-size: 20px;
    box-sizing: border-box;
    padding-left: 2px;
    position: fixed;
    bottom: 10px;
}

.gg-bt:hover {
    background: #222;
}

.gg-close {
    top: 10px;
}

.gg-close,
.gg-next {
    right: 10px;
}

.gg-prev {
    right: 50px;
}

.gg-prev,
.gg-next {
    bottom: 10px;
}

@media (min-width: 478px) {
    /*.gg-box img:nth-child(3n):not(:last-of-type) {  1n each row is higher.. 2n each second row is higher.. 3n each 3rd row is higher.. and NOT last.. */
    .gg-box img {
        grid-row-end: span 2;
    }
}

@media (max-width: 768px) {
    .gg-box {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        grid-auto-rows: 150px;
    }
}

@media (max-width: 450px) {
    .gg-box {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        grid-auto-rows: 100px;
    }
}
