/* Personal favorites: a quiet action row below the picture, without public counts. */
.photo-favorite-unit{display:block;min-width:0;max-width:100%;box-sizing:border-box}
.photo-favorite-unit>[data-photo-favorite-host]{max-width:100%}
.photo-favorite-unit>button[data-photo-favorite-host],.photo-favorite-unit>a[data-photo-favorite-host]{display:block;width:100%;box-sizing:border-box}
.photo-favorite-unit>img[data-photo-favorite-host],.photo-favorite-unit>picture[data-photo-favorite-host]{display:block}
.photo-favorite-unit[hidden],.photo-favorite-unit:has(>[data-photo-favorite-host][hidden]){display:none!important}
.photo-favorite-rail{display:flex;align-items:center;justify-content:flex-end;gap:8px;width:100%;min-height:44px;padding:0;margin:0;box-sizing:border-box;background:transparent;border:0;position:static;transform:none;pointer-events:auto}
.photo-favorite-rail[hidden],.photo-favorite[hidden]{display:none!important}
.photo-favorite{box-sizing:border-box;display:inline-flex!important;align-items:center;justify-content:center;gap:6px;width:44px;height:44px;min-width:44px;min-height:44px;flex:0 0 auto;padding:0!important;margin:0!important;border:0!important;border-radius:0;background:transparent!important;color:inherit;font:12px/1.2 Arial,sans-serif;box-shadow:none!important;text-shadow:none;position:static!important;inset:auto!important;transform:none!important;opacity:1;visibility:visible;cursor:pointer;pointer-events:auto;transition:color .15s ease}
.photo-favorite-heart{display:block;font-size:25px;font-weight:400;line-height:1}
.photo-favorite-label{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.photo-favorite[aria-pressed=true],.photo-favorite[aria-pressed=mixed],.photo-favorite:hover{color:#d53540}
.photo-favorite:focus-visible,.photo-favorites-bar button:focus-visible{outline:2px solid currentColor;outline-offset:-3px}
.photo-favorite:disabled{opacity:.45;cursor:wait}
.photo-favorite-rail[data-photo-favorite-rail-type=collage]{justify-content:flex-start;flex-wrap:wrap}
.photo-favorite-rail[data-photo-favorite-rail-type=collage] .photo-favorite{width:auto;min-width:80px}
.photo-favorite-reference{display:block;width:36px;height:28px;object-fit:contain;order:-1;pointer-events:none}
.photo-favorite-status{max-width:min(540px,calc(100% - 24px));padding:8px 12px;background:#0c0d10f2;color:#f2f0eb;font:12px/1.6 Arial,sans-serif;border-left:2px solid #d53540;pointer-events:none}
.photo-favorite-status[hidden],.photo-favorites-empty[hidden]{display:none!important}
.photo-favorite-page-status{position:fixed;left:12px;bottom:12px;z-index:10000;margin:0;max-width:min(540px,calc(100vw - 24px))}
.photo-favorite-viewer-status{position:absolute;left:0;bottom:calc(100% + 8px);width:max-content;max-width:calc(100vw - 48px);margin:0;z-index:40}
.photo-favorite-rail[data-photo-favorite-rail-type=viewer]{position:relative;min-height:44px;flex-shrink:0}
.media-viewer .viewer-stage{height:calc(100dvh - 150px);max-height:calc(100dvh - 150px)}
#clients-photo-viewer .clients-viewer-stage{max-height:calc(100dvh - 180px)}
.photo-favorites-bar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin:0 0 22px;font:12px/1.5 Arial,sans-serif}
.photo-favorites-bar button{min-height:44px;padding:9px 14px;border:1px solid #74716c;color:inherit;background:transparent;cursor:pointer;font:inherit}
.photo-favorites-bar button[aria-pressed=true]{border-color:#d53540;box-shadow:inset 0 -2px #d53540}
.photo-favorites-empty{font:14px/1.8 Arial,sans-serif;color:#c5c1b9;padding:28px 0;max-width:680px}
.stories-grid>[hidden],.clients-grid>[hidden]{display:none!important}
.clients-main .photo-favorites-empty{color:#62625b}
.clients-main .photo-favorite{color:#202124}
.clients-main .photo-favorite[aria-pressed=true],.clients-main .photo-favorite[aria-pressed=mixed],.clients-main .photo-favorite:hover{color:#d53540}
@media(max-width:640px){.photo-favorite-status{font-size:11px}.photo-favorites-bar{gap:7px;font-size:11px}.photo-favorites-bar button{padding:9px 12px}}
@media(prefers-reduced-motion:reduce){.photo-favorite{transition:none}}

/* Leave the mobile viewer’s next-photo control clear of the favorite action. */
@media(max-width:640px){.media-viewer.viewer-photo-navigation>.photo-favorite-rail[data-photo-favorite-rail-type=viewer]{padding-right:60px}}

/* Keep the portfolio viewer’s picture, caption and action row inside the screen. */
.lightbox[open]{display:flex;flex-direction:column}
.lightbox[open]>img{flex:1 1 auto;min-height:0;height:0!important;object-fit:contain}
.lightbox[open]>:not(img){flex-shrink:0}

/* Preserve the original social profile photo width inside favorite rows. */
.social-footer-intro nav>.photo-favorite-unit:has(>a.social-photo-link[data-photo-favorite-host]){width:min(100%,300px)}
@media(max-width:640px){.social-footer-intro nav>.photo-favorite-unit:has(>a.social-photo-link[data-photo-favorite-host]){width:100%}}
