/* Portfolio: wedding stories. Builds on /assets/css/style.css tokens. */

.pf-intro { text-align: center; padding-bottom: clamp(40px, 6vw, 72px); }
.pf-intro .crumb { color: var(--muted); }
.pf-intro .crumb:hover { color: var(--ink); }
.pf-intro h1 { margin-top: 8px; text-wrap: balance; }
.pf-venue { font-family: var(--sans); text-transform: uppercase; letter-spacing: .24em; font-size: 12px; color: var(--muted); }
.pf-planner { font-style: italic; font-size: 19px; margin-top: 8px; }
.pf-meta { margin-top: 26px; font-family: var(--sans); text-transform: uppercase; letter-spacing: .2em; font-size: 11px; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-story { max-width: 58ch; margin: 28px auto 0; text-wrap: pretty; }

.pf-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 34px; }
.pf-actions .btn[disabled] { opacity: .6; cursor: progress; }
.pf-zipnote { min-height: 1.6em; margin-top: 14px; font-family: var(--sans); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); font-variant-numeric: tabular-nums; }
.pf-share { display: flex; justify-content: center; align-items: center; gap: 14px; }
.pf-share span { color: var(--muted); }

/* waterfall columns: every frame fits within the screen height */
.pf-stream { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(72px, 9vw, 120px); display: flex; align-items: flex-start; gap: clamp(8px, 1vw, 14px); }
.pf-col { flex: 1 1 0; min-width: 0; display: grid; gap: clamp(8px, 1vw, 14px); }
.pf-cell { position: relative; }
.pf-ph { position: relative; display: block; width: 100%; max-height: calc(100vh - 110px); background: var(--stone); overflow: hidden; cursor: zoom-in; }
.pf-ph img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.2,.7,.2,1); }
.pf-ph:hover img { transform: scale(1.03); }
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pf-ph { animation: pf-settle linear both; animation-timeline: view(); animation-range: entry 0% cover 25%; }
    @keyframes pf-settle { from { transform: translateY(22px); } to { transform: none; } }
  }
}

/* google review */
.pf-review { text-align: center; border-top: 1px solid var(--line); padding: clamp(48px, 6vw, 72px) 0; }
.pf-review-q { font-size: 19px; margin-bottom: 22px; color: var(--muted); }
.pf-review-q em { color: var(--ink); }

