.gallery-intro { padding-block: 54px 38px; }
.gallery-intro h1 { margin: 0 0 18px; font-size: clamp(42px,6vw,64px); line-height: 1.08; letter-spacing: -.04em; }
.gallery-heading { display:flex; align-items:flex-end; justify-content:space-between; gap:30px; }
.gallery-heading p { margin:0; max-width:670px; color:var(--slate); font-size:20px; line-height:1.6; }
.gallery-heading > a { white-space:nowrap; }
.gallery-section { padding-bottom:72px; }
.gallery-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:32px; }
.gallery-photo { margin:0; min-width:0; }
.gallery-photo > button { display:block; width:100%; border:0; border-radius:12px; overflow:hidden; padding:0; background:#fff; cursor:zoom-in; }
.gallery-photo img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; display:block; }
.gallery-photo figcaption { padding:17px 0 0; }
.gallery-photo h2 { font-size:21px; line-height:1.35; margin:0 0 6px; }
.gallery-date,.field-help { color:var(--slate); font-size:14px; }
.gallery-panel { padding:30px; border:1px solid #dce2e8; border-radius:14px; margin:0 0 28px; }
.gallery-panel h2 { margin:0 0 12px; font-size:28px; }
.gallery-panel p { line-height:1.6; }
.file-picker { display:inline-flex; align-items:center; gap:22px; color:var(--blue); border:2px dashed var(--blue); padding:18px 24px; border-radius:9px; font-weight:800; cursor:pointer; }
.file-picker:has(+ input:focus-visible) { outline:3px solid var(--orange); outline-offset:4px; }
.file-picker-label { display:block; margin-bottom:10px; font-weight:800; }
.photo-file-input { display:block; max-width:100%; font:inherit; }
.photo-file-input::file-selector-button { padding:14px 22px; margin-right:15px; color:var(--blue); background:#fff; border:2px dashed var(--blue); border-radius:9px; font:inherit; font-weight:800; cursor:pointer; }
.manager-account,.manager-list-heading { display:flex; justify-content:space-between; gap:20px; align-items:center; margin-bottom:24px; }
.manager-account a { color:var(--blue); }
.manager-list-heading h2 { font-size:30px; }
.upload-queue { display:grid; gap:18px; margin-block:24px; }
.queued-photo { display:grid; grid-template-columns:160px 1fr auto; align-items:start; gap:22px; border:1px solid #dce2e8; padding:18px; border-radius:10px; }
.queued-photo img { width:160px; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:6px; }
.gallery-fields { display:grid; gap:12px; }
.gallery-fields label { display:grid; gap:7px; font-weight:700; font-size:15px; }
.gallery-fields input { width:100%; min-width:0; border:1px solid #acb9c5; border-radius:6px; padding:11px 12px; color:var(--ink); background:white; font:inherit; }
.gallery-fields input:focus { outline:2px solid var(--blue); outline-offset:2px; }
.photo-actions { display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-top:16px; }
.secondary-button,.remove-button,.viewer-controls button { padding:10px 16px; border-radius:7px; background:#fff; border:1px solid #8c9aab; color:var(--ink); cursor:pointer; font:inherit; font-weight:700; }
.remove-button { color:#983223; border-color:#dfb8b2; }
.manager-photo { border:1px solid #dce2e8; padding:16px; border-radius:12px; }
.manager-photo img { width:100%; height:auto; aspect-ratio:4/3; object-fit:cover; border-radius:7px; margin-bottom:18px; }
.removed-photo { border-style:dashed; }
.removed-label { margin:0 0 12px; font-weight:800; color:var(--slate); }
.photo-viewer { max-width:min(1100px,94vw); max-height:94vh; border:0; padding:24px; border-radius:12px; color:var(--ink); }
.photo-viewer::backdrop { background:#12202ded; }
.photo-viewer img { max-height:70vh; width:100%; object-fit:contain; }
.viewer-close { display:block; margin-left:auto; margin-bottom:12px; font:32px/1 var(--sans); padding:5px 12px; border:0; background:white; cursor:pointer; }
.viewer-controls { display:flex; align-items:center; justify-content:space-between; gap:15px; }
button:disabled { opacity:.55; cursor:wait; }
[hidden] { display:none!important; }
@media(max-width:700px) {
 .gallery-intro { padding-block:38px 28px; }
 .gallery-heading { align-items:flex-start; flex-direction:column; gap:22px; }
 .gallery-heading p { font-size:18px; }
 .gallery-grid { grid-template-columns:1fr; gap:28px; }
 .gallery-panel { padding:20px; }
 .queued-photo { grid-template-columns:90px 1fr; padding:12px; gap:12px; }
 .queued-photo img { width:90px; }
 .queued-photo > button { grid-column:2; justify-self:start; }
 .manager-list-heading { align-items:flex-start; flex-direction:column; gap:4px; }
 .photo-viewer { padding:14px; }
}
