.photo-author{position:absolute;left:11px;bottom:10px;z-index:2;width:30px;height:30px;padding:0;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:#152a20b8;color:#f8fbf4;box-shadow:inset 0 1px 0 #ffffff45,0 3px 12px #0002;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-size:10px;font-weight:500;letter-spacing:.1px}
.photo-author img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;border-radius:inherit}
.photo-cell:has(.photo-author) .photo-rating{left:49px;max-width:calc(100% - 60px)}
.section-heading:has(.author-filter){flex-wrap:wrap;align-items:center;gap:18px}
.section-actions:has(.author-filter){flex-wrap:wrap;row-gap:8px}
.author-filter{max-width:160px}
.lb-caption .author-detail{position:relative;left:auto;bottom:auto;display:inline-flex;align-items:center;gap:7px;width:auto;height:28px;min-width:28px;overflow:visible;border-radius:18px;margin-left:10px;padding:0 9px 0 5px;vertical-align:middle;flex-shrink:0;pointer-events:auto}
.lb-caption .author-detail>span{width:20px;text-align:center;font-size:9px}
.lb-caption .author-detail>img{left:0;width:28px;height:28px;border-radius:50%}
.author-detail small{font-size:10px;max-width:100px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.profile-avatar-row{display:flex;gap:20px;align-items:center;margin:22px 0 28px}
.profile-avatar{position:relative;width:74px;height:74px;flex-shrink:0;display:grid;place-items:center;border-radius:50%;overflow:hidden;background:var(--soft);font-size:24px;color:var(--text)}
.profile-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.profile-avatar-actions{display:flex;flex-wrap:wrap;gap:8px}
.profile-avatar-note{font-size:10px;color:var(--muted);margin-top:8px;line-height:1.6}
.header .avatar{position:relative;overflow:hidden}
.header .avatar img{position:absolute;inset:0;width:100%;height:100%;border-radius:inherit;object-fit:cover}
@media(hover:hover) and (pointer:fine){.photo-author:hover{transform:translateY(-1px);background:#263e30e0}}
@media(max-width:650px){.photo-author:not(.author-detail){width:44px;height:44px;left:5px;bottom:4px;overflow:visible;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.photo-author:not(.author-detail):before{content:'';position:absolute;inset:6px;border-radius:50%;background:#152a20b8;box-shadow:inset 0 1px 0 #ffffff45,0 3px 12px #0002;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}.photo-author:not(.author-detail)>span{position:relative}.photo-author:not(.author-detail)>img{inset:6px;width:32px;height:32px}.photo-cell:has(.photo-author) .photo-rating{left:50px}.section-actions:has(.author-filter){width:100%}.profile-avatar-actions .btn{min-height:44px}.author-detail small{display:none}.lb-caption .author-detail{width:28px;padding:0;justify-content:center}.lb-caption .author-detail>span{width:auto}}
@media(prefers-reduced-motion:reduce){.photo-author{transition:none}.photo-author:hover{transform:none}}

/* Keep the photograph quiet; contributor identity appears with its rating. */
@media(hover:hover) and (pointer:fine){
 .photo-cell>.photo-author{opacity:0;pointer-events:none;transition:opacity 140ms ease}
 .photo-cell:hover>.photo-author,.photo-cell:focus-within>.photo-author{opacity:1;pointer-events:auto}
}
@media(prefers-reduced-motion:reduce){.photo-cell>.photo-author{transition:none}}

/* One shared capture strip: author, EXIF device and Lightroom rating. */
.photo-credits{display:inline-flex;align-items:center;gap:6px;max-width:calc(100% - 20px);color:#e3edcf}
.photo-cell>.photo-credits{position:absolute;left:10px;bottom:10px;z-index:2;opacity:0;pointer-events:none;transition:opacity 140ms ease}
.photo-credits>.photo-author{position:relative;left:auto;bottom:auto;flex:0 0 30px;width:30px;height:30px;min-width:30px;min-height:30px;margin:0;overflow:hidden;background:#152a20b8;box-shadow:inset 0 1px 0 #ffffff24,0 3px 12px #0002;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.photo-credits>.photo-author:before{content:none}.photo-credits>.photo-author>img{inset:0;width:100%;height:100%}
.photo-device{display:inline-grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#152a20b8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);box-shadow:0 3px 12px #0002;color:inherit;pointer-events:auto}
.photo-device .icon{width:16px;height:16px;stroke-width:1.5}
.photo-credits>.photo-rating{position:static;left:auto;bottom:auto;margin:0;max-width:none;border-radius:20px;padding:4px 8px;background:#152a20b8;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);font-size:11px;line-height:20px;letter-spacing:1px;color:inherit;white-space:nowrap}
.photo-cell:hover>.photo-credits,.photo-cell:focus-within>.photo-credits{opacity:1;pointer-events:auto}
.lb-caption .credits-detail{display:flex;max-width:100%;margin-top:5px;pointer-events:auto}
@media(hover:none),(pointer:coarse){.photo-cell>.photo-credits{opacity:1;pointer-events:auto}.photo-credits>.photo-author{width:44px;height:44px;flex-basis:44px;min-width:44px;min-height:44px;background:transparent;box-shadow:none;backdrop-filter:none;-webkit-backdrop-filter:none}.photo-credits>.photo-author:before{content:'';inset:7px;background:#152a20b8}.photo-credits>.photo-author>img{inset:7px;width:30px;height:30px}.photo-device{width:32px;height:32px;flex-basis:32px}.photo-cell>.photo-credits{left:3px;bottom:3px;gap:2px}.photo-credits>.photo-rating{font-size:10px;letter-spacing:.5px;padding:3px 6px}}
@media(prefers-reduced-motion:reduce){.photo-cell>.photo-credits{transition:none}}

.lb-caption{overflow:visible}.lb-caption-title{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media(max-width:650px){.lb-caption .credits-detail{position:absolute;left:max(18px,env(safe-area-inset-left));top:calc(70px + env(safe-area-inset-top));max-width:calc(100vw - 36px);margin-top:0}}
/* Editing a rating remains an explicit action; capture information stays read-only. */
.photo-credits>button.photo-rating{pointer-events:auto;cursor:pointer;font-family:inherit}.photo-credits>button.photo-rating:hover{background:#263e30ee}
.photo-social{display:inline-grid;place-items:center;width:30px;height:30px;flex:0 0 30px;border-radius:50%;background:#152a20b8;color:#e3edcf;pointer-events:auto}.photo-social .icon{width:16px;height:16px}
.rating-edit{display:flex;gap:3px;margin:2px -4px}.rating-edit button{width:44px;height:44px;display:grid;place-items:center;flex-shrink:0;color:var(--muted);border-radius:50%;background:color-mix(in srgb,var(--surface) 18%,transparent)}.rating-edit .icon{width:22px;height:22px}.rating-edit .is-filled{color:var(--accent)}.rating-edit .is-filled .icon{fill:currentColor;fill-opacity:.85}.rating-edit button:hover{background:var(--soft)}
.lb-info .exif-grid>div:first-child:has(.rating-edit){grid-column:1/-1}
@media(any-pointer:coarse){.photo-social{width:44px;height:44px;flex-basis:44px}.photo-social .icon{width:18px;height:18px}}

.rating-edit .is-filled .icon path{fill:currentColor;fill-opacity:.85}

/* On phones the image is the target; metadata and rating stay in the opened photo. */
@media(max-width:650px),(hover:none),(pointer:coarse){.photo-cell>.photo-credits{display:none}}
@media(max-width:650px),(hover:none),(pointer:coarse){.photo-grid:not(.selecting) .select-box{display:none}}
