.gallery {
    display: grid;
    grid-template-columns: 50% 25% 25%;
    column-gap: 1%;
	row-gap: 10px;
    max-width: 1440px;
}

.large {
    margin: -0.7%;
    vertical-align: middle !important;
    padding-top: 0.9%;
	
}



.gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.large {
    position: relative;
    grid-row: span 2;
}

.small {
    grid-row: span 1;
}

.view-more-button {
    position: absolute;
    bottom: 10px;
    right: -97%;
    padding: 10px 20px;
    background: rgba(63, 63, 63, 0.48) !important;
    border: solid 1px #fff !important;
    color: #fff !important;
    cursor: pointer;
    border-radius: 5px;
}

.view-more-button:hover {
   color: #53E0FF !important;
    background-color: #003F4D !important;

}

button.view-more-button {
    margin-bottom: 1.5% !important;
}


/* Popup Modal */
.popup-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

.slider {
    position: relative;
    width: 80%;
    max-width: 800px;
    margin: auto;
}

.slider-image {
    display: none;
    width: 100%;
}

.active-slide {
    display: block;
}

.close {
    position: absolute;
    top: 10px;
    right: 25px;
    color: #fff !important;
    font-size: 35px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover, .close:focus {
    color: #fff !important;
    text-decoration: none;
    cursor: pointer;
}

div#popupModal {
    z-index: 1000 !important;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}


@media (max-width: 650px) {
 .gallery {
        grid-template-columns: 100%;
    }

    .large {
        grid-column: span 1 !important;
        grid-row: span 1 !important;
    }

   .small {
    grid-area: none !important;
}
  
 .view-more-button {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}
}
