/* Shared Lookbook collection and viewer, with a compact homepage variant. */
.jade-lookbook [hidden], .lb-viewer [hidden] { display: none !important; }
.jade-lookbook { position: relative; isolation: isolate; overflow: hidden; padding: 64px 0; background: radial-gradient(ellipse at 50% 12%, #fffaf5, #fce9e4 65%, #f7d6d8); }
.jade-lookbook::before, .jade-lookbook::after { content: ""; position: absolute; z-index: -1; pointer-events: none; width: 120%; height: 240px; border: 1px solid #c69a65; border-radius: 50%; box-shadow: 0 5px 0 -3px #f7e0ae, 0 -5px 0 -3px #a87b48; }
.jade-lookbook::before { top: 18px; left: -10%; transform: rotate(-7deg); border-color: #c69a65 transparent transparent; box-shadow: none; }
.jade-lookbook::after { bottom: -200px; left: -10%; transform: rotate(9deg); border-color: #c69a65 transparent transparent; box-shadow: none; }
.lb-floral { position: absolute; z-index: -1; pointer-events: none; width: clamp(110px, 21vw, 290px); height: auto; opacity: .6; }
.lb-floral-left { top: 0; left: -65px; } .lb-floral-right { bottom: 0; right: -65px; }
.lb-intro { max-width: 1000px; text-align: center; margin: 0 auto 38px; padding-inline: 20px; }
.lb-intro h1 { font: 500 clamp(2.35rem, 5.2vw, 4.2rem)/1.18 var(--display); color: var(--berry-deep); margin: 12px 0 22px; }
.lb-intro h1 em { font: 400 1.35em/1 var(--script); color: var(--berry); margin-inline: .06em; }
.lb-subtitle { font: italic 500 clamp(1.15rem, 2.2vw, 1.5rem)/1.5 var(--display); margin: 20px 0 8px; }
.lb-work-highlight { width: fit-content; max-width: 100%; margin: 18px auto 12px; padding: 10px 20px; border-block: 1px solid #c6a16b; color: var(--berry-deep); font: 600 clamp(1.15rem, 2.2vw, 1.5rem)/1.4 var(--display); }
.lb-intro-copy { max-width: 460px; margin: 0 auto; color: var(--muted); }
.lb-ornament { width: 86px; height: 1px; margin: auto; background: linear-gradient(90deg, transparent, #ad835b, transparent); }
.lb-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.lb-secondary { border: 1px solid #a05b6b; background: #fff8f5; color: var(--berry-deep); }
.lb-shell { width: min(calc(100% - 64px), 1180px); margin-inline: auto; }
.lb-filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 24px 0 10px; }
.lb-filter { min-height: 44px; padding: 10px 22px; border: 1px solid #d1aaa4; border-radius: 999px; background: #fffafa; color: var(--berry-deep); font-size: .85rem; font-weight: 500; cursor: pointer; }
.lb-filter[aria-pressed="true"] { color: white; background: var(--berry-deep); border-color: var(--berry-deep); }
.lb-count { text-align: center; color: var(--muted); font-size: .875rem; margin: 14px 0 26px; }
.lb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 24px; }
.lb-card { min-width: 0; margin: 0; background: #fffaf7; border: 1px solid #d6b7a2; border-radius: 20px; padding: 5px; box-shadow: 0 10px 28px #712e3b0c; transition: box-shadow .25s ease, transform .25s ease; }
.lb-open { display: block; height: 100%; border-radius: 20px; -webkit-tap-highlight-color: transparent; }
.lb-portrait { overflow: hidden; border-radius: 15px 15px 5px 5px; background: var(--blush); }
.lb-portrait img { width: 100%; height: auto; aspect-ratio: 4 / 5; object-fit: contain; }
.lb-caption { padding: 22px 22px 18px; }
.lb-caption :is(h2, h3) { font: 600 clamp(1.25rem, 2vw, 1.65rem)/1.25 var(--display); color: var(--berry-deep); margin: 0 0 9px; }
.lb-caption p { margin: 0; min-height: 3em; font-size: .94rem; color: var(--muted); }
.lb-view-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; border: 1px solid #b58a49; border-radius: 999px; padding: 9px 14px; margin-top: 18px; min-height: 48px; background: linear-gradient(135deg, #fce1e6, #f5c6d3); box-shadow: inset 0 1px 0 #fff7e7, 0 3px 10px #712e3b0c; color: var(--berry-deep); font-size: .85rem; font-weight: 600; }
.lb-view-label span { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; border: 1px solid #bc955b; border-radius: 50%; background: #fff2dc; font-size: 1.2rem; transition: background .25s ease; }
@media (hover: hover) { .lb-card:hover { transform: translateY(-4px); box-shadow: 0 16px 32px #712e3b14; } .lb-open:hover .lb-view-label span { background: #f5dfb9; } }
.lb-open:active { background: #fff1ef; }
.lb-ending { text-align: center; margin: 48px auto 0; border-top: 1px solid #d6b7a270; padding-top: 12px; }
.lb-ending p { color: var(--berry-deep); letter-spacing: .18em; font-size: .8rem; margin-top: 24px; }

.jade-lookbook-home { padding-block: 48px; border-block: 1px solid #dfc6b8; }
.jade-lookbook-home .lb-intro { margin-bottom: 16px; }
.jade-lookbook-home .lb-intro h2 { font: 500 clamp(2rem, 4.5vw, 3.4rem)/1.18 var(--display); color: var(--berry-deep); margin: 12px 0 18px; }
.jade-lookbook-home .lb-intro h2 em { font: 400 1.3em/1 var(--script); color: var(--berry); }
.jade-lookbook-home .lb-intro-copy { max-width: 540px; }
.jade-lookbook-home .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.jade-lookbook-home .lb-caption { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.jade-lookbook-home .lb-caption h3 { min-height: 1.25em; }
.jade-lookbook-home .lb-open { display: flex; flex-direction: column; }
.jade-lookbook-home .lb-view-label { margin-top: auto; }
.jade-lookbook-home .lb-actions { margin-top: 28px; }
@media (min-width: 1200px) { .jade-lookbook-home .lb-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.lb-preview-note { margin-top: 10px !important; font-size: .78rem !important; color: var(--berry-deep) !important; min-height: 0 !important; }
.lb-viewer { position: fixed; border: 1px solid #bd966a; border-radius: 18px; padding: 0; width: min(1060px, calc(100% - 32px)); max-width: none; height: min(1020px, calc(100dvh - 32px)); max-height: calc(100dvh - 32px); background: var(--paper); color: var(--ink); overflow: hidden; }
.lb-viewer[open] { display: flex; flex-direction: column; }
/* The backdrop eases in when the viewer opens and back out from wherever it is when it closes. */
.lb-viewer::backdrop { background: #32111edb; opacity: 0; transition: opacity 280ms cubic-bezier(.4, 0, 1, 1); }
.lb-viewer[data-backdrop="in"]::backdrop { opacity: 1; transition: opacity 380ms cubic-bezier(.22, 1, .36, 1); }
.lb-viewer::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 4; border: 2px solid transparent; border-radius: inherit; }
.lb-viewer[data-glint]::after { animation: lb-border-shimmer 420ms cubic-bezier(.22,1,.36,1) both; }
/* While the panel grows out of a card (or folds back into it), this layer paints its surface and border. */
.lb-surface { display: none; position: absolute; inset: -1px; z-index: -1; border: 1px solid #bd966a; border-radius: inherit; background: #f7ece5; pointer-events: none; transform-origin: 0 0; }
.lb-viewer[data-phase="opening"], .lb-viewer[data-phase="closing"] { overflow: visible; background: transparent; border-color: transparent; }
.lb-viewer[data-phase="opening"] .lb-surface, .lb-viewer[data-phase="closing"] .lb-surface { display: block; }
.lb-viewer[data-phase="opening"] .lb-stage, .lb-viewer[data-phase="closing"] .lb-stage { overflow: visible; background: transparent; }
.lb-viewer[data-phase="opening"] .lb-cover, .lb-viewer[data-phase="closing"] .lb-cover { z-index: 4; }
.lb-viewer-top { position: relative; z-index: 3; flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 18px; border-bottom: 1px solid #d6b7a2; background: #fff6f4; border-radius: 18px 18px 0 0; }
.lb-viewer-eyebrow { margin: 0 0 3px; font-size: .65rem; color: var(--muted); text-transform: uppercase; letter-spacing: .13em; }
.lb-viewer h2 { font: 500 clamp(1.15rem, 3vw, 1.6rem)/1.25 var(--display); margin: 0; }
.lb-viewer-count { font-size: .75rem; margin: 4px 0 0; color: var(--muted); }
.lb-control { flex-shrink: 0; min-width: 44px; min-height: 44px; border: 1px solid #bc8290; background: #fff8f5; color: var(--berry-deep); border-radius: 9px; padding: 8px 12px; cursor: pointer; font-size: .86rem; display: inline-flex; justify-content: center; align-items: center; -webkit-tap-highlight-color: transparent; }
.lb-control:disabled { opacity: .5; cursor: default; }
.lb-control:active:not(:disabled) { background: #fbe4e8; } /* Brand press state; the browser's blue tap flash is off. */
.lb-stage { flex: 1; min-height: 0; position: relative; overflow: hidden; background: #f7ece5; }
.lb-viewport { width: 100%; height: 100%; overflow: auto; overscroll-behavior: contain; }
.lb-viewport img { display: block; width: 100%; height: 100%; object-fit: contain; max-width: none; }
.lb-viewport[data-zoom="true"] img { width: var(--lb-full-width); height: var(--lb-full-height); }
.lb-stage:not([data-state="ready"]) .lb-viewport { visibility: hidden; }
/* Transition frame: a copy layer that carries the look between card, viewer and views. */
.lb-cover { position: absolute; inset: 0; pointer-events: none; }
.lb-stage[data-state="ready"] .lb-cover { visibility: hidden; }
.lb-frame { position: absolute; inset: 0; transform-origin: 0 0; }
.lb-frame > img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; max-width: none; object-fit: contain; }
.lb-window { position: absolute; overflow: hidden; transform-origin: 0 0; }
.lb-window > img { position: absolute; display: block; max-width: none; object-fit: cover; transform-origin: 0 0; }
/* The loading note only appears when an image is genuinely slow; an error shows straight away. */
.lb-load-panel { position: absolute; bottom: 12px; left: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); margin: auto; padding: 10px 14px; border: 1px solid #d6b7a2; border-radius: 12px; background: #fffafa; color: var(--berry-deep); text-align: center; font-size: .85rem; opacity: 0; transition: opacity 220ms ease; }
.lb-stage[data-slow] .lb-load-panel, .lb-stage[data-state="error"] .lb-load-panel { opacity: 1; }
.lb-load-status { margin: 0; }
.lb-load-panel button { margin-top: 8px; }
.lb-stage[data-state="ready"] .lb-load-panel { display: none; }
.lb-details { flex: none; padding: 8px 14px; background: #fff6f4; border-top: 1px solid #dfc6b8; text-align: center; }
.lb-details p { margin: 0; font-size: .8rem; color: var(--muted); }
.lb-details [data-view-kind] { color: var(--berry-deep); font-weight: 500; margin-bottom: 2px; }
.lb-viewer-bottom { position: relative; z-index: 3; flex: none; padding: 9px 12px; background: var(--paper); border-top: 1px solid #dfc6b8; border-radius: 0 0 18px 18px; }
.lb-tools, .lb-viewer-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.lb-viewer-actions { margin-top: 6px; }
.lb-book { background: var(--berry-deep); color: white; border-color: var(--berry-deep); }
.lb-control.lb-book:active { background: var(--berry); }
body.lb-modal-open { overflow: hidden; position: fixed; width: 100%; }
.jade-lookbook :focus-visible, .lb-viewer :focus-visible { outline: 3px solid #711129; outline-offset: 3px; }
.lb-viewport:focus-visible { outline-offset: -4px; }
@keyframes lb-border-shimmer { 0% { border-color: transparent; box-shadow: 0 0 0 transparent; } 40% { border-color: #e6c487; box-shadow: 0 0 18px #c5996366; } 100% { border-color: transparent; box-shadow: 0 0 0 transparent; } }
@media (max-width: 1023px) { .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lb-shell { width: calc(100% - 40px); } }
@media (max-width: 599px) {
  .jade-lookbook { padding: 34px 0 40px; } .jade-lookbook::before { top: 18px; height: 120px; } .lb-floral { opacity: .35; } .lb-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; } .lb-shell { width: calc(100% - 28px); } .lb-intro { padding-inline: 16px; margin-bottom: 28px; } .lb-intro h1 { max-width: 350px; margin-inline: auto; } .lb-intro .eyebrow { letter-spacing: .22em; } .lb-intro-copy { font-size: .94rem; } .lb-filters { gap: 8px; } .lb-filter { padding-inline: 14px; } .lb-caption { padding: 18px 16px; } .lb-caption p { min-height: 0; } .lb-count { font-size: .8rem; }
  .lb-viewer { width: calc(100% - 12px); height: calc(100dvh - 12px); max-height: calc(100dvh - 12px); border-radius: 12px; } .lb-viewer-top { padding: 8px 10px; border-radius: 12px 12px 0 0; } .lb-viewer-eyebrow { font-size: .58rem; letter-spacing: .06em; } .lb-viewer-count { font-size: .7rem; } .lb-viewer-bottom { padding: 6px 6px max(6px, env(safe-area-inset-bottom)); border-radius: 0 0 12px 12px; } .lb-control { font-size: .76rem; padding-inline: 9px; } .lb-details { padding: 6px 10px; } .lb-details p { font-size: .75rem; }
}
@media (max-height: 450px) { .lb-viewer-eyebrow { display: none; } .lb-viewer-top { padding-block: 5px; } .lb-details { padding-block: 3px; } .lb-viewer-bottom { display: flex; justify-content: center; gap: 6px; padding-block: 5px; } .lb-viewer-actions { margin-top: 0; } .lb-control { font-size: .72rem; padding-inline: 8px; } }
@media (max-width: 599px) {
  .jade-lookbook-home { padding-block: 34px; }
  .jade-lookbook-home .lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 12px; }
  .jade-lookbook-home .lb-card { padding: 4px; border-radius: 14px; }
  .jade-lookbook-home .lb-portrait { border-radius: 10px 10px 4px 4px; }
  .jade-lookbook-home .lb-caption { padding: 12px 7px 8px; }
  .jade-lookbook-home .lb-caption h3 { font-size: clamp(1rem, 4vw, 1.3rem); margin-bottom: 12px; }
  .jade-lookbook-home .lb-view-label { font-size: .76rem; padding: 8px; gap: 5px; border-radius: 12px; line-height: 1.25; }
  .jade-lookbook-home .lb-view-label span { width: 20px; height: 20px; font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) { .jade-lookbook *, .lb-viewer, .lb-viewer *, .lb-viewer::after, .lb-viewer::backdrop { animation: none !important; transition: none !important; scroll-behavior: auto !important; } .lb-stage[data-state="ready"] .lb-cover { display: none; } .lb-card:hover { transform: none; } }
