:root {
    --ink: #f6e7d2;
    --muted: #dfc9ae;
    --paper: #4a2818;
    --paper-dark: #2a150d;
    --line: rgba(246, 231, 210, 0.28);
    --accent: #f3d9b4;
    --accent-dark: #d6a25b;
    --hop: #7f8f32;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

section[id],
footer[id] {
    scroll-margin-top: 88px;
}

body {
    margin: 0;
    color: var(--ink);
    background:
        radial-gradient(circle at 18% 10%, rgba(214, 162, 91, 0.22), transparent 28rem),
        linear-gradient(180deg, var(--paper), var(--paper-dark));
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.55;
}

a {
    color: inherit;
}

.mobile-site-nav,
.to-top-button {
    display: none;
}

.poster-page {
    width: min(1120px, calc(100% - 32px));
    min-height: 100svh;
    margin: 0 auto;
    padding: clamp(12px, 2.4svh, 24px) 0;
    display: grid;
    gap: clamp(10px, 1.8svh, 20px);
    grid-template-rows: auto minmax(0, 1fr) auto;
}

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

.page-heading p,
.social-footer p {
    margin: 0 0 4px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.page-heading h1 {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 0.95;
    text-transform: uppercase;
}

.page-heading span {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: clamp(13px, 1.8vw, 17px);
}

.content-layout {
    display: grid;
    grid-template-columns: 238px minmax(0, 1fr);
    min-height: 0;
    align-items: start;
    gap: clamp(16px, 2.5vw, 28px);
}

.poster-stack {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(14px, 2vw, 24px);
    min-height: 0;
}

.poster-frame {
    display: flex;
    margin: 0;
    padding: 7px;
    background: rgba(246, 231, 210, 0.1);
    border: 1px solid var(--line);
    border-radius: 8px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    min-height: 0;
}

.poster-frame img {
    display: block;
    width: 100%;
    max-height: min(62svh, 520px);
    height: auto;
    object-fit: contain;
    border-radius: 4px;
}

.opening-hours {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 11px;
    text-align: left;
    background: rgba(246, 231, 210, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.opening-hours p {
    margin: 0;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.opening-hours h2 {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    line-height: 1.05;
    text-transform: uppercase;
}

.opening-hours dl {
    width: 100%;
    margin: 2px 0 0;
}

.opening-hours div {
    display: grid;
    grid-template-columns: 82px 1fr;
    gap: 8px;
    padding: 4px 0;
    border-top: 1px solid rgba(246, 231, 210, 0.18);
    font-size: 13px;
}

.opening-hours dt,
.opening-hours dd {
    margin: 0;
}

.opening-hours dt {
    color: var(--muted);
    text-align: left;
}

.opening-hours dd {
    font-weight: 800;
    text-align: right;
}

.closures-list {
    display: grid;
    gap: 8px;
    margin-top: 8px;
}

.closures-list article {
    padding: 10px;
    color: var(--paper-dark);
    background: var(--accent);
    border-radius: 6px;
}

.closures-list span {
    display: block;
    color: var(--paper);
    font-size: 11px;
    font-weight: 900;
    text-transform: uppercase;
}

.closures-list strong {
    display: block;
    margin-top: 2px;
    font-size: 13px;
}

.closures-list p {
    margin: 4px 0 0;
    color: #4a2818;
    font-size: 13px;
    font-weight: 700;
}

.sync-status {
    margin: 2px 0 0;
    color: rgba(246, 231, 210, 0.62);
    font-size: 11px;
    font-weight: 800;
    text-align: right;
}

.opening-albums {
    position: relative;
    display: grid;
    gap: 6px;
    margin-top: 4px;
}

.opening-albums p {
    display: block;
}

.opening-albums a {
    position: relative;
    width: 100%;
    padding: 6px 9px;
    color: var(--paper-dark);
    background: var(--accent);
    border-radius: 4px;
    font-size: 12px;
    font-weight: 900;
    text-align: center;
    text-decoration: none;
}

.opening-albums a:hover {
    background: var(--accent-dark);
}

.opening-albums a[data-description]:hover::after,
.opening-albums a[data-description]:focus-visible::after {
    position: absolute;
    left: calc(100% + 8px);
    top: 50%;
    transform: translateY(-50%);
    z-index: 5;
    width: min(220px, 80vw);
    padding: 8px;
    color: var(--paper-dark);
    background: var(--accent);
    border: 1px solid rgba(74, 40, 24, 0.26);
    border-radius: 6px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.28);
    content: attr(data-description);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.35;
}

.social-footer {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding-top: 0;
    text-align: center;
}

.social-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

.social-links a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    min-width: 152px;
    padding: 0 22px;
    color: var(--paper-dark);
    background: var(--accent);
    border: 1px solid rgba(246, 231, 210, 0.45);
    border-radius: 6px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.social-links a:hover {
    background: var(--accent-dark);
}

.google-reviews {
    display: grid;
    justify-items: center;
    gap: 8px;
    width: min(760px, 100%);
    margin-top: 6px;
    padding: 14px;
    background: rgba(246, 231, 210, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.google-reviews p {
    margin: 0;
}

.google-reviews h2 {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(26px, 4vw, 42px);
    line-height: 1;
}

.google-reviews > span {
    color: var(--muted);
    font-weight: 800;
}

.review-note {
    max-width: 680px;
    color: var(--muted);
    font-size: 13px;
}

.review-list {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

.review-list article {
    padding: 10px;
    text-align: left;
    background: rgba(42, 21, 13, 0.28);
    border: 1px solid rgba(246, 231, 210, 0.16);
    border-radius: 6px;
}

.review-list strong {
    display: block;
    color: var(--accent);
}

.review-meta {
    display: block;
    margin-top: 2px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 900;
}

.review-list p {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.google-reviews > a {
    color: var(--paper-dark);
    background: var(--accent);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.history-teaser {
    display: grid;
    justify-items: center;
    gap: 6px;
    width: min(760px, 100%);
    padding: 14px;
    background: rgba(246, 231, 210, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.history-teaser p {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 24px;
    font-weight: 800;
}

.history-teaser span {
    color: var(--muted);
    font-size: 14px;
}

.history-teaser a,
.history-back,
.history-sources a {
    color: var(--paper-dark);
    background: var(--accent);
    border-radius: 6px;
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.history-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: clamp(18px, 4vw, 56px) 0;
}

.history-back {
    display: inline-flex;
    margin-bottom: 24px;
}

.history-hero {
    margin-bottom: clamp(24px, 5vw, 48px);
}

.history-hero p {
    margin: 0 0 8px;
    color: var(--accent-dark);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.history-hero h1 {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(42px, 8vw, 92px);
    line-height: 0.95;
    text-transform: uppercase;
}

.history-hero span {
    display: block;
    margin-top: 12px;
    color: var(--muted);
    font-size: clamp(16px, 2vw, 22px);
}

.history-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 460px);
    gap: clamp(22px, 4vw, 44px);
    align-items: start;
}

.history-text {
    padding: clamp(20px, 4vw, 34px);
    background: rgba(246, 231, 210, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.history-text p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 18px;
}

.history-sources {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}

.history-images {
    display: grid;
    gap: 16px;
}

.history-images figure {
    margin: 0;
    padding: 8px;
    background: rgba(246, 231, 210, 0.1);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.history-images img {
    display: block;
    width: 100%;
    border-radius: 4px;
}

.history-images figcaption {
    margin-top: 8px;
    color: var(--muted);
    font-size: 13px;
}

.album-page {
    width: min(1120px, calc(100% - 32px));
    margin: 0 auto;
    padding: 28px 0 56px;
}

.album-page-header {
    display: grid;
    gap: 8px;
    margin-bottom: 24px;
    text-align: center;
}

.album-page-header a {
    justify-self: center;
    color: var(--accent);
    font-size: 13px;
    font-weight: 900;
    text-decoration: none;
}

.album-page-header p {
    margin: 0;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
}

.album-page-header h1 {
    margin: 0;
    color: var(--accent);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(34px, 6vw, 72px);
    line-height: 0.95;
    text-transform: uppercase;
}

.album-page-header span {
    color: var(--muted);
}

.public-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.public-album-grid figure {
    margin: 0;
    padding: 7px;
    background: rgba(246, 231, 210, 0.1);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.public-album-grid img {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 4px;
}

.album-empty {
    padding: 24px;
    text-align: center;
    background: rgba(246, 231, 210, 0.08);
    border: 1px solid var(--line);
    border-radius: 8px;
}

.admin-link {
    color: rgba(246, 231, 210, 0.62);
    font-size: 13px;
    text-decoration: none;
}

.visitor-counter,
.site-credit {
    margin: 0;
    color: rgba(246, 231, 210, 0.62);
    font-size: 13px;
}

.site-credit a {
    color: var(--accent);
    font-weight: 800;
    text-decoration: none;
}

.cookie-settings-link {
    padding: 0;
    color: rgba(246, 231, 210, 0.62);
    background: transparent;
    border: 0;
    font: inherit;
    font-size: 13px;
    text-decoration: underline;
    cursor: pointer;
}

.site-popup {
    position: fixed;
    inset: 0;
    z-index: 20;
    display: none;
    place-items: center;
    padding: 20px;
}

.site-popup.is-visible {
    display: grid;
}

.site-popup-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(20, 10, 5, 0.72);
}

.site-popup-panel {
    position: relative;
    width: min(520px, 100%);
    padding: clamp(26px, 5vw, 42px);
    color: var(--paper-dark);
    background: var(--accent);
    border: 1px solid rgba(246, 231, 210, 0.6);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.site-popup-panel > p:first-of-type {
    margin: 0 0 8px;
    color: var(--paper);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.site-popup-panel h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 7vw, 52px);
    line-height: 1;
    text-transform: uppercase;
}

.site-popup-body {
    margin: 18px 0 0;
    color: #4a2818;
    font-size: 18px;
}

.site-popup-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    margin-top: 22px;
    padding: 0 18px;
    color: var(--ink);
    background: var(--paper);
    border-radius: 6px;
    font-weight: 900;
    text-decoration: none;
    text-transform: uppercase;
}

.site-popup-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    color: var(--paper-dark);
    background: transparent;
    border: 1px solid rgba(74, 40, 24, 0.26);
    border-radius: 50%;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.cookie-notice {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 16px;
    z-index: 18;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 14px;
    max-width: 760px;
    margin: 0 auto;
    padding: 12px 14px;
    color: var(--paper-dark);
    background: var(--accent);
    border: 1px solid rgba(246, 231, 210, 0.6);
    border-radius: 8px;
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.3);
}

.cookie-notice.is-visible {
    display: flex;
}

.cookie-notice p {
    margin: 0;
    font-size: 13px;
    font-weight: 700;
}

.cookie-notice div {
    display: flex;
    flex: 0 0 auto;
    gap: 8px;
}

.cookie-notice button,
.cookie-settings-actions button {
    flex: 0 0 auto;
    min-height: 36px;
    padding: 0 16px;
    color: var(--ink);
    background: var(--paper);
    border: 1px solid var(--paper);
    border-radius: 6px;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

.cookie-notice button:first-child {
    color: var(--paper);
    background: transparent;
}

.cookie-settings-panel {
    position: fixed;
    inset: 0;
    z-index: 24;
    display: none;
    place-items: center;
    padding: 18px;
    background: rgba(20, 10, 5, 0.72);
}

.cookie-settings-panel.is-visible {
    display: grid;
}

.cookie-settings-card {
    position: relative;
    width: min(520px, 100%);
    padding: clamp(22px, 5vw, 34px);
    color: var(--paper-dark);
    background: var(--accent);
    border: 1px solid rgba(246, 231, 210, 0.6);
    border-radius: 8px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.45);
}

.cookie-settings-card > p {
    margin: 0 0 8px;
    color: var(--paper);
    font-size: 13px;
    font-weight: 900;
    text-transform: uppercase;
}

.cookie-settings-card h2 {
    margin: 0 0 18px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 7vw, 46px);
    line-height: 1;
    text-transform: uppercase;
}

.cookie-settings-card dl {
    display: grid;
    gap: 12px;
    margin: 0;
}

.cookie-settings-card dl div {
    padding-top: 12px;
    border-top: 1px solid rgba(74, 40, 24, 0.22);
}

.cookie-settings-card dt,
.cookie-settings-card dd {
    margin: 0;
}

.cookie-settings-card dt {
    font-weight: 900;
}

.cookie-settings-card dd {
    margin-top: 3px;
    color: #4a2818;
    font-size: 14px;
    font-weight: 700;
}

.cookie-settings-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 20px;
}

.cookie-settings-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 34px;
    height: 34px;
    color: var(--paper-dark);
    background: transparent;
    border: 1px solid rgba(74, 40, 24, 0.26);
    border-radius: 50%;
    font: inherit;
    font-weight: 900;
    cursor: pointer;
}

@media (min-width: 901px) and (max-height: 820px) {
    .poster-page {
        width: min(1080px, calc(100% - 28px));
        padding: 10px 0;
        gap: 10px;
    }

    .page-heading h1 {
        font-size: clamp(32px, 5vw, 58px);
    }

    .page-heading span {
        margin-top: 4px;
        font-size: 13px;
    }

    .content-layout {
        grid-template-columns: 224px minmax(0, 1fr);
        gap: 16px;
    }

    .poster-stack {
        gap: 14px;
    }

    .poster-frame img {
        max-height: calc(100svh - 190px);
    }

    .opening-hours {
        gap: 7px;
        padding: 9px;
    }

    .opening-hours h2 {
        font-size: 16px;
    }

    .opening-hours div {
        padding: 3px 0;
        font-size: 12px;
    }

    .social-footer {
        gap: 7px;
    }

    .social-links a {
        min-height: 34px;
        min-width: 132px;
        padding: 0 16px;
        font-size: 13px;
    }

    .google-reviews {
        padding: 10px;
    }

    .google-reviews h2 {
        font-size: 28px;
    }

    .review-list {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .review-list article {
        padding: 8px;
    }

    .review-list p {
        font-size: 12px;
    }
}

@media (max-width: 900px) {
    .poster-page {
        min-height: auto;
        grid-template-rows: none;
        padding: 18px 0 28px;
        gap: 18px;
    }

    .content-layout {
        grid-template-columns: 1fr;
    }

    .poster-stack {
        grid-template-columns: 1fr;
    }

    .poster-stack {
        display: contents;
    }

    .poster-frame:first-child {
        order: 1;
    }

    .opening-hours {
        order: 2;
    }

    .poster-frame:not(:first-child) {
        order: 3;
    }

    .poster-frame {
        width: min(620px, 100%);
        margin: 0 auto;
    }

    .poster-frame img {
        max-height: none;
    }

    .opening-hours {
        width: min(420px, 100%);
        margin: 0 auto;
    }

    .opening-hours div {
        grid-template-columns: 92px 1fr;
    }
}

@media (max-width: 560px) {
    .mobile-site-nav {
        position: relative;
        z-index: 2;
        display: grid;
        gap: 8px;
        width: 100%;
        padding: 0;
        background: transparent;
        border-bottom: 0;
    }

    .mobile-site-menu-toggle {
        justify-self: end;
        display: grid;
        grid-template-columns: 18px auto;
        grid-template-rows: repeat(3, 2px);
        align-content: center;
        column-gap: 8px;
        row-gap: 4px;
        min-height: 38px;
        padding: 0 12px;
        color: var(--paper-dark);
        background: var(--accent);
        border: 1px solid var(--accent);
        border-radius: 6px;
        font: inherit;
        font-size: 13px;
        font-weight: 900;
        cursor: pointer;
    }

    .mobile-site-menu-toggle span:not(.mobile-site-menu-label) {
        display: block;
        width: 18px;
        height: 2px;
        background: currentColor;
        border-radius: 99px;
    }

    .mobile-site-menu-label {
        grid-column: 2;
        grid-row: 1 / 4;
        align-self: center;
    }

    .mobile-site-menu {
        display: none;
        grid-template-columns: 1fr;
        gap: 6px;
    }

    .mobile-site-menu.is-open {
        display: grid;
    }

    .mobile-site-menu a {
        padding: 10px 12px;
        color: var(--ink);
        background: rgba(246, 231, 210, 0.08);
        border: 1px solid var(--line);
        border-radius: 6px;
        font-size: 14px;
        font-weight: 800;
        text-decoration: none;
    }

    .to-top-button {
        position: fixed;
        right: 14px;
        bottom: 14px;
        z-index: 17;
        display: grid;
        place-items: center;
        width: 42px;
        height: 42px;
        color: var(--paper-dark);
        background: var(--accent);
        border: 1px solid rgba(246, 231, 210, 0.6);
        border-radius: 50%;
        box-shadow: 0 14px 32px rgba(0, 0, 0, 0.28);
        font-size: 22px;
        font-weight: 900;
        line-height: 1;
        text-decoration: none;
    }

    .poster-page {
        width: min(100% - 20px, 520px);
        padding-top: 14px;
    }

    .page-heading h1 {
        font-size: clamp(32px, 13vw, 54px);
    }

    .page-heading span {
        font-size: 13px;
    }

    .opening-hours {
        width: 100%;
        gap: 4px;
    }

    .opening-hours h2 {
        display: none;
    }

    .opening-hours dl {
        margin: 0;
    }

    .opening-hours div {
        grid-template-columns: 88px 1fr;
        gap: 0;
        padding: 0;
        border-top: 0;
        line-height: 1.18;
    }

    .opening-hours dt,
    .opening-hours dd {
        font-size: 12px;
    }

    .opening-hours dd {
        text-align: right;
    }

    .cookie-notice {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .cookie-notice div,
    .cookie-settings-actions {
        display: grid;
    }

    .social-links {
        width: 100%;
    }

    .opening-albums a[data-description]:hover::after,
    .opening-albums a[data-description]:focus-visible::after {
        left: 0;
        right: auto;
        top: calc(100% + 6px);
        transform: none;
    }

    .social-links a {
        flex: 1 1 140px;
        min-width: 0;
    }

    .review-list {
        grid-template-columns: 1fr;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .public-album-grid {
        grid-template-columns: 1fr;
    }

    .history-text p {
        font-size: 16px;
    }
}
