.gallery-container {
    display: grid;
    grid-template-columns: repeat( 4, 1fr );
    grid-auto-rows: 1fr;
    grid-gap: 1rem;
    padding: 1rem;
    border-radius: 0.25rem;
}
.gallery-container.highlight {
    border: 1px solid blue;
}
.gallery-container.is-invalid {
    border: 1px solid #ff3366;
}
.gallery-box {
    aspect-ratio: 1;
    background: #f8f9fa;
    position: relative;
    border: 1px solid #eee;
    border-radius: 0.25rem;
}
.gallery-box.empty {
    border: 1px dashed #d8d8d8;
    display: flex;
    align-items: center;
    text-align: center;
    font-size: 12px;
    transition: all 0.5s ease;
}
.gallery-box.empty:hover {
    background: #ecedee;
    border: 1px dashed var(--bs-primary);
}
.gallery-box-content {
    color: var(--bs-primary);
}
.gallery-box img {
    aspect-ratio: 1;
    object-fit: contain;
    width: 100%;
}
.gallery-box:hover .tools {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
}
.tools {
    display: none;
    position: absolute;
    width: 100%;
    height: 32px;
    bottom: 0;
    background-color: rgba(0, 0, 0, .3);
    color: #fff;
}