:root {
    --duchess-black: #070707;
    --duchess-panel: #101010;
    --duchess-cream: #f7f5e9;
    --duchess-muted: rgba(247, 245, 233, 0.8);
    --duchess-gold: #c0ab84;
    --duchess-gold-soft: #ebe4bd;
    --duchess-border: rgba(192, 171, 132, 0.9);
    --duchess-transition: cubic-bezier(0.22, 1, 0.36, 1);
}

html.duchess-template {
    min-height: 100%;
    background: var(--duchess-black);
}

.duchess-cms {
    min-height: 100vh;
    margin: 0;
    color: var(--duchess-cream);
    background: #555 url("../gfx/background.jpg") no-repeat center center fixed;
    background-size: cover;
    font-family: "Lato", Geneva, sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

.duchess-cms *,
.duchess-cms *::before,
.duchess-cms *::after {
    box-sizing: border-box;
}

.duchess-cms a {
    color: inherit;
}

.duchess-cms img {
    max-width: 100%;
}

.duchess-cms #outer,
.duchess-cms .outer {
    width: 100%;
    min-height: 100vh;
}

.duchess-cms .outer {
    padding: 40px 10px 28px;
}

.duchess-home .outer {
    --duchess-home-splash-width: min(1050px, calc(100vw - 60px), calc((100svh - 190px) * 1.909));
    position: relative;
    display: grid;
    min-height: 100svh;
    place-items: center;
    padding: clamp(24px, 4vh, 56px) 10px;
}

.duchess-home .duchess-home-hero-stack {
    display: grid;
    justify-items: center;
    gap: 36px;
}

.duchess-subpage .outer {
    display: grid;
    min-height: 100svh;
    align-content: safe center;
    justify-items: center;
    padding: clamp(24px, 4vh, 56px) 10px;
}

body.duchess-cms::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 9998;
    background: #020202;
    pointer-events: none;
    opacity: 1;
    transition: opacity 1350ms var(--duchess-transition);
}

body.duchess-cms.is-loaded::before {
    opacity: 0;
}

html.duchess-page-leaving body.duchess-cms::before {
    opacity: 1;
    transition-duration: 860ms;
    transition-timing-function: cubic-bezier(0.76, 0, 0.24, 1);
}

/* Welcome */
.duchess-cms .duchess-welcome {
    position: relative;
    box-sizing: content-box;
    width: min(1050px, calc(100vw - 60px));
    margin: 0 auto 46px;
    border: 10px solid #fff;
    background: #080706;
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.38);
}

.duchess-home .duchess-welcome {
    width: var(--duchess-home-splash-width);
    margin: 0;
}

.duchess-cms .duchess-welcome__link {
    position: relative;
    display: grid;
    aspect-ratio: 1050 / 550;
    overflow: hidden;
    place-items: center;
    color: var(--duchess-cream);
    text-decoration: none;
}

.duchess-cms .duchess-mobile-splash {
    display: none;
}

.duchess-home .duchess-welcome__link {
    height: auto;
    min-height: 0;
}

.duchess-home .duchess-welcome__link::after {
    content: "";
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 1;
    height: 48%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.66) 0%,
        rgba(0, 0, 0, 0.34) 44%,
        rgba(0, 0, 0, 0) 100%
    );
    pointer-events: none;
}

.duchess-home .duchess-desktop-splash {
    position: absolute;
    top: 70%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: min(700px, 72vw);
    justify-items: center;
    gap: 24px;
    transform: translate(-50%, -50%);
    text-align: center;
}

.duchess-home .duchess-desktop-splash__logo {
    display: block;
    width: min(700px, 72vw) !important;
    height: auto !important;
    max-height: 220px;
    opacity: 1 !important;
    object-fit: contain;
    filter: none !important;
}

.duchess-home .duchess-welcome__link:hover .duchess-desktop-splash__logo {
    opacity: 1;
    filter: none !important;
}

