.wholebody {
    width: 95%;
    margin: 0 auto;
}

.wholecon{
    max-width: 800px;
    margin: 150px auto 10px auto;
    background-color: #eee;
    padding: 10px 10px;
    border-radius: 5px;
}

.back {
    color: #007BFF;
}

.container {
    max-width: 100%;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
}

.container img {
    width: 100%;
    height: 200px;
    cursor: pointer;
    transition: transform 0.2s;
    border-radius: 5px;
    border: 2px solid grey;
    object-fit: cover;
}

.container img:hover {
    transform: scale(1.02);
}

.pagination {
    display: flex;
    list-style: none;
    padding: 0;
    justify-content: center;
}

.page-item {
    margin-right: 10px; /* Adjust spacing between page items */
}

.page-link {
    display: block;
    padding: 0.5rem 1rem;
    color: #333; /* Text color */
    background-color: #eee; /* Background color */
    border: 1px solid #ccc; /* Border color */
    border-radius: 0.25rem; /* Border radius */
    transition: background-color 0.3s ease; /* Transition effect */
}

.page-link:hover {
    background-color: #bbb; /* Hover background color */
}

.page-item.active .page-link {
    z-index: 3;
    color: #eee; /* Active text color */
    background-color: #007bff; /* Active background color */
    border-color: #007bff; /* Active border color */
}

.page-item.disabled .page-link {
    color: #6c757d; /* Disabled text color */
    pointer-events: none; /* Disable click events */
    cursor: default; /* Change cursor style */
}

.page-link[aria-disabled="true"] {
    pointer-events: none; /* Disable click events */
    cursor: default; /* Change cursor style */
}

.opacity {
    opacity: 0.6;
}

.head {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
}

.username {
    flex: 1;
}

.date {
    flex: 1;
    text-align: right;
}

.link {
    font-size: 16px;
    font-weight: bold;
    color: #007bff;
    cursor: pointer;
    text-decoration: none;
}

.link:hover {
    text-decoration: underline;
}
.right-section img, .hamburger img  {
    width: 48px !important;
}

.mwidth {
    max-width: 600px !important;
    border-radius: 5px;
}

.close {
    position: absolute;
    right: 10px;
    color: darkgray;
    font-size: 30px;
    cursor: pointer;
}

.mwidth img{
    border: 2px solid grey;
    border-radius: 5px;
}

.hrline {
    margin: 20px 0 0 0;
    border-bottom: 2px solid lightgray;
}

@media (max-width: 955px) {
    .container {
        grid-template-columns: repeat(2, 1fr);
    }

    .head {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .date {
        text-align: left;
        margin-top: 5px; /* Optional: Adds some space between the username and the date */
    }

}