:root {
    --pink: #c9798d;
    --pink-dark: #a95f73;
    --pink-light: #f4dde3;
    --pink-extra-light: #fff8f8;
    --green: #718066;
    --sage-light: #edf1e9;
    --champagne: #c8a875;
    --cream: #fff9f2;
    --wine: #704958;
    --text: #55484d;
    --muted: #8b767d;
    --white: #ffffff;
    --danger: #a35668;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
    background:
        radial-gradient(circle at 12% 8%, rgba(201,121,141,.13), transparent 28%),
        radial-gradient(circle at 88% 92%, rgba(113,128,102,.13), transparent 29%),
        linear-gradient(135deg, #fffdf9 0%, #fff9f8 52%, #f4eee7 100%);
    color: var(--text);
    font-family: "Montserrat", sans-serif;
}

body.lightbox-open {
    overflow: hidden;
}

button,
input {
    font: inherit;
}

button:disabled {
    cursor: not-allowed;
    opacity: .65;
}

.page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 18px;
}

.wedding-card {
    width: 100%;
    max-width: 760px;
    position: relative;
    overflow: hidden;
    background: rgba(255,253,249,.96);
    border: 1px solid rgba(200,168,117,.34);
    border-radius: 30px;
    box-shadow:
        0 30px 80px rgba(112,73,88,.14),
        0 0 0 8px rgba(255,255,255,.45);
    text-align: center;
}

.wedding-card::before,
.wedding-card::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    pointer-events: none;
}

.wedding-card::before {
    width: 320px;
    height: 320px;
    background: rgba(201,121,141,.08);
    top: -170px;
    left: -150px;
}

.wedding-card::after {
    width: 300px;
    height: 300px;
    background: rgba(113,128,102,.06);
    bottom: -190px;
    right: -130px;
}

.content {
    position: relative;
    z-index: 2;
    padding: 14px 55px 56px;
}

.content::before,
.content::after {
    position: absolute;
    z-index: -1;
    color: rgba(113,128,102,.24);
    font-family: "Cormorant Garamond", serif;
    font-size: 78px;
    line-height: .72;
    white-space: pre;
    pointer-events: none;
}

.content::before {
    content: "❧\A✿";
    top: 180px;
    left: -18px;
    transform: rotate(-25deg);
}

.content::after {
    content: "✿\A❧";
    right: -18px;
    bottom: 150px;
    transform: rotate(155deg);
}

.floral-wrapper {
    width: calc(100% + 110px);
    margin-left: -55px;
    margin-bottom: -5px;
}

.floral-image {
    width: 100%;
    display: block;
    max-height: 320px;
    object-fit: contain;
    mix-blend-mode: multiply;
}

.date {
    width: fit-content;
    margin: 0 auto 18px;
    padding: 8px 15px 7px;
    border: 1px solid rgba(200,168,117,.42);
    border-radius: 999px;
    background: rgba(255,250,243,.78);
    text-transform: uppercase;
    letter-spacing: 3.5px;
    font-size: 11px;
    color: var(--wine);
    font-weight: 600;
}

h1 {
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(45px, 8vw, 67px);
    line-height: .92;
    font-weight: 500;
    letter-spacing: -2px;
    color: var(--wine);
    max-width: 600px;
    margin: auto;
}

.subtitle {
    font-family: "Cormorant Garamond", serif;
    font-size: 23px;
    line-height: 1.45;
    color: #76666c;
    max-width: 510px;
    margin: 25px auto 31px;
}

.heart {
    color: var(--pink);
}

.separator {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin: 25px auto 30px;
    max-width: 250px;
}

.separator-line {
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(200,168,117,.58), transparent);
    flex: 1;
}

.separator-flower {
    color: var(--champagne);
    font-size: 13px;
}

.upload-box {
    max-width: 520px;
    margin: auto;
    padding: 38px 24px 34px;
    border: 1px dashed rgba(113,128,102,.48);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255,255,255,.96), rgba(246,239,229,.72));
    cursor: pointer;
    transition: transform .25s ease, border .25s ease, box-shadow .25s ease;
}

.upload-box:hover,
.upload-box.dragging {
    transform: translateY(-3px);
    border-color: var(--champagne);
    box-shadow: 0 15px 35px rgba(112,73,88,.12);
}

.upload-icon {
    width: 66px;
    height: 66px;
    margin: 0 auto 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--sage-light);
    border: 1px solid rgba(113,128,102,.17);
    color: var(--green);
    font-size: 28px;
}

