@font-face { font-family: "Wedding Serif"; src: url("/static/fonts/EBGaramond-Regular.otf"); font-display: swap; }
@font-face { font-family: "Wedding Display"; src: url("/static/fonts/CormorantGaramond-Regular.ttf"); font-display: swap; }
@font-face { font-family: "Wedding Italic"; src: url("/static/fonts/EBGaramond-Italic.otf"); font-display: swap; }
:root { --navy: #0b2b53; --blue: #6689b9; --pale-blue: #e8eff7; --gold: #d9b436; --cream: #fffaf0; --paper: #fffef9; --ink-soft: #5d6d7d; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-height: 100%; background: var(--cream); }
body { min-height: 100vh; margin: 0; color: var(--navy); background: radial-gradient(circle at 50% 0, #fff 0, var(--cream) 55%, #fbf3df 100%); font-family: "Wedding Serif", Georgia, serif; }
button, input { font: inherit; }
.gallery-header { position: sticky; z-index: 20; top: 0; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 112px; padding: 12px clamp(20px, 5vw, 80px); border-bottom: 1px solid rgba(217, 180, 54, .65); background: rgba(255, 253, 247, .94); backdrop-filter: blur(14px); }
.gallery-brand { position: relative; z-index: 2; grid-column: 2; justify-self: center; color: #0b2547; text-decoration: none; }
.monogram-mark { position: relative; display: grid; width: 92px; height: 92px; color: #0b2547; font-family: "Wedding Serif", Georgia, serif; place-items: center; }
.monogram-initials { position: relative; z-index: 3; margin-top: -14px; color: #0b2547; font-size: 1.72rem; letter-spacing: .06em; }
.monogram-initials i { display: inline-block; margin-inline: -.22rem; color: #0b2547; font-size: 2rem; font-weight: 400; transform: rotate(-8deg); }
.monogram-botanical { position: absolute; z-index: 2; inset: 55px 18px 7px; }
.monogram-botanical::before { position: absolute; top: 6px; right: 8px; left: 8px; height: 1px; background: #6f7a51; content: ""; transform: rotate(-4deg); }
.monogram-botanical i { position: absolute; width: 17px; height: 14px; border-radius: 48% 52% 55% 45%; background: radial-gradient(circle at 35% 30%, #f6dd75, #d4ad2f 68%, #a98927); box-shadow: inset -2px -2px rgba(133,111,36,.18); }
.monogram-botanical i:first-child { left: 10px; transform: rotate(18deg); }
.monogram-botanical i:nth-child(2) { top: 3px; left: 23px; }
.monogram-botanical i:last-child { right: 5px; transform: rotate(-18deg); }
.crest-leaves { position: absolute; z-index: 1; bottom: 9px; width: 38px; height: 28px; }
.crest-leaves-left { left: 8px; transform: rotate(-20deg); }
.crest-leaves-right { right: 8px; transform: scaleX(-1) rotate(-20deg); }
.crest-leaves i { position: absolute; width: 18px; height: 9px; border-radius: 100% 0 100% 0; background: linear-gradient(135deg, #a7ac78, #657252); }
.crest-leaves i:first-child { top: 9px; left: 0; transform: rotate(18deg); }
.crest-leaves i:nth-child(2) { top: 2px; left: 10px; transform: rotate(42deg); }
.crest-leaves i:last-child { top: 12px; left: 17px; transform: rotate(5deg); }
.gallery-header-actions { grid-column: 3; display: flex; justify-content: flex-end; gap: 18px; }
.gallery-header-actions a { color: var(--navy); font-size: 1rem; text-underline-offset: 4px; }
main { width: min(1380px, 100%); margin: 0 auto; }
.gallery-access { width: min(680px, calc(100% - 32px)); margin: clamp(52px, 9vh, 120px) auto; padding: clamp(30px, 6vw, 70px); border: 1px solid rgba(217, 180, 54, .55); background: rgba(255, 254, 249, .94); box-shadow: 0 28px 80px rgba(19, 49, 80, .11); text-align: center; }
.gallery-eyebrow { margin: 0 0 9px; color: var(--blue); font-family: "Wedding Italic", Georgia, serif; font-size: .9rem; letter-spacing: .22em; text-transform: uppercase; }
h1, h2 { margin: 0; font-family: "Wedding Display", Georgia, serif; font-weight: 400; }
.gallery-access h1 { font-size: clamp(3.2rem, 10vw, 6rem); line-height: .88; }
.gallery-access > p:not(.gallery-eyebrow) { max-width: 500px; margin: 28px auto; color: var(--ink-soft); font-size: 1.25rem; line-height: 1.55; }
.gallery-access form { display: grid; gap: 12px; max-width: 420px; margin: 0 auto; text-align: left; }
.gallery-access label, .gallery-caption-label { font-weight: 700; }
.gallery-access input, #gallery-caption { width: 100%; min-height: 54px; border: 1px solid #b9c7d6; border-radius: 0; background: #fff; color: var(--navy); padding: 12px 15px; font-size: 1.08rem; }
.gallery-access input { text-transform: uppercase; letter-spacing: .15em; }
.gallery-access button, .gallery-capture-button { display: flex; min-height: 56px; align-items: center; justify-content: center; border: 1px solid var(--navy); background: var(--navy); color: #fff; cursor: pointer; font-weight: 700; letter-spacing: .04em; text-align: center; }
.gallery-access button:disabled { cursor: wait; opacity: .65; }
.gallery-status { min-height: 22px; margin: 0; color: var(--blue); text-align: center; }
.gallery-status.is-error, .gallery-upload-status.is-error { color: #9b2f32; }
.gallery-help { display: inline-block; margin-top: 20px; color: var(--blue); text-underline-offset: 4px; }
.gallery-space { padding: clamp(32px, 5vw, 70px) clamp(16px, 4vw, 55px) 80px; }
.gallery-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 30px; padding-bottom: 30px; }
.gallery-intro h1 { font-size: clamp(4rem, 9vw, 7rem); line-height: .8; }
.gallery-intro > div > p:last-child { max-width: 650px; margin: 24px 0 0; color: var(--ink-soft); font-size: 1.25rem; }
.gallery-space-actions { display: flex; align-items: center; gap: 18px; white-space: nowrap; }
.gallery-space-actions a { color: var(--navy); text-underline-offset: 4px; }
.gallery-button-secondary { min-height: 44px; padding: 8px 18px; border: 1px solid var(--blue); background: transparent; color: var(--navy); cursor: pointer; }
.gallery-upload { display: grid; grid-template-columns: minmax(240px, .8fr) minmax(320px, 1.2fr); gap: 18px 42px; margin: 20px 0 70px; padding: clamp(24px, 5vw, 52px); background: var(--pale-blue); border-top: 4px solid var(--gold); }
.gallery-upload h2, .gallery-feed h2 { font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .9; }
.gallery-upload > div:first-child { grid-row: span 3; }
.gallery-upload > div:first-child > p:last-child { color: var(--ink-soft); font-size: 1.14rem; line-height: 1.5; }
.gallery-upload-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.gallery-capture-button { gap: 10px; padding: 13px 14px; }
.gallery-capture-button.is-disabled, .gallery-capture-button:has(input:disabled) { cursor: not-allowed; opacity: .45; }
.gallery-capture-button span { font-size: 1.35rem; }
.gallery-capture-secondary { grid-column: 1 / -1; border-color: var(--blue); background: #fff; color: var(--navy); }
.gallery-capture-button input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.gallery-capture-button:has(input:focus-visible) { outline: 3px solid var(--gold); outline-offset: 3px; }
.gallery-upload-note { margin: 0; color: var(--ink-soft); font-size: .92rem; }
.gallery-upload-quota { margin: 0; padding: 10px 12px; border-left: 3px solid var(--gold); background: rgba(255,255,255,.72); color: var(--navy); font-weight: 700; }
.gallery-upload-quota.is-reached { border-left-color: #9b2f32; background: #fff7f6; color: #7f282b; }
.gallery-upload-status { grid-column: 2; min-height: 26px; font-weight: 700; }
.gallery-upload-status.is-busy { color: var(--blue); }
.gallery-upload-status.is-success { color: #31704f; }
.gallery-feed-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 25px; }
#gallery-count { color: var(--blue); font-family: "Wedding Italic", Georgia, serif; font-size: 1.15rem; }
.gallery-grid { columns: 3 320px; column-gap: 18px; }
.gallery-item { width: 100%; margin: 0 0 18px; overflow: hidden; break-inside: avoid; background: var(--paper); border: 1px solid #e8ddbf; box-shadow: 0 12px 32px rgba(18, 45, 72, .08); }
.gallery-media { position: relative; display: grid; background: #102846; }
.gallery-media img, .gallery-media video { display: block; width: 100%; max-height: 70vh; object-fit: contain; }
.gallery-media span { position: absolute; top: 10px; right: 10px; padding: 4px 8px; background: rgba(11, 43, 83, .82); color: #fff; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; }
.gallery-item-copy { padding: 14px 16px 17px; }
.gallery-item-copy p { margin: 0 0 8px; font-size: 1.15rem; }
.gallery-item-copy small { color: var(--ink-soft); }
.gallery-remove { display: block; margin-top: 12px; border: 0; background: transparent; color: #9b2f32; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.gallery-empty { padding: 60px 20px; border: 1px dashed #c8b875; color: var(--ink-soft); font-size: 1.3rem; text-align: center; }
footer { padding: 28px 20px 42px; border-top: 1px solid rgba(217, 180, 54, .45); color: var(--ink-soft); text-align: center; }
@media (max-width: 900px) {
  .monogram-mark { width: 68px; height: 76px; }
  .monogram-initials { margin-top: -8px; font-size: 1.35rem; }
  .monogram-initials i { font-size: 1.65rem; }
  .monogram-botanical { inset: 45px 13px 5px; }
}
@media (max-width: 760px) {
  .gallery-header { grid-template-columns: 1fr auto; min-height: 92px; padding: 10px 18px; }
  .gallery-brand { grid-column: 1; justify-self: start; }
  .gallery-header-actions { grid-column: 2; gap: 10px; }
  .gallery-header-actions a { font-size: .9rem; }
  .gallery-intro { align-items: flex-start; flex-direction: column; }
  .gallery-space-actions { width: 100%; justify-content: space-between; }
  .gallery-upload { grid-template-columns: 1fr; }
  .gallery-upload > div:first-child { grid-row: auto; }
  .gallery-upload-status { grid-column: 1; }
  .gallery-upload-actions { grid-template-columns: 1fr; }
  .gallery-capture-secondary { grid-column: auto; }
  .gallery-grid { columns: 2 250px; }
}
@media (max-width: 480px) {
  .gallery-header-actions a:last-child { display: none; }
  .gallery-space { padding-inline: 12px; }
  .gallery-intro h1 { font-size: 4.4rem; }
  .gallery-upload { margin-inline: -12px; padding-inline: 18px; }
  .gallery-grid { columns: 1; }
}
