.nweco-samples { margin: .5rem 0 1.25rem; min-width: 0; }
.nweco-samples h3 { margin: 0 0 .55rem; color: #f8edf1; font: inherit; font-size: .95rem; font-weight: 600; }
.nweco-samples__strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: clamp(4px, 1vw, 10px); max-width: 52rem; }
.nweco-samples .nweco-samples__photo { display: block; min-width: 0; max-width: 100%; border-radius: 8px; overflow: hidden; background: #211a1d; }
.nweco-samples__photo > img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.nweco-samples__photo:focus-visible { outline: 2px solid #ffbdd6; outline-offset: 2px; }
.wp-block-gallery img[id^="nweco-photo-"] { scroll-margin-block-start: clamp(1.5rem, 9vh, 6rem); }
.wp-block-gallery img[id^="nweco-photo-"]:target { outline: 2px solid #ffbcd4; outline-offset: -2px; }

/* Public creators share the compact identity layout and retain their own media and navigation. */
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) {
    --np-accent: #f1b7cb;
    --np-tint: #481b2c;
    --np-panel-alt: #271d22;
}
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) > .nwpub-cover {
    min-height: 0;
    height: clamp(8rem, 14vw, 12rem);
    background-color: #28151e;
}
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) > .nwpub-cover.is-empty {
    display: none;
}
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) > .nwpub-identity {
    padding: clamp(12px, 2vw, 24px);
    margin: 0;
    gap: 10px 16px;
    border-radius: 14px;
    align-self: stretch;
    align-content: center;
    background: #21181d;
    color: #fff;
}
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) > .nwpub-cover:not(.is-empty) + .nwpub-identity {
    background: linear-gradient(100deg, rgb(14 8 11 / .91), rgb(14 8 11 / .67));
}
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) .nwpub-identity .nwpub-avatar {
    border: 0;
    border-radius: 50%;
    background: #61182f;
    color: white;
}
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) .nwpub-identity .nwpub-avatar > img {
    padding: 0;
    width: 100%; height: 100%; object-fit: cover;
}
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) .nwpub-section-nav { gap: 6px; padding-block: 6px; }
body.nwpub-page.nweco-photographer-portfolio #nwpub-albums { min-width: 0; }
body.nwpub-page.nweco-photographer-portfolio .nweco-work { margin: 0; }
body.nwpub-page.nweco-photographer-portfolio .nweco-work h2 { margin: 0 0 .7rem; font-size: clamp(1.21rem, 3vw, 1.65rem); color: #fff; }
body.nwpub-page.nweco-photographer-portfolio .nweco-work__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
body.nwpub-page.nweco-photographer-portfolio .nweco-work a.nweco-work__album {
    display: block;
    max-width: none;
    border: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #251c21;
    color: #fff;
}
body.nwpub-page.nweco-photographer-portfolio .nweco-work__album .nweco-work__cover,
body.nwpub-page.nweco-photographer-portfolio .nweco-work__album .nweco-work__placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    padding: 0;
}
.nweco-work__cover { display: block; }
.nweco-work__placeholder { display: grid; place-items: center; color: #f3d4df; background: #481d2e; }
.nweco-work__album > span:last-child { display: block; padding: .75rem .9rem; line-height: 1.3; }
.nweco-work__empty { margin: 0; color: #d6c7cd; }
.nweco-work .nweco-samples { margin: 1.4rem 0 0; }
@media (max-width: 620px) {
    body.nwpub-page.nweco-photographer-portfolio .nweco-work__grid { grid-template-columns: minmax(0, 1fr); }
    body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) .nwpub-identity .nwpub-avatar { width: 58px; margin: 0; }
    body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) > .nwpub-identity {
        display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center;
    }
    body.nwpub-page.nweco-photographer-portfolio .nwpub-identity .nwpub-identity-copy { min-width: 0; width: auto; padding: 0; }
    body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) .nwpub-identity h1 { font-size: clamp(1.35rem, 6vw, 1.92rem); overflow-wrap: anywhere; }
    body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) .nwpub-identity-actions { grid-column: 1 / -1; justify-content: flex-start; }
}

body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) { display: grid; grid-template-columns: minmax(0, 1fr); }
body.nwpub-page .nwpub-profile:is([data-profile-kind="photographer"], [data-profile-kind="artist"]) > :is(.nwpub-cover, .nwpub-identity) { grid-area: 1 / 1; }
body.nwpub-page.nweco-photographer-portfolio:has(.nweco-work__album) #nwpub-albums > .nwpub-quiet-empty,
body.nwpub-page.nweco-photographer-portfolio:has(.nweco-samples__photo) #nwpub-portfolio > .nwpub-quiet-empty { display: none; }

body.nwpub-page.nweco-photographer-preview .nwpub-main {
    width: 100%; max-width: 430px; margin-inline: auto; padding-inline: 12px; box-sizing: border-box;
}
body.nwpub-page.nweco-photographer-preview .nwpub-main .nwpub-profile > .nwpub-identity {
    grid-template-columns: auto minmax(0, 1fr); padding: 12px; align-items: center;
}
body.nwpub-page.nweco-photographer-preview .nwpub-profile .nwpub-identity-copy { width: auto; min-width: 0; padding: 0; }
body.nwpub-page.nweco-photographer-preview .nwpub-profile .nwpub-identity .nwpub-avatar { width: 58px; }
body.nwpub-page.nweco-photographer-preview .nwpub-profile .nwpub-identity h1 { font-size: 1.55rem; overflow-wrap: anywhere; }
body.nwpub-page.nweco-photographer-preview .nwpub-profile .nwpub-identity-actions { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; min-width: 0; }
body.nwpub-page.nweco-photographer-preview .nwpub-main .nwpub-detail-layout,
body.nwpub-page.nweco-photographer-preview .nweco-work__grid { grid-template-columns: minmax(0, 1fr); }
body.nwpub-page.nweco-photographer-preview .nwpub-main .nwpub-detail-layout { padding-inline: 0; gap: 1rem; }
body.nwpub-page.nweco-photographer-preview .nwpub-main .nwpub-section-nav { min-width: 0; overflow-x: auto; }

.nweco-links[data-entity="album"] .nweco-detail-cover {
    display: block; width: 100%; max-width: 40rem; max-height: 25rem;
    margin: .75rem 0; border-radius: .65rem; object-fit: contain; object-position: left;
}

/* The photographer's order is also the reading order for the contact block. */
body.nwpub-page .nwpub-profile.nweco-photo-order .nwpub-detail-layout { grid-template-columns: minmax(0, 1fr); }
body.nwpub-page .nwpub-profile.nweco-photo-order .nwpub-detail-aside { display: none; }
body.nwpub-page .nwpub-profile.nweco-photo-order .nwpub-detail-content > #nwpub-contact { position: static; }
body.nwpub-page .nwpub-profile.nweco-photo-order #nwpub-portfolio > .nweco-samples { margin: .75rem 0 0; }
