/*
 * Shanghai Food Menu frontend styles
 * Source is intentionally compact: generated pages reuse these component classes.
 */

:root {
    --color-ink: #202326;
    --color-muted: #63716b;
    --color-soft: #edf6f3;
    --color-card: #ffffff;
    --color-line: #d8e5df;
    --color-red: #b64235;
    --color-red-bright: #d45744;
    --color-gold: #2f8f7b;
    --color-charcoal: #18221f;
    --shadow-soft: 0 18px 45px rgba(25, 48, 43, 0.12);
    --shadow-card: 0 10px 28px rgba(25, 48, 43, 0.10);
    --radius: 8px;
    --container-width: 1180px;
    --font-main: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: var(--font-main);
    color: var(--color-ink);
    background: #f4f8f6;
    line-height: 1.65;
    overflow-x: hidden;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    color: var(--color-red);
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.container {
    width: 100%;
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 22px;
}

.page-section {
    padding-top: 34px;
    padding-bottom: 34px;
}

.text-center {
    text-align: center;
}

.mt-20 {
    margin-top: 20px;
}

.mb-20 {
    margin-bottom: 20px;
}

.grid {
    display: grid;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 10px;
    color: var(--color-gold);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.eyebrow::before {
    content: "";
    width: 28px;
    height: 2px;
    background: var(--color-gold);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 12px 22px;
    border: 1px solid var(--color-red);
    border-radius: var(--radius);
    background: var(--color-red);
    color: #fff;
    font-weight: 700;
    line-height: 1.1;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.btn:hover {
    color: #fff;
    background: var(--color-red-bright);
    box-shadow: 0 10px 22px rgba(184, 32, 38, 0.22);
    transform: translateY(-1px);
}

.btn-ghost {
    color: var(--color-red);
    background: transparent;
}

.btn-ghost:hover {
    color: #fff;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.96);
    border-bottom: 1px solid rgba(216, 229, 223, 0.9);
    backdrop-filter: blur(12px);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 68px;
}

.logo a {
    color: var(--color-red);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.main-nav > ul {
    display: flex;
    align-items: center;
    gap: 24px;
}

.main-nav a {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-charcoal);
}

.has-dropdown {
    position: relative;
}

.has-dropdown::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    height: 12px;
}

.arrow-down {
    display: inline-block;
    width: 0;
    height: 0;
    margin-left: 6px;
    vertical-align: middle;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 5px solid currentColor;
}

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    min-width: 220px;
    padding: 10px;
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
    transition: opacity 0.18s ease, transform 0.18s ease;
}

.has-dropdown:hover .dropdown,
.has-dropdown:focus-within .dropdown {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.dropdown a {
    display: block;
    padding: 9px 10px;
    border-radius: 6px;
    color: var(--color-ink);
}

.dropdown a:hover {
    background: var(--color-soft);
}

.mega-menu {
    right: 0;
    left: auto;
}

.mega-menu-cols {
    display: grid;
    grid-template-columns: 1fr;
    gap: 6px;
}

.menu-toggle {
    display: none;
    width: 42px;
    height: 42px;
    padding: 10px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-card);
}

.menu-toggle span {
    display: block;
    height: 2px;
    margin: 5px 0;
    background: var(--color-charcoal);
    transition: transform 0.2s ease, opacity 0.2s ease;
}

.menu-toggle.active span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
}

.home-hero {
    position: relative;
    overflow: hidden;
    padding: 78px 0 70px;
    background:
        linear-gradient(90deg, rgba(251, 247, 240, 0.98) 0%, rgba(251, 247, 240, 0.88) 48%, rgba(251, 247, 240, 0.62) 100%),
        url("/images/banner-home.jpg") center/cover no-repeat;
}

.home-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.84fr);
    gap: 54px;
    align-items: center;
}

.home-hero h1 {
    max-width: 680px;
    margin: 0;
    color: #1f2b2a;
    font-size: 58px;
    line-height: 1.03;
    letter-spacing: 0;
}

