/* CSS - Portfolio */
main .galleries {
    box-sizing: border-box;
    width: 100%;
    height: fit-content;
    max-height: 100%;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-evenly;
    gap: 25px;
}

main .galleries .item {
    position: relative;
    height: 240px;
    width: 240px;
    border-radius: 4px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 1px solid #eeeaeab5;
    box-sizing: border-box;
    cursor: pointer;
    transition: all 0.3s ease-out;
}

main .galleries .item .cover {
    width: 100%;
    height: 100%;
}

main .galleries .item .cover img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
}

main .galleries .item .title {
    position: absolute;
    top: 90%;
    transition: all 0.3s ease-out;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

main .galleries .item:hover .title {
    top: 100%;
    opacity: 1;
}

main .galleries .item .title .lock {
    font-size: 14px;
    flex-shrink: 0;
    color: rgb(71, 71, 71);
    text-shadow: 0 0 4px rgba(192, 192, 192, 0.281);
}

main .galleries .item:hover .title .lock {
    opacity: 1;
}

main .galleries .item:hover {
    box-shadow: 0 0 8px rgba(65, 65, 65, 0.534);
    border-color: #272727de;
}

main .galleries .item .title p {
    color: rgb(71, 71, 71);
    text-shadow: 0 0 4px rgba(192, 192, 192, 0.281);
    font-family: 'Manrope';
    margin: 0;
    width: max-content;
}

@media screen and (max-width: 768px) {
    #galleries {
        overflow-y: auto;
    }
    #galleries .item {
        width: fit-content;
        height: fit-content;
        border: none;
    }

    #galleries .item .cover {
        width: 150px;
        height: 150px;
    }

    #galleries .item .title {
        opacity: 1;
        position: relative;
        top: unset;
    }
}