﻿:root {
  --ink:#25263a; --muted:#696878; --paper:#f6f3e9; --white:#fffdf7;
  --blue:#254ddd; --blue-dark:#1638ac; --lime:#eff589; --coral:#ee785f;
  --lilac:#cec4ef; --line:#d9d6cc; --danger:#aa302e; --ease:cubic-bezier(.2,.75,.25,1);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:105px; }
body { margin:0; background:var(--paper); color:var(--ink); font-family:"Segoe UI",Arial,sans-serif; -webkit-font-smoothing:antialiased; }
body::after { content:""; position:fixed; inset:0; z-index:200; pointer-events:none; opacity:.045; background-image:url("data:image/svg+xml,%3Csvg viewBox='0 0 150 150' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%23000' filter='url(%23n)' opacity='.6' d='M0 0h150v150H0z'/%3E%3C/svg%3E"); }
body.modal-open { overflow:hidden; }
button,input,select { font:inherit; }
button,a,input,select { -webkit-tap-highlight-color:transparent; }
button { cursor:pointer; color:inherit; }
button:disabled { cursor:wait; opacity:.55; }
a { color:inherit; text-decoration:none; }
img { max-width:100%; }
figure,h1,h2,h3,p { margin:0; }
::selection { color:var(--ink); background:var(--lime); }
:focus-visible { outline:3px solid var(--blue); outline-offset:5px; }
.hidden { display:none!important; }
.reading-progress { position:fixed; top:0; left:0; z-index:150; height:3px; width:100%; background:var(--coral); transform:scaleX(0); transform-origin:left; pointer-events:none; }
.login-page .reading-progress { display:none; }
h1,h2,h3 { font-family:Georgia,"Times New Roman",serif; font-weight:400; letter-spacing:-.065em; }
h1 { font-size:clamp(60px,6.1vw,104px); line-height:1.02; }
h2 { font-size:clamp(44px,4.3vw,68px); line-height:1.06; }
h3 { font-size:35px; line-height:1.15; }
h1 em,h2 em { color:var(--blue); font-weight:400; }
.eyebrow,.edition-label,.section-kicker,.ticket-label,.login-top-note,.viewer-counter  { font-family:"Courier New",monospace; font-size:10px; line-height:1.5; font-weight:700; letter-spacing:.11em; text-transform:uppercase; }
.eyebrow { display:flex; align-items:center; gap:10px; margin-bottom:24px; color:var(--blue); }
.tiny-star { font-size:24px; line-height:1; }
.brand { display:inline-flex; align-items:center; gap:13px; }
.brand-mark { position:relative; display:grid; place-items:center; width:51px; height:51px; border:1px solid currentColor; border-radius:50%; font:italic 36px/1 Georgia,serif; letter-spacing:-.1em; flex-shrink:0; color:var(--blue); padding-right:6px; }
.brand-mark>span { position:absolute; top:-8px; right:-6px; font:23px/1 Georgia,serif; background:var(--paper); }
.brand-copy { display:grid; gap:7px; }
.brand-copy strong { font-family:Georgia,serif; font-size:17px; font-weight:400; line-height:1.08; letter-spacing:-.02em; }
.brand-copy small { font-size:8px; letter-spacing:.13em; text-transform:uppercase; }
.brand--light { color:var(--paper); }
.brand--light .brand-mark { color:var(--lime); }
.brand--light .brand-mark>span { background:var(--blue); }
.button { display:inline-flex; position:relative; align-items:center; justify-content:center; gap:26px; min-height:54px; padding:14px 23px; border:1px solid transparent; border-radius:4px; font-size:13px; font-weight:600; transition:transform .25s var(--ease),background .25s,box-shadow .25s; overflow:hidden; }
.button>span { font-size:22px; line-height:1; transition:transform .25s var(--ease); }
.button:hover:not(:disabled) { transform:translateY(-3px); box-shadow:4px 5px 0 var(--ink); }
.button:hover:not(:disabled)>span { transform:translate(2px,-2px); }
.button:active:not(:disabled) { transform:none; box-shadow:none; }
.button-primary { color:var(--white); background:var(--blue); }
.button-primary:hover:not(:disabled) { background:var(--blue-dark); }
.button-secondary { border-color:var(--line); background:transparent; }
.button-secondary:hover:not(:disabled) { background:var(--lime); }
.button-full { width:100%; justify-content:space-between; }
.button-compact { min-height:40px; font-size:11px; padding:10px 14px; }
.text-link { display:inline-flex; align-items:center; gap:12px; background:none; border:0; padding:8px 0; font-size:12px; font-weight:600; border-bottom:1px solid currentColor; transition:color .2s,gap .2s; }
.text-link:hover { color:var(--blue); gap:19px; }
.text-link>span { font-size:22px; line-height:1; }
.field { display:grid; gap:11px; }
.field>span:first-child { font-size:12px; font-weight:600; }
.field-number { font:10px "Courier New",monospace; color:var(--muted); margin-right:10px; }
.field input { width:100%; min-height:55px; padding:14px 15px; border:1px solid #ceccc3; border-radius:3px; outline:none; color:var(--ink); background:transparent; font-size:12px; transition:border-color .2s,background .2s,box-shadow .2s; }
.field input::placeholder { color:#73717e; }
.field input:focus { background:var(--white); border-color:var(--blue); box-shadow:3px 3px 0 var(--lilac); }
.field small { font-size:10px; color:var(--muted); line-height:1.5; }
.password-field { position:relative; display:block; }
.password-field input { padding-right:78px; }
.text-button { position:absolute; right:11px; top:50%; transform:translateY(-50%); color:var(--blue); font-size:10px; font-weight:600; padding:8px; background:transparent; border:0; }
.form-message { display:none; font-size:12px; line-height:1.6; padding:13px; border-left:3px solid; }
.form-message.visible { display:block; animation:enter-up .3s var(--ease); }
.form-message.error { color:#8d2926; background:#fae4dd; }
.form-message.success { color:#35462a; background:#eaf0cd; }
.form-message.warning { color:#6a4c14; background:#fbefc5; }
.status-dot { display:inline-block; width:6px; height:6px; border-radius:50%; background:currentColor; flex-shrink:0; }
/* The cover */
.login-layout { min-height:100svh; display:grid; grid-template-columns:1.13fr 1fr; }
.login-brand-panel { min-width:0; background:var(--blue); position:relative; overflow:hidden; color:var(--paper); min-height:900px; padding:43px 8%; display:flex; flex-direction:column; }
.login-brand-panel::before { content:""; position:absolute; width:520px; height:520px; border:1px solid #ffffff19; border-radius:50%; bottom:-215px; left:-150px; box-shadow:0 0 0 70px #ffffff04,0 0 0 140px #ffffff04; pointer-events:none; }
.login-brand-panel .brand { align-self:flex-start; }
.edition-label { position:absolute; right:8%; top:55px; color:#d0d8fc; font-size:8px; }
.login-brand-copy { position:relative; z-index:2; padding-top:65px; pointer-events:none; }
.eyebrow--light { color:var(--lime); font-size:9px; }
.login-brand-copy h1 { font-size:clamp(62px,6.9vw,109px); line-height:.95; letter-spacing:-.06em; }
.login-brand-copy h1 em { color:var(--lime); font-size:1.2em; }
.title-spark { display:inline-block; vertical-align:top; margin:6px 0 0 37px; color:var(--coral); font-size:.64em; animation:flower-turn 24s linear infinite; }
.login-brand-copy>p:last-child { margin-top:23px; font-size:12px; line-height:1.85; color:#dce3ff; }
.login-collage { position:absolute; width:300px; height:325px; right:9%; bottom:85px; transform:perspective(900px) rotateX(var(--tilt-x,0deg)) rotateY(var(--tilt-y,0deg)); transition:transform .4s var(--ease); }
.postcard { background:var(--white); padding:12px 12px 0; box-shadow:1px 7px 16px #17152527; position:relative; transform:rotate(9deg); }
.postcard img { display:block; width:100%; height:235px; object-fit:cover; }
.postcard figcaption { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:15px 1px; color:var(--ink); font:italic 15px Georgia,serif; white-space:nowrap; }
.postcard figcaption>span { font:23px Georgia,serif; }
.postcard-back { position:absolute; width:250px; height:300px; left:-40px; top:-15px; padding:20px; background:var(--lilac); color:var(--ink); transform:rotate(-12deg); display:flex; flex-direction:column; justify-content:space-between; font:9px/1.4 "Courier New",monospace; letter-spacing:.1em; }
.back-star { font-size:120px; line-height:1; }
.paper-tape { position:absolute; width:92px; height:29px; background:#f0edb9c9; top:-13px; left:35%; transform:rotate(-5deg); z-index:2; clip-path:polygon(0 6%,96% 0,100% 92%,4% 100%,5% 80%,0 70%,4% 50%); }
.round-sticker { width:102px; height:102px; display:flex; flex-direction:column; justify-content:center; align-items:center; position:absolute; top:-36px; right:-29px; border-radius:50%; background:var(--lime); color:var(--ink); font-size:13px; font-weight:800; line-height:1.1; transform:rotate(14deg); border:1px dashed var(--ink); outline:5px solid var(--lime); }
.round-sticker>span { position:absolute; font-size:32px; right:10px; bottom:5px; }
.hand-note { position:absolute; bottom:-47px; left:-120px; color:var(--lime); font:italic 20px Georgia,serif; transform:rotate(-9deg); }
.hand-note svg { width:75px; vertical-align:top; margin-left:10px; transform:rotate(-40deg); fill:none; stroke:currentColor; stroke-width:2; }
.login-panel-footer { position:relative; margin-top:auto; padding-top:420px; display:flex; align-items:center; justify-content:space-between; font:9px "Courier New",monospace; letter-spacing:.025em; color:#dce3ff; }
.login-panel-footer .status-dot { color:var(--lime); margin-right:6px; }
.login-form-panel { display:flex; flex-direction:column; padding:38px clamp(28px,6.4vw,110px) 30px; min-width:0; }
.login-top-note,.login-bottom-note { display:flex; align-items:center; justify-content:space-between; gap:10px; }
.login-top-note { color:var(--muted); font-size:8px; }
.login-top-note>span:last-child { font-size:32px; font-weight:400; color:var(--blue); }
.login-card { max-width:385px; width:100%; margin:auto; padding:55px 0; animation:enter-up .8s var(--ease) both; }
.ticket-label { display:flex; justify-content:space-between; align-items:center; border:1px dashed #92927e; padding:10px 12px; background:var(--lime); font-size:8px; letter-spacing:.09em; margin-bottom:44px; transform:rotate(-2deg); }
.ticket-label>span:nth-child(2) { font-size:18px; }
.login-card-heading .eyebrow { margin-bottom:15px; font-size:9px; }
.login-card-heading h2 { font-size:clamp(48px,4.8vw,72px); }
.login-card-heading h2 em { position:relative; }
.login-card-heading h2 em::after { content:""; position:absolute; left:0; right:-6px; bottom:2px; height:6px; background:var(--coral); transform:rotate(-3deg); opacity:.6; }
.login-card-heading>p:last-child { max-width:310px; margin:21px 0 27px; font-size:12px; color:var(--muted); line-height:1.8; }
.auth-form { display:grid; gap:20px; }
.login-submit { margin-top:7px; }
.security-note { margin-top:26px; display:flex; align-items:flex-start; gap:12px; }
.security-note>span { font-size:28px; color:var(--blue); line-height:1; }
.security-note p { font-size:10px; line-height:1.8; color:var(--muted); }
.login-bottom-note { color:var(--muted); font-size:10px; }
.mini-flower { color:var(--blue); font-size:34px; }
/* Inside the album */
.site-shell { max-width:1800px; margin:auto; }
.archive-main { overflow:clip; }
.login-jump { display:none; }
.topbar { position:sticky; top:0; z-index:20; display:flex; align-items:center; justify-content:space-between; gap:20px; min-height:96px; padding:18px 4.5%; border-bottom:1px solid var(--line); background:#f6f3e9f5; backdrop-filter:blur(12px); }
.main-nav { display:flex; gap:27px; }
.main-nav a { font-size:12px; padding:10px 0; border-bottom:1px solid transparent; transition:border-color .2s,color .2s; }
.main-nav a:hover,.main-nav a.is-active { color:var(--blue); border-bottom-color:var(--blue); }
.main-nav span { vertical-align:super; font:8px "Courier New",monospace; margin-left:3px; color:var(--muted); }
.topbar-actions { display:flex; align-items:center; gap:20px; }
.private-badge { font:9px "Courier New",monospace; color:var(--blue); white-space:nowrap; }
.private-badge i { margin-right:6px; box-shadow:0 0 0 4px #254ddd12; }
#archive-title:focus { outline:none; }
.section { padding:75px 6% 90px; scroll-margin-top:10px; }
.section-kicker { display:flex; align-items:center; justify-content:space-between; gap:20px; padding-bottom:18px; border-bottom:1px solid var(--line); font-size:9px; color:var(--muted); }
.gallery-toolbar { display:flex; justify-content:space-between; align-items:center; gap:25px; margin:38px 0 27px; }
.section-subtitle { font-size:12px; color:var(--muted); margin-top:15px; }
#photo-count { color:var(--blue); }
.view-switch { display:flex; border:1px solid var(--line); padding:4px; border-radius:3px; }
.view-switch button { width:43px; height:40px; font-size:26px; border:0; background:none; border-radius:2px; transition:background .2s,color .2s; }
.view-switch button[aria-pressed="true"] { color:var(--paper); background:var(--blue); }
.gallery-controls { display:flex; justify-content:space-between; gap:16px; padding-bottom:30px; }
.search-box { display:flex; align-items:center; gap:10px; border-bottom:1px solid #aaa99d; min-height:47px; width:360px; max-width:100%; transition:border-color .2s; }
.search-box:focus-within { border-color:var(--blue); box-shadow:0 1px 0 var(--blue); }
.search-box>span { font-size:27px; color:var(--blue); }
.search-box input { width:100%; padding:10px 0; background:transparent; border:0; outline:0; color:var(--ink); font-size:12px; }
.search-box kbd { padding:3px 6px; border:1px solid var(--line); border-radius:3px; color:var(--muted); font-size:10px; }
.select-control { border:0; border-bottom:1px solid #aaa99d; background:transparent; color:var(--ink); padding:10px 25px 10px 0; font-size:11px; border-radius:0; max-width:100%; }
.gallery-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-items:start; gap:35px 25px; }
.gallery-more-wrap { display:flex; justify-content:center; margin-top:36px; }
.gallery-selection { display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-bottom:24px; }
.gallery-selection>span { flex:1 1 150px; }
.gallery-selection .button { padding:14px 18px; }
.photo-select { display:flex; align-items:center; gap:8px; padding:10px 2px; font-size:13px; cursor:pointer; }
.photo-select input { width:20px; height:20px; accent-color:var(--blue); cursor:pointer; }
.photo-card.is-selected .photo-visual { outline:3px solid var(--blue); outline-offset:3px; }
.full-gallery #la-camara,.full-gallery #subir,.full-gallery .site-footer { display:none; }
#gallery-full-heading { font-size:24px; margin-top:24px; overflow-wrap:anywhere; }
.photo-card { min-width:0; position:relative; animation:enter-up .6s var(--ease) both; animation-delay:var(--card-delay,0ms); }
.photo-visual { position:relative; display:block; width:100%; aspect-ratio:4/4.5; border:0; padding:0; overflow:hidden; background:#e5e0d5; text-align:left; cursor:zoom-in; }
.photo-visual img { display:block; width:100%; height:100%; object-fit:cover; transition:transform .7s var(--ease); }
.photo-visual video { display:block; width:100%; height:100%; object-fit:cover; pointer-events:none; }
.media-fallback { position:absolute; inset:0; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:14px; background:var(--lilac); color:var(--blue); padding:20px; text-align:center; }
.media-fallback b { font-size:52px; font-weight:400; }
.media-fallback > span { font:12px "Courier New",monospace; overflow-wrap:anywhere; }
.media-fallback small { font-size:10px; line-height:1.6; }
.video-badge { position:absolute; left:12px; bottom:12px; background:var(--ink); color:var(--lime); padding:7px 9px; font:10px "Courier New",monospace; }
.photo-card:hover .photo-visual img { transform:scale(1.045); }
.photo-number { position:absolute; top:12px; left:12px; z-index:1; padding:6px 8px; color:var(--ink); background:var(--paper); font:9px "Courier New",monospace; }
.photo-open-hint { position:absolute; bottom:15px; right:15px; display:grid; place-items:center; width:40px; height:40px; border-radius:50%; background:var(--lime); color:var(--ink); font-size:24px; transform:translateY(60px) rotate(-45deg); transition:transform .3s var(--ease); }
.photo-visual:hover .photo-open-hint,.photo-visual:focus-visible .photo-open-hint { transform:none; }
.photo-meta { display:flex; justify-content:space-between; align-items:center; gap:10px; padding-top:13px; }
.photo-meta-copy { display:grid; gap:5px; min-width:0; }
.photo-meta-copy strong { display:block; font-size:12px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.photo-meta-copy span { font:9px "Courier New",monospace; color:var(--muted); }
.photo-card-actions { display:flex; gap:5px; }
.round-action { display:grid; place-items:center; width:35px; height:35px; background:transparent; border:1px solid var(--line); border-radius:50%; font-size:19px; transition:background .2s,transform .2s; }
.round-action:hover { background:var(--lime); transform:rotate(-8deg); }
.gallery-grid.is-album { gap:40px; padding:20px 12px; }
.is-album .photo-card { padding:12px 12px 16px; background:var(--white); box-shadow:2px 6px 14px #25263a15; transform:rotate(-3deg); }
.is-album .photo-card:nth-child(2n) { transform:rotate(3deg); margin-top:18px; }
.is-album .photo-card:nth-child(3n) { transform:rotate(-1deg); }
.is-album .photo-visual { aspect-ratio:1; }
.is-album .photo-meta-copy strong { font:italic 15px Georgia,serif; }
.gallery-empty { min-height:390px; padding:55px 20px; border:1px dashed #b5b2a5; display:grid; justify-items:center; align-content:center; text-align:center; background:#f1eee4; }
.empty-art { position:relative; width:110px; height:90px; margin-bottom:28px; }
.empty-art span { position:absolute; display:grid; place-items:center; width:70px; height:85px; background:var(--lilac); border:7px solid var(--white); border-bottom-width:18px; transform:rotate(-13deg); font:40px Georgia,serif; }
.empty-art span:last-child { left:40px; top:5px; transform:rotate(13deg); background:var(--lime); color:var(--blue); }
.gallery-empty p { font-size:12px; color:var(--muted); margin:15px 0; }
.gallery-empty .text-link { color:var(--blue); }
.gallery-loading { min-height:300px; display:flex; align-items:center; justify-content:center; gap:15px; color:var(--muted); font-size:13px; }
.loading-flower { display:inline-block; color:var(--blue); font-size:35px; animation:flower-turn 4s linear infinite; }
.upload-section { background:var(--lilac); }
.upload-section .section-kicker { border-color:#25263a30; color:#48445d; }
.upload-layout { display:grid; grid-template-columns:1fr 1.2fr; align-items:center; gap:9%; padding-top:45px; }
.upload-flower { display:inline-block; color:var(--blue); font-size:90px; line-height:1; margin-bottom:25px; }
.upload-intro>p { font-size:14px; line-height:1.8; max-width:300px; margin-top:22px; }
.upload-intro h2 em { display:block; }
.upload-instructions { max-width:300px; margin-top:34px; padding:20px 0; border-top:1px solid #25263a30; }
.upload-instructions>span { font:9px "Courier New",monospace; text-transform:uppercase; letter-spacing:.08em; }
.upload-instructions>p { font-size:11px; line-height:1.8; margin-top:10px; color:#514c64; }
.handwritten { display:block; font:italic 19px Georgia,serif; color:var(--blue); transform:rotate(-5deg); margin-top:28px; }
.upload-card { padding:30px; background:var(--paper); border-radius:3px; box-shadow:7px 7px 0 #25263a1f; min-width:0; }
.event-picker { margin-bottom:24px; }
.event-picker select { min-width:0; width:100%; min-height:55px; padding:12px 15px; border:1px solid #ceccc3; border-radius:3px; background:var(--white); color:var(--blue); font:600 14px "Segoe UI",Arial,sans-serif; cursor:pointer; }
.event-picker select:focus-visible { outline:2px solid var(--blue); outline-offset:2px; }
.event-picker select:disabled { color:var(--muted); cursor:default; }
.reload-events { margin:0 0 24px; }
.event-status { font-size:12px; line-height:1.6; color:var(--blue); margin:0 0 18px; }
.event-status:empty { display:none; }
.gallery-folder-bar { display:flex; align-items:flex-end; gap:16px; flex-wrap:wrap; margin:30px 0 18px; padding:22px; background:var(--white); border:1px solid var(--line); border-radius:8px; }
.gallery-folder-bar .field { flex:1 1 260px; min-width:0; margin:0; }
.gallery-folder-actions { display:flex; flex-wrap:wrap; gap:10px; }
.gallery-folder-actions .button { min-height:55px; gap:12px; }
.gallery-folder-bar>p { flex:1 1 100%; font-size:12px; line-height:1.7; color:var(--muted); }
#folder-message,#gallery-message { margin-bottom:18px; }
@media (max-width:580px) {
  .gallery-folder-bar { padding:16px; }
  .gallery-folder-actions { width:100%; }
  .gallery-folder-actions .button { flex:1 1 auto; padding-inline:12px; font-size:12px; }
}
.new-event { margin:0 0 24px; padding:18px; border:1px solid #bac7ef; border-radius:8px; background:#f0f3ff; }
.new-event summary { display:flex; align-items:center; gap:12px; min-height:44px; color:var(--blue-dark); cursor:pointer; font-size:15px; font-weight:700; list-style:none; }
.new-event summary::-webkit-details-marker { display:none; }
.new-event summary:focus-visible { outline:2px solid var(--blue); outline-offset:4px; border-radius:4px; }
.new-event-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:50%; background:var(--blue); color:white; font-size:24px; line-height:1; flex-shrink:0; }
.new-event[open] .new-event-icon { transform:rotate(45deg); }
.new-event[open] summary { margin-bottom:20px; }
.new-event .field { margin-bottom:18px; }
.new-event .field input { font-size:16px; background:var(--white); }
.new-event .field small { font-size:12px; line-height:1.6; }
.new-event #create-event { width:100%; min-height:50px; font-size:15px; }
.new-event .form-message { margin-top:16px; }
.upload-progress { margin-top:20px; color:var(--blue-dark); font-size:13px; line-height:1.6; }
.upload-progress label { display:block; margin-bottom:8px; }
.upload-progress progress { display:block; width:100%; height:12px; accent-color:var(--blue); }
.photo-meta-copy .photo-event { color:var(--blue); overflow-wrap:anywhere; }
.dropzone { position:relative; display:flex; align-items:center; justify-content:center; flex-direction:column; gap:9px; min-height:245px; padding:28px 18px; background:#edece0; border:1px dashed #b5b2a0; border-radius:3px; text-align:center; cursor:pointer; transition:background .3s,border-color .3s,transform .3s; }
.dropzone:hover,.dropzone.is-dragging { background:var(--lime); border-color:var(--blue); }
.dropzone.is-dragging { transform:scale(1.015); }
.dropzone:focus-within { outline:3px solid var(--blue); outline-offset:4px; }
.dropzone input { position:absolute; width:1px; height:1px; opacity:0; }
.upload-icon { font-size:28px; width:54px; height:54px; display:grid; place-items:center; border:1px solid var(--blue); border-radius:50%; color:var(--blue); margin-bottom:10px; transition:transform .3s var(--ease); }
.dropzone:hover .upload-icon { transform:translateY(-5px) rotate(-10deg); }
.dropzone strong { font:24px Georgia,serif; letter-spacing:-.035em; }
.dropzone>span:not(.upload-icon) { font-size:11px; color:var(--muted); }
.dropzone small { margin-top:8px; font:9px "Courier New",monospace; color:var(--muted); }
.selection-previews { display:flex; gap:9px; overflow-x:auto; padding:0; scrollbar-width:thin; }
.selection-previews:not(:empty) { padding:20px 0 10px; }
.selection-preview { position:relative; flex:0 0 74px; width:74px; height:86px; background:var(--white); padding:5px 5px 15px; border:1px solid var(--line); transform:rotate(-2deg); }
.selection-preview:nth-child(even) { transform:rotate(2deg); }
.selection-preview img { width:100%; height:100%; object-fit:cover; }
.selection-preview video { width:100%; height:100%; object-fit:cover; }
.selection-preview-video::after { content:"▶"; position:absolute; bottom:2px; right:7px; color:var(--blue); font-size:10px; pointer-events:none; }
.format-note { font-size:10px; line-height:1.7; color:var(--muted); margin-top:12px; }
.preview-fallback { font:8px "Courier New",monospace; display:grid; place-items:center; height:100%; background:var(--lilac); text-align:center; overflow-wrap:anywhere; }
.selection-row { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:15px; }
.selection-summary { font-size:10px; line-height:1.5; color:var(--muted); }
.selection-row .text-link { font-size:9px; white-space:nowrap; padding:4px 0; }
.upload-footer { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-top:23px; }
.upload-footer p { font-size:9px; color:var(--muted); line-height:1.6; }
.upload-footer i { margin-right:4px; color:var(--blue); }
.upload-footer .button { font-size:11px; min-height:47px; padding:12px 16px; gap:15px; flex-shrink:0; }
.upload-card>.form-message { margin-top:16px; }
.site-footer { background:var(--blue); color:var(--paper); padding:55px 6% 27px; }
.footer-title { display:flex; align-items:center; gap:15px; font:44px/1.2 Georgia,serif; letter-spacing:-.045em; padding-bottom:48px; }
.footer-title em { color:var(--lime); }
.footer-title>span { margin-left:auto; font-size:65px; color:var(--coral); }
.footer-bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; border-top:1px solid #ffffff40; padding-top:24px; }
.footer-bottom .brand-mark { color:var(--lime); }
.footer-bottom .brand-mark>span { background:var(--blue); }
.footer-bottom p { font-size:10px; color:#d8e0ff; }
.back-top { display:grid; place-items:center; width:43px; height:43px; border:1px solid #ffffff60; border-radius:50%; font-size:22px; transition:background .2s,color .2s; }
.back-top:hover { color:var(--ink); background:var(--lime); }
.photo-viewer { position:fixed; inset:0; padding:22px 32px; margin:auto; width:min(1250px,96vw); max-width:96vw; height:94svh; max-height:94svh; background:#202132; color:var(--paper); border:1px solid #ffffff30; overflow:hidden; }
.photo-viewer[open] { display:flex; flex-direction:column; animation:enter-up .25s var(--ease); }
.photo-viewer::backdrop { background:#121324eb; backdrop-filter:blur(15px); }
.viewer-top,.viewer-bottom { display:flex; align-items:center; justify-content:space-between; gap:20px; flex-shrink:0; }
.viewer-top { padding-bottom:12px; }
.viewer-counter { color:var(--lime); }
.viewer-close,.viewer-arrow { background:transparent; color:var(--paper); border:1px solid #ffffff50; border-radius:50%; width:42px; height:42px; font-size:24px; flex-shrink:0; }
.viewer-close:hover,.viewer-arrow:hover { background:var(--lime); color:var(--ink); }
.viewer-stage { flex:1; min-height:0; display:flex; align-items:center; justify-content:space-between; gap:20px; position:relative; }
.viewer-stage img,.viewer-stage video { min-width:0; width:calc(100% - 124px); height:100%; object-fit:contain; }
#viewer-error { position:absolute; top:40%; left:20%; width:60%; text-align:center; font-size:14px; line-height:1.8; }
.viewer-bottom { margin-top:20px; padding-top:17px; border-top:1px solid #ffffff30; }
.viewer-bottom>div { min-width:0; }
.viewer-bottom h2 { font:20px Georgia,serif; overflow-wrap:anywhere; }
.viewer-bottom p { color:#c1c0cf; font-size:10px; margin-top:7px; }
.viewer-bottom .button { background:var(--lime); color:var(--ink); flex-shrink:0; min-height:44px; font-size:11px; }
.toast { position:fixed; bottom:26px; left:50%; transform:translate(-50%,25px); z-index:120; background:var(--ink); color:var(--paper); border-left:5px solid var(--lime); padding:16px 23px; font-size:12px; box-shadow:0 10px 40px #0003; opacity:0; pointer-events:none; transition:opacity .25s,transform .25s; width:max-content; max-width:calc(100vw - 36px); }
.toast.is-visible { opacity:1; transform:translate(-50%,0); }
.reveal-pending { opacity:0; transform:translateY(24px); }
.reveal-visible { opacity:1; transform:none; transition:opacity .8s var(--ease),transform .8s var(--ease); }
.button-ripple { position:absolute; width:16px; height:16px; border-radius:50%; background:#ffffff50; pointer-events:none; animation:ripple .6s ease-out forwards; }
@keyframes enter-up { from { opacity:0; translate:0 18px; } to { opacity:1; translate:0 0; } }
@keyframes flower-turn { to { rotate:360deg; } }
@keyframes ripple { to { transform:scale(24); opacity:0; } }


@media (min-width:1500px) {
  .login-brand-panel { min-height:100svh; }
  .login-collage { width:335px; height:370px; bottom:110px; }
  .login-collage .postcard img { height:290px; }
}
@media (max-width:1150px) {
  .login-layout { grid-template-columns:1fr 1fr; }
  .login-brand-panel { padding:35px 8%; min-height:860px; }
  .login-brand-copy { padding-top:60px; }
  .login-brand-copy h1 { font-size:75px; }
  .login-collage { width:250px; right:12%; bottom:70px; height:305px; }
  .login-collage .postcard img { height:220px; }
  .hand-note { left:-50px; font-size:16px; }
  .edition-label { display:none; }
  .login-form-panel { padding-inline:35px; }
  .main-nav { gap:16px; }
  .topbar-actions { gap:12px; }
  .private-badge { display:none; }
  .upload-layout { gap:6%; }
  .upload-card { padding:24px; }
  .upload-footer { align-items:stretch; flex-direction:column; }
}
@media (max-width:850px) {
  .login-jump { display:block; position:absolute; right:7%; top:34px; padding:8px 0; border-bottom:1px solid var(--lime); color:var(--lime); font-size:11px; }
  .login-layout { grid-template-columns:1fr; }
  .login-brand-panel { min-height:630px; padding:28px 6%; }
  .login-brand-copy { padding-top:48px; }
  .login-brand-copy h1 { font-size:83px; }
  .login-brand-copy>p:last-child { max-width:270px; }
  .login-collage { right:9%; width:220px; bottom:90px; height:260px; }
  .login-collage .postcard img { height:200px; }
  .postcard-back { width:200px; height:250px; }
  .postcard figcaption { font-size:11px; }
  .round-sticker { width:82px; height:82px; font-size:11px; right:-15px; }
  .hand-note { left:-70px; bottom:-50px; }
  .login-panel-footer { padding-top:45px; }
  .login-form-panel { padding:27px 8%; }
  .login-card { padding:45px 0; max-width:470px; }
  .login-card-heading h2 { font-size:66px; }
  .login-top-note { max-width:470px; width:100%; margin:auto; }
  .login-card-heading>p:last-child { max-width:370px; }
  .ticket-label { margin-bottom:30px; }
  .main-nav { display:none; }
  .gallery-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .upload-layout { grid-template-columns:1fr; gap:40px; }
  .upload-intro { position:relative; }
  .upload-flower { position:absolute; top:0; right:0; }
  .upload-intro>p,.upload-instructions { max-width:400px; }
  .upload-intro h2 { padding-right:70px; }
  .handwritten { margin-top:0; }
  .upload-footer { flex-direction:row; align-items:center; }
  .footer-title { font-size:33px; flex-wrap:wrap; gap:8px; }
}
@media (max-width:580px) {
  .event-picker select { font-size:16px; }
  .field input,.search-box input,.select-control { font-size:16px; }
  .field input::placeholder,.search-box input::placeholder { font-size:12px; }
  html { scroll-padding-top:85px; }
  .login-brand-panel { min-height:750px; padding:27px 7%; }
  .login-brand-panel .brand-copy strong { font-size:15px; }
  .login-brand-copy { padding-top:39px; }
  .login-brand-copy h1 { font-size:clamp(62px,16.7vw,85px); }
  .login-brand-copy .eyebrow { font-size:7px; gap:7px; margin-bottom:18px; }
  .login-brand-copy .tiny-star { font-size:19px; }
  .login-brand-copy>p:last-child { font-size:11px; max-width:100%; }
  .login-collage { width:185px; right:16%; bottom:62px; height:220px; }
  .login-collage .postcard img { height:157px; }
  .postcard { padding:9px 9px 0; }
  .postcard figcaption { padding:11px 0; font-size:10px; }
  .postcard-back { width:165px; height:208px; left:-33px; font-size:7px; padding:13px; }
  .back-star { font-size:85px; }
  .round-sticker { top:-20px; right:-23px; }
  .hand-note { font-size:14px; left:-53px; bottom:-18px; }
  .hand-note svg { width:50px; }
  .login-panel-footer { font-size:7px; padding-top:300px; }
  .login-form-panel { padding:23px 7%; }
  .login-card { padding:36px 0 43px; }
  .login-card-heading h2 { font-size:61px; }
  .login-bottom-note { font-size:9px; }
  .topbar { min-height:80px; padding:16px 5%; gap:12px; }
  .topbar .brand-copy strong { max-width:145px; font-size:15px; }
  .topbar .brand-copy small { display:none; }
  .topbar .brand { gap:10px; }
  .brand-mark { width:42px; height:42px; font-size:30px; }
  .brand-mark>span { font-size:19px; }
  .topbar .button-compact { font-size:9px; padding:9px; min-height:36px; }
  .section { padding:43px 6% 60px; }
  .section-kicker { font-size:8px; gap:10px; padding-bottom:14px; }
  .section-kicker>span:last-child { font-size:6px; text-align:right; }
  .gallery-toolbar { gap:10px; margin-top:28px; }
  .gallery-toolbar h2 { font-size:41px; }
  .section-subtitle { font-size:10px; line-height:1.6; margin-top:12px; }
  .view-switch { padding:3px; flex-shrink:0; }
  .view-switch button { width:29px; height:32px; font-size:22px; }
  .gallery-controls { flex-direction:column; gap:10px; }
  .search-box { width:100%; }
  .select-control { align-self:flex-end; font-size:10px; }
  .gallery-grid { gap:25px 13px; }
  .photo-visual { aspect-ratio:3/4; }
  .photo-number { left:6px; top:6px; font-size:7px; padding:4px 5px; }
  .photo-meta { flex-wrap:wrap; gap:8px; }
  .photo-meta-copy { width:100%; gap:4px; }
  .photo-meta-copy strong { font-size:10px; }
  .photo-meta-copy span { font-size:8px; }
  .round-action { width:30px; height:30px; font-size:16px; }
  .photo-open-hint { display:none; }
  .gallery-grid.is-album { grid-template-columns:1fr; padding:12px 22px; gap:28px; }
  .is-album .photo-card:nth-child(2n) { margin-top:0; }
  .is-album .photo-meta { flex-wrap:nowrap; }
  .gallery-empty { min-height:345px; padding:38px 20px; }
  .gallery-empty h3 { font-size:29px; }
  .upload-layout { padding-top:30px; }
  .upload-intro h2 { font-size:47px; }
  .upload-flower { font-size:65px; }
  .upload-intro>p { font-size:12px; }
  .upload-instructions { margin-top:24px; }
  .handwritten { font-size:17px; }
  .upload-card { padding:20px 16px; box-shadow:5px 5px 0 #25263a1f; }
  .dropzone { min-height:230px; padding-inline:10px; }
  .dropzone strong { font-size:23px; }
  .dropzone>span:not(.upload-icon) { font-size:10px; }
  .upload-footer { flex-direction:column; align-items:stretch; gap:12px; }
  .upload-footer .button { justify-content:space-between; }
  .site-footer { padding:38px 6% 24px; }
  .footer-title { font-size:32px; padding-bottom:25px; }
  .footer-title>span { font-size:39px; }
  .footer-bottom { flex-wrap:wrap; gap:22px; }
  .footer-bottom .brand { width:calc(100% - 70px); }
  .footer-bottom p { order:3; width:100%; font-size:9px; }
  .photo-viewer { width:100vw; max-width:100vw; height:100svh; max-height:100svh; padding:15px; border:0; }
  .viewer-stage { gap:0; padding-bottom:50px; }
  .viewer-stage img,.viewer-stage video { width:100%; }
  .viewer-arrow { position:absolute; bottom:0; width:38px; height:38px; font-size:20px; }
  #viewer-prev { left:calc(50% - 48px); }
  #viewer-next { right:calc(50% - 48px); }
  .viewer-bottom { margin-top:15px; gap:12px; }
  .viewer-bottom h2 { font-size:15px; }
  .viewer-bottom .button { padding-inline:13px; gap:8px; }
}
@media (prefers-reduced-motion:reduce) {
  html { scroll-behavior:auto; }
  *,*::before,*::after { animation-duration:.01ms!important; animation-iteration-count:1!important; transition-duration:.01ms!important; }
  .reveal-pending { opacity:1; transform:none; }
  [data-tilt] { transform:none!important; }
}