.upload-title {
    font-family: "Cormorant Garamond", serif;
    font-size: 29px;
    font-weight: 600;
    color: var(--wine);
}

.upload-description {
    font-size: 13px;
    line-height: 1.7;
    color: var(--muted);
    margin-top: 7px;
}

#fileInput {
    display: none;
}

.upload-button,
.send-button {
    border: none;
    border-radius: 100px;
    background: linear-gradient(135deg, var(--wine), var(--pink-dark));
    color: white;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 25px rgba(112,73,88,.23);
}

.upload-button {
    margin-top: 23px;
    padding: 15px 27px;
    font-size: 13px;
}

.send-button {
    width: 100%;
    margin-top: 14px;
    padding: 16px 25px;
    font-size: 13px;
}

.supported {
    margin-top: 15px;
    color: #a99098;
    font-size: 10px;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.selected-files-wrap {
    display: none;
    max-width: 520px;
    margin: 18px auto 0;
    text-align: left;
}

.selected-files-wrap.visible {
    display: block;
}

.selected-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 15px;
    margin: 0 4px 10px;
}

.mini-title {
    text-transform: uppercase;
    letter-spacing: 1.3px;
    font-size: 9px;
    font-weight: 600;
    color: #9f818b;
}

.selected-summary {
    margin-top: 4px;
    font-size: 11px;
    color: var(--muted);
}

.clear-button,
.refresh-button {
    border: 0;
    background: transparent;
    color: var(--pink);
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
}

.files {
    display: grid;
    gap: 9px;
}

.file {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    gap: 13px;
    padding: 12px 14px;
    border-radius: 14px;
    background: rgba(255,250,243,.88);
    border: 1px solid rgba(200,168,117,.28);
}

.file-thumb {
    grid-row: 1 / span 2;
    width: 46px;
    height: 46px;
    border-radius: 11px;
    overflow: hidden;
    background: var(--sage-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--pink);
}

.file-thumb img,
.file-thumb video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.file-info {
    min-width: 0;
}

.file-name {
    font-size: 12px;
    font-weight: 500;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.file-meta {
    font-size: 10px;
    color: #a99098;
    margin-top: 3px;
}

.file-progress-row {
    grid-column: 2;
    display: flex;
    align-items: center;
    gap: 9px;
}

.file-progress {
    height: 5px;
    border-radius: 100px;
    background: #eee0e3;
    overflow: hidden;
    flex: 1;
}

.file-progress-bar {
    height: 100%;
    width: 0;
    background: var(--pink);
    transition: width .2s ease;
}

.file-status {
    width: 54px;
    text-align: right;
    font-size: 9px;
    color: #947880;
}

.file.done .file-progress-bar {
    width: 100%;
}

.file.error .file-progress-bar {
    background: var(--danger);
}

.upload-status {
    min-height: 18px;
    margin-top: 11px;
    text-align: center;
    font-size: 11px;
    color: var(--muted);
}

.gallery-separator {
    margin-top: 48px;
    margin-bottom: 38px;
}

.memories-section {
    max-width: 620px;
    margin: 0 auto;
}

.section-kicker {
    color: var(--pink);
    text-transform: uppercase;
    font-size: 10px;
    letter-spacing: 3px;
    font-weight: 600;
    margin-bottom: 8px;
}

h2 {
    font-family: "Cormorant Garamond", serif;
    color: var(--wine);
    font-size: clamp(36px, 7vw, 50px);
    font-weight: 500;
    line-height: 1;
}

.gallery-intro {
    max-width: 480px;
    margin: 15px auto 25px;
    color: var(--muted);
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    line-height: 1.45;
}

.gallery-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin: 0 3px 13px;
}

.gallery-count {
    font-size: 10px;
    color: #9e838a;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 145px;
    gap: 8px;
}

.gallery-item {
    position: relative;
    border: 0;
    padding: 0;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #f8edef;
    min-width: 0;
}

.gallery-item:nth-child(5n + 1) {
    grid-row: span 2;
}

