:root {
    --main-bg: #cbe9f5; /* air canada blue */
    --text-color: #E10600; /* air canada red */
    --border-color: #ffffff;
    --edge-bg: #f2f6fb; /* background was #ffffff */
}

@media (prefers-color-scheme: dark) {
    :root {
        --main-bg: #1d2a44;
        --text-color: #FF4C4C;
        --border-color: #111;
        --edge-bg: #0e121a;
    }
}

/* Basic Reset */

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    padding: 0;
}

/* Custom Spacing */

.alpha-wrapper {
    margin-left: 1rem;
}

/* Reset common layout issues */

html,
body,
h1,
h2,
h3,
p,
ul,
ol {
    margin: 0;
    padding: 0;
}

html,
body {
    height: 100%;
    background-color: var(--edge-bg);
    display: block;
    padding: 0.3em 1em;
    font-weight: bold;
}

.container {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto;
    background-color: var(--main-bg);
    color: var(--text-color);
    padding: 2em;
    border-radius: 12px;
    box-shadow:
        0 10px 20px rgba(0, 0, 0, 0.3),
        0 6px 6px rgba(0, 0, 0, 0.15);
}

@media (prefers-color-scheme: dark) {
    .container {
        box-shadow:
            0 10px 24px rgba(255, 255, 255, 0.05),
            0 6px 12px rgba(255, 255, 255, 0.04);
    }
}

h2,
p {
    margin-bottom: 1em;
    line-height: 1.5;
}

h1 {
    display: inline-block;
    position: relative;
    margin-bottom: 1em;
    text-align: left;
}

h1::after {
    content: "";
    position: absolute;
    bottom: -0.25em;
    left: 0;
    width: 105%;
    height: 4px;
    background-color: #7183B0;
}

.styled-quote {
    border-left: 4px solid #7183B0;
    padding-left: 2em;
    margin-left: 0;
    margin-right: 0;
    line-height: 1.5;
    font-style: italic;
}

.heading-border {
    display: inline-block;
    border-bottom: 4px solid #7183B0;
    padding-bottom: 0.25em;
    padding-right: 2em;
}

a {
    color: blue;
    text-decoration: underline;
    font-weight: bold;
}

@media (prefers-color-scheme: dark) {
    a {
        color: #66aaff;
    }
}

@media (max-width: 600px) {
    .container {
        padding: 1.2em;
        border-radius: 4px;
    }

    body {
        padding: 0.2em;
    }
}

/* Header */

.header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2em;
    padding-bottom: 1em;
    flex-wrap: wrap;
    gap: 2em;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 60px;
    max-height: 70px;
    width: auto;
    display: block;
    transition: height 0.3s ease;
}

@media (min-width: 768px) {
    .logo img {
        height: 70px;
    }
}

.logo h1 {
    font-size: 1.8rem;
    margin: 0;
    color: var(--text-color);
}

/* Navigation */

.nav-menu {
    display: flex;
    gap: 0.5em;
    flex-wrap: wrap;
    justify-content: center;
}

.nav-link {
    background-color: #7183B0;
    color: #fff;
    text-decoration: none;
    padding: 0.6em 0.5em;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    min-width: 150px;
    max-width: 200px;
    flex: 1 1 22%;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.nav-link:hover {
    background-color: #6072a0;
}

.nav-dropdown {
    position: relative;
    flex: 1 1 22%;
    max-width: 200px;
    min-width: 150px;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.dropdown-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #7183B0;
    color: #fff;
    padding: 0.6em 0.5em;
    border-radius: 6px;
    font-size: 1.2rem;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease;
    min-width: 150px;
    max-width: 200px;
    width: 100%;
    height: 100%;
    text-decoration: none;
    cursor: pointer;
}

.dropdown-toggle:hover {
    background-color: #6072a0;
}

.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #8a98c4;
    border-radius: 6px;
    padding: 0.5em 0;
    z-index: 10;
    min-width: 180px;
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
}

.nav-dropdown.active .dropdown-content {
    display: block;
}

.dropdown-content a {
    display: block;
    padding: 0.5em 1em;
    color: #fff;
    text-decoration: none;
    font-weight: bold;
}

.dropdown-content a:hover {
    background-color: #6072a0;
}

@media (hover: hover) {
    .nav-dropdown:hover .dropdown-content {
        display: block;
    }
}

@media (max-width: 700px) {
    .nav-link,
    .nav-dropdown {
        flex: 1 1 45%;
        margin-bottom: 0;
    }
}