.duchess-home .duchess-desktop-splash__text-logo {
    color: var(--duchess-cream);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(3rem, 7vw, 7rem);
    font-style: italic;
    line-height: 0.95;
    text-shadow: 0 16px 38px rgba(0, 0, 0, 0.58);
}

.duchess-home .duchess-desktop-splash__enter {
    display: inline-flex;
    min-width: 230px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(247, 245, 233, 0.78);
    background: rgba(0, 0, 0, 0.2);
    color: var(--duchess-cream);
    font-family: "Lato", Geneva, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.48em;
    line-height: 1;
    padding: 14px 42px 15px;
    text-transform: uppercase;
    transition:
        background-color 400ms ease,
        border-color 400ms ease,
        color 400ms ease;
}

.duchess-home .duchess-welcome__link:hover .duchess-desktop-splash__enter,
.duchess-home .duchess-welcome__link:focus-visible .duchess-desktop-splash__enter {
    border-color: rgba(247, 245, 233, 0.98);
    background: rgba(192, 171, 132, 0.88);
    color: #080706;
}

.duchess-cms .duchess-welcome picture,
.duchess-cms .duchess-welcome img {
    display: block;
    width: 100%;
    height: 100%;
}

.duchess-cms .duchess-welcome img {
    opacity: 0.9;
    object-fit: cover;
    object-position: center center;
    transition: opacity 1000ms ease, filter 1000ms ease;
}

.duchess-cms .duchess-welcome__link:hover img {
    opacity: 1;
    filter: brightness(1.08);
}

.duchess-cms .duchess-welcome__fallback {
    display: grid;
    place-items: center;
    min-height: inherit;
    padding: 60px 32px;
    text-align: center;
}

.duchess-cms .duchess-welcome__fallback img {
    width: min(620px, 82vw);
    height: auto;
    object-fit: contain;
}

.duchess-cms .duchess-welcome__fallback span {
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(2.2rem, 8vw, 5.5rem);
    font-style: italic;
    line-height: 0.95;
}

.duchess-cms .duchess-welcome--blank {
    border-color: rgba(255, 255, 255, 0.9);
    background:
        linear-gradient(135deg, rgba(192, 171, 132, 0.12), rgba(0, 0, 0, 0.08)),
        #080706 url("../gfx/main-bg.jpg") no-repeat center center;
    background-size: cover;
}

/* Header and menu */
.duchess-cms .nav-bg {
    width: 100%;
}

.duchess-cms #nav {
    position: relative;
    width: min(1050px, calc(100vw - 32px));
    min-height: 89px;
    margin: 0 auto;
}

.duchess-cms .homelink {
    position: absolute;
    inset: 0 auto auto 0;
    display: flex;
    z-index: 2;
    width: min(510px, 48vw);
    min-height: 89px;
    align-items: center;
    color: var(--duchess-cream);
    text-decoration: none;
}

.duchess-cms .homelink img {
    display: block;
    width: auto;
    max-width: min(510px, 48vw);
    height: 85px;
    object-fit: contain;
    object-position: left center;
}

.duchess-cms .duchess-logo-fallback {
    display: block;
    max-width: min(340px, 46vw);
    font-family: "Playfair Display", Georgia, serif;
    font-size: clamp(1.6rem, 4vw, 3rem);
    font-style: italic;
    line-height: 0.95;
    color: var(--duchess-cream);
    text-shadow: 0 2px 16px rgba(0, 0, 0, 0.45);
}

.duchess-cms #nav ul {
    position: absolute;
    right: 0;
    bottom: 0;
    width: min(950px, 74vw);
    margin: 0;
    padding: 0;
    list-style: none;
    text-align: right;
}

.duchess-cms #nav li {
    display: inline;
    list-style: none;
}

.duchess-cms #nav li a,
.duchess-cms #nav .standalone-nav-link {
    position: relative;
    display: inline-block;
    margin: 0 8px;
    padding-bottom: 20px;
    color: var(--duchess-cream);
    font-family: "Oswald", "Century Gothic", Geneva, sans-serif;
    font-size: 14px;
    font-weight: 400;
    letter-spacing: -0.2px;
    text-decoration: none;
    transition: color 250ms ease;
}