.home-hero p {
    max-width: 620px;
    margin: 22px 0 0;
    color: #596861;
    font-size: 18px;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 30px;
}

.home-hero-media {
    position: relative;
    min-height: 430px;
}

.hero-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.65);
    border-radius: var(--radius);
    box-shadow: var(--shadow-soft);
}

.hero-photo-main {
    position: absolute;
    inset: 32px 0 0 64px;
    width: calc(100% - 64px);
    height: 330px;
}

.hero-photo-small {
    position: absolute;
    width: 190px;
    height: 150px;
}

.hero-photo-top {
    top: 0;
    left: 0;
}

.hero-photo-bottom {
    right: 18px;
    bottom: 0;
}

.section-heading {
    max-width: 760px;
    margin: 0 auto 28px;
    text-align: center;
}

.section-heading-left {
    margin-left: 0;
    text-align: left;
}

.section-heading h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.15;
    letter-spacing: 0;
}

.section-heading p {
    margin: 12px 0 0;
    color: var(--color-muted);
    font-size: 17px;
}

.food-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 26px;
    padding: 26px 0;
}

.food-card {
    overflow: hidden;
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.food-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-soft);
}

.food-card a {
    display: block;
    height: 100%;
}

.food-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.food-card-content {
    padding: 18px;
}

.food-card h3 {
    margin: 0;
    color: var(--color-charcoal);
    font-size: 21px;
    line-height: 1.34;
    letter-spacing: 0;
}

.food-card p {
    margin: 10px 0 0;
    color: var(--color-muted);
    font-size: 15px;
}

.food-card-meta {
    display: inline-block;
    margin-top: 14px;
    color: var(--color-muted);
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.menu-directory {
    display: grid;
    gap: 34px;
    padding: 22px 0 34px;
}

.menu-group {
    border-top: 1px solid var(--color-line);
    padding-top: 26px;
}

.menu-group:first-child {
    border-top: 0;
    padding-top: 0;
}

.menu-group-heading {
    display: grid;
    grid-template-columns: minmax(180px, 260px) minmax(0, 1fr);
    gap: 28px;
    align-items: start;
    margin-bottom: 18px;
}

.menu-group-heading h2 {
    margin: 0;
    color: var(--color-charcoal);
    font-size: 28px;
    line-height: 1.2;
    letter-spacing: 0;
}

.menu-group-heading p {
    margin: 0;
    color: var(--color-muted);
    font-size: 16px;
}

.menu-items {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.menu-item {
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.menu-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}

.menu-item a {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    min-height: 150px;
    height: 100%;
}

.menu-item-thumb {
    background: var(--color-soft);
    overflow: hidden;
}

.menu-item-thumb img {
    width: 100%;
    height: 100%;
    min-height: 150px;
    object-fit: cover;
}

.menu-item-body {
    padding: 18px 18px 16px;
}

.menu-item-type {
    display: block;
    margin-bottom: 7px;
    color: var(--color-muted);
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0;
}

.menu-item h3 {
    margin: 0;
    color: var(--color-charcoal);
    font-size: 22px;
    line-height: 1.2;
    letter-spacing: 0;
}

.menu-item p {
    margin: 8px 0 0;
    color: var(--color-muted);
    font-size: 15px;
}

.topic-list {
    display: grid;
    gap: 18px;
    padding: 22px 0;
}

.topic-list .food-card a {
    display: grid;
    grid-template-columns: 260px minmax(0, 1fr);
}

.topic-list .food-card img {
    height: 100%;
    min-height: 190px;
    aspect-ratio: auto;
}

.topic-list .food-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 24px;
}

.section-actions {
    margin-top: 8px;
    text-align: center;
}

.intro-section {
    margin-top: 54px;
    padding: 48px;
    background: #edf6f3;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.intro-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
    gap: 40px;
    align-items: center;
}

.intro-grid h2 {
    margin: 0;
    font-size: 34px;
    line-height: 1.16;
}

.intro-grid p {
    color: var(--color-muted);
}

.intro-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.read-more-link {
    display: inline-flex;
    margin-top: 10px;
    color: var(--color-red);
    font-weight: 800;
}

.page-banner {
    position: relative;
    overflow: hidden;
    min-height: 300px;
    display: flex;
    align-items: center;
    color: #fff;
    text-align: center;
    background: var(--color-charcoal);
}

.page-banner-menu {
    background: linear-gradient(rgba(30, 27, 24, 0.54), rgba(30, 27, 24, 0.54)), url("/images/banner-food-menu.jpg") center/cover no-repeat;
}

.page-banner-topics {
    background: linear-gradient(rgba(30, 27, 24, 0.56), rgba(30, 27, 24, 0.56)), url("/images/banner-food-guides.jpg") center/cover no-repeat;
}

.page-banner::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(90deg, rgba(30, 18, 12, 0.62), rgba(30, 18, 12, 0.24));
}

