
/*===============================
=================================*/
#portfolio {
    display: flex;
    flex-direction: column;
    align-items: center;
}

#grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 2fr));
    grid-auto-rows: 350px;
    gap: 5px;
    grid: 90vh;
    max-width: 1000px;
    padding-right: 10px;
    grid-auto-flow: dense;
}
@media screen and (max-width: 650px){
    #grid {
        grid-template-columns: 1fr;
    }
}

#grid::-webkit-scrollbar {
    background-color: var(--bkgd);
    display: none;
    width: 20px;
}

#grid::-webkit-scrollbar-thumb {
    display: none;
    background-color: #4a402c;
}

.grid-item {
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s ease;
}

.grid-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.2s ease;
}

.grid-item:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px hsla(40, 25%, 12%, 0.6);
    z-index: 2;
}
.grid-img:hover {
    transform: scale(1.2);
}
#fox,
#dogs,
#squarel,
#street-art,
#poppy-dog, 
#north-lady, #man, #interior {
    grid-row: span 1;
}

#howl, #cat,
#exotic-lady, #redhead-lady{
    grid-row: span 2;
}

#big-city,
#nature,
#beach
{
    grid-column: span 2;
}

#pop-up_bg {
    display: none;
    position:absolute;
    left: 0;
    top: 3500px;
    width: 100%;
    height: 80%;
    z-index: 4;
    background-color: hsl(0, 0%, 0%, 0.8);
}
#pop-up_bg.active {
    display: flex;
    align-items: center;
    justify-content: center;   
}
#pop-up_content {
    max-width: 500px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}
#pop-up_img {
    width: 100%;
    max-width: 500px;
    height: auto;
}
#pop-up_close {
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    top: 0;
    right: 0;
    transform: translateX(50%, -50%) ;
    width: 40px;
    height: 40px;
    font-size: 40px;
    color: #917c55;
    border-radius: 50%;
    background-color: #000000;
}
#pop-up_close:hover {
    background-color: #e9a92a;
}