body {
    font-family: 'Josefin Sans', sans-serif;
    background-color: #F7EAD9;
    background-image: url('https://www.otherworldly.se/Graphics/background.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    color: #000;
}

.container {
    max-width: 80%;
    margin: 0 auto;
    padding: 20px;
}

header {
    background-color: rgba(118, 36, 64, 0.8);
    color: #F5F5DC;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

header nav {
    display: flex;
    gap: 15px;
    position: relative;
    align-items: center; /* Ensure alignment for all nav items */
}

header nav a {
    color: #F5F5DC;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    transition: color 0.3s ease;
}

header nav a:hover {
    color: #FFD700;
}

.dropdown {
    position: relative;
}

.dropdown-toggle {
    cursor: pointer;
    color: #F5F5DC;
    text-decoration: none;
    font-weight: bold;
    padding: 5px 10px;
    border-radius: 3px;
    transition: color 0.3s ease;
    display: flex;
    align-items: center; /* Align with other links */
}

.dropdown-toggle:hover {
    color: #FFD700;
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(118, 36, 64, 0.9);
    border-radius: 5px;
    box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.2);
    display: none;
    flex-direction: column;
    padding: 10px;
    z-index: 10;
}

.dropdown:hover .dropdown-menu {
    display: flex;
}

.dropdown-menu a {
    color: #F5F5DC;
    text-decoration: none;
    padding: 5px;
    border-radius: 3px;
    margin-bottom: 5px;
    transition: background-color 0.3s ease;
}

.dropdown-menu a:hover {
    background-color: rgba(245, 245, 220, 0.3);
}

.menu {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
}

.breadcrumb {
    font-size: 0.9rem;
    margin: 10px 0;
    color: #FFD700;
}

.breadcrumb a {
    color: #F5E6D8;
    text-decoration: none;
    margin-right: 5px;
}

.breadcrumb a:hover {
    text-decoration: underline;
}

.breadcrumb span {
    color: #FFD700;
}

.hero {
    position: relative;
	height: 50vh;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    padding: 10px;
}

.hero.hero-entry {
    height: 25vh; /* Half the height for single entry */
}

.hero-images {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

.hero-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
    transition: opacity 0.3s ease; /* Smooth transition for dynamic loading */
}

.hero-images img.show {
    display: block;
}

.hero-images img.hidden {
    display: none;
}

.hero .logo {
    font-family: 'EB Garamond', serif;
    font-size: 3.5rem;
    font-weight: bold;
    color: #FFD700;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translate(-50%, -50%);
}
.hero.hero-entry .logo {
    font-size: 2.5rem; /* Adjust for half-height */
}

.hero h1 {
    font-family: 'Crimson Pro', serif;
    font-size: 2rem;
    color: #F5E6D8;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

.hero.hero-entry h1 {
    font-size: 1.5rem; /* Adjust for half-height */
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: #F5F5DC;
    border: none;
    padding: 10px;
    font-size: 1.5rem;
    cursor: pointer;
    z-index: 10;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.arrow:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.arrow.left {
    left: 10px;
}

.arrow.right {
    right: 10px;
}

.content-wrapper {
    display: flex;
    gap: 20px;
    margin-top: 20px;
}

main {
    flex: 3;
}

main h2 {
    font-family: 'EB Garamond', serif;
    font-size: 2.8rem;
    color: #762440;
    text-align: left;
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

main.home h2 {
    text-align: center; /* Center-align the heading */
}

main .meta {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: #FFD700;
    margin-bottom: 20px;
}

main.entry img {
    max-width: 100%; /* Ensure responsive scaling */
    max-height: 800px; /* Constrain image height */
    border: 1px solid rgba(118, 36, 64, 0.5); /* Subtle border */
    border-radius: 8px; /* Slightly rounded corners */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    margin-bottom: 20px; /* Space below the image */
    transition: transform 0.3s ease, box-shadow 0.3s ease; /* Smooth zoom effect */
}

main.entry img:hover {
    transform: scale(1.05); /* Slight zoom on hover */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add shadow on hover for depth */
}

main h3 {
    font-size: 1.8rem;
    color: #762440;
    margin-bottom: 10px;
}

main p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 15px;
}

.grid-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Larger cards */
    gap: 30px;
}

.grid-medium-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); /* Medium cards span wider */
    gap: 20px; /* Space between medium cards */
}

