/* ==========================================
   ALL PAWS LONDON GALLERY
   THUMBNAIL GRID
   ========================================== */


/* Gallery Grid */

.image-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1rem;
    width: 100%;
    margin-top: 2rem;
}


/* Thumbnail Images */

.image-grid img {

    width: 100%;
    aspect-ratio: 1 / 1;

    object-fit: cover;

    display: block;

    border-radius: 6px;

    cursor: pointer;

    transition:
        transform .3s ease,
        opacity .3s ease;
}


/* Hover Effect */

.image-grid img:hover {

    transform: scale(1.04);

    opacity: .9;

}


/* ==========================================
   TABLET
   ========================================== */

@media screen and (max-width:980px) {

    .image-grid {

        grid-template-columns:
        repeat(3, minmax(0, 1fr));

    }

}


/* ==========================================
   MOBILE
   ========================================== */

@media screen and (max-width:736px) {

    .image-grid {

        grid-template-columns:
        repeat(2, minmax(0, 1fr));

        gap: .75rem;

    }

}


/* ==========================================
   SMALL PHONES
   ========================================== */

@media screen and (max-width:380px) {

    .image-grid {

        grid-template-columns: 1fr;

    }

}

/* ==========================================
   FULL SCREEN VIEWER
   ========================================== */

#gallery-viewer {

    position: fixed;

    inset: 0;

    display: flex;

    justify-content: center;

    align-items: center;

    background: rgba(27,31,34,.96);

    opacity: 0;

    visibility: hidden;

    transition: opacity .35s ease;

    z-index: 10000;

}

#gallery-viewer.active {

    opacity: 1;

    visibility: visible;

}

#gallery-image {

    max-width: 90vw;

    max-height: 82vh;

    border-radius: 6px;

    box-shadow: 0 0 40px rgba(0,0,0,.5);

}

.gallery-close,
.gallery-prev,
.gallery-next {

    position: absolute;

    background: none;

    border: 0;

    color: white;

    font-size: 2.5rem;

    cursor: pointer;

    transition: opacity .25s;

}

.gallery-close:hover,
.gallery-prev:hover,
.gallery-next:hover {

    opacity: .65;

}

.gallery-close {

    top: 20px;

    right: 30px;

}

.gallery-prev {

    left: 30px;

    top: 50%;

    transform: translateY(-50%);

}

.gallery-next {

    right: 30px;

    top: 50%;

    transform: translateY(-50%);

}

.gallery-caption {

    position: absolute;

    bottom: 60px;

    width: 100%;

    text-align: center;

    color: white;

    font-size: .95rem;

    letter-spacing: .08em;

}

.gallery-counter {

    position: absolute;

    bottom: 30px;

    width: 100%;

    text-align: center;

    color: rgba(255,255,255,.6);

    font-size: .85rem;

}

@media screen and (max-width:736px){

    .gallery-prev,
    .gallery-next{

        font-size:2rem;

    }

    #gallery-image{

        max-width:95vw;

        max-height:75vh;

    }

}