.duchess-cms #nav li a::after,
.duchess-cms #nav .standalone-nav-link::after,
.duchess-cms #content a:not(.btn-dark):not(.lightbox):not(.showalbum):not(:has(img))::after,
.duchess-cms #footer a::after {
    position: absolute;
    right: 0;
    left: 0;
    height: 1px;
    background: currentColor;
    content: "";
    opacity: 0.72;
    transform: scaleX(0);
    transform-origin: 100% 50%;
    transition: transform 520ms var(--duchess-transition), opacity 360ms ease;
}

.duchess-cms #nav li a::after,
.duchess-cms #nav .standalone-nav-link::after {
    bottom: 20px;
}

.duchess-cms #content a:not(.btn-dark):not(.lightbox):not(.showalbum):not(:has(img))::after,
.duchess-cms #footer a::after {
    bottom: 0px;
}

.duchess-cms #nav li a:hover,
.duchess-cms #nav li a.active,
.duchess-cms #nav .standalone-nav-link:hover {
    color: var(--duchess-gold-soft);
}

.duchess-cms #nav li a:hover::after,
.duchess-cms #nav li a.active::after,
.duchess-cms #nav .standalone-nav-link:hover::after,
.duchess-cms #content a:not(.btn-dark):not(.lightbox):not(.showalbum):not(:has(img)):hover::after,
.duchess-cms #footer a:hover::after {
    opacity: 1;
    transform: scaleX(1);
    transform-origin: 0 50%;
}

.duchess-cms .top-menu {
    position: absolute;
    right: 10px;
    bottom: 25px;
    display: none;
    appearance: none;
    border: 0;
    background: url("../gfx/menu-icon.png") no-repeat top left;
    color: var(--duchess-cream);
    cursor: pointer;
    font-family: "Oswald", "Century Gothic", Geneva, sans-serif;
    font-size: 13px;
    line-height: 12px;
    padding: 0 0 0 10px;
    text-decoration: none;
}

.duchess-cms .top-menu:hover {
    background-position: bottom left;
    color: var(--duchess-gold-soft);
}

/* Framed page */
.duchess-cms #shell {
    position: relative;
    display: grid;
    grid-template-columns: minmax(260px, 350px) minmax(0, 700px);
    width: min(1050px, calc(100vw - 32px));
    min-height: 550px;
    margin: 0 auto 36px;
    border: 1px solid var(--duchess-border);
    background: #111 url("../gfx/main-bg.jpg") no-repeat top right;
    background-size: 700px 550px;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.35);
    overflow: hidden;
}

.duchess-cms #splash {
    position: relative;
    min-height: 550px;
    background:
        radial-gradient(circle at 50% 25%, rgba(192, 171, 132, 0.14), transparent 46%),
        #080706;
    overflow: hidden;
}

.duchess-cms .duchess-splash__image,
.duchess-cms .duchess-splash picture {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
}

.duchess-cms .duchess-splash__image {
    object-fit: cover;
    object-position: center top;
}

.duchess-cms .duchess-splash__shadow {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.duchess-cms #main {
    min-width: 0;
}

.duchess-cms #content {
    width: min(85%, 600px);
    height: 438px;
    margin: 60px 0 0 60px;
    padding: 0 16px 0 0;
    overflow: auto;
    color: var(--duchess-muted);
    font-size: 15px;
    line-height: 1.5;
}

.duchess-cms #content::-webkit-scrollbar {
    width: 11px;
    background: transparent;
}

.duchess-cms #content::-webkit-scrollbar-track {
    background: transparent url("../gfx/scroll-bg.png") center center repeat-y;
}

.duchess-cms #content::-webkit-scrollbar-track-piece {
    background: transparent url("../gfx/scroll-bg.png") center center repeat-y;
}

