/* Photography is an optional page template; all selectors stay scoped. */
.photo-public { max-width: 1400px; margin: 0 auto; }
.photo-profile { max-width: 800px; padding: 12px 0 24px; }
.photo-profile h1 { margin: 4px 0; font-size: clamp(25px,3vw,34px); }
.photo-mode { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.photo-profile .btn { margin-top: 4px; min-width: 150px; }
.photo-pack-grid,.photo-sample-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 30px 24px; }
.photo-pack-card,.photo-sample-card { min-width: 0; }
.photo-pack-card .market-cover { aspect-ratio: 4/5; }
.photo-pack-body { display: grid; gap: 8px; padding: 12px 0; }
.photo-pack-body h3 { margin: 0; font-size: 19px; font-weight: 600; }
.photo-pack-body p { margin: 0; font-size: 14px; line-height: 1.7; }
.photo-pack-footer { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-top: 8px; font-size: 13px; }
.photo-pack-footer a { min-height: 44px; display: flex; align-items: center; text-decoration: underline; text-underline-offset: 5px; }
.photo-empty-cover { height: 100%; min-height: 120px; display: flex; align-items: center; justify-content: center; background: var(--panel-soft); color: var(--muted); font-size: 13px; }
.photo-gallery-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 22px 0; }
.photo-gallery-heading > div { min-width: 0; }
.photo-gallery-heading h1 { margin: 4px 0 10px; font-weight: 600; font-size: 30px; }
.photo-gallery-heading p { margin: 6px 0; max-width: 720px; }
.photo-library-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: 14px; }
.photo-library-meta span { color: var(--muted); }
.photo-sample-grid { margin-top: 24px; grid-template-columns: repeat(4,minmax(0,1fr)); }
.photo-sample-card h2 { font-size: 16px; font-weight: 600; margin: 10px 0 4px; }
.photo-sample-card p { font-size: 13px; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.photo-fees { border-block: 1px solid var(--line); margin: 24px 0; }
.photo-fees > summary { min-height: 52px; cursor: pointer; padding: 14px 0; font-size: 14px; }
.photo-fee-body { padding: 4px 0 24px; display: grid; gap: 12px; }
.photo-fee-body h3 { font-size: 16px; margin: 8px 0; }
.photo-fee-body h4,.photo-fee-body p { margin: 6px 0; font-size: 14px; }
.photo-fee-notice { border-left: 3px solid var(--brand); padding: 8px 12px; }
.photo-studios { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 24px; }
.photo-studio-images { display: flex; gap: 8px; overflow-x: auto; }
.photo-studio-images .photo-image-button { flex: 0 0 160px; }
.photo-studio-images img { width: 160px; aspect-ratio: 4/3; object-fit: cover; }
.photo-image-button { display: block; width: 100%; padding: 0; background: transparent; border: 0; cursor: zoom-in; min-width: 0; position: relative; }
.photo-full-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; align-items: start; }
.photo-full-grid img { display: block; width: 100%; height: auto; aspect-ratio: 3/4; object-fit: contain; background: var(--panel-soft); }
.photo-image-error { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); background: var(--panel-soft); font-size: 13px; }
.photo-empty { padding: 40px 16px; text-align: center; border: 1px dashed var(--line); color: var(--muted); margin: 24px 0; }
.photo-empty h2 { color: var(--text); font-size: 19px; }
.photo-lightbox { position: fixed; inset: 0; width: 100vw; height: 100dvh; max-width: none; max-height: none; padding: 70px 64px 24px; margin: 0; border: 0; background: var(--bg); color: var(--text); }
.photo-lightbox[open] { display: flex; align-items: center; justify-content: center; }
.photo-lightbox::backdrop { background: var(--bg); }
.photo-lightbox-bar { position: absolute; top: 10px; left: 16px; right: 16px; display: flex; align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.photo-lightbox-bar > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.photo-lightbox button { min-width: 44px; min-height: 44px; }
.photo-lightbox figure { width: 100%; height: 100%; margin: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; }
.photo-lightbox img { max-width: 100%; max-height: calc(100% - 44px); object-fit: contain; min-height: 0; }
.photo-lightbox figcaption { min-height: 28px; color: var(--muted); font-size: 13px; }
.photo-viewer-prev,.photo-viewer-next { position: absolute; top: 50%; font-size: 28px; padding: 0; background: var(--bg) !important; }
.photo-viewer-prev { left: 10px; }.photo-viewer-next { right: 10px; }
.photo-consult-dialog { width: min(520px,calc(100vw - 32px)); max-height: 85dvh; overflow: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 24px; color: var(--text); }
.photo-consult-dialog::backdrop { background: #0005; }
.photo-consult-dialog textarea { min-height: 130px; margin-bottom: 12px; }
.photo-consult-dialog h3 { font-size: 16px; }
.photo-editor { padding-top: 18px; }
.photo-edit-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; position: sticky; top: 60px; z-index: 8; background: var(--bg); border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.photo-edit-toolbar > div:first-child { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; min-width: 0; }
.photo-edit-toolbar h3 { font-size: 18px; margin: 0; }
.photo-edit-toolbar .muted { max-width: 300px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 13px; }
.photo-save { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.photo-save > span { font-size: 12px; color: var(--muted); }
[data-photo-message]:empty { display: none; }
[data-photo-message] { font-size: 14px; margin-bottom: 16px; }
.photo-editor-fold { margin: 18px 0; border: 1px solid var(--line); border-radius: 6px; }
.photo-editor-fold > summary { cursor: pointer; padding: 14px 16px; min-height: 52px; font-weight: 550; }
.photo-editor-fold > div { padding: 4px 16px 18px; }
.photo-editor label { color: var(--text); }
.photo-editor .form-grid { margin: 16px 0; }
.photo-editor textarea { min-height: 85px; }
.photo-cover-editor { display: flex; align-items: center; gap: 20px; margin: 18px 0; }
.photo-cover-editor > img,.photo-cover-editor > .photo-empty-cover { width: 110px; height: 138px; object-fit: cover; flex: 0 0 110px; border-radius: 6px; }
.photo-cover-editor.avatar-editor > img,.photo-cover-editor.avatar-editor > .photo-empty-cover { width: 72px; height: 72px; flex-basis: 72px; border-radius: 50%; min-height: 72px; }
.photo-cover-editor > div { min-width: 0; }
.photo-cover-editor p { font-size: 13px; }
.photo-upload { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 12px; min-width: 0; }
.photo-upload > span { max-width: 480px; overflow-wrap: anywhere; }
.photo-upload progress { width: 130px; height: 6px; accent-color: var(--brand); }
.photo-editor-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 20px; }
.admin-product-row.photo-sort-row { display: block; padding: 12px; border: 1px solid var(--line); border-radius: 6px; background: transparent; min-width: 0; touch-action: auto; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.photo-editor-cover { aspect-ratio: 4/3; background: var(--panel-soft); }
.photo-editor-cover > img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.photo-editor-card-body { padding-top: 12px; }
.photo-editor-card-body h4 { margin: 0 0 6px; font-size: 16px; }
.photo-editor-card-body p { font-size: 13px; margin: 0 0 8px; }
.photo-row-actions,.photo-row-tools,.photo-image-actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 0; }
.photo-row-tools .btn { font-size: 12px; }
.photo-sort-help { font-size: 13px; }
.photo-image-sort-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; }
.photo-image-sort-grid .photo-image-button img { width: 100%; aspect-ratio: 3/4; object-fit: cover; display: block; }
.photo-image-card-body { padding-top: 12px; font-size: 12px; }
.photo-image-actions .btn { padding: 6px 8px; font-size: 12px; }
.photo-sort-row.product-sort-ghost { display: block !important; max-height: 360px; overflow: hidden; background: var(--bg); }
.photo-studio-editor { border-top: 1px solid var(--line); padding: 12px 0; }
.photo-studio-thumbnails { display: flex; overflow-x: auto; gap: 12px; margin: 12px 0; }
.photo-studio-thumbnails > div { flex: 0 0 120px; }
.photo-studio-thumbnails img { width: 120px; height: 90px; object-fit: cover; }
.photo-slot-list { margin-top: 16px; }
@media(min-width:1600px) { .photo-sample-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media(max-width:1100px) and (min-width:821px) { .photo-sample-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } .photo-editor-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .photo-image-sort-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media(max-width:820px) {
 .photo-pack-grid,.photo-sample-grid,.photo-full-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px 12px; }
 .photo-pack-body h3 { font-size: 16px; }.photo-pack-body p { font-size: 13px; }
 .photo-pack-footer { gap: 0; font-size: 12px; }
 .photo-gallery-heading { align-items: flex-start; flex-direction: column; margin: 16px 0; }
 .photo-gallery-heading h1 { font-size: 25px; }
 .photo-gallery-heading > .btn { width: 100%; }
 .photo-studios { grid-template-columns: 1fr; }
 .photo-lightbox { padding: 64px 4px 64px; }
 .photo-viewer-prev,.photo-viewer-next { top: auto; bottom: 10px; }
 .photo-viewer-prev { left: calc(50% - 60px); }.photo-viewer-next { right: calc(50% - 60px); }
 .photo-edit-toolbar { top: 60px; gap: 8px; flex-wrap: wrap; }
 .photo-save { gap: 8px; margin-left: auto; }
 .photo-edit-toolbar .muted { max-width: 150px; }
 .photo-edit-toolbar h3 { font-size: 16px; }
 .photo-editor-card-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
 .photo-image-sort-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
 .photo-sort-row { padding: 8px !important; }
 .photo-row-actions .btn { padding: 6px 8px; font-size: 12px; }
 .photo-cover-editor { gap: 12px; align-items: flex-start; }
 .photo-cover-editor > img,.photo-cover-editor > .photo-empty-cover { width: 82px; height: 104px; flex-basis: 82px; }
 .photo-editor input,.photo-editor select,.photo-editor textarea,.photo-consult-dialog textarea { font-size: 16px; }
 .photo-editor .section-heading { align-items: flex-start; flex-wrap: wrap; }
 .photo-editor-fold > div { padding: 0 12px 14px; }
 .photo-public .section-heading h2 { font-size: 18px; }
}

.photo-fee-label { font-size: 13px; color: var(--text); margin: 8px 0 14px; }

/* Per-page city selection and photographer availability. */
.photo-city-picker { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; grid-column:1/-1; min-width:0; }
.photo-city-picker > label { min-width:0; }
.photo-schedule { margin:24px 0; min-width:0; }
.photo-schedule > h2 { font-size:22px; }
.photo-schedule button,.photo-schedule select { min-height:44px; }
.photo-schedule .form-grid { margin:16px 0; }
.schedule-presets,.schedule-batch { display:flex; flex-wrap:wrap; align-items:center; gap:8px; }
.schedule-presets .btn,.schedule-batch .btn { font-size:13px; }
.schedule-types { border:0; padding:0; margin:18px 0; display:flex; flex-wrap:wrap; gap:8px 20px; }
.schedule-types legend { margin-bottom:6px; font-size:14px; font-weight:600; }
.schedule-types label,.schedule-week-options label,.schedule-multi { display:inline-flex; align-items:center; gap:8px; min-height:44px; font-size:14px; cursor:pointer; }
.photo-schedule input[type=checkbox] { width:18px; height:18px; min-height:18px; margin:0; padding:0; accent-color:var(--brand); flex-shrink:0; }
.schedule-week-filter { border-block:1px solid var(--line); padding:0; }
.schedule-week-filter summary { padding:12px 0; min-height:44px; cursor:pointer; font-size:14px; }
.schedule-week-options { display:flex; flex-wrap:wrap; gap:8px 18px; }
.schedule-notice,.schedule-feedback { font-size:14px; overflow-wrap:anywhere; }
.schedule-notice { border-left:3px solid var(--brand); padding:8px 12px; }
.schedule-feedback:empty { display:none; }
.schedule-sync { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0; }
.schedule-sync p { font-size:12px; color:var(--muted); flex:1; margin:0; }
.schedule-sync button { font-size:12px; flex-shrink:0; }
.schedule-layout { display:grid; grid-template-columns:minmax(0,1.1fr) minmax(0,1fr); gap:32px; margin-top:16px; align-items:start; }
.schedule-calendar,.schedule-time-panel { min-width:0; }
.schedule-month { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:12px; }
.schedule-month .btn { min-width:44px; font-size:22px; }
.schedule-week-labels,.schedule-days { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); gap:6px; }
.schedule-week-labels { text-align:center; font-size:12px; color:var(--muted); padding:6px 0 12px; }
.schedule-day { min-width:0; min-height:58px !important; border:1px solid transparent; border-radius:4px; padding:6px 1px; display:flex; flex-direction:column; align-items:center; justify-content:center; gap:3px; cursor:pointer; font:inherit; }
.schedule-day span { font-size:15px; }.schedule-day small { font-size:10px; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; max-width:100%; }
.photo-schedule .is-open { background:var(--bg); color:var(--text); border:1px solid #A9A59D; }
.photo-schedule .is-closed,.schedule-closed-hours { background:#D1D0CD; color:#55534F; }
.photo-schedule button:disabled { opacity:1; cursor:default; }
.schedule-day.is-selected { outline:2px solid var(--text); outline-offset:2px; }
.schedule-legend { display:flex; flex-wrap:wrap; gap:4px 16px; font-size:12px; color:var(--muted); margin:16px 0; }
.schedule-time-panel h4 { font-size:16px; margin:8px 0; }.schedule-time-panel p { font-size:13px; }
.schedule-times { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
.schedule-time { display:flex; align-items:center; justify-content:center; min-height:44px; border:0; border-radius:4px; font:inherit; font-size:13px; padding:6px; }
button.schedule-time { cursor:pointer; }
.schedule-closed-hours { padding:10px 12px; border-radius:4px; margin:10px 0; font-size:13px; }
.schedule-confirm { display:flex; flex-wrap:wrap; align-items:center; gap:10px; border-top:1px solid var(--line); padding-top:16px; margin-top:16px; }
.schedule-confirm > span { font-size:13px; color:var(--muted); margin-right:auto; }
.photo-legacy-slots summary { min-height:44px; padding:12px 0; cursor:pointer; font-size:13px; }
@media(max-width:820px){
 .schedule-layout { grid-template-columns:minmax(0,1fr); gap:16px; }
 .schedule-sync { align-items:flex-start; }
 .photo-city-picker { gap:12px; }
 .photo-schedule input,.photo-schedule select,.photo-city-picker select { font-size:16px; min-width:0; width:100%; }
 .photo-schedule input[type=checkbox] { width:18px; }
 .schedule-types { flex-direction:column; gap:0; }
 .schedule-confirm > span { flex-basis:100%; }
 .schedule-days { gap:5px; }
}
/* Keep drag targets stationary while lazy cover images finish loading. */
.photo-editor-cover { position:relative; overflow:hidden; }
.photo-editor-cover > img,.photo-editor-cover > .photo-empty-cover { position:absolute; inset:0; width:100%; height:100%; min-height:0; }
.photo-image-card-body > span { display:block; min-height:44px; padding:10px 0; }

.photo-schedule .schedule-time.is-open { border:1px solid #A9A59D; }

.schedule-time { flex-direction:column; gap:3px; min-height:58px; }
.schedule-time small { font-size:11px; line-height:1.2; font-weight:600; }
