main {
    text-align: center;
}

#pics {
    display: -ms-grid;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 1rem;
    padding: 1rem 0;
}

#pics > div {
    background-color: var(--clr-bg-submenu);
    border: 1px solid var(--clr-border-submenu);
    border-radius: 6px;
    padding: 0.5rem;
    -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
    -ms-flex-direction: column;
    flex-direction: column;
    -webkit-box-align: center;
    -ms-flex-align: center;
    align-items: center;
    -webkit-box-pack: center;
    -ms-flex-pack: center;
    justify-content: center;
    overflow: hidden;
    -webkit-transition:
        background-color 0.3s ease,
        -webkit-transform 0.3s ease,
        -webkit-box-shadow 0.3s ease;
    transition:
        background-color 0.3s ease,
        -webkit-transform 0.3s ease,
        -webkit-box-shadow 0.3s ease;
    -o-transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease,
        background-color 0.3s ease,
        -webkit-transform 0.3s ease,
        -webkit-box-shadow 0.3s ease;
    cursor: pointer;
    max-width: 300px;
    margin: 0 auto;
}

#pics > div:hover,
#pics > div:focus-within {
    -webkit-transform: scale(1.05);
    -ms-transform: scale(1.05);
    transform: scale(1.05);
    -webkit-box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.6);
    background-color: var(--clr-bg-nav-hover);
}

#pics img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 4px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    pointer-events: none;
    -o-object-fit: contain;
    object-fit: contain;
    max-height: 256px;
}