.duchess-cms #content::-webkit-scrollbar-thumb {
    min-height: 38px;
    border: 4px solid transparent;
    border-radius: 999px;
    background-color: rgba(235, 228, 189, 0.72);
    background-clip: padding-box;
    transition: background-color 420ms ease, box-shadow 420ms ease, border-color 420ms ease;
}

.duchess-cms #content::-webkit-scrollbar-thumb:hover,
.duchess-cms #content::-webkit-scrollbar-thumb:active {
    background-color: rgba(247, 245, 233, 0.96);
    background-clip: padding-box;
    box-shadow: inset 0 0 0 1px rgba(247, 245, 233, 0.22), 0 0 8px rgba(235, 228, 189, 0.18);
}

.duchess-cms #content::-webkit-scrollbar-button {
    display: block;
    width: 11px;
    height: 12px;
    background-color: transparent;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: 7px 5px;
}

.duchess-cms #content::-webkit-scrollbar-button:vertical:start:decrement {
    background-image: url("data:image/svg+xml,%3Csvg width='7' height='5' viewBox='0 0 7 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 .85 6.05 4.15H.95L3.5 .85Z' fill='%23ebe4bd' fill-opacity='.9'/%3E%3C/svg%3E");
}

.duchess-cms #content::-webkit-scrollbar-button:vertical:end:increment {
    height: 12px;
    background-image: url("data:image/svg+xml,%3Csvg width='7' height='5' viewBox='0 0 7 5' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3.5 4.15.95 .85h5.1L3.5 4.15Z' fill='%23ebe4bd' fill-opacity='.9'/%3E%3C/svg%3E");
}

.duchess-cms #content::-webkit-scrollbar-button:vertical:start:increment,
.duchess-cms #content::-webkit-scrollbar-button:vertical:end:decrement {
    display: none;
}

.duchess-cms #content::-webkit-scrollbar-corner {
    background: transparent;
}

.duchess-cms #content h1,
.duchess-cms #content h2,
.duchess-cms #content h3 {
    color: var(--duchess-cream);
    font-family: "Playfair Display", Georgia, serif;
    font-weight: 400;
    line-height: 1.22;
}

.duchess-cms #content h1 {
    margin: 0 15px 18px 0;
    font-family: "Dancing Script", "Brush Script MT", cursive;
    font-size: 45px;
    font-weight: 400;
    line-height: 1;
}

.duchess-cms #content h2 {
    margin: 1.65em 15px 0.65em 0;
    font-size: clamp(16px, 2vw, 22px);
}

.duchess-cms #content h3 {
    margin: 1.45em 15px 0.55em 0;
    font-size: clamp(1.25rem, 2.2vw, 1.8rem);
}

.duchess-cms #content p,
.duchess-cms #content ul,
.duchess-cms #content ol,
.duchess-cms #content table,
.duchess-cms #content blockquote,
.duchess-cms #content hr {
    margin: 0 15px 15px 0;
}

.duchess-cms #content p:empty {
    display: none;
}

.duchess-cms #content ul,
.duchess-cms #content ol {
    padding-left: 1.6rem;
}

.duchess-cms #content li {
    margin-bottom: 0.72rem;
    padding-left: 0.22rem;
}

.duchess-cms #content li::marker {
    color: var(--duchess-gold);
}

.duchess-cms #content strong,
.duchess-cms #content b {
    color: var(--duchess-cream);
    font-weight: 700;
}

.duchess-cms #content a {
    position: relative;
    display: inline;
    color: var(--duchess-cream);
    text-decoration: none;
    transition: color 250ms ease;
}

.duchess-cms #content a:not(.btn-dark):not(.lightbox):not(.showalbum):not(:has(img)) {
    display: inline-block;
}

.duchess-cms #content a:hover {
    color: var(--duchess-gold-soft);
}

.duchess-cms #content table {
    width: auto;
    max-width: 100%;
    border-collapse: collapse;
}

.duchess-cms #content td,
.duchess-cms #content th {
    border: 1px solid rgba(192, 171, 132, 0.42);
    padding: 4px 16px;
}

