body {
    font-family: 'IBM Plex Mono', monospace;
    margin: 0;
    display: flex;
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
}

.container {
    display: flex;
    flex-direction: row; /* Align sidebar and content side-by-side */
    height: 100vh; /* Full viewport height */
    width: 100%; /* Full width of the page */
}

.content {
    flex: 1; /* Take up remaining space next to the sidebar */
    background-color: #fff;
    display: flex;
    flex-direction: column; /* Allow vertical stacking in content */
    padding: 20px;
    overflow-y: auto; /* Scroll if content exceeds height */
}

.sidebar {
    width: 300px; /* Fixed width */
    background-color: #f4f4f4; /* Light background color for sidebar */
    box-shadow: -2px 0 5px rgba(0, 0, 0, 0.1); /* Optional shadow for depth */
    padding: 20px; /* Internal spacing */
    overflow-y: auto; /* Allow scrolling in sidebar if content is tall */
}

.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); /* Responsive columns */
    gap: 16px; /* Spacing between grid items */
    width: 100%; /* Full-width container */
}

.category {
    position: relative;
    display: flex;
    flex-direction: column; /* Stack image and title vertically */
    justify-content: flex-start; /* Align content to the top */
    align-items: center; /* Center content horizontally */
    overflow: hidden; /* Prevent content overflow */
    background-color: #f8f8f8; /* Background for consistency */
    border: 1px solid #ccc;
    box-sizing: border-box;
    height: 300px; /* Fixed height for all items */
}

.grid-column img,
as-dithered-image {
    width: 100%;
    height: calc(100% - 40px);
    display: block;
    object-fit: cover; /* ✅ Crops while preserving aspect ratio */
    object-position: center; /* ✅ Keeps it centered */
    filter: grayscale();
}

as-dithered-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

as-dithered-image:hover {
    filter: invert(100%);
}

.title {
    font-size: 1rem;
    margin-top: auto;
    height: 40px;
    text-align: center;
    line-height: 40px;
}