.page-banner .container {
    position: relative;
    z-index: 2;
}

.page-banner-media,
.banner-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
    width: 100%;
    height: 100%;
}

.page-banner-media img,
.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-banner img[data-focus="top"] {
    object-position: center top;
}

.page-banner img[data-focus="bottom"] {
    object-position: center bottom;
}

.page-banner h1 {
    max-width: 980px;
    margin: 0 auto;
    color: #fff;
    font-size: 46px;
    line-height: 1.12;
    letter-spacing: 0;
    text-shadow: 0 3px 18px rgba(0, 0, 0, 0.38);
}

.page-banner p {
    max-width: 780px;
    margin: 16px auto 0;
    color: rgba(255, 255, 255, 0.92);
    font-size: 18px;
}

.article-hero {
    min-height: 330px;
}

.breadcrumbs-wrapper {
    margin-top: 14px;
    margin-bottom: 0;
}

.breadcrumbs {
    padding: 12px 0;
    color: var(--color-muted);
    font-size: 14px;
    white-space: nowrap;
    overflow-x: auto;
}

.breadcrumbs a {
    color: var(--color-red);
    font-weight: 700;
}

.page-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 300px;
    gap: 40px;
    align-items: start;
}

.detail-content {
    padding: 36px 40px;
    background: var(--color-card);
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
    overflow-wrap: anywhere;
}

.detail-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-bottom: 24px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--color-line);
    color: var(--color-muted);
    font-size: 14px;
}

.detail-text {
    max-width: 760px;
    margin: 0 auto;
    color: #24312f;
    font-size: 18px;
    line-height: 1.82;
}

.detail-text p {
    margin: 0 0 1.1em;
}

.detail-content h1,
.detail-content h2,
.detail-content h3,
.detail-content h4,
.detail-content h5,
.detail-content h6 {
    margin: 1.55em 0 0.6em;
    color: var(--color-charcoal);
    line-height: 1.25;
    letter-spacing: 0;
}

.detail-content h2 {
    font-size: 29px;
}

.detail-content h3 {
    font-size: 24px;
}