.grid-small-card {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); /* Smaller cards fit more per row */
    gap: 15px; /* Space between small cards */
    justify-items: center; /* Center-align small cards */
}

.card {
    background: linear-gradient(to right, #fff, rgba(245, 245, 220, 0.3));
    border: 1px solid #DDD;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden; /* Ensure content stays within the card's boundaries */
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05); /* Slight zoom effect for the card */
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2); /* Add depth on hover */
}

.card img {
    border-radius: 5px;
    margin-bottom: 8px;
    width: 100%;
    height: auto;
}

.card h3 {
    font-size: 1rem;
    margin-bottom: 8px;
}

.card p {
    text-align: center;
    font-size: 0.9rem;
    line-height: 1.4;
}

.medium-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    background: linear-gradient(to right, #fff, rgba(245, 245, 220, 0.3));
    border: 1px solid #DDD;
    border-radius: 5px;
    overflow: hidden;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    grid-column: span 2; /* Ensure medium cards span two columns */
    width: 100%; /* Force full width within the grid */
}

.medium-card:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}


.medium-card img {
    width: 40%; /* Image retains its natural ratio */
    height: auto;
    border-radius: 5px;
    margin-right: 15px;
}

.medium-card .content {
    flex: 1;
}

.medium-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #762440;
}

.medium-card p {
    font-size: 0.9rem;
    color: #333;
}

/* Updated Small Card - Larger size for better visibility */
.small-card {
    display: flex;
    flex-direction: column;
    background: linear-gradient(to right, #fff, rgba(245, 245, 220, 0.3));
    border: 1px solid #DDD;
    border-radius: 5px;
    overflow: hidden;
    padding: 12px; /* Slightly increased padding */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 250px; /* Ensure larger size */
}

.small-card:hover {
    transform: scale(1.05); /* Slight zoom effect */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2); /* Subtle depth effect */
}

.small-card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    margin-bottom: 10px;
}

.small-card h3 {
    font-size: 1.1rem; /* Slightly larger title */
    margin-bottom: 8px;
    color: #762440;
}

.small-card p {
    font-size: 0.85rem; /* Adjusted font size */
    line-height: 1.4;
    color: #333;
}

.latest-entries-home {
    font-family: 'EB Garamond', serif;
    font-size: 2.8rem;
    color: #762440;
    text-align: center;
    margin: 30px 0 20px;
    text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.3);
}

.read-more {
    display: inline-block;
    margin-top: 10px;
    font-size: 0.9rem;
    font-weight: bold;
    color: #762440; /* Match your site's theme */
    text-decoration: none;
    border: 1px solid #762440;
    padding: 5px 10px;
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.read-more:hover {
    background-color: #762440;
    color: #fff;
}

#load-more-container {
    text-align: center;
    margin-top: 20px;
}

#load-more {
    background-color: #762440;
    color: #fff;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#load-more:hover {
    background-color: #FFD700;
    color: #762440;
}

.content-wrapper {
    display: flex; /* Enable flexbox layout */
    gap: 20px; /* Add spacing between main and sidebar */
    margin-top: 20px;
    flex-wrap: nowrap; /* Prevent wrapping of children */
}

/* Entry Card - Full Width */
.entry-card {
    width: 100%; /* Use the full width of the container */
    max-width: none; /* Remove any maximum width limitation */
    margin: 0 auto; /* Center the content */
    background: linear-gradient(to right, #fff, rgba(245, 245, 220, 0.3)); /* Matches card styling */
    border: 1px solid rgba(118, 36, 64, 0.3); /* Subtle border */
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1); /* Subtle shadow */
}

/* Entry Header */
.entry-card-header {
    text-align: center;
    margin-bottom: 10px;
}

.entry-card-header h2 {
    font-family: 'EB Garamond', serif;
    font-size: 2.5rem;
    color: #762440;
}

/* Entry Card Content Styling */
.entry-card h1, .entry-card h2, .entry-card h3 {
    color: #762440; /* Deep reddish color matching site theme */
    font-family: 'EB Garamond', serif;
    margin-bottom: 15px;
}

.entry-card p, .entry-card blockquote {
    color: #333; /* Neutral text color */
    font-family: 'Josefin Sans', sans-serif;
    line-height: 1.6;
    margin-bottom: 15px;
}

.entry-card a {
    color: #762440; /* Deep reddish-brown for default link color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.entry-card a:hover {
    color: #FFD700; /* Gold for hover state */
    text-decoration: underline; /* Optional: underline on hover */
}

