.img{
    max-width: 100%;
    margin-bottom: .5em;
    display: block;
    border: 10px solid #ffffff;
    box-shadow: 0 5px 15px rgba(0,0,0,.1);
    overflow: hidden;
    background: url("../images/logo_gil.png");
    #border: 5px solid transparent;
    #-moz-border-image: -moz-linear-gradient(top left, #3acfd5 0%, #3a4ed5 100%);
    #-webkit-border-image: -webkit-linear-gradient(top left, #3acfd5 0%, #3a4ed5 100%);
    #border-image: linear-gradient(to bottom right, #3acfd5 0%, #3a4ed5 100%);
    #border-image-slice: 1;
}

.img img{
    width: 100%;
    object-fit: cover;
    transition: .5s linear;
}

.img:hover img{
    transform: scale(1.25);
}

.gallery{
  columns: 5 320px;
  column-gap: .5em;
}

.popup-img{
    position: fixed;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    z-index: 10000;
    background: rgba(0,0,0, .8);
    display: none;
}

.popup-img span{
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 40px;
    font-weight: bolder;
    color: #ffffff;
    cursor: pointer;
    z-index: 10000;
}
.popup-img .cimg{
    position: relative;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 0;
    width: 0;
    max-width: 90%;
    max-height: 90%;
    transition: opacity 1s linear, height 1s linear, width 1s linear;
}

.popup-img .cimg.hidden{
    height: 0;
    width: 0;
    opacity: 0;
}

.popup-img .cimg.show{
    width: fit-content;
    height: fit-content;
    max-width: 90%;
    max-height: 90%;
    opacity: 1;
}

.popup-img .cimg img{
    max-height: 80vh;
}