/*Basic styling*/

/*------------ TOP NAVIGATION ---------*/



nav::before, .sidenav::before {
    content: "";
    position: absolute;
    background-repeat: no-repeat;
    background-size: cover;
    image-rendering: crisp-edges;
    height: 100%;
    width: 100%;
}

nav ul {
    li a, li {
            color: var(--text-dark);
        };
    li {
        background-color: var(--highlighter-yellow);
        border-radius: var(--choppy-edge);
    }
    li:hover {
        background-color: var(--highlighter-pink);
        a {color: var(--text-light);}
    }
}  

.sidenav {
    position: relative;
    overflow: visible;
    height: 100%;
    width: 100%;
    display: flex;
    align-items: flex-start;
}

nav ul {
    list-style-type: none;
    padding: 0px;
    margin: 0px;
    padding: 10px 0px;
    position: relative;
    display: flex;
    
    li a, li {
            color: var(--text-dark);
            text-decoration:none;
        };
    li {
        padding: 0px 20px;
        background-color: var(--highlighter-yellow);
        border-radius: var(--choppy-edge);
        padding: 5px 10px;
        margin: 5px;
    }
    li:hover {
        background-color: var(--highlighter-pink);
        a {color: var(--text-light);}
    }
}  




/* -- GALLERY GRID --*/

main {
    display: grid;
    grid-template-columns: 200px 1fr;
    width: 100%;

    @media screen and (max-width: 880px) {
        display: flex;
        flex-direction: column;
        #myBtnContainer {
            display: flex;
            flex-direction: row;
            flex-wrap: wrap; 
            justify-content: center;
            width: 100%;
            gap: 5px;
            padding: 10px;
        }

        .filterBtn, .dropbtn {
            width: auto;
            flex: 0 1 auto;
            margin: 5px;
            white-space: nowrap;
        }
    }
}

/*----------- Gallery -----------*/

.gridAndPages {
    display: flex;
    flex-direction: column;
}
.grid {
    display: grid;
    justify-items: center;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    flex: 1;
    min-height: 80vh;
    align-content: start; 
}

.masonry-item {
    display: none;
    height: 150px;
    width: 150px;
    margin: 10px;
    &:hover {
        opacity: 1;
    }
}

.masonry-item img {
    aspect-ratio: 1;
    object-fit: cover;
    max-height: 100%;
    max-width: 100%;
    transition: .5s ease;
    cursor: pointer;
}

.show-image {
    display: flex;
}

.pages {
    grid-column: 1 / -1;
    width: 100%;
    display: flex;
    flex-shrink: 0;
    align-items: center;
    justify-content: center;
}

.pagination-number,
.pagination-button {
    width: 2.5rem;
    height: 2.5rem;
    margin: 0.25rem;
    font-size: 1.1rem;
    cursor: pointer;
}