@media (prefers-color-scheme: dark) {
    .nav-link,
    .dropdown-toggle {
        background-color: #9BA8D1;
        color: #000;
    }

    .nav-link:hover,
    .dropdown-toggle:hover {
        background-color: #8c98c4;
    }

    .dropdown-content {
        background-color: #9BA8D1;
    }

    .dropdown-content a {
        color: #111;
    }

    .dropdown-content a:hover {
        background-color: #8c98c4;
    }
}

/* Main banners */

.main-banners {
    display: flex;
    gap: 2em;
    justify-content: center;
    align-items: stretch;
    margin-top: 0.5em;
    flex-wrap: nowrap;
}

.intro-banner {
    display: flex;
    align-items: center;
    border-top: 4px solid #7183B0;
    border-bottom: 4px solid #7183B0;
    padding: 0.5em 0;
    flex: 0 1 70%;
    min-width: 300px;
    max-width: 1000px;
}

.intro-banner img {
    width: 120px;
    height: auto;
    margin-right: 1em;
}

.intro-banner p {
    margin: 0;
    font-size: 1.1em;
    text-align: center;
}

.info-banner {
    margin-top: 1em;
    border-bottom: 4px solid #7183B0;
    padding: 0 0 0.5em;
    text-align: center;
    background-color: var(--main-bg);
    color: var(--text-color);
    font-size: 1.1em;
    font-weight: bold;
    border-radius: 0;
}

.side-banner {
    flex: 0 1 25%;
    min-width: 180px;
    padding-top: 0;
    text-align: center;
}

.side-banner p,
.side-banner h3 {
    font-size: 1.1em;
    margin: 0;
    text-align: center;
    color: var(--text-color);
}

.side-banner a {
    font-size: 1.1em;
    text-decoration: underline;
    display: inline-block;
    margin-top: 0;
}

.side-banner img {
    margin-top: 0;
    width: 180px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

@media (max-width: 800px) {
    .main-banners {
        flex-direction: column;
        align-items: center;
    }

    .intro-banner,
    .side-banner {
        width: 100%;
        max-width: 100%;
    }
}

/* Today's Mount Dora and Huglou News */

.today-banner-wrapper {
    display: flex;
    gap: 2em;
    flex-wrap: nowrap;
    align-items: flex-start;
    margin-bottom: 0;
}

.recipe-banner {
    flex: 3;
    min-width: 0;
    margin-top: 0;
    border-bottom: 4px solid #7183B0;
    padding: 1em 1em 1.5em;
    background-color: var(--main-bg);
    color: var(--text-color);
    border-radius: 0;
}

.recipe-banner.top-tight {
    margin-top: 0;
}

.recipe-title {
    font-size: 1.8em;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-align: left;
}

.artwork-title {
    font-weight: bold;
    font-size: 1.6em;
    margin: 0 0 0.3em;
    text-align: left;
}

.recipe-banner h1 {
    font-size: 1.6em;
    margin-bottom: 0;
    text-align: left;
}

.artwork-info {
    font-style: italic;
    font-size: 1em;
    margin: 0 0 1.5em;
    text-align: left;
}

/*
Today's Mount Dora image is displayed large,
with the description and links underneath it.
*/

.recipe-flexbox {
    display: block;
    width: 100%;
}

.recipe-image {
    width: 100%;
    margin-bottom: 1.5em;
}

.recipe-image img.featured-img {
    display: block;
    width: 100%;
    max-width: 650px;
    height: auto;
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.recipe-text {
    width: 100%;
    min-width: 0;
}

.recipe-description {
    width: 100%;
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
    margin-top: 0;
}

.artwork-links {
    width: 100%;
    margin-top: 1.5em;
    line-height: 1.5;
    font-size: 1.1em;
    text-align: left;
}

/* Huglou News */

.huglou-news {
    flex: 1;
    min-width: 220px;
    max-width: 300px;
    margin-top: 0;
    padding: 1em;
    text-align: center;
    border-bottom: 4px solid #7183B0;
}

.huglou-news h3 {
    display: block;
    width: 100%;
    font-size: 1.8em;
    margin-bottom: 0.4em;
    color: var(--text-color);
    padding-bottom: 0.2em;
    text-align: center;
}

/* Keep the news heading, image, and list stacked at every browser width. */
.huglou-news > a {
    display: block;
    width: fit-content;
    margin: 0 auto;
}

.huglou-news .news-image {
    display: block;
    max-width: 150px;
    height: auto;
    border-radius: 8px;
    margin: 0 auto;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.news-list {
    list-style: none;
    padding-left: 0;
    margin: 0.5em 0;
    font-size: 1.1em;
    line-height: 1.6;
    text-align: left;
}

.news-list li {
    position: relative;
    padding-left: 1em;
    margin-bottom: 0.5em;
}

.news-list li::before {
    content: "•";
    position: absolute;
    left: 0;
    color: #7183B0;
    font-size: 1.1em;
    line-height: 1.6;
}

.news-quote {
    font-size: 1.1em;
    line-height: 1.6;
    margin-top: 0.4em;
    text-align: left;
}

.huglou-news a {
    font-weight: bold;
}

@media (prefers-color-scheme: dark) {
    .huglou-news a {
        color: #66aaff;
    }
}

@media (max-width: 800px) {
    .today-banner-wrapper {
        flex-direction: column;
        gap: 1.5em;
    }

    .recipe-banner,
    .huglou-news {
        width: 100%;
        max-width: 100%;
        min-width: 0;
        flex: none;
    }

    .recipe-image {
        width: 100%;
    }

    .recipe-image img.featured-img {
        width: 100%;
        max-width: 100%;
    }
}

/* Image Modal */

#imageModal {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

#imageModal.active {
    display: flex;
}

#modalImage {
    max-width: 90%;
    max-height: 80%;
    border-radius: 10px;
    box-shadow: 0 0 25px #000;
}

#caption {
    margin-top: 10px;
    font-size: 18px;
    text-align: center;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
}