.duchess-cms #content .btn-dark {
    position: relative;
    display: inline-block;
    min-width: 178px;
    margin-top: 12px;
    border: 1px solid rgba(235, 228, 189, 0.68);
    background-color: rgba(7, 7, 7, 0.24);
    background-image: none;
    color: var(--duchess-cream) !important;
    cursor: pointer;
    font-family: "Lato", Geneva, sans-serif;
    font-size: 9px;
    font-weight: 400;
    letter-spacing: 0.28em;
    line-height: 1;
    overflow: hidden;
    padding: 12px 26px 13px;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    transition:
        background-color 420ms ease,
        border-color 420ms ease,
        color 320ms ease;
}

.duchess-cms #content .btn-dark:hover,
.duchess-cms #content .btn-dark:focus-visible {
    background-color: #c0ab84 !important;
    border-color: rgba(247, 245, 233, 0.94);
    color: #000 !important;
}

/* Gallery */
.duchess-cms .albumcontainer {
    display: flex;
    flex-wrap: wrap;
    gap: 20px 15px;
    margin-top: 20px;
    margin-bottom: 24px;
    text-align: center;
}

.duchess-cms .album {
    width: min(150px, 44%);
}

.duchess-cms .album a {
    display: block;
    color: var(--duchess-muted);
    text-decoration: none;
}

.duchess-cms .album img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--duchess-gold-soft);
    object-fit: cover;
}

.duchess-cms .album span {
    position: relative;
    display: inline-block;
    margin-top: 8px;
    color: var(--duchess-cream);
    font-family: "Oswald", "Century Gothic", Geneva, sans-serif;
    font-size: 11px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.duchess-cms .album a:hover span,
.duchess-cms .album a.active span {
    color: var(--duchess-gold-soft);
}

.duchess-cms .album .duchess-vault-album-cover {
    position: relative;
    display: block;
    width: 100%;
    margin: 0;
    color: #fff;
}

.duchess-cms .album .duchess-vault-album-cover img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    border: 2px solid var(--duchess-gold-soft);
    object-fit: cover;
    filter: brightness(0.5) saturate(0.82);
    transition:
        border-color 720ms var(--duchess-transition),
        filter 720ms var(--duchess-transition);
}

.duchess-cms .album .duchess-vault-album-cover__lock {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    width: 100%;
    margin: 0;
    color: #fff;
    background: rgba(0, 0, 0, 0.22);
    opacity: 0.62;
    pointer-events: none;
    transition:
        background 720ms var(--duchess-transition),
        color 720ms var(--duchess-transition),
        opacity 720ms var(--duchess-transition);
}

.duchess-cms .album .duchess-vault-album-cover__lock svg {
    display: block;
    width: 36px;
    height: 36px;
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.55));
}

.duchess-cms .album a:hover .duchess-vault-album-cover img {
    border-color: var(--duchess-gold);
    filter: brightness(0.72) saturate(1.05);
}

.duchess-cms .album a:hover .duchess-vault-album-cover__lock {
    color: var(--duchess-gold);
    background: rgba(0, 0, 0, 0.14);
    opacity: 1;
}

.duchess-cms .album .duchess-vault-album-cover--unlocked img {
    filter: none;
}

.duchess-cms .album .duchess-vault-album-cover--unlocked .duchess-vault-album-cover__lock {
    color: var(--duchess-gold-soft);
    background: transparent;
    opacity: 0.86;
}

.duchess-cms .album a:hover .duchess-vault-album-cover--unlocked img,
.duchess-cms .album a.active .duchess-vault-album-cover--unlocked img {
    border-color: var(--duchess-gold);
    filter: brightness(1.06) saturate(1.04);
}

.duchess-cms .album a:hover .duchess-vault-album-cover--unlocked .duchess-vault-album-cover__lock,
.duchess-cms .album a.active .duchess-vault-album-cover--unlocked .duchess-vault-album-cover__lock {
    color: var(--duchess-gold);
    background: transparent;
    opacity: 1;
}

