.photo-album-modal{max-width:1100px}.photo-album-toolbar{display:flex;gap:12px;flex-wrap:wrap;margin:16px 0}.photo-album-toolbar select{min-width:180px;flex:1}.photo-album-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(160px,1fr));gap:16px;margin:20px 0}.photo-album-item{position:relative;border:1px solid #ddd7cf;background:#fff;padding:10px;border-radius:16px;display:grid;gap:8px}.photo-album-item:has(input:checked){outline:2px solid #f20d20}.photo-album-item img{width:100%;aspect-ratio:1;object-fit:contain;background:#faf7f1;border-radius:10px}.photo-album-item input{position:absolute;top:16px;left:16px;width:20px;height:20px}.photo-album-item button{background:none;border:0;color:#b71925;cursor:pointer}.photo-surface-choice>span:first-child{font-size:32px;color:#f20d20;margin-right:8px}
.album-photo-editor{background:#fff;border:1px solid #ddd6cc;border-radius:22px;padding:22px;margin:24px 0}.album-photo-editor canvas{display:block;width:auto;max-width:100%;height:auto;max-height:480px;margin:20px auto;border:1px solid #999;touch-action:none;cursor:grab}.album-photo-editor p{max-width:760px;line-height:1.5}.album-photo-editor [data-photo-zoom]{width:180px}.photo-album-item [data-photo-edit]{color:#181818;font-weight:600;white-space:normal}
/* Photo editing: distinct current thumbnail and equal touch-sized crop tools. */
#photoAlbumModal .photo-album-item.photo-current{box-shadow:inset 0 0 0 3px #176ca5}
#photoAlbumModal .photo-album-item [data-photo-edit][aria-current=true]{border-color:#176ca5;background:#edf6ff;color:#12527d}
#photoAlbumModal .album-photo-editor>.photo-album-toolbar{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;align-items:stretch}
#photoAlbumModal .album-photo-editor>.photo-album-toolbar>button,#photoAlbumModal .album-photo-editor>.photo-album-toolbar>label{min-width:0;height:48px;min-height:48px;margin:0;padding:6px 8px;font-size:12px;line-height:1.25;white-space:normal;border-radius:10px}
#photoAlbumModal .album-photo-editor>.photo-album-toolbar>label{display:flex;flex-direction:column;justify-content:center;gap:2px}
#photoAlbumModal .album-photo-editor [data-photo-zoom]{min-width:0;width:100%;height:16px;min-height:0;padding:0;border:0;margin:0;background:transparent;accent-color:#f20d20}
@media(max-width:400px){#photoAlbumModal .photo-editor-workspace>.photo-editor-surface:has(>.album-photo-editor:not([hidden])){padding:6px}#photoAlbumModal .photo-editor-surface .album-photo-editor{padding:4px}#photoAlbumModal .album-photo-editor>.photo-album-toolbar{gap:5px}#photoAlbumModal .album-photo-editor>.photo-album-toolbar>button,#photoAlbumModal .album-photo-editor>.photo-album-toolbar>label{padding:6px 0;font-size:11px}}
@media(max-width:340px){#photoAlbumModal .album-photo-editor>.photo-album-toolbar>button,#photoAlbumModal .album-photo-editor>.photo-album-toolbar>label{font-size:10.5px}}
/* The account library stays visible independently of print-only templates. */
#photoAlbumModal[data-photo-mode="library"] .photo-editor-surface,#photoAlbumModal[data-photo-mode="library"] .photo-editor-settings,#photoAlbumModal[data-photo-mode="library"] [data-photo-edit]{display:none!important}
#photoAlbumModal[data-photo-mode="library"] .photo-editor-workspace{grid-template-columns:minmax(0,1fr)}
#photoAlbumModal[data-photo-mode="library"] .photo-editor-library{max-height:none;overflow:visible}
#photoAlbumModal[data-photo-mode="library"] .photo-album-grid{grid-template-columns:repeat(auto-fill,minmax(min(160px,100%),1fr))}
/* Neutral preview edge; the selected printed frame exists only inside the bitmap. */
#photoAlbumModal[data-photo-product="photo-instaprint"] #photoCompositionPreview,#photoAlbumModal[data-photo-product="photo-instaprint"] .album-photo-editor canvas{max-width:100%!important;margin:12px auto!important;box-shadow:0 0 0 1px #8d8982,0 8px 24px #0000001a!important}
#photoAlbumModal .photo-preview-frame-hint{font-size:12px;line-height:1.45;color:#625d56;margin:0 0 14px}
#photoAlbumModal #instaSlotPanel{margin-top:16px;max-height:380px;overflow:auto;overscroll-behavior:contain}
#photoAlbumModal #instaSlotPanel[hidden]{display:none!important}
#photoAlbumModal #instaSlotPanel h4{font-size:15px;margin:0 0 8px}
#photoAlbumModal #instaSlotPanel > p{font-size:12px;line-height:1.45;margin:0 0 10px}
#photoAlbumModal .insta-slot{border-top:1px solid #e1dad0;padding:10px 0;min-width:0}
#photoAlbumModal .insta-slot label{display:grid;margin:0 0 8px;font-size:13px;gap:5px}
#photoAlbumModal .insta-slot select{min-width:0;width:100%;min-height:44px;padding:8px;font-size:13px}
#photoAlbumModal .insta-slot > div{display:flex;align-items:center;flex-wrap:wrap;gap:6px}
#photoAlbumModal .insta-slot img{width:44px;height:44px;object-fit:contain;background:#f5f2eb}
#photoAlbumModal .insta-slot button{min-height:44px;min-width:0;padding:8px 10px;font-size:12px;background:#fff;border:1px solid #d8d0c5;color:#191919;border-radius:8px}

/* One editable caption per photocopied card; other photo products keep their controls. */
#photoAlbumModal #photoCardCaptionPanel{margin-top:16px;border-top:1px solid #ded7cc;padding-top:12px;min-width:0}
#photoAlbumModal #photoCardCaptionPanel[hidden]{display:none!important}
#photoAlbumModal #photoCardCaptionPanel h4{font-size:15px;margin:0 0 8px}
#photoAlbumModal #photoCardCaptionPanel p{font-size:12px;line-height:1.45}
#photoAlbumModal #photoCardCaptionPanel input{min-width:0;max-width:100%;box-sizing:border-box;min-height:44px}
#photoAlbumModal #photoCardCaptionPanel input[type=text]{width:100%}
#photoAlbumModal [data-caption-status]{color:#b71925}

#photoCardTextBlocks{border-top:1px solid #ded8ce;margin-top:18px;padding-top:12px}#photoCardTextBlocks label{display:grid;gap:5px;margin:10px 0}#photoCardTextBlocks input,#photoCardTextBlocks select,#photoCardTextBlocks textarea{width:100%;min-width:0;box-sizing:border-box;min-height:44px}#photoCardTextBlocks button{min-height:44px;padding:8px 12px;border:1px solid #ded8ce;border-radius:8px;background:#fff}#photoCardTextBlocks .card-block-coordinates{display:grid;grid-template-columns:1fr 1fr;gap:8px}#photoCardTextBlocks [data-block-status]{color:#a90019;font-size:13px}
