:root {
    --season-bg: #f4f1ea;
    --season-text: #111;
    --season-accent: #26382f;
    --season-surface: #ece8df;
    --season-flash: #fff;
    --season-glow: transparent;
}

body[data-theme="spring"] {
    --season-bg: #f3f0e8;
    --season-text: #263126;
    --season-accent: #7f9274;
    --season-surface: #e7e9df;
    --season-flash: #fff4ef
}

body[data-theme="summer"] {
    --season-bg: #f6f0e4;
    --season-text: #24201a;
    --season-accent: #b27b45;
    --season-surface: #eee1cc;
    --season-flash: #fff0c7
}

body[data-theme="fall"] {
    --season-bg: #f3eadf;
    --season-text: #2a1c16;
    --season-accent: #9a4f2c;
    --season-surface: #e8d5c1;
    --season-flash: #ffd29b
}

body[data-theme="halloween"] {
    --season-bg: #191817;
    --season-text: #f5efe8;
    --season-accent: #d66a1f;
    --season-surface: #2a2521;
    --season-flash: #ffad62;
    --season-glow: #d66a1f
}

body[data-theme="winter"] {
    --season-bg: #f3f5f6;
    --season-text: #172026;
    --season-accent: #78909c;
    --season-surface: #e2e9ec;
    --season-flash: #e8f7ff
}

body[data-theme="christmas"] {
    --season-bg: #f4efe6;
    --season-text: #16251c;
    --season-accent: #7f2525;
    --season-surface: #e6ded1;
    --season-flash: #ffe8a9;
    --season-glow: #d4a34e
}

body[data-theme="valentine"] {
    --season-bg: #f6ece9;
    --season-text: #321f22;
    --season-accent: #8d4652;
    --season-surface: #ead9d7;
    --season-flash: #ffe4e6
}

body:not([data-theme="default"]) .home-page {
    background: var(--season-bg);
    color: var(--season-text)
}

body:not([data-theme="default"]) .photo-process,
body:not([data-theme="default"]) .process-panel:not(:last-of-type)::after {
    background: var(--season-bg)
}

body:not([data-theme="default"]) .outline-pill {
    border-color: var(--season-accent)
}

.seasonal-announcement {
    position: relative;
    z-index: 31;
    display: block;
    padding: 8px 45px;
    background: var(--season-accent);
    color: #fff;
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-align: center;
    text-transform: uppercase
}

.seasonal-announcement+.seasonal-environment+.site-header {
    top: 43px
}

.seasonal-environment {
    position: fixed;
    z-index: 18;
    inset: 0;
    overflow: hidden;
    pointer-events: none
}

.seasonal-background,
.seasonal-content,
.seasonal-foreground {
    position: absolute;
    inset: 0;
    pointer-events: none
}

.seasonal-background {
    z-index: 1
}

.seasonal-content {
    z-index: 2
}

.seasonal-foreground {
    z-index: 3
}

body[data-season-graphics="0"] .seasonal-environment,
body[data-theme="default"] .seasonal-environment {
    display: none
}

.season-particle {
    --x: 50vw;
    --drift: 20px;
    --size: 12px;
    --duration: 12s;
    --delay: 0s;
    position: absolute;
    top: -8vh;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    opacity: .55;
    animation: seasonFall var(--duration) var(--delay) linear infinite;
    will-change: transform
}

.season-particle::before {
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background: var(--season-accent);
    border-radius: 80% 0 80% 0;
    transform: rotate(25deg)
}

body[data-theme="spring"] .season-particle::before,
body[data-theme="valentine"] .season-particle::before {
    border-radius: 70% 20% 70% 20%;
    background: #d6a9aa
}

body[data-theme="winter"] .season-particle::before,
body[data-theme="christmas"] .season-particle::before {
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 0 6px #fff8
}

body[data-theme="summer"] .season-particle {
    border-radius: 50%;
    background: #ffe7a0;
    filter: blur(5px);
    opacity: .2
}

.season-particle::before {
    background: transparent
}