.duchess-cms .duchess-gallery-grid {
    display: grid;
    grid-template-columns: repeat(var(--gallery-columns, 4), minmax(0, 1fr));
    gap: 10px;
    margin: 10px auto 24px;
    opacity: 1;
    transform: translateY(0);
    transition:
        opacity 520ms var(--duchess-transition),
        transform 520ms var(--duchess-transition);
}

.duchess-cms .duchess-gallery-grid[style*="display:none"] {
    display: none;
}

.duchess-cms .duchess-gallery-grid.is-gallery-fading {
    opacity: 0;
    pointer-events: none;
    transform: translateY(8px);
}

.duchess-cms .duchess-gallery-grid .duchess-album-description {
    grid-column: 1 / -1;
}

.duchess-cms .duchess-gallery-grid a {
    position: relative;
    display: block;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.8);
    background: rgba(0, 0, 0, 0.3);
    aspect-ratio: var(--thumbnail-aspect-ratio, 1 / 1);
    padding: 5px;
}

.duchess-cms .duchess-gallery-grid img,
.duchess-cms .duchess-gallery-grid video {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
    image-rendering: auto;
    -ms-interpolation-mode: bicubic;
    backface-visibility: hidden;
    filter: blur(0.1px);
    transform: translateZ(0) scale(1.002);
    transform-origin: center center;
}

.duchess-cms .duchess-gallery-grid video {
    background: #000;
}

.duchess-cms .duchess-gallery-grid .media-preview-play {
    position: absolute;
    inset: 5px;
    z-index: 2;
    display: grid;
    place-items: center;
    background: rgba(0, 0, 0, 0.12);
    pointer-events: none;
}

.duchess-cms .duchess-gallery-grid .media-preview-play::before {
    width: 0;
    height: 0;
    margin-left: 4px;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-left: 16px solid var(--duchess-cream);
    content: "";
    filter: drop-shadow(0 7px 14px rgba(0, 0, 0, 0.55));
}

.duchess-cms .duchess-gallery-grid a::after {
    content: "";
    position: absolute;
    inset: 5px;
    z-index: 1;
    background: rgba(0, 0, 0, 0.18);
    opacity: 0;
    pointer-events: none;
    transition: opacity 450ms ease;
}

.duchess-cms .duchess-gallery-grid a:hover::after {
    opacity: 1;
}

/* Footer */
.duchess-cms #footer {
    width: min(1050px, calc(100vw - 32px));
    margin: auto;
    color: #fff;
    font-family: "Lato", Geneva, sans-serif;
    font-size: 8px;
    font-weight: 400;
    letter-spacing: 2px;
    text-align: center;
    text-transform: uppercase;
}

.duchess-cms #footer .copyline {
    display: inline-flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.35rem 0.8rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.duchess-cms #footer li {
    list-style: none;
}

.duchess-cms #footer li + li::before {
    content: "|";
    display: inline-block;
    margin: 0 0.85rem 0 0.1rem;
    color: inherit;
}

.duchess-cms #footer a {
    position: relative;
    display: inline-block;
    color: inherit;
    text-decoration: none;
    transition: color 250ms ease;
}

.duchess-cms #footer a:hover {
    color: #eee;
}

.duchess-home .duchess-home-banners {
    position: absolute;
    right: 16px;
    bottom: clamp(18px, 4vh, 46px);
    left: 16px;
    z-index: 2;
    display: grid;
    justify-items: center;
}

.duchess-home .pp-homepage-banners {
    width: min(1050px, calc(100vw - 32px));
    margin: 0 auto;
}

.duchess-home .pp-homepage-banners img {
    max-height: 48px;
    object-fit: contain;
}