/* credits */
.pf-credits { text-align: center; }
.pf-credits dl { max-width: 520px; margin: 0 auto; border-top: 1px solid var(--line); text-align: left; }
.pf-credits dl div { display: grid; grid-template-columns: 140px minmax(0,1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pf-credits dt { font-family: var(--sans); text-transform: uppercase; letter-spacing: .22em; font-size: 11px; color: var(--muted); padding-top: 5px; }
.pf-credits dd { margin: 0; }
.pf-share { margin-top: 28px; }

/* wedding cards (index + "more stories"): polaroids on a stone table */
.pf-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(28px, 3.4vw, 56px) clamp(22px, 3vw, 48px); }
.pf-table { background: var(--stone); padding: clamp(48px, 6vw, 88px) 0 clamp(64px, 8vw, 110px); }
.pf-tile { display: block; background: #fff; padding: 5.2% 5.2% 0; color: var(--ink);
  box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 10px 26px -12px rgba(0,0,0,.28);
  transition: box-shadow .4s; }
.pf-tile:hover, .pf-tile:focus-visible { box-shadow: 0 2px 4px rgba(0,0,0,.08), 0 22px 40px -16px rgba(0,0,0,.34); }
.pf-tile .ph { display: block; aspect-ratio: 4 / 5; overflow: hidden; background: var(--stone-deep); }
.pf-tile img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.96); }
.pf-tile .cap { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 4px; min-height: clamp(96px, 9.5vw, 132px); padding: 12px 4px 14px; }
.pf-tile b { font-family: var(--display); font-weight: 400; font-size: clamp(22px, 2.1vw, 30px); line-height: 1.1; letter-spacing: .01em; }
.pf-tile i { font-family: var(--serif); font-size: clamp(14px, 1.15vw, 16px); color: var(--muted); }
.pf-tile small { font-family: var(--sans); font-size: 10px; letter-spacing: .26em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.pf-tile.cap-right .cap { align-items: flex-end; text-align: right; justify-content: flex-end; padding-right: 2px; }
@media (max-width: 900px) { .pf-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-more .pf-grid > :nth-child(n+4) { display: none; }
@media (max-width: 900px) { .pf-more .pf-grid > :nth-child(3) { display: none; } }

/* lightbox */
.pf-lb { position: fixed; inset: 0; z-index: 200; background: var(--paper); display: grid; grid-template-rows: auto minmax(0,1fr) auto auto; padding: env(safe-area-inset-top,0px) var(--gutter) env(safe-area-inset-bottom,0px); }
.pf-lb[hidden] { display: none; }
.pf-lb header { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; padding: 16px 0 10px; }
.pf-lb .x, .pf-lb .n, .pf-lb .nav span { font-family: var(--sans); text-transform: uppercase; letter-spacing: .24em; font-size: 11px; color: var(--muted); }
.pf-lb .x { justify-self: start; } .pf-lb .x:hover { color: var(--ink); }
.pf-lb h3 { font-family: var(--serif); text-transform: uppercase; letter-spacing: .28em; font-size: clamp(13px, 1.4vw, 16px); text-align: center; }
.pf-lb .n { justify-self: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pf-lb .stage { position: relative; display: grid; place-items: center; min-height: 0; padding: 8px 0; }
.pf-lb .stage img { max-height: calc(100vh - 180px); max-height: calc(100dvh - 220px); max-width: 100%; width: auto; height: auto; object-fit: contain; }
.pf-lb .nav { position: absolute; top: 0; bottom: 0; width: 30%; display: flex; align-items: center; }
.pf-lb .nav.prev { left: 0; justify-content: flex-start; cursor: w-resize; }
.pf-lb .nav.next { right: 0; justify-content: flex-end; cursor: e-resize; }
.pf-lb .nav span { background: rgba(255,255,255,.88); padding: 8px 10px; }
.pf-lb .nav:hover span { color: var(--ink); }
.pf-lb footer { text-align: center; color: var(--muted); padding: 12px 0 18px; }
@media (hover: none) { .pf-lb .nav span { display: none; } }

/* portrait inquiry form */
.pf-inquire { background: var(--stone); }
.pf-inquire .head { text-align: center; margin-bottom: 36px; }
.pf-inquire form { max-width: 640px; margin: 0 auto; }
.pf-inquire .input { background: #fff; }
.pf-inquire select.input { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 40px; }
.pf-inquire .types { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.pf-inquire .types label { position: relative; }
.pf-inquire .types input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.pf-inquire .types span { display: inline-block; border: 1px solid var(--line); background: #fff; padding: 10px 16px; font-family: var(--sans); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: background .2s, color .2s, border-color .2s; }
.pf-inquire .types input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-inquire .types input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: 2px; }
.pf-inquire .submit { text-align: center; margin-top: 12px; }
.pf-soon { grid-column: 1 / -1; text-align: center; color: var(--muted); font-style: italic; }
/* one or two sessions so far: center the cards instead of leaving them on the left */
.pf-grid:has(> .pf-tile:only-child) { grid-template-columns: minmax(0, 380px); justify-content: center; }
.pf-grid:has(> .pf-tile:nth-child(2):last-child) { grid-template-columns: repeat(2, minmax(0, 380px)); justify-content: center; }

.pf-lb footer .bp-share { margin: 6px 0 10px; }
.pf-noscript { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px,1fr)); gap: 10px; max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }

/* Vendor and guest tags at the top of a story (events) */
.pf-tags { margin: 36px auto 6px; padding: 0; max-width: 560px; }
.pf-tags h2 { margin: 0 0 12px; }
.pf-tags dl { margin: 0; border-top: 1px solid var(--line); }
.pf-tags dl div { display: grid; grid-template-columns: 170px minmax(0,1fr); gap: 14px; padding: 10px 0; border-bottom: 1px solid var(--line); text-align: left; }
.pf-tags dt { font: 10.5px var(--sans); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); padding-top: 4px; }
.pf-tags dd { margin: 0; font-size: 16px; color: var(--ink); white-space: normal; overflow-wrap: anywhere; min-width: 0; }
.pf-tags dd a { display: inline-block; white-space: nowrap; }
.pf-tags dd a { color: var(--ink); }
.pf-tags dd a:hover { text-decoration: underline; text-underline-offset: 3px; }
.pf-tags dd a + a { margin-left: 0; }
.pf-tags dd .sep { color: var(--line-strong); margin: 0 6px; }
@media (max-width: 560px) { .pf-tags dl div { grid-template-columns: 1fr; gap: 2px; } }

.pf-tagcopy { margin: 22px 0 0; text-align: center; }
.pf-tagcopy label { display: block; margin-bottom: 8px; }
.pf-tagcopy textarea { width: 100%; box-sizing: border-box; font: 15px/1.55 var(--serif); color: var(--ink); background: var(--stone); border: 1px solid var(--line); padding: 14px 16px; resize: vertical; margin: 0; }

/* Save to phone / Dropbox */
.pf-save { margin: 26px auto 0; max-width: 640px; display: grid; gap: 22px; }
.pf-save[hidden] { display: none; }
.pf-save-group { display: grid; gap: 10px; justify-items: center; }
.pf-save-btns { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pf-save-btns .btn { padding: 11px 16px; font-size: 10.5px; }
.pf-save-note { margin: 0; font-size: 14px; color: var(--muted); }

/* Day switcher for multi-day events */
.pf-days { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.pf-day { display: grid; gap: 4px; min-width: 118px; padding: 12px 18px; text-align: center; border: 1px solid var(--line-strong); color: var(--ink); text-decoration: none; transition: border-color .2s, background .2s; }
.pf-day b { font: 400 11px var(--sans); letter-spacing: .24em; text-transform: uppercase; }
.pf-day small { font-size: 13px; font-style: italic; color: var(--muted); }
a.pf-day:hover { border-color: var(--ink); }
.pf-day.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pf-day.on small { color: rgba(255,255,255,.7); }
.pf-day.soon { opacity: .45; cursor: default; border-style: dashed; }
@media (max-width: 480px) { .pf-day { min-width: 0; flex: 1; padding: 10px 8px; } }

/* Optional wide banner above the title */
.pf-hero { margin: 0; height: clamp(260px, 58vh, 680px); overflow: hidden; background: var(--stone-deep); }
.pf-hero img { width: 100%; height: 100%; object-fit: cover; object-position: center 50%; display: block; }
.pf-hero + .pf-intro { padding-top: clamp(36px, 5vw, 64px); }
@media (max-width: 640px) { .pf-hero { height: 46vw; min-height: 180px; } }

/* Save one photo from the enlarged view */
.pf-lb-save { justify-self: center; display: inline-flex; align-items: center; gap: 9px; margin: 2px auto 0; padding: 11px 20px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font: 400 11px var(--sans); letter-spacing: .22em; text-transform: uppercase; cursor: pointer; }
.pf-lb-save:hover { background: transparent; color: var(--ink); }
.pf-lb-save svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* Photos this device has saved */
.pf-ph { position: relative; }
.pf-saved-mark { display: none; position: absolute; right: 8px; bottom: 8px; padding: 4px 8px 4px 22px; background: rgba(255,255,255,.92); color: var(--ink); font: 400 9.5px var(--sans); letter-spacing: .18em; text-transform: uppercase; pointer-events: none; }
.pf-saved-mark::before { content: ""; position: absolute; left: 8px; top: 50%; width: 7px; height: 4px; border: solid var(--ink); border-width: 0 0 1.5px 1.5px; transform: translateY(-70%) rotate(-45deg); }
.pf-ph.is-saved .pf-saved-mark { display: block; }
.pf-saved-note { text-align: center; color: var(--muted); font-size: 15px; margin: 14px auto 0; max-width: 560px; }
.pf-saved-note .link-under { font: inherit; letter-spacing: 0; text-transform: none; margin-left: 4px; padding: 0; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; border: 0; background: none; cursor: pointer; }

/* Pic-Time style gallery ("look": "pictime"): edge to edge on phones and tablets, 48px margins on desktop,
   4-6px gaps, horizontals across two columns, light grey placeholder, quick fade-in as each photo loads */
.pf-stream.pf-stream--pt { display: block; position: relative; max-width: none; margin: 0; padding: 0 0 clamp(72px, 9vw, 120px); box-sizing: content-box; }
@media (min-width: 1000px) { .pf-stream.pf-stream--pt { padding-left: 48px; padding-right: 48px; } }
.pf-stream--pt .pf-cell { position: absolute; }
.pf-stream--pt .pf-ph { width: 100%; height: 100%; max-height: none; background: #f6f6f6; animation: none !important; }
.pf-stream--pt .pf-ph img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .5s ease; transform: none !important; }
.pf-stream--pt .pf-ph img.in { opacity: 1; }
.look-pictime .pf-lb { background: #fff; }