body[data-theme="halloween"] .seasonal-background::before {
    content: '';
    position: absolute;
    left: -20%;
    right: -20%;
    bottom: 5%;
    height: 23vh;
    background: radial-gradient(ellipse, #d9d1c71c, transparent 65%);
    filter: blur(22px);
    animation: seasonFog 18s ease-in-out infinite alternate
}

body[data-theme="halloween"] .seasonal-content::after {
    content: '◒';
    position: absolute;
    right: 2vw;
    bottom: 3vh;
    color: #e97824;
    font-size: clamp(4rem, 8vw, 8rem);
    text-shadow: 0 0 18px #e9782488;
    animation: pumpkinGlow 4s ease-in-out infinite
}

body[data-theme="christmas"] .seasonal-content::after {
    content: '✦\A✦  ✦\A  ✦';
    white-space: pre;
    position: absolute;
    right: 1vw;
    top: 18vh;
    color: #f0c56c;
    font-size: 1.1rem;
    line-height: 4rem;
    text-shadow: 0 0 10px #f0c56c;
    animation: pumpkinGlow 3.7s ease-in-out infinite
}

.seasonal-feature {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(30px, 6vw, 90px);
    align-items: center;
    padding: clamp(65px, 9vw, 120px) var(--home-pad);
    overflow: hidden;
    background: var(--season-surface)
}

.seasonal-feature h2 {
    margin: 0 0 15px;
    font-family: var(--display);
    font-size: clamp(2.7rem, 5vw, 5rem);
    line-height: .95
}

.seasonal-feature>div {
    position: relative;
    z-index: 2
}

.seasonal-feature>img {
    width: 100%;
    height: 430px
}

.seasonal-dates {
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase
}

.seasonal-mark {
    position: absolute;
    right: -50px;
    bottom: -70px;
    width: 180px;
    height: 180px;
    border: 1px solid var(--season-accent);
    border-radius: 65% 35% 60% 40%;
    transform: rotate(25deg);
    opacity: .35
}

body[data-theme="winter"] .print-board::before,
body[data-theme="christmas"] .print-board::before {
    content: '';
    position: absolute;
    z-index: 8;
    left: 5%;
    right: 5%;
    top: 0;
    height: 12px;
    background: #fff;
    border-radius: 50%;
    filter: drop-shadow(0 2px 2px #7390a444)
}

body[data-theme="fall"] .print-board::after,
body[data-theme="valentine"] .print-board::after {
    content: '◆';
    position: absolute;
    z-index: 8;
    right: 3%;
    bottom: 5%;
    color: var(--season-accent);
    font-size: 1.4rem;
    transform: rotate(25deg)
}

body:not([data-theme="default"]) .process-flash {
    background: var(--season-flash)
}

body.season-shot .season-particle {
    animation-duration: .7s;
    animation-timing-function: ease-out
}

@keyframes seasonFall {
    to {
        transform: translate3d(var(--drift), 112vh, 0) rotate(540deg)
    }
}

@keyframes seasonFog {
    to {
        transform: translate3d(12%, 0, 0)
    }
}

@keyframes pumpkinGlow {
    50% {
        opacity: .72;
        filter: brightness(1.25)
    }
}

@media(max-width:700px) {
    .seasonal-announcement {
        padding-inline: 14px
    }
    .seasonal-announcement+.seasonal-environment+.site-header {
        top: 38px
    }
    .seasonal-feature {
        grid-template-columns: 1fr
    }
    .seasonal-feature>img {
        height: 300px
    }
    .seasonal-content::after {
        transform: scale(.65);
        transform-origin: bottom right
    }
}

@media(prefers-reduced-motion:reduce) {
    .season-particle,
    .seasonal-background::before,
    .seasonal-content::after {
        animation: none!important
    }
    .season-particle {
        top: 12vh
    }
    .seasonal-foreground {
        display: none
    }
}

.admin-seasonal-form {
    display: grid;
    gap: 24px;
    margin-block: 30px 55px
}

.admin-seasonal-form .form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 18px
}

.admin-seasonal-form label {
    display: grid;
    gap: 7px;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase
}

.admin-seasonal-form input,
.admin-seasonal-form select {
    min-height: 46px;
    padding: 10px;
    border: 1px solid var(--border);
    background: #fff;
    font: inherit
}

.admin-seasonal-form .check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 25px
}

