p {
    font-size: 14px;
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 14px;
    justify-items: center;
    height: fit-content;
    margin: 14px;
}

.gallery .image {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 4px;
    overflow: hidden;
    width: 100%;
}

.gallery .image.highlight {
    border: 1px solid red;
    box-shadow: 0px 0px 4px red;
}

.gallery .image img {
    display: block;
    width: 100%;
    height: auto;
}

.gallery .image .info {
    position: relative;
    border-top: 1px solid #ccc;
    padding: 12px;
    flex-grow: 1;
}

.gallery .image .added-by,
.gallery .image .resolution {
    margin-bottom: 12px;
}

.gallery .image .added-by,
.gallery .image .resolution,
.gallery .image .format {
    font-size: 14px;
}

.gallery .image .added-by div,
.gallery .image .resolution div,
.gallery .image .format div {
    font-size: 16px;
}

.gallery .info .order-number {
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 14px;
}

.gallery .image .options {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 12px;
    border-top: 1px solid #ccc;
}

.gallery .image .options .star-button {
    cursor: pointer;
    color: rgba(0, 0, 0, 0.3);
}

.gallery .image .options .star-button:hover {
    color: gold;
}

.gallery .image .options .star-button.favorite {
    color: gold;
}

.gallery .image .options .report-button,
.gallery .image .options .order-button,
.gallery .image .options .delete-button {
    cursor: pointer;
    color: rgba(0, 0, 0, 0.8);
}