.detail-content a {
    color: var(--color-red);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.detail-content ul,
.detail-content ol {
    margin: 1em 0;
    padding-left: 1.4em;
}

.detail-content li {
    margin-bottom: 0.45em;
}

.detail-content ul li {
    list-style: disc;
}

.detail-content ol li {
    list-style: decimal;
}

.detail-content blockquote {
    margin: 1.5em 0;
    padding: 1em 1.2em;
    background: var(--color-soft);
    border-left: 4px solid var(--color-red);
    color: #52635e;
}

.detail-content table {
    width: 100%;
    margin: 1.4em 0;
    border-collapse: collapse;
}

.detail-content th,
.detail-content td {
    padding: 0.75em;
    border: 1px solid var(--color-line);
    text-align: left;
}

.detail-content img.content-image {
    width: min(100%, 760px);
    max-height: 620px;
    margin: 22px auto;
    object-fit: cover;
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.detail-gallery {
    margin: 30px 0 38px;
    padding: 28px 0 4px;
    border-top: 1px solid var(--color-line);
    border-bottom: 1px solid var(--color-line);
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.gallery-item {
    overflow: hidden;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(58, 40, 19, 0.08);
}

.gallery-item img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.24s ease;
}

.gallery-item:hover img {
    transform: scale(1.04);
}

.gallery-caption {
    padding: 10px 12px;
    color: var(--color-muted);
    font-size: 13px;
    line-height: 1.45;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 30px;
    padding-top: 24px;
    border-top: 1px solid var(--color-line);
}

.tags-label {
    color: var(--color-muted);
    font-weight: 800;
}

.tag-link,
.tag-item {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 5px 12px;
    border: 1px solid var(--color-line);
    border-radius: 999px;
    background: var(--color-soft);
    color: var(--color-red);
    font-size: 14px;
    font-weight: 700;
}

.related-articles-section {
    margin-top: 28px;
}

.related-articles-section .section-heading,
.related-topics-section .section-heading {
    margin-bottom: 16px;
}

.related-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-article-card,
.sidebar-widget {
    padding: 18px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(58, 40, 19, 0.08);
}

.sidebar {
    display: grid;
    gap: 16px;
}

.sidebar-widget {
    padding: 16px;
}

.related-article-card h4,
.sidebar-widget h3 {
    margin: 0 0 10px;
}

.sidebar-widget h3 {
    color: var(--color-charcoal);
    font-size: 19px;
    line-height: 1.25;
}

.sidebar-list {
    margin: 0;
    padding: 0;
}

.sidebar-list li {
    padding: 9px 0;
    border-bottom: 1px solid var(--color-line);
    list-style: none;
}

.sidebar-list li:last-child {
    border-bottom: 0;
}

.sidebar-list a {
    display: block;
    color: var(--color-charcoal);
    font-size: 15px;
    font-weight: 750;
    line-height: 1.42;
}

.sidebar-card-list {
    display: grid;
    gap: 10px;
}

.sidebar-card {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 10px;
    align-items: center;
    color: var(--color-charcoal);
    font-size: 15px;
    font-weight: 760;
    line-height: 1.35;
}

.sidebar-card img,
.sidebar-card picture {
    width: 72px;
    height: 54px;
}

.sidebar-card img {
    display: block;
    object-fit: cover;
    border-radius: 8px;
}

.sidebar-note {
    margin: 2px 0 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.45;
}

.related-topics-section {
    margin-top: 32px;
}

.related-topic-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.related-topic-card {
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    box-shadow: 0 8px 20px rgba(58, 40, 19, 0.08);
    overflow: hidden;
}

.related-topic-card a {
    display: block;
    color: inherit;
}

.related-topic-card img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.related-topic-card div {
    padding: 14px;
}

.related-topic-card h4 {
    margin: 0 0 8px;
}

.related-topic-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 14px;
    line-height: 1.55;
}

.banner-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.comments-section {
    margin-top: 40px;
    padding-top: 28px;
    border-top: 1px solid var(--color-line);
}

.comment-form input,
.comment-form textarea,
.reply-form-field input,
.reply-form-field textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    font-family: inherit;
    font-size: 16px;
}

.comment-form .grid {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.comment-item {
    margin-bottom: 14px;
    padding: 16px;
    border-radius: var(--radius);
}

.comment-item-user {
    background: #fff;
    border: 1px solid var(--color-line);
}

.comment-item-admin {
    background: #edf6f3;
    border-left: 4px solid var(--color-gold);
}

.comment-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 8px;
    color: var(--color-muted);
    font-size: 14px;
}