.admin-seasonal-form .check-row label {
    display: flex;
    grid-template-columns: auto 1fr;
    align-items: center
}

.admin-seasonal-form .check-row input {
    min-height: auto
}

.theme-preview-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 18px
}

body[data-side-decorations="0"] .seasonal-content {
    display: none
}

body[data-animation-intensity="off"] .seasonal-environment * {
    animation: none!important
}

.season-particle::before {
    background: var(--season-accent)
}

body[data-theme="summer"] .season-particle::before {
    background: transparent
}


/* Local seasonal cutouts: keep the centre clear for photographs and controls. */

.season-decoration {
    position: absolute;
    width: clamp(70px, 10vw, 155px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 5px 12px #0002);
    opacity: .85
}

.season-decoration-left {
    left: -28px;
    top: 22vh;
    transform: rotate(-12deg)
}

.season-decoration-right {
    right: -18px;
    bottom: 15px;
    max-height: 28vh;
    width: auto;
    max-width: 15vw
}

body[data-theme="fall"] .season-decoration-right {
    width: clamp(90px, 16vw, 230px);
    max-width: 20vw
}

body[data-theme="christmas"] .season-decoration-right {
    max-height: 33vh
}

body[data-asset-theme="1"] .seasonal-content::after {
    content: none
}

.season-particle-asset::before {
    display: none!important
}

.season-particle-asset img {
    width: 100%;
    height: 100%;
    object-fit: contain
}

body[data-theme="winter"] .season-particle-asset {
    opacity: .8
}

body[data-season-graphics="0"] .print-board::before,
body[data-season-graphics="0"] .print-board::after {
    display: none
}

@media(max-width:700px) {
    .season-decoration-left {
        width: 65px;
        left: -24px;
        top: 26vh;
        opacity: .65
    }
    .season-decoration-right {
        max-height: 120px;
        max-width: 65px;
        right: 15px;
        opacity: .7;
        bottom: 103px;
    }
    body[data-theme="fall"] .season-decoration-right {
        max-width: 90px
    }
    body[data-theme="christmas"] .season-decoration-right {
        max-height: 145px
    }
}

.season-decoration,
.season-particle-asset,
.season-particle-asset img {
    background: transparent
}


/* Keep the photograph inside the transparent opening of each original frame. */

.seasonal-photo {
    position: relative;
    margin: 0;
    width: 100%;
    aspect-ratio: 5 / 4;
    background: transparent;
    isolation: isolate;
}

.seasonal-photo-image {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.seasonal-photo.has-season-frame {
    aspect-ratio: var(--frame-ratio);
}

.has-season-frame .seasonal-photo-image {
    position: absolute;
    inset: 9% 9% 10%;
    width: 82%;
    height: 81%;
}

.seasonal-photo-frame {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    pointer-events: none;
    z-index: 1;
    background: transparent;
}

body[data-theme="winter"] .has-season-frame .seasonal-photo-image {
    inset: 10% 13% 19% 10%;
    width: 77%;
    height: 71%;
}

body[data-theme="christmas"] .has-season-frame .seasonal-photo-image {
    inset: 10%;
    width: 80%;
    height: 80%;
    border: 2px solid #c6a365;
}

body[data-theme="photographer"] {
    --season-bg: #f1f2f3;
    --season-text: #202a31;
    --season-accent: #586776;
    --season-surface: #e2e6e8;
    --season-flash: #eef4ff;
}

body[data-theme="summer"] .season-particle-asset {
    background: transparent;
    filter: none;
    opacity: .55;
}

body[data-theme="spring"] .has-season-frame .seasonal-photo-image {
    inset: 10%;
    width: 80%;
    height: 80%;
    border: 1px solid #d9c8b2;
}

body[data-theme="summer"] .has-season-frame .seasonal-photo-image {
    inset: 18% auto auto 25%;
    width: 54%;
    height: 60%;
    transform: rotate(5deg);
}


/* Corner artwork keeps its proportions and does not shrink the photo opening. */

.seasonal-photo.has-season-frame[data-frame-layout]:not([data-frame-layout="full"]) {
    aspect-ratio: 5 / 4;
}

body[data-theme] .seasonal-photo.has-season-frame[data-frame-layout]:not([data-frame-layout="full"]) .seasonal-photo-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    transform: none;
}

.seasonal-photo[data-frame-layout]:not([data-frame-layout="full"]) .seasonal-photo-frame {
    inset: auto;
    width: 42%;
    height: auto;
    max-height: 60%;
    object-fit: contain;
}

.seasonal-photo[data-frame-layout="top-left"] .seasonal-photo-frame {
    top: -3%;
    left: -3%;
    object-position: top left;
}

.seasonal-photo[data-frame-layout="top-right"] .seasonal-photo-frame {
    top: -3%;
    right: -3%;
    object-position: top right;
}

.seasonal-photo[data-frame-layout="bottom-left"] .seasonal-photo-frame {
    bottom: -3%;
    left: -3%;
    object-position: bottom left;
}

.seasonal-photo[data-frame-layout="bottom-right"] .seasonal-photo-frame {
    bottom: -3%;
    right: -3%;
    object-position: bottom right;
}

body[data-particles-enabled="0"] .seasonal-foreground {
    display: none;
}

@media(hover:hover) and (pointer:fine) {
    body[data-cursor]:not([data-cursor="default"]):not([data-cursor="view-photo"]),
    body[data-cursor]:not([data-cursor="default"]):not([data-cursor="view-photo"]) a,
    body[data-cursor]:not([data-cursor="default"]):not([data-cursor="view-photo"]) button {
        cursor: var(--site-cursor, auto)
    }
}

body[data-cursor] input:not([type="checkbox"]):not([type="radio"]):not([type="file"]),
body[data-cursor] textarea,
[contenteditable="true"] {
    cursor: text
}


/* Homepage autumn film, shown only while the Fall theme is active. */

.fall-film {
    display: grid;
    grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(28px, 5vw, 72px);
    padding: clamp(48px, 7vw, 100px) var(--home-pad);
    background: #eee5d7;
    color: #383b2f
}

.fall-film-copy h2 {
    font: 500 clamp(2.2rem, 3.7vw, 4rem)/1.08 var(--display);
    letter-spacing: -.025em;
    margin: 0 0 22px;
    text-wrap: balance
}

.fall-film-copy>p:not(.nl-kicker) {
    font-size: .95rem;
    line-height: 1.85;
    max-width: 440px;
    color: #736655;
    margin: 0 0 28px
}

.fall-film-copy .nl-kicker {
    color: #965333
}

.fall-film-media {
    min-width: 0;
    margin: 0
}

.fall-film-media video {
    display: block;
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: contain;
    border-radius: 8px;
    background: #1e211c;
    box-shadow: 0 18px 45px #4b342321
}

.fall-film-media figcaption {
    margin-top: 14px;
    font-size: .7rem;
    letter-spacing: .08em;
    color: #736655
}

@media(max-width:800px) {
    .fall-film {
        grid-template-columns: 1fr
    }
    .fall-film-copy>p:not(.nl-kicker) {
        max-width: 600px
    }
}

.halloween-film {
    background: #242029;
    color: #f5ede3
}

.halloween-film .fall-film-copy>p:not(.nl-kicker),
.halloween-film figcaption {
    color: #c4b4c7
}

.halloween-film .nl-kicker {
    color: #eda96c
}


/* Shared website branding on seasonal showcase videos. */

.season-video-frame {
    position: relative;
    isolation: isolate
}

.season-video-logo {
    position: absolute;
    right: clamp(12px, 5%, 10%);
    bottom: 13px;
    z-index: 1;
    width: clamp(54px, 7vw, 90px);
    height: auto;
    aspect-ratio: 90/74;
    object-fit: contain;
    background: #fff;
    border-radius: 5px;
    padding: 4px;
    box-shadow: 0 3px 12px #0003;
    pointer-events: none
}

@media(max-width:560px) {
    .season-video-logo {
        bottom: 7px;
        width: 54px
    }
}

@media (min-width: 1600px) {
    .season-video-logo {
        bottom: 10%;
    }
}