.gallery-item:nth-child(7n + 4) {
    grid-column: span 2;
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.gallery-item:hover img,
.gallery-item:hover video {
    transform: scale(1.035);
}

.gallery-item.new-item {
    animation: appear .6s ease both;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: scale(.97);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.video-badge {
    position: absolute;
    right: 10px;
    bottom: 10px;
    width: 32px;
    height: 32px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(255,255,255,.88);
    color: var(--pink);
    font-size: 12px;
}

.gallery-empty,
.gallery-error {
    display: none;
    padding: 38px 15px;
    border: 1px dashed rgba(200,168,117,.48);
    border-radius: 18px;
    color: #927a81;
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
}

.gallery-empty.visible,
.gallery-error.visible {
    display: block;
}

.gallery-error {
    font-family: "Montserrat", sans-serif;
    font-size: 12px;
    line-height: 1.6;
}

.gallery-empty-heart {
    color: var(--pink);
    font-size: 34px;
    margin-bottom: 8px;
}

.thanks {
    margin-top: 45px;
    font-family: "Cormorant Garamond", serif;
    font-size: 20px;
    font-style: italic;
    color: #79676c;
}

.initials {
    margin-top: 15px;
    color: var(--pink);
    font-family: "Cormorant Garamond", serif;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 2px;
}

.privacy {
    max-width: 430px;
    margin: 21px auto 0;
    font-size: 10px;
    line-height: 1.6;
    color: #a49398;
}

.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(45,28,34,.93);
    backdrop-filter: blur(8px);
    padding: 52px 65px 70px;
}

.lightbox.visible {
    display: flex;
}

.lightbox-content {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-content img,
.lightbox-content video {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 14px;
}

.lightbox-close,
.lightbox-nav {
    position: absolute;
    border: 0;
    background: rgba(255,255,255,.1);
    color: white;
    cursor: pointer;
}

.lightbox-close {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    right: 20px;
    top: 18px;
    font-size: 28px;
}

.lightbox-nav {
    width: 44px;
    height: 60px;
    border-radius: 18px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 38px;
}

.lightbox-prev { left: 15px; }
.lightbox-next { right: 15px; }

.lightbox-caption {
    position: absolute;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    max-width: calc(100% - 50px);
    color: rgba(255,255,255,.8);
    font-size: 11px;
    text-align: center;
}

@media(max-width: 600px) {
    .page {
        padding: 0;
        align-items: flex-start;
    }

    .wedding-card {
        min-height: 100vh;
        border-radius: 0;
        border: none;
        box-shadow: none;
    }

    .content {
        padding: 0 17px 40px;
    }

    .content::before,
    .content::after {
        font-size: 61px;
        opacity: .8;
    }

    .content::before {
        top: 175px;
        left: -22px;
    }

    .content::after {
        right: -22px;
        bottom: 135px;
    }

    .floral-wrapper {
        width: calc(100% + 34px);
        margin-left: -17px;
        margin-top: 8px;
    }

    .floral-image {
        max-height: 260px;
    }

    h1 {
        font-size: 48px;
    }

    .subtitle {
        font-size: 20px;
    }

    .upload-box {
        padding: 28px 18px;
    }

    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 150px;
        gap: 6px;
    }

    .gallery-item:nth-child(7n + 4) {
        grid-column: span 1;
    }

    .lightbox {
        padding: 58px 10px 65px;
    }

    .lightbox-nav {
        top: auto;
        bottom: 12px;
        transform: none;
        width: 44px;
        height: 44px;
        border-radius: 50%;
    }

    .lightbox-prev { left: 18px; }
    .lightbox-next { right: 18px; }

    .lightbox-caption {
        bottom: 25px;
        max-width: calc(100% - 150px);
    }
}


/* =========================================================
   V4: cinematic opening + romantic ambient animations
   ========================================================= */

body {
    overflow-x: hidden;
}

/* Opening screen */
.intro-screen {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    overflow: hidden;
    background:
        radial-gradient(circle at 50% 35%, rgba(255,255,255,.99), rgba(255,247,250,.97) 52%, rgba(249,232,239,.99) 100%);
    transition: opacity .8s cubic-bezier(.22,.61,.36,1), visibility .8s ease;
}

.intro-screen.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.intro-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.intro-logo {
    width: min(190px, 48vw);
    max-height: 190px;
    object-fit: contain;
    mix-blend-mode: multiply;
    opacity: 0;
    transform: scale(.84) translateY(10px);
    animation: introLogoIn 1.05s .12s cubic-bezier(.16,1,.3,1) forwards;
}

.intro-monogram {
    margin-top: 3px;
    font-family: "Cormorant Garamond", serif;
    font-size: clamp(32px, 8vw, 46px);
    font-weight: 600;
    letter-spacing: 5px;
    color: var(--pink-dark);
    opacity: 0;
    animation: introTextIn .8s .52s ease forwards;
}

.intro-divider {
    width: 145px;
    display: flex;
    align-items: center;
    gap: 9px;
    margin-top: 8px;
    opacity: 0;
    animation: introTextIn .8s .62s ease forwards;
}

.intro-divider span {
    height: 1px;
    flex: 1;
    background: rgba(200,168,117,.52);
}

.intro-divider i {
    color: var(--pink);
    font-style: normal;
    font-size: 9px;
}

.intro-copy {
    margin-top: 9px;
    text-transform: uppercase;
    letter-spacing: 3.8px;
    font-size: 9px;
    font-weight: 600;
    color: var(--wine);
    opacity: 0;
    animation: introTextIn .8s .7s ease forwards;
}

.intro-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(14px);
    opacity: .72;
}

