/* =========================
   RESPONSIVE THUMBNAILS
   ========================= */

.thumbnail-gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    width: 100%;
}

.thumbnail-gallery a {
    display: block;
    width: 100%;
    overflow: hidden;
}

.thumbnail-gallery img {
    display: block;
    width: 100%;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.thumbnail-gallery img:hover {
    transform: scale(1.03);
}


/* =========================
   LIGHTBOX
   ========================= */

.lightbox {
    display: none;
    position: fixed;
    z-index: 999999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.9);

    align-items: center;
    justify-content: center;

    padding: 30px;
    box-sizing: border-box;
}


/* Show lightbox */
.lightbox:target {
    display: flex;
}


/* Large image */
.lightbox img {
    display: block;
    max-width: 95%;
    max-height: 90vh;
    width: auto;
    height: auto;
    margin: 0;
}


/* Close button */
.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;

    color: #fff !important;
    font-size: 45px;
    line-height: 1;
    text-decoration: none !important;

    z-index: 1000000;
}


/* =========================
   TABLET
   ========================= */

@media (max-width: 768px) {

    .thumbnail-gallery {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

}


/* =========================
   MOBILE
   ========================= */

@media (max-width: 480px) {

    .thumbnail-gallery {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .lightbox {
        padding: 15px;
    }

    .lightbox img {
        max-width: 100%;
        max-height: 85vh;
    }

    .lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 35px;
    }

}