/* General Resets */
* {
    box-sizing: border-box; /* Include padding and border in the element's total width and height */
}

/* Figure Styles */
figure {
    padding: 0;
    position: relative;
}

figure img {
    position: absolute;
    top: 0;
    left: 0;
    max-height: 100%;
}

figure::before {
    content: "";
    display: block;
    padding-top: 69.25%;
}

/* Content List Styles */
.content-list {
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    max-width: 100%;
    text-align: center;
    list-style: none;
}

/* Content Item Styles */
.content-item {
    margin-bottom: 0;
    padding: 10px;
    transition: filter 0.3s;
    filter: grayscale(0%);
}

.content-item p {
    line-height: 1.68em;
    color: rgb(221, 221, 221);
    margin: 10px;
}

.content-item.highlight {
    filter: none; /* Remove grayscale filter for highlighted items */
}

/* Post Styles */
.post {
    background: #fff;
    border-radius: 10px;
    box-shadow: rgba(0, 0, 0, 0.1) 0 6px 6px, rgba(12, 18, 28, 0.12) 0 0 0 1px;
    text-align: center;
    padding-bottom: 5px;
}

.post img {
    border-radius: 10px;
}

.post p a {
    color: #212529;
    padding: 4px;
    font-weight: bold; /* Consider using font-weight: bold for bold text instead */
}

/* Image Rate Styles */
.image-rate img {
    width: auto;
    height: 100%;
    min-width: 100%;
    max-width: 100%;
    object-fit: cover;
    cursor: pointer;
}

/* Responsive Styles */
@media only screen and (orientation: portrait), 
       only screen and (max-width: 768px) {
    .content-item {
        width: 100%;
    }
}

@media only screen and (min-width: 768px) {
    .content-item {
        width: 33.33%; /* Use fractional percentage for better alignment */
    }
}

@media only screen and (min-width: 1200px) {
    .content-item {
        width: 25%;
    }
}