.reply-btn,
.btn-submit,
.btn-cancel {
    border: 0;
    border-radius: 6px;
    cursor: pointer;
}

.reply-btn {
    padding: 4px 0;
    background: transparent;
    color: var(--color-red);
    font-weight: 700;
}

.reply-form-container {
    display: none;
    margin-top: 14px;
    padding: 14px;
    background: #fff;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
}

.reply-form-actions {
    display: flex;
    gap: 10px;
}

.btn-submit,
.btn-cancel {
    padding: 8px 14px;
    color: #fff;
}

.btn-submit {
    background: var(--color-red);
}

.btn-cancel {
    background: #777;
}

.honeypot-field,
.track-view-element {
    display: none;
}

.empty-state-text {
    grid-column: 1 / -1;
    padding: 38px;
    text-align: center;
    color: var(--color-muted);
}

.pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 22px;
}

.pagination a {
    display: inline-flex;
    min-width: 40px;
    min-height: 40px;
    align-items: center;
    justify-content: center;
    padding: 8px 12px;
    border: 1px solid var(--color-line);
    border-radius: var(--radius);
    background: var(--color-card);
}

.pagination a.active {
    border-color: var(--color-red);
    background: var(--color-red);
    color: #fff;
}

footer {
    margin-top: 52px;
    padding: 44px 0 24px;
    background: #15211f;
    color: #dce8e3;
}

.footer-content {
    display: grid;
    grid-template-columns: 1.4fr 0.8fr 0.8fr;
    gap: 34px;
}

.footer-col h4 {
    margin: 0 0 14px;
    color: #fff;
}

.footer-col p,
.footer-col li {
    color: #dce8e3;
}

.footer-col li {
    margin-bottom: 8px;
}

.copyright {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    text-align: center;
    color: #aebfba;
    font-size: 14px;
}

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
    text-align: center;
    box-sizing: border-box;
    padding: 18px;
    background: rgba(0, 0, 0, 0.92);
}

.lightbox[style*="display: flex"] {
    display: flex !important;
}

.lightbox-inner {
    width: min(96vw, 1280px);
    max-height: 94vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: auto;
}

.lightbox-content {
    max-width: 92vw;
    max-height: 78vh;
    display: block;
    margin: 0 auto;
    object-fit: contain;
    border-radius: var(--radius);
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    color: #fff;
    cursor: pointer;
    user-select: none;
}

.lightbox-close {
    top: 16px;
    right: 20px;
    font-size: 38px;
}

.lightbox-nav {
    top: 50%;
    transform: translateY(-50%);
    padding: 12px;
    font-size: 34px;
}

.lightbox-prev {
    left: 12px;
}

.lightbox-next {
    right: 12px;
}

.lightbox-caption,
.lightbox-counter {
    color: #e7e1d7;
    text-align: center;
    max-width: min(92vw, 1100px);
    overflow-wrap: anywhere;
}

.lightbox-caption {
    margin-top: 10px;
    font-size: 15px;
    line-height: 1.45;
}