/* Art of the Month */

.aom-wrapper {
    width: 100%;
    padding: 1rem;
}

.aom-banner,
.aom-content,
.aom-block {
    width: 100%;
}

.aom-banner {
    padding: 0;
    border-radius: 10px;
}

.aom-title {
    font-size: 1.1rem;
    font-weight: bold;
    margin: 0.5rem 0 0;
}

.aom-title-date {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 1em;
}

.aom-flexbox {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr);
    gap: 2rem;
    align-items: start;
    width: 100%;
}

.aom-image {
    width: 100%;
    min-width: 0;
    max-width: none;
}

.aom-img {
    display: block;
    width: 100%;
    max-width: none;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    cursor: pointer;
}

.aom-text {
    width: 100%;
    min-width: 0;
}

.aom-artwork-title {
    font-size: 1.6rem;
    font-weight: 600;
    margin: 0.5em 0 0.5rem;
    text-align: left;
}

.aom-artwork-info {
    font-style: italic;
    font-size: 1em;
    margin: 0 0 2em;
    text-align: left;
}

.aom-description,
.aom-links {
    font-size: 1.1em;
    line-height: 1.5;
    text-align: left;
}

.aom-links {
    margin-top: 1.5em;
}

.aom-links a:hover {
    color: var(--hover-color, #990000);
}

@media (max-width: 800px) {
    .aom-wrapper {
        padding: 1rem 0;
    }

    .aom-flexbox {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .aom-image,
    .aom-text {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }

    .aom-img {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .aom-artwork-title,
    .aom-artwork-info {
        text-align: left;
    }
}

/* Alphabetical listing */

.alpha-wrapper {
    margin-left: 1.5rem !important;
    padding: 10px;
}

.alphabetical-list {
    padding-left: 0;
    margin: 0;
}

.alphabetical-list li {
    margin: 0.5rem 0;
    font-size: 1.5em;
    line-height: 1.3;
}

.alphabetical-list ul {
    list-style: none;
    padding: 0;
    margin: 0 2rem;
}

.alphabetical-list a {
    text-decoration: none;
    padding-left: 0;
}

.alphabetical-list a:hover {
    text-decoration: underline;
}

@media screen and (max-width: 600px) {
    .alpha-wrapper {
        margin-left: 0.5rem !important;
        padding: 0.5rem;
    }

    .alphabetical-list li {
        font-size: 1.1em;
        line-height: 1.5;
    }
}

/* In the press */

.press-item {
    text-align: center;
    margin-top: 0;
}

.press-item p {
    text-align: left;
    margin: 0 1.5em;
    font-size: 1.1rem;
    line-height: 1.5;
}

.press-item img {
    width: 80%;
    max-width: 700px;
    height: auto;
    margin-top: 1em;
    cursor: pointer;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

/* Footer */

.site-footer {
    background-color: transparent;
    color: #a9a9a9;
    font-weight: normal;
    padding: 1.5em 1em;
    text-align: center;
    font-size: 0.95rem;
    line-height: 1.6;
    margin-top: 2em;
}

.footer-publication {
    font-weight: normal;
    font-size: 0.95rem;
    text-align: center;
    margin-bottom: 0.5em;
    color: #a9a9a9;
}

.footer-main {
    text-align: left;
    font-weight: normal;
    max-width: 960px;
    margin: 0 auto;
}

.site-footer::before {
    content: "";
    display: block;
    width: 1000px;
    max-width: 90%;
    margin: 0 auto 1em;
    border-top: 2px solid #a9a9a9;
}

@media (prefers-color-scheme: dark) {
    .site-footer {
        background-color: transparent;
        color: #a9a9a9;
    }

    .footer-publication {
        color: #a9a9a9;
    }
}

/* About the artist */

.artist-photo-wrapper {
    float: left;
    margin: 1rem 1.5rem 1.5rem;
    max-width: 200px;
    text-align: center;
}

.artist-photo {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.artist-caption {
    font-size: 1em;
    font-style: italic;
    font-weight: bold;
    margin-top: 6px;
}

.artist-intro {
    font-size: 1.1em;
    margin: 0 1.5rem;
}

.artist-intro::after {
    content: "";
    display: table;
    clear: both;
}

@media (max-width: 768px) {
    .artist-photo-wrapper {
        float: none;
        margin: 0 auto 1.5rem;
        text-align: center;
        max-width: 80%;
    }

    .artist-photo {
        max-width: 100%;
    }

    .artist-caption {
        text-align: center;
        font-size: 0.95em;
    }

    .artist-intro {
        margin: 0 1rem;
        font-size: 1.1em;
    }
}

.watercolor-wrapper {
    text-align: center;
    margin-top: 40px;
}

.watercolor-wrapper img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.watercolor-caption {
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    font-style: italic;
}

/* About the art */

.aboutart-photo-wrapper {
    float: right;
    margin: 1rem 1.5rem 1.5rem;
    max-width: 250px;
    text-align: center;
}

.aboutart-photo {
    width: 200px;
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.aboutart-caption {
    font-size: 1em;
    font-style: italic;
    font-weight: bold;
    margin-top: 6px;
}

.aboutart-intro {
    font-size: 1.1em;
    margin: 0 1.5rem;
}

.cartoon-wrapper {
    float: left;
    margin: 1rem 1.5rem 2rem;
    max-width: 300px;
    text-align: center;
}

.cartoon-wrapper img {
    max-width: 100%;
    height: auto;
    border: 2px solid #ccc;
    border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.cartoon-caption {
    margin-top: 8px;
    font-size: 1.1rem;
    font-weight: bold;
    font-style: italic;
}

@media (max-width: 768px) {
    .aboutart-photo-wrapper,
    .cartoon-wrapper {
        float: none;
        margin: 1rem auto 1.5rem;
    }

    .aboutart-intro {
        margin: 0 1rem;
    }
}

/* Artwork Row Layout */

.gal-card {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1.5rem 0 1rem;
    padding: 1rem;
    border-bottom: 4px solid #7183B0;
}

.gal-left {
    flex: 0 0 auto;
    width: 800px;
    max-width: 60%;
}

.gal-image {
    width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 1rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gal-right {
    flex: 1;
    max-width: 40%;
}

.gal-title {
    font-size: 1.8rem;
    font-weight: bold;
    font-style: normal;
    margin-bottom: 1rem;
}

.gal-meta {
    font-size: 1em;
    font-style: italic;
    margin: 0 0 2em;
}

.gal-inspire {
    max-width: 100%;
    margin: 0.5rem auto;
    width: 150px;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.gal-description {
    font-size: 1.1rem;
    line-height: 1.5;
}

@media (max-width: 768px) {
    .gal-card {
        flex-direction: column;
        align-items: flex-start;
        padding: 1rem 0.5rem;
    }

    .gal-left,
    .gal-right {
        max-width: 100%;
        width: 100%;
    }

    .gal-image {
        width: 100%;
        max-width: 100%;
        margin: 0 auto 1rem;
    }

    .gal-title {
        font-size: 1.5rem;
        text-align: left;
    }

    .gal-meta,
    .gal-description {
        font-size: 1.1rem;
        text-align: left;
    }

    .gal-inspire {
        margin: 1rem auto;
        width: 120px;
    }
}

/* Contact page */

.contact-intro {
    max-width: 600px;
    margin: 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
}

.contact-form {
    max-width: 600px;
    width: 100%;
    margin: 0;
    padding: 1rem;
    background-color: transparent;
    text-align: left;
}

.contact-form label {
    display: block;
    margin-top: 1rem;
    font-weight: bold;
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 0.5rem;
    margin-top: 0.25rem;
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 16px;
}

.contact-form button {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: #3399ff;
    font-size: 14px;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease-in-out;
}

.contact-form button:hover {
    background-color: #1a8cff;
}

/* Contact send alert */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999;
}

.modal-content {
    background: var(--background-color, #cbe9f5);
    color: var(--text-color, #000);
    padding: 2rem;
    border-radius: 8px;
    text-align: center;
    max-width: 400px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
}

.modal-content button {
    margin-top: 1rem;
    padding: 0.5rem 1.5rem;
    background-color: var(--accent-color, #007BFF);
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.modal-content button:hover {
    background-color: var(--highlight-hover, #0056b3);
}

/* Galleries */

.gallery-intro-container {
    max-width: 900px;
    margin: 0;
}

.gallery-toggle {
    display: none;
    font-size: 1rem;
    background-color: #7183B0;
    color: #fff;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    margin-bottom: 0.5rem;
}

.gallery-intro {
    max-width: 900px;
    margin: 0 1.5rem;
    font-size: 1.1rem;
    line-height: 1.5;
    text-align: left;
    border-bottom: 4px solid #7183B0;
}

.oil-layout {
    display: flex;
    gap: 2rem;
    flex-wrap: wrap;
    margin-top: 2rem;
    justify-content: space-between;
}

.oil-categories {
    flex: 1 1 300px;
    min-width: 200px;
    max-width: 400px;
    padding: 20px;
}

.oil-categories ul {
    list-style-type: disc;
    padding-left: 20px;
    font-size: 1.5em;
    line-height: 1.3;
}

.oil-categories li {
    margin-bottom: 10px;
}

.oil-categories a {
    text-decoration: none;
    font-weight: bold;
}

.oil-featured {
    flex: 1 1 100%;
    max-width: 450px;
    margin: 0;
    padding: 20px;
}

.oil-featured img.featured-image {
    width: 100%;
    max-width: 670px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-top: 1rem;
}

.oil-featured h1 {
    text-align: left;
    font-size: 2em;
    margin-bottom: 15px;
}

.part-of-text {
    font-size: 1.1em;
    text-align: left;
    margin-top: 1rem;
}

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

    .gallery-intro {
        display: none;
        margin: 0;
    }

    .oil-layout {
        flex-direction: column;
    }

    .oil-categories,
    .oil-featured {
        width: 100%;
        max-width: 100%;
        padding: 1rem 0;
    }
}

@media (prefers-color-scheme: dark) {
    a {
        color: #66aaff;
    }
}

/* Full-width mobile layout */
@media (max-width: 600px) {
    html,
    body {
        width: 100%;
        margin: 0;
        padding: 0;
        background-color: var(--main-bg);
    }

    .container {
        width: 100%;
        max-width: none;
        margin: 0;
        padding: 1.2em;
        border-radius: 0;
        box-shadow: none;
    }

    /* Force Huglou News into a single column on iPhone-sized screens. */
    .today-banner-wrapper .huglou-news {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        width: 100% !important;
        max-width: 100% !important;
    }

    .today-banner-wrapper .huglou-news h3 {
        display: block !important;
        width: 100% !important;
        margin: 0 0 0.4em !important;
        clear: both;
        text-align: center;
        order: 1;
    }

    .today-banner-wrapper .huglou-news > a {
        display: block !important;
        width: 100% !important;
        margin: 0 !important;
        text-align: center;
        order: 2;
    }

    .today-banner-wrapper .huglou-news .news-image {
        display: block !important;
        float: none !important;
        margin: 0 auto !important;
    }

    .today-banner-wrapper .huglou-news .news-list {
        width: 100%;
        order: 3;
    }
}

/* Reliable News stacking for Safari and device simulators at every viewport. */
.today-banner-wrapper > .huglou-news {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    justify-items: center !important;
}

.today-banner-wrapper > .huglou-news > h3 {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 1 !important;
    width: 100% !important;
    margin: 0 0 0.4em !important;
    clear: both !important;
    float: none !important;
    text-align: center !important;
}

.today-banner-wrapper > .huglou-news > a {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 2 !important;
    width: 100% !important;
    margin: 0 !important;
    clear: both !important;
    float: none !important;
    text-align: center !important;
}

.today-banner-wrapper > .huglou-news > a > .news-image {
    display: block !important;
    float: none !important;
    margin: 0 auto !important;
}

.today-banner-wrapper > .huglou-news > .news-list {
    display: block !important;
    grid-column: 1 !important;
    grid-row: 3 !important;
    width: 100% !important;
    margin-top: 0.75em !important;
    clear: both !important;
    float: none !important;
}

