.letter-navigation {
    margin-bottom: 20px;
}

.letter-navigation a {
    margin-right: 10px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.8em;;
}

.custom-category-posts-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px; /* Adjust the gap between items */
	max-width: 70% !important;
}

.letter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    width: 100%;
}

.custom-category-post-item {
    position: relative;
    flex: 1 1 calc(33% - 20px) !important; /* Adjust the width to fit 3 items per row with gaps */
    max-width: calc(33% - 20px) !important; /* Ensure the maximum width */
    box-sizing: border-box;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    text-decoration: none; /* Remove underline from links */
    color: inherit; /* Inherit text color */
    aspect-ratio: 2 / 1; /* Set the aspect ratio to be 2:1 */
    display: flex;
    align-items: flex-end; /* Align items to the bottom */
}

.custom-category-post-item img.post-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image covers the entire area */
    display: block;
    position: absolute; /* Absolute positioning */
    top: 0;
    left: 0;
	filter: blur(1px);
}

.custom-category-post-item .post-title {
    position: relative; /* Ensure the title is on top of the image */
    padding: 10px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    color: #fff; /* White text color */
    text-align: center;
    width: 100%;
	height: 100%;
    box-sizing: border-box;
    z-index: 1; /* Ensure the title is on top */
	display: flex;
	justify-content: center; /* Align horizontal */
	align-items: center; /* Align vertical */
	font-weight: bold;
	text-shadow: 2px 2px 8px #333;
}

.nav-letter {
    margin-top: 20px !important;
    margin-bottom: 0px !important;
	font-weight: bold;
}

#back-to-top {
    display: none; /* Hidden by default */
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 99; /* Ensure it is on top */
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #0693e3; /* Black background */
    color: white; /* White text */
    cursor: pointer; /* Pointer/hand icon */
    padding: 15px;
    border-radius: 4px;
    opacity: 0.7;
}

#back-to-top:hover {
    background-color: #555; /* Darker background on hover */
    opacity: 1; /* Full opacity on hover */
}