.entry-card-header .meta {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: #555;
    margin-top: 5px;
}

/* Entry Body */
.entry-card-body {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.callout {
    font-style: italic;
    background-color: rgba(245, 245, 220, 0.3);
    padding: 10px;
    margin: 20px 0;
    border-left: 4px solid #FFD700;
}

.credits {
    background-color: rgba(235, 225, 200, 0.5); /* Warmer parchment-like background */
    padding: 15px;
    border-left: 4px solid #762440; /* Deep red accent */
    border-radius: 5px;
    margin-top: 20px;
    font-size: 0.9rem;
    font-family: 'Josefin Sans', sans-serif;
}

.credits strong {
    display: block;
    font-size: 1.2rem;
    font-family: 'EB Garamond', serif;
    color: #762440;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.credits li {
    list-style: none;
    margin-bottom: 6px;
    line-height: 1.5;
}

.credits a {
    color: #762440;
    font-weight: bold;
    text-decoration: none;
    transition: color 0.3s ease;
}

.credits a:hover {
    color: #FFD700;
    text-decoration: underline;
}

/* Post Meta Section */
.post-meta {
    text-align: right;
    font-size: 0.85rem;
    font-style: italic;
    color: #555;
    background-color: rgba(245, 245, 220, 0.3); /* Light background for distinction */
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
}

.post-meta p {
    margin: 3px 0; /* Reduce spacing between lines */
}

.post-meta a {
    color: #762440;
    text-decoration: none;
}

.post-meta a:hover {
    text-decoration: underline;
    color: #FFD700;
}

.entry-pagination {
    display: flex;
    justify-content: center; /* Center-align the pagination */
    gap: 15px; /* Space between links */
    margin-top: 20px; /* Space from the content above */
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem; /* Subtle, compact font */
    color: #762440; /* Deep red-brown for better visibility */
}

.entry-pagination a {
    text-decoration: none;
    font-weight: bold;
    color: #333; /* Dark color for better contrast */
    padding: 5px 10px; /* Add padding for button-like appearance */
    border: 1px solid #333; /* Border matches link color */
    border-radius: 5px; /* Rounded corners */
    transition: background-color 0.3s ease, color 0.3s ease; /* Smooth hover effect */
}

.entry-pagination a:hover {
    background-color: #762440;
    color: #F5E6D8; /* Light parchment-like text for contrast */
}

.entry-pagination span {
    color: #762440; /* Style text separators */
    font-weight: normal;
}

.comment-title {
    font-family: 'EB Garamond', serif;
    font-size: 1rem;
    color: #333; /* Dark color for high contrast */
    font-weight: bold;
    margin-top: 20px;
}

.comment-body {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: #333; /* Dark text */
    background-color: rgba(245, 245, 220, 0.5); /* Slightly darker parchment-like background */
    padding: 10px;
    border-left: 4px solid #762440; /* Deep red-brown accent */
    margin-bottom: 15px; /* Space below comments */
    border-radius: 5px; /* Rounded corners */
}

.comment-form h3 {
    font-family: 'EB Garamond', serif;
    font-size: 1.2rem;
    color: #333; /* Darker color for better readability */
    margin-bottom: 10px;
}

.comment-form label {
    font-size: 0.9rem;
    color: #333; /* Dark color for labels */
    margin-bottom: 5px;
    display: block;
}

.comment-form input[type="text"],
.comment-form textarea {
    width: 100%;
    font-size: 0.9rem;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #333;
    border-radius: 5px;
    background-color: #F9F8F4; /* Very light parchment background */
    color: #333; /* Dark text */
}

.comment-form textarea {
    resize: vertical;
}

.comment-form input[type="submit"] {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #F5E6D8; /* Light text */
    background-color: #762440;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    margin-right: 10px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.comment-form input[type="submit"]:hover {
    background-color: #333; /* Dark hover effect */
    color: #F5E6D8; /* Light text */
}


/* Sidebar Container */
.sidebar {
    flex: 1;
    max-width: 400px; /* Set a reasonable max width for the sidebar */
    background-color: rgba(118, 36, 64, 0.8);
    padding: 15px;
    border-radius: 5px;
    color: #FFD700;
}

.sidebar p {
    font-size: 0.9rem;
    line-height: 1.5;
    color: #F5E6D8;
    margin: 5px 0; /* Reduced vertical spacing */
    background-color: rgba(245, 245, 220, 0.2);
    padding: 10px;
    border-left: 4px solid #FFD700;
    border-radius: 5px;
}

.sidebar img {
    max-width: 100%; /* Constrain images to fit within the sidebar */
    border-radius: 5px;
    margin: 5px 0; /* Reduced spacing around images */
}

.sidebar img:hover {
    transform: scale(1.05); /* Slight zoom */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Add depth */
 }

/* Sidebar Headers */
.sidebar-header {
    font-family: 'EB Garamond', serif;
    font-size: 1.3rem; /* Slightly larger text */
    text-transform: uppercase; /* Make headers more distinct */
    color: #FFD700;
    margin: 20px 0 10px;
    border-bottom: 1px solid #FFD700;
    padding-bottom: 5px;
}

/* Sidebar Links */
.sidebar a {
    color: #FFD700;
    text-decoration: none;
    font-size: 0.9rem;
}

.sidebar a:hover {
    text-decoration: underline;
}

/* Compact Button Styling */
.sidebar-favourites {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 15px 0;
}

.sidebar-favourites-button {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.8rem;
    color: #F5E6D8;
    background-color: rgba(118, 36, 64, 0.8);
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 5px;
    border: 1px solid #FFD700;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    display: inline-block;
}

.sidebar-favourites-button:hover {
    background-color: #FFD700;
    color: #762440;
}

/* Adjust alignment for even spacing */
.sidebar-favourites .sidebar-favourites-button {
    flex: 1 1 calc(33.33% - 8px); /* Three buttons per row */
    text-align: center;
}

/* Sidebar Lists */
.sidebar ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.sidebar ul li {
    margin-bottom: 5px; /* Less space between list items */
}

.sidebar ul li a {
    display: block;
    padding: 5px;
    border-radius: 3px;
    transition: background-color 0.3s ease;
}

.sidebar ul li a:hover {
    background-color: rgba(245, 245, 220, 0.3);
}

/* Dropdown Menus */
.sidebar-dropdown {
    background-color: rgba(118, 36, 64, 0.8);
    color: #FFD700;
    border: 1px solid #FFD700;
    border-radius: 5px;
    padding: 5px;
    margin-bottom: 15px;
    width: 100%;
    font-family: 'Josefin Sans', sans-serif;
}

/* Tags Cloud */
.sidebar-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px; /* Reduced spacing between tags */
    margin-top: 20px;
}