@media (max-width: 1000px) {
    .duchess-cms .top-menu {
        display: block;
    }

    .duchess-cms #nav ul {
        position: fixed;
        top: 99px;
        left: 50%;
        right: auto;
        bottom: auto;
        z-index: 38;
        display: block;
        width: min(1050px, calc(100vw - 25px));
        border: 1px solid transparent;
        background: rgba(0, 0, 0, 0.92);
        clip-path: inset(0 0 100% 0);
        opacity: 0;
        pointer-events: none;
        text-align: left;
        transform: translate(-50%, -10px);
        visibility: hidden;
        transition:
            clip-path 560ms var(--duchess-transition),
            opacity 420ms ease,
            transform 560ms var(--duchess-transition),
            border-color 420ms ease,
            visibility 0ms linear 560ms;
    }

    .duchess-cms.duchess-menu-open #nav ul {
        border-color: var(--duchess-border);
        clip-path: inset(0 0 0 0);
        opacity: 1;
        pointer-events: auto;
        transform: translate(-50%, 0);
        visibility: visible;
        transition:
            clip-path 640ms var(--duchess-transition),
            opacity 460ms ease,
            transform 640ms var(--duchess-transition),
            border-color 460ms ease,
            visibility 0ms linear 0ms;
    }

    .duchess-cms #nav li {
        display: block;
    }

    .duchess-cms #nav li a,
    .duchess-cms #nav .standalone-nav-link {
        display: block;
        margin: 0 10px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.24);
        padding: 9px 10px;
    }

    .duchess-cms #nav li a::after,
    .duchess-cms #nav .standalone-nav-link::after {
        bottom: 6px;
    }

    .duchess-cms #nav li:last-child a {
        border-bottom: 0;
    }

    .duchess-cms #content {
        width: calc(100% - 52px);
        margin: 38px 0 0 34px;
    }
}

@media (max-width: 900px) {
    .duchess-cms #shell {
        grid-template-columns: minmax(220px, 35%) minmax(0, 65%);
    }

    .duchess-cms #content {
        height: 410px;
    }
}