@media (max-width: 1024px) {
    .home-hero-grid,
    .intro-grid,
    .page-layout {
        grid-template-columns: 1fr;
    }

    .sidebar {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        align-items: start;
    }

    .home-hero-media {
        min-height: 360px;
    }

    .food-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    html,
    body {
        max-width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 14px;
    }

    .header-inner {
        min-height: 64px;
    }

    .logo a {
        font-size: 21px;
    }

    .menu-toggle {
        display: block;
    }

    .main-nav {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        padding: 8px 14px 16px;
        background: var(--color-card);
        border-bottom: 1px solid var(--color-line);
        box-shadow: var(--shadow-card);
    }

    .main-nav.active {
        display: block;
    }

    .main-nav > ul {
        display: block;
    }

    .main-nav li {
        border-bottom: 1px solid var(--color-line);
    }

    .main-nav li:last-child {
        border-bottom: 0;
    }

    .main-nav a {
        display: block;
        padding: 13px 4px;
    }

    .dropdown {
        position: static;
        display: none;
        min-width: 0;
        padding: 0 0 8px 12px;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
        background: transparent;
    }

    .has-dropdown.open .dropdown {
        display: block;
    }

    .home-hero {
        padding: 46px 0 40px;
    }

    .home-hero-grid {
        gap: 30px;
        min-width: 0;
    }

    .home-hero-copy,
    .section-heading,
    .page-banner .container,
    .detail-content,
    .detail-text {
        width: 100%;
        max-width: calc(100vw - 28px);
        min-width: 0;
    }

    .home-hero h1 {
        font-size: 39px;
        overflow-wrap: break-word;
    }

    .home-hero p {
        font-size: 16px;
    }

    .home-hero-media {
        min-height: 300px;
        width: 100%;
        max-width: calc(100vw - 28px);
        overflow: hidden;
    }

    .hero-photo-main {
        inset: 24px 0 0 34px;
        width: calc(100% - 34px);
        height: 236px;
    }

    .hero-photo-small {
        width: 138px;
        height: 110px;
    }

    .hero-photo-bottom {
        right: 8px;
    }

    .section-heading h2,
    .intro-grid h2 {
        font-size: 28px;
        overflow-wrap: break-word;
    }

    .food-grid,
    .menu-items,
    .gallery-grid,
    .related-articles-grid,
    .related-topic-grid,
    .sidebar,
    .footer-content,
    .comment-form .grid {
        grid-template-columns: 1fr;
    }

    .food-card h3 {
        font-size: 19px;
    }

    .menu-directory {
        gap: 28px;
    }

    .menu-group-heading {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .menu-group-heading h2 {
        font-size: 24px;
    }

    .menu-item a {
        grid-template-columns: 112px minmax(0, 1fr);
        min-height: 132px;
    }

    .menu-item-thumb img {
        min-height: 132px;
    }

    .menu-item-body {
        padding: 14px;
    }

    .menu-item h3 {
        font-size: 19px;
    }

    .menu-item p {
        font-size: 14px;
    }

    .topic-list .food-card a {
        grid-template-columns: 1fr;
    }

    .topic-list .food-card img {
        min-height: 0;
        aspect-ratio: 4 / 3;
    }

    .intro-section {
        margin-top: 34px;
        padding: 26px;
    }

    .page-banner,
    .article-hero {
        min-height: 250px;
    }

    .page-banner h1 {
        font-size: 25px;
        line-height: 1.14;
        width: 100%;
        max-width: calc(100vw - 28px);
        overflow-wrap: anywhere;
        word-break: normal;
    }

    .page-banner p {
        font-size: 15px;
        overflow-wrap: anywhere;
    }

    .detail-content {
        max-width: 100%;
        overflow: hidden;
        padding: 22px 16px;
    }

    .detail-text {
        font-size: 16px;
        line-height: 1.75;
        overflow-wrap: anywhere;
    }

    .detail-content h2 {
        font-size: 24px;
    }

    .detail-content img.content-image {
        max-height: 430px;
    }

    .gallery-item img {
        aspect-ratio: 4 / 3;
    }

    .comment-item[data-comment-id] {
        margin-left: 0 !important;
    }

    .breadcrumbs {
        max-width: 100%;
        white-space: normal;
        overflow-x: visible;
        overflow-wrap: anywhere;
        word-break: normal;
    }
}

@media (max-width: 430px) {
    .home-hero h1 {
        font-size: 34px;
    }

    .hero-actions .btn {
        width: 100%;
    }

    .page-banner h1 {
        font-size: 25px;
        line-height: 1.14;
    }

    .page-banner p {
        font-size: 14px;
        line-height: 1.55;
    }

    .article-hero {
        min-height: 246px;
    }

    .breadcrumbs {
        font-size: 13px;
    }

    .detail-content {
        padding: 20px 14px;
    }
}
