/* "Shot with this recipe / film": the approved photos and the form that sends one (photo-wall.js).
   Shared by the recipe detail pages and the film pages, so every colour has a fallback of its own. */
.pw { margin-top: clamp(56px, 8vw, 112px); color: var(--ink, #efebe2); }
.pw-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px 24px; margin-bottom: 20px; }
.pw-title { margin: 0; font-size: clamp(24px, 1rem + 1.4vw, 36px); font-weight: 500; letter-spacing: -.02em; }
.pw-count { font: 500 12px/1.3 var(--mono, ui-monospace, Menlo, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--muted, #9d9890); }
.pw-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.pw-item { position: relative; margin: 0; }
.pw-open { display: block; width: 100%; padding: 0; border: 0; border-radius: 12px; background: #0b0b0b; overflow: hidden; cursor: zoom-in; aspect-ratio: 3 / 2; }
.pw-open img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s cubic-bezier(.2, .7, .2, 1); }
.pw-open:hover img { transform: scale(1.03); }
.pw-open:focus-visible { outline: 2px solid var(--amber, #ffb547); outline-offset: 3px; }
.pw-credit { position: absolute; left: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 4px 10px; border-radius: 999px; background: rgba(12, 12, 12, .7); font-size: 12px; line-height: 1.4; color: #efebe2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
a.pw-credit:hover { background: rgba(12, 12, 12, .9); }
.pw-check { color: var(--amber, #ffb547); }
.pw-empty { margin: 0; padding: 28px 22px; border: 1px dashed var(--rule, #2b2a28); border-radius: 14px; font-size: 15px; line-height: 1.6; color: var(--muted, #9d9890); }
.pw-cta { margin: 22px 0 0; font-size: 15px; color: var(--muted, #9d9890); }
.pw-cta button { padding: 0; border: 0; background: none; font: inherit; font-weight: 500; color: var(--ink, #efebe2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pw-cta button:hover { color: var(--amber, #ffb547); }

.pw-form { margin-top: 22px; padding: clamp(20px, 2.6vw, 34px); border: 1px solid var(--rule, #2b2a28); border-radius: 18px; background: #161615; }
.pw-form[hidden] { display: none; }
.pw-form-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; }
.pw-form-title { margin: 0 0 6px; font-size: 19px; font-weight: 600; }
.pw-form-lead { margin: 0 0 20px; font-size: 15px; line-height: 1.6; color: var(--muted, #9d9890); }
.pw-cancel { padding: 0; border: 0; background: none; font: inherit; font-size: 14px; color: var(--muted, #9d9890); cursor: pointer; }
.pw-cancel:hover { color: var(--ink, #efebe2); }
.pw-pick { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.pw-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ink, #efebe2); font: inherit; font-weight: 600; color: #141413; cursor: pointer; text-decoration: none; }
.pw-button:hover:not(:disabled) { background: #fff; }
.pw-button:disabled { opacity: .45; cursor: default; }
.pw-button.is-quiet { border: 1px solid var(--rule, #2b2a28); background: transparent; font-weight: 500; color: var(--ink, #efebe2); }
.pw-button.is-quiet:hover:not(:disabled) { border-color: var(--muted, #9d9890); background: transparent; }
.pw-files { margin: 0 0 20px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pw-file { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; }
.pw-file img { width: 64px; height: 44px; border-radius: 6px; object-fit: cover; background: #0b0b0b; }
.pw-file-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pw-file-note { display: block; font-size: 12px; color: var(--muted, #9d9890); white-space: normal; }
.pw-file-note.is-bad { color: #ff8f7a; }
.pw-file-note.is-good { color: var(--amber, #ffb547); }
.pw-file button { padding: 4px 8px; border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted, #9d9890); cursor: pointer; }
.pw-fields { display: grid; gap: 16px; margin-bottom: 22px; }
.pw-field { display: grid; gap: 8px; min-width: 0; font-size: 14px; font-weight: 500; }
.pw-field small { font-weight: 400; color: var(--muted, #9d9890); }
.pw-field input, .pw-field select { min-height: 46px; min-width: 0; padding: 0 14px; border: 1px solid var(--rule, #2b2a28); border-radius: 12px; background: #0f0f0e; font: inherit; font-weight: 400; color: var(--ink, #efebe2); }
.pw-field input:focus-visible, .pw-field select:focus-visible { outline: 2px solid var(--amber, #ffb547); outline-offset: 1px; }
.pw-link { display: grid; grid-template-columns: minmax(120px, auto) minmax(0, 1fr); gap: 8px; }
.pw-consent { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 20px; font-size: 14px; line-height: 1.6; color: var(--ink, #efebe2); }
.pw-consent input { width: 18px; height: 18px; margin: 3px 0 0; flex: none; accent-color: var(--amber, #ffb547); }
.pw-status { min-height: 22px; margin: 14px 0 0; font-size: 14px; line-height: 1.6; color: var(--amber, #ffb547); }
.pw-status.is-bad { color: #ff8f7a; }
.pw-note { margin: 16px 0 0; font-size: 13px; line-height: 1.65; color: #8a857d; }
.pw-note a { color: inherit; }
.pw-signin { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.pw-signin p { margin: 0; font-size: 15px; color: var(--muted, #9d9890); }

.pw-box { width: min(1400px, calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); padding: 0; border: 0; border-radius: 14px; background: #0b0b0b; color: #efebe2; overflow: hidden; }
.pw-box::backdrop { background: rgba(6, 6, 6, .86); }
.pw-box img { display: block; max-width: 100%; max-height: calc(100vh - 84px); margin: 0 auto; object-fit: contain; }
/* The credit sits in the middle under the picture; the close button keeps to the right without pushing it off centre. */
.pw-box-bar { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 16px; padding: 12px 16px; font-size: 14px; }
.pw-box-bar > :first-child { grid-column: 2; text-align: center; overflow-wrap: anywhere; }
.pw-box-bar button { grid-column: 3; justify-self: end; }
.pw-box-bar a { color: #efebe2; text-underline-offset: 3px; }
.pw-box-bar button { padding: 6px 12px; border: 1px solid #3a3835; border-radius: 999px; background: none; font: inherit; color: #efebe2; cursor: pointer; }

@media (min-width: 760px) {
  .pw-fields { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .pw-open img { transition: none; }
}

/* The form alone, inside the recipe page's share dialog. */
.pw-form-only > .pw-head, .pw-form-only > [data-pw-wall], .pw-form-only > .pw-cta, .pw-form-only .pw-cancel { display: none; }
.pw-form-only .pw-form { margin: 0; border: 0; padding: 0; background: none; }
.pw.pw-form-only { margin-top: 0; }