.intro-glow-one {
    width: 370px;
    height: 370px;
    top: -150px;
    left: -140px;
    background: rgba(201,121,141,.12);
    animation: introGlowFloat 4s ease-in-out infinite alternate;
}

.intro-glow-two {
    width: 330px;
    height: 330px;
    right: -125px;
    bottom: -140px;
    background: rgba(113,128,102,.09);
    animation: introGlowFloat 5s .4s ease-in-out infinite alternate-reverse;
}

@keyframes introLogoIn {
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes introTextIn {
    from {
        opacity: 0;
        transform: translateY(8px);
        filter: blur(5px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
        filter: blur(0);
    }
}

@keyframes introGlowFloat {
    from { transform: translate3d(0,0,0) scale(1); }
    to { transform: translate3d(18px,14px,0) scale(1.08); }
}

/* Floating petals / particles */
.ambient-particles {
    position: fixed;
    inset: 0;
    z-index: 4;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    top: -12vh;
    left: var(--x);
    width: var(--size);
    height: var(--size);
    opacity: 0;
    transform: rotate(var(--rotate));
    animation:
        particleFall var(--duration) linear var(--delay) infinite,
        particleSway calc(var(--duration) * .36) ease-in-out var(--delay) infinite alternate;
}

.particle::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 65% 35% 60% 40% / 55% 45% 55% 45%;
    background: linear-gradient(145deg, rgba(231,126,155,.78), rgba(201,121,141,.32));
    box-shadow: 0 3px 12px rgba(201,121,141,.18);
}

.particle:nth-child(3n)::before {
    background: linear-gradient(145deg, rgba(122,143,85,.34), rgba(113,128,102,.10));
}

.particle:nth-child(4n)::before {
    border-radius: 50%;
    background: rgba(201,121,141,.24);
}

@keyframes particleFall {
    0% {
        opacity: 0;
        transform: translate3d(0,-10vh,0) rotate(var(--rotate));
    }
    10% { opacity: var(--opacity); }
    88% { opacity: var(--opacity); }
    100% {
        opacity: 0;
        transform: translate3d(var(--drift),115vh,0) rotate(calc(var(--rotate) + 290deg));
    }
}

@keyframes particleSway {
    from { margin-left: -8px; }
    to { margin-left: 8px; }
}

/* Main page entrance */
.wedding-card {
    opacity: 0;
    transform: translateY(18px) scale(.992);
    animation: pageReveal 1s 1.55s cubic-bezier(.16,1,.3,1) forwards;
    box-shadow:
        0 30px 80px rgba(146,67,91,.13),
        0 0 0 1px rgba(255,255,255,.7) inset;
}

@keyframes pageReveal {
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Subtle motion in the background glows */
.wedding-card::before {
    animation: cardGlowOne 9s ease-in-out infinite alternate;
}

.wedding-card::after {
    animation: cardGlowTwo 11s ease-in-out infinite alternate;
}

@keyframes cardGlowOne {
    to { transform: translate(35px,24px) scale(1.08); }
}

@keyframes cardGlowTwo {
    to { transform: translate(-25px,-18px) scale(1.10); }
}

/* Gentle shine on main buttons */
.upload-button,
.send-button {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.upload-button::after,
.send-button::after {
    content: "";
    position: absolute;
    inset: -30% auto -30% -42%;
    width: 28%;
    transform: skewX(-18deg);
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.38), transparent);
    animation: buttonShimmer 4.2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes buttonShimmer {
    0%, 62% { left: -45%; }
    88%, 100% { left: 130%; }
}

/* Live album badge */
.live-gallery-badge {
    width: fit-content;
    margin: 0 auto 14px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(238,241,230,.72);
    border: 1px solid rgba(113,128,102,.22);
    color: var(--green);
    font-size: 9px;
    text-transform: uppercase;
    letter-spacing: 1.6px;
    font-weight: 600;
}

.live-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 0 0 rgba(113,128,102,.32);
    animation: livePulse 2s ease-out infinite;
}

@keyframes livePulse {
    0% { box-shadow: 0 0 0 0 rgba(201,121,141,.34); }
    70% { box-shadow: 0 0 0 7px rgba(201,121,141,0); }
    100% { box-shadow: 0 0 0 0 rgba(201,121,141,0); }
}

/* Gallery lift */
.gallery-item {
    box-shadow:
        0 6px 18px rgba(113,71,86,.07),
        inset 0 0 0 1px rgba(201,121,141,.06);
    transition: transform .28s ease, box-shadow .28s ease;
}

.gallery-item:hover {
    transform: translateY(-3px);
    box-shadow:
        0 14px 28px rgba(113,71,86,.13),
        inset 0 0 0 1px rgba(201,121,141,.08);
}

/* Decorative ending */
.ornamental-flourish {
    max-width: 220px;
    margin: 44px auto 0;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--champagne);
}

