/* Individual portraits share the invitation palette while retaining each theme's composition. */
.profile-image-viewport{position:relative;display:block;width:100%;aspect-ratio:4/5;overflow:hidden;border-radius:inherit;background:var(--bg,#eeeee6)}
.profile-image-viewport img,body[data-design=cinema] .individual-portrait .profile-image-viewport img{display:block;position:static;width:100%;height:100%;max-width:none;object-fit:var(--photo-fit,cover)!important;object-position:var(--photo-x,50%) var(--photo-y,28%)!important;transform:scale(var(--photo-zoom,1));transform-origin:var(--photo-x,50%) var(--photo-y,28%);border-radius:0;user-select:none}
.profile-editor-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px;margin-top:28px}.profile-editor{padding:24px;border:1px solid var(--line,#dfe5dc);border-radius:18px;background:#fbfcf9;min-width:0}.profile-editor-heading h3{margin:7px 0 22px;font-size:22px}.profile-upload{display:flex;align-items:center;flex-wrap:wrap;gap:12px;margin-bottom:22px}.profile-upload-preview{flex:0 0 100%;height:230px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:#eaf0e5;border-radius:100px 100px 14px 14px;overflow:hidden;color:#687960}.profile-upload-preview img{width:100%;height:100%;object-fit:cover;object-position:center 28%}.profile-upload-preview>span{font:48px Georgia}.profile-remove{border:0;background:none;color:#925348;padding:8px}.profile-editor .field:last-child{margin-bottom:0}.profile-editor textarea{min-height:110px}
.person-card{min-width:0}.person-caption{display:block;font-size:10px;letter-spacing:.26em;text-transform:uppercase;margin-bottom:12px;opacity:.72}.person-photo{position:relative;aspect-ratio:4/5;width:100%;max-width:290px;margin:0 auto 30px;padding:9px;border:1px solid currentColor;border-radius:48% 48% 8px 8px}.person-photo img{display:block;width:100%;height:100%;object-fit:cover;object-position:center 28%;border-radius:inherit}.person-photo>span{position:absolute;bottom:-14px;left:calc(50% - 15px);width:30px;height:30px;display:grid;place-items:center;background:var(--bg,#f7f4ec);border-radius:50%;font-size:23px}.person-copy h3{overflow-wrap:anywhere}.person-copy p{white-space:pre-line}.couple.has-profile-photos{align-items:center;gap:28px}.has-profile-photos>.amp{opacity:.65}.has-profile-photos .person-copy h3{font-size:clamp(23px,3vw,34px);line-height:1.3;margin:12px 0}.has-profile-photos .person-copy p{line-height:1.8}
body[data-layout=editorial] .person-photo{border-radius:0;padding:0;border:0;box-shadow:12px 12px 0 color-mix(in srgb,currentColor 12%,transparent)}body[data-layout=postcard] .person-photo{border-radius:3px;padding:10px 10px 32px;background:#fff;border:0;box-shadow:0 12px 28px #0002;transform:rotate(-3deg)}body[data-layout=postcard] .person-card:last-child .person-photo{transform:rotate(3deg)}body[data-layout=postcard] .person-photo>span{display:none}body[data-layout=heritage] .person-photo{border-radius:45% 45% 3px 3px;border-style:double;border-width:4px}body[data-layout=artdeco] .person-photo{border-radius:0;clip-path:polygon(14% 0,86% 0,100% 10%,100% 90%,86% 100%,14% 100%,0 90%,0 10%)}body[data-design=minimal] .has-profile-photos .person-card{margin:36px 0}
body[data-design=cinema] .cinema-portrait.individual-portrait img{width:100%;left:0;object-position:center 28%}
@media(max-width:650px){.profile-editor-grid{grid-template-columns:1fr}.profile-editor{padding:20px}.profile-upload-preview{height:280px}.couple.has-profile-photos{grid-template-columns:1fr;gap:26px}.person-photo{max-width:260px}.has-profile-photos>.amp{font-size:38px;margin:0}.has-profile-photos .person-copy h3{font-size:29px}.person-card{padding:0 8px}}
/* Fixed image ratio keeps the crop identical across screen sizes and themes. */
.person-photo{aspect-ratio:auto}.profile-upload-preview.has-crop{height:auto;max-width:280px;margin:0 auto;border-radius:0;overflow:visible;background:none}.profile-upload-preview.has-crop .profile-image-viewport{border:1px solid #c3ceba;border-radius:3px;touch-action:none;cursor:grab}.profile-upload-preview.has-crop .profile-image-viewport:active{cursor:grabbing}.crop-controls{margin:0 0 24px;padding:16px;border:1px solid #dfe5dc;border-radius:12px;background:#fff}.crop-controls label{display:block;margin:12px 0;font-size:12px}.crop-controls input[type=range]{display:block;width:100%;padding:0;min-height:30px;accent-color:#285b49;cursor:pointer}.crop-controls output{float:right;color:#285b49;font-variant-numeric:tabular-nums}.crop-controls button{font-size:11px;padding:9px}.crop-controls .small{font-size:11px}.crop-controls select{margin-top:7px}.profile-editor:has(.has-crop){align-self:start}
body[data-design=cinema] .cinema-portrait.individual-portrait{height:auto;overflow:hidden}body[data-design=cinema] .individual-portrait .profile-image-viewport{background:#242424}