.sidebar-tag {
    background-color: #762440;
    color: #F5E6D8;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.85rem; /* Slightly smaller for a compact layout */
    text-decoration: none;
}

.sidebar-tag:hover {
    background-color: #FFD700;
    color: #762440;
}

.sidebar-featured {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 15px 0;
    justify-content: space-evenly;
}

.sidebar-featured img {
    max-width: 150px; /* Adjust as needed */
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sidebar-featured img:hover, {
    transform: scale(1.1); /* Slight zoom */
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

/* Sidebar Search Form */
.sidebar-search {
    display: flex;
    flex-direction: column;
    gap: 5px; /* Tighter spacing between input and button */
    margin-bottom: 20px;
}

.search-input {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: #762440;
    background-color: #F5E6D8;
    border: 2px solid #762440;
    border-radius: 5px;
    padding: 6px; /* Reduce padding for a sleeker look */
    width: 100%;
    max-width: 100%; /* Ensure it doesn't exceed the sidebar's width */
}

.search-button {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    font-weight: bold;
    color: #F5F5DC;
    background-color: #762440;
    border: none;
    border-radius: 5px;
    padding: 6px 10px; /* Match input padding for consistency */
    cursor: pointer;
    text-align: center;
}

.search-button:hover {
    background-color: #FFD700;
    color: #762440;
}

footer {
    background-color: rgba(118, 36, 64, 0.8);
    color: #F5E6D8;
    text-align: center;
    padding: 20px;
    margin-top: 20px;
}

footer p {
    color: #F5E6D8; /* Matches the footer's primary text color */
    font-size: 0.9rem;
    margin: 10px 0;
}

/* Social Media Links */
.footer-social {
    margin-bottom: 20px;
}

.footer-social a {
    margin: 0 15px; /* Slightly larger spacing between icons */
    color: #FFD700;
    transition: color 0.3s ease, transform 0.3s ease; /* Add smooth hover scaling */
    text-decoration: none; /* Remove underline from links */
}

.footer-social a:hover {
    color: #F5E6D8;
    transform: scale(1.2); /* Slight scaling effect on hover */
}

/* Larger Social Media Icons */
.footer-social i {
    font-size: 3.5rem; /* Increase size of icons */
}

/* Footer Description */
.footer-description p {
    font-size: 0.9rem;
    color: #F5E6D8;
    margin: 10px 0;
}

/* Footer Navigation Links */
.footer-nav {
    list-style: none;
    padding: 0;
    margin: 10px 0 20px;
    display: flex;
    justify-content: center;
    gap: 20px;
}

.footer-nav li a {
    font-size: 0.9rem;
    color: #FFD700;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-nav li a:hover {
    color: #F5E6D8;
    text-decoration: underline;
}

/* Footer Search */
.footer-search {
    margin: 20px 0;
}

.footer-search input.textbox {
    font-family: 'Josefin Sans', sans-serif;
    font-size: 0.9rem;
    color: #762440;
    background-color: #F5E6D8;
    border: 2px solid #762440;
    border-radius: 5px;
    padding: 8px;
    width: 100%;
    max-width: 300px; /* Constrain search bar width */
    margin: 0 auto;
    display: block;
}

/* Footer SLBN Section */
.footer-slbn {
    margin-top: 20px;
    text-align: center;
}

.footer-slbn img {
    max-width: 200px; /* Adjust size of the SLBN logo */
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.footer-slbn img:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.footer-slbn-disclaimer {
    font-size: 0.85rem;
    color: #F5E6D8;
    margin-top: 5px;
    line-height: 1.4;
}

/* Footer Copyright */
footer p {
    font-size: 0.8rem;
    color: #FFD700;
    margin-top: 15px;
}

hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.5);
    margin: 20px 0;
}

/* --- Fix for lite-youtube inside flex containers --- */
lite-youtube {
	aspect-ratio: 16 / 9;
  	max-width: 1200px;          

  /* Disable the component’s padding hack */
  	padding-bottom: 0 !important;
}

/* ----------------------------------------------- */


@media (max-width: 768px) {
    .menu {
        display: block;
    }

    header nav {
        display: none;
        flex-direction: column;
        gap: 10px;
    }

    header nav.show {
        display: flex;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .container {
        max-width: 100%;
    }

    .menu {
        padding: 10px;
        font-size: 2rem;
    }

    header nav a {
        padding: 10px 15px;
        font-size: 1.2rem;
    }
    
    /* Sidebar Adjustments */
    .sidebar {
        width: 100%; /* Make sidebar span full width on small screens */
        max-width: 100%; /* Ensure no hard constraint */
        margin: 10px 0; /* Add spacing between sidebar and other elements */
        padding: 10px; /* Adjust padding to save space */
    }

    .sidebar img {
        width: 100%; /* Ensure images are responsive */
        height: auto; /* Maintain aspect ratio */
    }

    .sidebar-header {
        font-size: 1rem; /* Slightly smaller headers */
        margin-bottom: 10px;
    }

    .sidebar p {
        font-size: 0.85rem; /* Reduce font size for paragraphs */
        line-height: 1.4; /* Slightly tighter line height */
    }

    .sidebar-tags {
        gap: 5px; /* Reduce gap between tags */
    }

    .sidebar-favourites .sidebar-favourites-button {
        flex: 1 1 calc(50% - 8px); /* Two buttons per row on smaller screens */
    }

    /* Grid adjustments */
    .grid-card {
        grid-template-columns: repeat(1, 1fr); /* Single column for generic cards */
    }

    .grid-medium-card {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); /* Adaptive medium cards */
    }

    .grid-small-card {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); /* More compact small cards */
    }

    /* Card types adjustments */
    .medium-card {
        flex-direction: column; /* Stack medium cards vertically */
        align-items: flex-start; /* Align content to the left */
        padding: 10px;
    }

    .medium-card img {
        width: 100%; /* Full width for smaller screens */
        margin-right: 0;
        margin-bottom: 10px; /* Space below the image */
    }

    .small-card {
        padding: 8px; /* Tighter padding for small cards */
    }

    .small-card img {
        width: 90%; /* Slightly reduced image size */
        margin-bottom: 8px;
    }

    .small-card h3 {
        font-size: 0.9rem; /* Smaller heading size */
    }

    .small-card p {
        font-size: 0.75rem; /* Smaller paragraph size */
    }
}

