.zoom-gallery {
    display: grid;
    grid-auto-rows: 200px;
    gap: 1rem;
    grid-auto-flow: row dense;
}

@media all and (min-width: 320px) {
    .zoom-gallery {
        display: grid;
        grid-auto-rows: 127px;
        gap: 0.2rem;
        grid-auto-flow: row dense;
        /* grid-template-columns: repeat(1, 1fr); */
    }
}

@media all and (min-width: 768px) {
    .zoom-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media all and (min-width: 1024px) {
    .zoom-gallery {
        grid-template-columns: repeat(6, 1fr);
    }
}

.zoom-gallery a:nth-child(11n+1) {
    grid-column: span 1;
}

.zoom-gallery a:nth-child(11n+4) {
    grid-column: span 2;
    grid-row: span 1;
}

.zoom-gallery a:nth-child(11n+6) {
    grid-column: span 3;
    grid-row: span 1;
}

.zoom-gallery a:nth-child(11n+7) {
    grid-column: span 1;
    grid-row: span 2;
}

.zoom-gallery a:nth-child(11n+8) {
    grid-column: span 2;
    grid-row: span 2;
}

.zoom-gallery a:nth-child(11n+9) {
    grid-row: span 3;
}

.zoom-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* body gallery */

.body-gallery img {
    width: 100%;
    object-fit: cover;
    height: 250px;
    border-radius: 5px;
}


/* navbar-gallery */

#gallery-nav {
    position: sticky;
    top: 50px;
    background-color: #fff;
    z-index: 9;
}

.navbar-gallery {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    align-items: center;
    margin: 50px 0;
}

.navbar-gallery span {
    cursor: pointer;
    color: #333;
    font-weight: 400;
    text-transform: uppercase;
    padding: 10px;
    transition: .3s ease-in-out;
}

.navbar-gallery span:hover {
    color: var(--second-color);
    transform: translateY(-5px);
}


/* gallery animation */

.filter-item img.active {
    width: 100%;
    padding: 2px;
    animation: fadeIn 0.5s ease;
}

.filter-item img.delete {
    display: none;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.four-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-gap: 1rem;
}

::-webkit-scrollbar {
    display: none;
    width: 10px;
}

@media (max-width: 480px) {
    .body-gallery img {
        height: auto;
        border-top: 1px solid #f1f5f9;
        border-radius: 0;
    }
    .four-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 0;
        grid-gap: 0;
    }
    .navbar-gallery {
        justify-content: flex-start;
        background-color: hsla(0, 0%, 100%, 0.867) !important;
        margin: 10px 0;
    }
    #gallery-nav {
        background-color: transparent;
    }
    .navbar-gallery span {
        font-size: .6rem;
    }
}