.ornamental-flourish span {
    height: 1px;
    flex: 1;
    background: linear-gradient(90deg, transparent, rgba(200,168,117,.52), transparent);
}

.ornamental-flourish b {
    font-family: serif;
    font-size: 20px;
    font-weight: 400;
    opacity: .75;
}

/* Simple reveal for supported browsers */
@supports (animation-timeline: view()) {
    .upload-section,
    .memories-section,
    .thanks,
    .initials,
    .privacy {
        animation: sectionReveal .85s both;
        animation-timeline: view();
        animation-range: entry 0% cover 20%;
    }

    @keyframes sectionReveal {
        from {
            opacity: 0;
            transform: translateY(18px);
            filter: blur(4px);
        }
        to {
            opacity: 1;
            transform: translateY(0);
            filter: blur(0);
        }
    }
}

@media(max-width: 600px) {
    .intro-logo {
        width: min(165px, 48vw);
    }

    .intro-monogram {
        font-size: 34px;
    }

    .intro-copy {
        letter-spacing: 3px;
    }

    .gallery-item:hover {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
    }

    .intro-screen,
    .ambient-particles {
        display: none !important;
    }

    .wedding-card {
        opacity: 1;
        transform: none;
    }
}


/* =========================================================
   V5.1: Apple ProRAW / DNG safe preview
   ========================================================= */

.raw-file-thumb {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1px;
    background:
        linear-gradient(
            145deg,
            rgba(112,73,88,.08),
            rgba(201,121,141,.10)
        );
    color: var(--wine);
}

.raw-file-thumb strong {
    font-size: 10px;
    letter-spacing: 1px;
}

.raw-file-thumb span {
    font-size: 7px;
    letter-spacing: .8px;
    opacity: .65;
}

.raw-placeholder {
    width: 100%;
    height: 100%;
    min-height: 80px;
    display: grid;
    place-items: center;
    background:
        radial-gradient(
            circle at 35% 30%,
            rgba(201,121,141,.14),
            transparent 45%
        ),
        linear-gradient(
            145deg,
            rgba(255,250,243,.96),
            rgba(238,241,230,.88)
        );
    color: var(--wine);
    font-family: "Montserrat", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.6px;
    text-transform: uppercase;
}

.raw-badge {
    position: absolute;
    left: 9px;
    bottom: 9px;
    padding: 5px 7px;
    border-radius: 999px;
    background: rgba(255,255,255,.90);
    color: var(--wine);
    font-size: 8px;
    line-height: 1;
    font-weight: 700;
    letter-spacing: .8px;
    box-shadow: 0 3px 10px rgba(70,45,53,.10);
}

.lightbox-raw-placeholder {
    width: min(420px, 80vw);
    height: min(420px, 55vh);
    border-radius: 18px;
}

/* D&M identity refinements — original layout intentionally preserved */
.intro-logo {
    width: min(190px, 42vw);
    height: auto;
    margin: 0 auto 8px;
    display: block;
    filter: drop-shadow(0 9px 22px rgba(112,73,88,.10));
}

.floral-image {
    filter: saturate(.92) contrast(.98);
}

.initials {
    letter-spacing: .08em;
}

@media (max-width: 560px) {
    .intro-logo {
        width: min(160px, 45vw);
    }
}