@media (max-width: 768px) {
    .duchess-cms {
        background: #555 url("../gfx/background.jpg") repeat top center;
        background-size: auto;
    }

    .duchess-home {
        background: #050505;
    }

    .duchess-home .outer {
        display: block;
        min-height: 100svh;
        padding: 0;
    }

    .duchess-home .duchess-welcome {
        box-sizing: border-box;
        width: 100vw;
        height: 100svh;
        margin: 0;
        border: 0;
        box-shadow: none;
    }

    .duchess-home .duchess-welcome__link {
        width: 100%;
        height: 100svh;
        min-height: 100svh;
        aspect-ratio: auto;
    }

    .duchess-home .duchess-desktop-splash {
        display: none;
    }

    .duchess-home .duchess-welcome__link::after {
        content: "";
        position: absolute;
        right: 0;
        bottom: 0;
        left: 0;
        z-index: 1;
        height: 52%;
        background: linear-gradient(
            to top,
            rgba(0, 0, 0, 0.72) 0%,
            rgba(0, 0, 0, 0.42) 42%,
            rgba(0, 0, 0, 0) 100%
        );
        pointer-events: none;
    }

    .duchess-home .duchess-mobile-splash {
        position: absolute;
        top: 70%;
        left: 50%;
        z-index: 2;
        display: grid;
        width: min(400px, 82vw);
        justify-items: center;
        gap: 22px;
        transform: translate(-50%, -50%);
        text-align: center;
    }

    .duchess-home .duchess-mobile-splash__logo {
        display: block;
        width: min(400px, 82vw) !important;
        height: auto !important;
        max-height: 160px;
        opacity: 1 !important;
        object-fit: contain;
        filter: none !important;
    }

    .duchess-home .duchess-welcome__link:hover .duchess-mobile-splash__logo {
        opacity: 1;
        filter: none !important;
    }

    .duchess-home .duchess-mobile-splash__text-logo {
        color: var(--duchess-cream);
        font-family: "Playfair Display", Georgia, serif;
        font-size: clamp(2.3rem, 12vw, 4.8rem);
        font-style: italic;
        line-height: 0.95;
        text-shadow: 0 14px 30px rgba(0, 0, 0, 0.55);
    }

    .duchess-home .duchess-mobile-splash__enter {
        display: inline-flex;
        min-width: 154px;
        align-items: center;
        justify-content: center;
        border: 1px solid rgba(247, 245, 233, 0.76);
        background: rgba(0, 0, 0, 0.22);
        color: var(--duchess-cream);
        font-family: "Lato", Geneva, sans-serif;
        font-size: 9px;
        font-weight: 400;
        letter-spacing: 0.38em;
        line-height: 1;
        padding: 13px 24px 14px;
        text-transform: uppercase;
        transition:
            background-color 650ms ease,
            border-color 650ms ease,
            color 650ms ease;
    }

    .duchess-home .duchess-welcome__link:hover .duchess-mobile-splash__enter,
    .duchess-home .duchess-welcome__link:focus-visible .duchess-mobile-splash__enter {
        border-color: rgba(247, 245, 233, 0.96);
        background: rgba(192, 171, 132, 0.86);
        color: #080706;
    }

    .duchess-home #footer {
        display: none;
    }

    .duchess-home .duchess-home-banners {
        right: 12px;
        bottom: max(18px, env(safe-area-inset-bottom));
        left: 12px;
        display: grid;
    }

    .duchess-home .pp-homepage-banners {
        display: flex;
        width: 100%;
        gap: 8px 0;
        margin: 0 auto 15px;
    }

    .duchess-home .pp-homepage-banners img {
        max-height: 42px;
    }

    .duchess-subpage .outer {
        padding-top: 99px;
    }

    .duchess-cms #nav {
        position: fixed;
        top: 0;
        left: 20px;
        right: 20px;
        z-index: 40;
        width: auto;
    }

    .duchess-cms .nav-bg {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        z-index: 39;
        height: 99px;
        background: rgba(0, 0, 0, 0.86);
    }

    .duchess-cms .homelink {
        width: min(340px, 72vw);
        min-height: 89px;
    }

    .duchess-cms .homelink img {
        max-width: min(340px, 72vw);
        height: 85px;
    }

    .duchess-cms #shell {
        display: block;
        width: min(680px, calc(100vw - 32px));
        margin-bottom: 30px;
        padding: 20px 0;
        background: #111 url("../gfx/main-bg.jpg") repeat-y top right;
    }

    .duchess-cms #splash {
        width: auto;
        min-height: 470px;
        margin: 0 28px 24px;
    }

    .duchess-cms #content {
        width: auto;
        height: auto;
        max-height: none;
        margin: 0 auto;
        padding: 0 40px 12px;
        overflow: visible;
    }

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

@media (max-width: 520px) {
    .duchess-cms .outer {
        padding-left: 0;
        padding-right: 0;
    }

    .duchess-cms #shell,
    .duchess-cms #footer {
        width: calc(100vw - 24px);
    }

    .duchess-cms .duchess-welcome {
        border-width: 6px;
    }

    .duchess-home .duchess-welcome {
        border-width: 0;
    }

    .duchess-cms #splash {
        min-height: 390px;
        margin-inline: 20px;
    }

    .duchess-cms #content {
        padding-inline: 28px;
    }

    .duchess-cms #content h1 {
        font-size: clamp(1.9rem, 12vw, 3rem);
    }

    .duchess-cms .duchess-gallery-grid {
        grid-template-columns: repeat(var(--gallery-mobile-columns, 2), minmax(0, 1fr));
    }

    .duchess-cms #footer {
        font-size: 7px;
        letter-spacing: 0.5px;
    }

    .duchess-subpage #footer .copyline {
        display: grid;
        gap: 0.45rem;
        line-height: 1.45;
    }

    .duchess-subpage #footer li + li::before {
        content: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.duchess-cms::before {
        display: none;
    }

    .duchess-cms *,
    .duchess-cms *::before,
    .duchess-cms *::after {
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
        animation-duration: 0.01ms !important;
    }
}
