.photo-award-photographer-profile {
    --pap-ink: #141414;
    --pap-muted: #66615a;
    --pap-line: #e6dfd2;
    --pap-soft: #f7f4ee;
    --pap-paper: #ffffff;
    --pap-gold: #b88a2e;
    --pap-deep: #20242a;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 64px;
    color: var(--pap-ink);
    font-family: inherit;
}

/* Plugin Theme handoff: public photographer pages inherit the active global template. */
body[class*="photo-award-global-template-"] .photo-award-photographer-profile {
    --pap-ink: var(--pa-theme-ink, #141414);
    --pap-muted: var(--pa-theme-muted, #66615a);
    --pap-line: var(--pa-theme-line, #e6dfd2);
    --pap-soft: var(--pa-theme-soft, #f7f4ee);
    --pap-paper: var(--pa-theme-surface, #ffffff);
    --pap-gold: var(--pa-theme-accent, #b88a2e);
    --pap-deep: var(--pa-theme-accent-2, #20242a);
    font-family: var(--pa-theme-body, inherit);
}

body[class*="photo-award-global-template-"] .photo-award-photographer-hero,
body[class*="photo-award-global-template-"] .photo-award-photographer-section,
body[class*="photo-award-global-template-"] .photo-award-photographer-award-card,
body[class*="photo-award-global-template-"] .photo-award-photographer-work-card,
body[class*="photo-award-global-template-"] .photo-award-photographer-profile-detail,
body[class*="photo-award-global-template-"] .photo-award-photographer-stats div {
    background: var(--pa-theme-surface, #fff) !important;
    border-color: var(--pa-theme-line, #e6dfd2) !important;
    border-radius: var(--pa-theme-radius, 0) !important;
    color: var(--pa-theme-ink, #141414);
    box-shadow: var(--pa-theme-shadow, none) !important;
}

body[class*="photo-award-global-template-"] .photo-award-photographer-hero h1,
body[class*="photo-award-global-template-"] .photo-award-photographer-section-heading h2,
body[class*="photo-award-global-template-"] .photo-award-photographer-award-card h3,
body[class*="photo-award-global-template-"] .photo-award-photographer-work-card h3 {
    color: var(--pa-theme-ink, #141414) !important;
    font-family: var(--pa-theme-display, inherit);
    letter-spacing: -0.035em;
}

body[class*="photo-award-global-template-"] .photo-award-photographer-hero__eyebrow,
body[class*="photo-award-global-template-"] .photo-award-photographer-section-heading p,
body[class*="photo-award-global-template-"] .photo-award-photographer-award-rank,
body[class*="photo-award-global-template-"] .photo-award-photographer-profile-detail span {
    color: var(--pa-theme-accent, #b88a2e) !important;
    font-family: var(--pa-theme-mono, inherit);
    letter-spacing: .12em;
}

body.photo-award-global-template-prestige-gold .photo-award-photographer-hero,
body.photo-award-global-template-prestige-gold .photo-award-photographer-section,
body.photo-award-global-template-prestige-gold .photo-award-photographer-award-card,
body.photo-award-global-template-prestige-gold .photo-award-photographer-work-card {
    border-width: 2px !important;
}

body.photo-award-global-template-prestige-gold .photo-award-photographer-hero h1,
body.photo-award-global-template-midnight-cinema .photo-award-photographer-hero h1 {
    text-transform: uppercase;
}

body.photo-award-global-template-midnight-cinema .photo-award-photographer-hero::after {
    border-color: var(--pa-theme-accent, #d4ff00);
}

body.photo-award-global-template-gallery-curator .photo-award-photographer-work-card img,
body.photo-award-global-template-gallery-curator .photo-award-photographer-award-card img {
    transition: transform .35s ease;
}

body.photo-award-global-template-gallery-curator .photo-award-photographer-work-card:hover img,
body.photo-award-global-template-gallery-curator .photo-award-photographer-award-card:hover img {
    transform: scale(1.025);
}

body.photo-award-global-template-signal-ops .photo-award-photographer-hero,
body.photo-award-global-template-signal-ops .photo-award-photographer-section {
    border-top-width: 3px !important;
}

body.photo-award-global-template-signal-ops .photo-award-photographer-hero h1,
body.photo-award-global-template-signal-ops .photo-award-photographer-section-heading h2 {
    font-style: italic;
}

/* Final absolute-header and white-surface guard. Keep this as the last block. */
html body.photo-award-public-photographer-profile-page .photo-award-photographer-profile,
html body.photo-award-public-photographers-directory-page .photo-award-photographers-directory {
    margin-top: max(170px, 12vh) !important;
}

html body.photo-award-public-photographer-profile-page .photo-award-photographer-hero,
html body.photo-award-public-photographers-directory-page .photo-award-photographers-directory__hero {
    clear: both !important;
}

html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__meta span,
html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__actions a,
html body.photo-award-public-photographers-directory-page .photo-award-photographer-card__link {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    text-shadow: none !important;
}

html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__meta span *,
html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__actions a *,
html body.photo-award-public-photographers-directory-page .photo-award-photographer-card__link * {
    color: #000000 !important;
}

@media (max-width: 782px) {
    html body.photo-award-public-photographer-profile-page .photo-award-photographer-profile,
    html body.photo-award-public-photographers-directory-page .photo-award-photographers-directory {
        margin-top: 120px !important;
    }
}

/* Absolute theme headers can float over public user pages; force the plugin page to begin below them. */
html body.photo-award-public-photographer-profile-page .photo-award-photographer-profile,
html body.photo-award-public-photographers-directory-page .photo-award-photographers-directory {
    margin-top: max(150px, 11vh) !important;
}

html body.photo-award-public-photographer-profile-page .photo-award-photographer-hero,
html body.photo-award-public-photographers-directory-page .photo-award-photographers-directory__hero {
    clear: both !important;
}

html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__meta span,
html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__actions a,
html body.photo-award-public-photographers-directory-page .photo-award-photographer-card__link {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    text-shadow: none !important;
}

html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__meta span *,
html body.photo-award-public-photographer-profile-page .photo-award-photographer-work-card__actions a *,
html body.photo-award-public-photographers-directory-page .photo-award-photographer-card__link * {
    color: #000000 !important;
}

@media (max-width: 782px) {
    html body.photo-award-public-photographer-profile-page .photo-award-photographer-profile,
    html body.photo-award-public-photographers-directory-page .photo-award-photographers-directory {
        margin-top: 110px !important;
    }
}

/* Last-mile header separation for public user/photographer pages. */
html body.photo-award-public-photographer-profile-page,
html body.photo-award-public-photographers-directory-page {
    background: var(--pa-theme-page-bg, #050505) !important;
}

html body.photo-award-public-photographer-profile-page :is(.site-content, .site-main, main, .wp-site-blocks, .entry-content),
html body.photo-award-public-photographers-directory-page :is(.site-content, .site-main, main, .wp-site-blocks, .entry-content) {
    overflow: visible !important;
}

html body.photo-award-public-photographer-profile-page .photo-award-photographer-profile,
html body.photo-award-public-photographers-directory-page .photo-award-photographers-directory {
    clear: both !important;
    position: relative !important;
    z-index: 1 !important;
    margin-top: clamp(32px, 4vw, 64px) !important;
}

/* Final public profile integration: keep theme header separate and let the selected template drive the page. */
body.photo-award-public-photographer-profile-page,
body.photo-award-public-photographers-directory-page {
    background: var(--pa-theme-page-bg, #050505) !important;
    color: var(--pa-theme-ink, #ffffff) !important;
}

body.photo-award-public-photographer-profile-page .photo-award-photographer-profile,
body.photo-award-public-photographers-directory-page .photo-award-photographers-directory {
    width: min(1180px, calc(100% - 48px)) !important;
    margin-top: 32px !important;
    background: var(--pa-theme-page-bg, transparent) !important;
    color: var(--pa-theme-ink, var(--pap-ink)) !important;
}

body.photo-award-public-photographer-profile-page .photo-award-photographer-hero,
body.photo-award-public-photographers-directory-page .photo-award-photographers-directory__hero {
    background: var(--pa-theme-surface, var(--pap-paper)) !important;
    border-color: var(--pa-theme-line, var(--pap-line)) !important;
    color: var(--pa-theme-ink, var(--pap-ink)) !important;
    overflow: visible !important;
}

body.photo-award-public-photographer-profile-page .photo-award-photographer-hero::after,
body.photo-award-public-photographers-directory-page .photo-award-photographers-directory__hero::after {
    display: none !important;
}

body.photo-award-public-photographer-profile-page .photo-award-photographer-hero__identity,
body.photo-award-public-photographer-profile-page .photo-award-photographer-profile-details,
body.photo-award-public-photographer-profile-page .photo-award-photographer-stats {
    position: relative !important;
    z-index: 2 !important;
}

/* Public photographer routes do not receive the global-template body class in v1.0.20.
   Keep them visually aligned with the new official suite without changing markup. */
body.photo-award-public-photographer-profile-page .photo-award-photographer-profile,
body.photo-award-public-photographers-directory-page .photo-award-photographers-directory {
    --pap-ink: #1d1511;
    --pap-muted: #756256;
    --pap-line: #ead6c6;
    --pap-soft: #fbf0e8;
    --pap-paper: #ffffff;
    --pap-gold: #bf5a3f;
    --pap-deep: #8c6f3f;
    font-family: "Segoe UI", Manrope, Inter, system-ui, sans-serif;
}

body.photo-award-public-photographer-profile-page .photo-award-photographer-hero,
body.photo-award-public-photographer-profile-page .photo-award-photographer-section,
body.photo-award-public-photographers-directory-page .photo-award-photographers-directory__hero,
body.photo-award-public-photographers-directory-page .photo-award-photographer-card,
body.photo-award-public-photographers-directory-page .photo-award-photographers-pagination__link {
    background: #ffffff !important;
    border-color: #ead6c6 !important;
    border-radius: 18px !important;
    box-shadow: 0 24px 44px rgba(80, 45, 28, 0.12) !important;
}

body.photo-award-public-photographer-profile-page .photo-award-photographer-hero h1,
body.photo-award-public-photographer-profile-page .photo-award-photographer-section-heading h2,
body.photo-award-public-photographers-directory-page .photo-award-photographers-directory__hero h1,
body.photo-award-public-photographers-directory-page .photo-award-photographer-card h2 {
    color: #1d1511 !important;
    font-family: Georgia, "Fraunces", serif;
    letter-spacing: -0.035em;
}

body.photo-award-public-photographer-profile-page .photo-award-photographer-hero__eyebrow,
body.photo-award-public-photographer-profile-page .photo-award-photographer-section-heading p,
body.photo-award-public-photographers-directory-page .photo-award-photographer-card__country,
body.photo-award-public-photographers-directory-page .photo-award-photographer-card__link {
    color: #bf5a3f !important;
}

.photo-award-photographer-profile *,
.photo-award-photographer-profile *::before,
.photo-award-photographer-profile *::after {
    box-sizing: border-box;
}

.photo-award-photographer-hero {
    position: relative;
    display: grid;
    gap: 28px;
    padding: clamp(28px, 5vw, 58px);
    overflow: hidden;
    border: 1px solid var(--pap-line);
    background:
        linear-gradient(135deg, rgba(184, 138, 46, 0.14), rgba(255, 255, 255, 0) 42%),
        linear-gradient(135deg, #ffffff 0%, #fbfaf7 48%, #f0eadf 100%);
    box-shadow: 0 22px 60px rgba(20, 20, 20, 0.08);
}

.photo-award-photographer-hero::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(184, 138, 46, 0.28);
    pointer-events: none;
}

.photo-award-photographer-hero__identity {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: clamp(18px, 4vw, 34px);
}

.photo-award-photographer-hero__avatar {
    width: clamp(92px, 13vw, 148px);
    height: clamp(92px, 13vw, 148px);
    flex: 0 0 auto;
    object-fit: cover;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 18px 36px rgba(20, 20, 20, 0.16);
}

.photo-award-photographer-hero__eyebrow,
.photo-award-photographer-section-heading p {
    margin: 0 0 8px;
    color: var(--pap-gold);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0;
    text-transform: uppercase;
}

.photo-award-photographer-hero h1 {
    margin: 0;
    color: var(--pap-ink);
    font-size: clamp(2rem, 5vw, 4.35rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
}

.photo-award-photographer-hero__location,
.photo-award-photographer-hero__bio {
    position: relative;
    z-index: 1;
    margin: 12px 0 0;
    color: var(--pap-muted);
    font-size: 1rem;
    line-height: 1.7;
}

.photo-award-photographer-hero__bio {
    max-width: 760px;
    margin-top: 0;
    font-size: 1.05rem;
}

.photo-award-photographer-profile-details {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.photo-award-photographer-profile-detail {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    min-height: 42px;
    padding: 8px 14px;
    border: 1px solid rgba(184, 138, 46, 0.36);
    background: rgba(255, 255, 255, 0.82);
}

.photo-award-photographer-profile-detail span {
    color: var(--pap-muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-award-photographer-profile-detail strong {
    color: var(--pap-ink);
    font-size: 0.98rem;
    font-weight: 800;
}

.photo-award-photographer-profile-detail.is-empty strong {
    color: var(--pap-muted);
    font-weight: 700;
}

.photo-award-photographer-profile-detail--with-bio {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 12px;
    padding: 14px 16px;
}

.photo-award-photographer-profile-country-row {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.photo-award-photographer-profile-bio-block {
    display: grid;
    gap: 7px;
    width: 100%;
    padding-top: 12px;
    border-top: 1px solid rgba(184, 138, 46, 0.22);
}

.photo-award-photographer-profile-detail--bio {
    align-items: flex-start;
    flex-direction: column;
    width: 100%;
    max-width: 100%;
    gap: 8px;
    padding: 14px 16px;
}

.photo-award-photographer-profile-bio {
    color: var(--pap-ink);
    font-size: 1rem;
    line-height: 1.75;
}

.photo-award-photographer-profile-bio p {
    margin: 0 0 0.75em;
}

.photo-award-photographer-profile-bio p:last-child {
    margin-bottom: 0;
}

.photo-award-photographer-stats {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.photo-award-photographer-stats div {
    min-width: 0;
    padding: 18px 20px;
    border: 1px solid rgba(32, 36, 42, 0.1);
    background: rgba(255, 255, 255, 0.78);
}

.photo-award-photographer-stats strong {
    display: block;
    color: var(--pap-deep);
    font-size: clamp(1.6rem, 3vw, 2.45rem);
    line-height: 1;
}

.photo-award-photographer-stats span {
    display: block;
    margin-top: 8px;
    color: var(--pap-muted);
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
}

.photo-award-photographer-links {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.photo-award-photographer-links a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 9px 14px;
    border: 1px solid rgba(184, 138, 46, 0.45);
    color: var(--pap-ink);
    background: #fff;
    font-size: 0.9rem;
    font-weight: 700;
    text-decoration: none;
}

.photo-award-photographer-links a:hover,
.photo-award-photographer-links a:focus {
    color: #fff;
    background: var(--pap-ink);
}

.photo-award-photographer-section {
    margin-top: 28px;
    border: 1px solid var(--pap-line);
    background: var(--pap-paper);
    box-shadow: 0 16px 42px rgba(20, 20, 20, 0.06);
}

.photo-award-photographer-about {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: clamp(22px, 4vw, 42px);
    padding: clamp(24px, 4.5vw, 46px);
}

.photo-award-photographer-about__main {
    min-width: 0;
    max-width: 820px;
}

.photo-award-photographer-about__main > p {
    margin: 0 0 10px;
    color: var(--pap-gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-award-photographer-about h2 {
    margin: 0 0 16px;
    color: var(--pap-ink);
    font-size: clamp(1.4rem, 2.8vw, 2.25rem);
    line-height: 1.12;
    letter-spacing: 0;
}

.photo-award-photographer-about__main div {
    color: var(--pap-muted);
    font-size: 1rem;
    line-height: 1.8;
}

.photo-award-photographer-about__main div p {
    margin: 0 0 14px;
}

.photo-award-photographer-about__main div p:last-child {
    margin-bottom: 0;
}

.photo-award-photographer-awards {
    margin-top: 42px;
}

.photo-award-photographer-section-heading {
    display: flex;
    justify-content: space-between;
    align-items: end;
    gap: 20px;
    margin-bottom: 22px;
}

.photo-award-photographer-section-heading h2 {
    margin: 0;
    color: var(--pap-ink);
    font-size: clamp(1.55rem, 3vw, 2.65rem);
    line-height: 1.1;
}

.photo-award-photographer-event {
    margin-top: 24px;
    border: 1px solid var(--pap-line);
    background: var(--pap-paper);
    box-shadow: 0 16px 42px rgba(20, 20, 20, 0.06);
}

.photo-award-photographer-event__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 18px;
    padding: 22px clamp(20px, 4vw, 34px);
    border-bottom: 1px solid var(--pap-line);
    background: var(--pap-deep);
    color: #fff;
}

.photo-award-photographer-event__header span {
    display: block;
    margin-bottom: 6px;
    color: #e3c777;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-award-photographer-event__header h3 {
    margin: 0;
    color: #fff;
    font-size: clamp(1.15rem, 2.4vw, 1.75rem);
    line-height: 1.2;
}

.photo-award-photographer-event__header strong {
    display: inline-grid;
    place-items: center;
    width: 48px;
    height: 48px;
    flex: 0 0 auto;
    border: 1px solid rgba(255, 255, 255, 0.28);
    color: #20242a;
    background: #e7c970;
    font-size: 1.15rem;
}

.photo-award-photographer-work-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
    padding: clamp(18px, 4vw, 34px);
    background: var(--pap-soft);
}

.photo-award-photographer-work-card {
    display: grid;
    grid-template-columns: minmax(140px, 42%) minmax(0, 1fr);
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(32, 36, 42, 0.12);
    background: #fff;
}

.photo-award-photographer-work-card__media {
    position: relative;
    min-height: 230px;
    background: #ebe6dd;
}

.photo-award-photographer-work-card__image-link {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 230px;
    cursor: zoom-in;
    text-decoration: none;
}

.photo-award-photographer-work-card__image-link:focus-visible {
    outline: 3px solid #5897be;
    outline-offset: -3px;
}

.photo-award-photographer-work-card__media img {
    width: 100%;
    height: 100%;
    min-height: 230px;
    object-fit: contain;
    display: block;
    background: #111;
    transition: filter 180ms ease, transform 180ms ease;
}

.photo-award-photographer-work-card__image-link:hover img,
.photo-award-photographer-work-card__image-link:focus img {
    filter: brightness(1.05);
    transform: scale(1.015);
}

.photo-award-photographer-work-card__placeholder {
    display: grid;
    place-items: center;
    min-height: 230px;
    color: var(--pap-muted);
    font-weight: 700;
}

.photo-award-photographer-award-badge {
    position: absolute;
    left: 14px;
    bottom: 14px;
    max-width: calc(100% - 28px);
    padding: 8px 12px;
    color: #141414;
    background: #e7c970;
    font-size: 0.82rem;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-award-photographer-award-badge.award_gold {
    background: rgba(196, 166, 60, 0.96);
    color: #fff;
}

.photo-award-photographer-award-badge.award_silver {
    background: rgba(146, 146, 169, 0.96);
    color: #fff;
}

.photo-award-photographer-award-badge.award_bronze {
    background: rgba(159, 94, 39, 0.96);
    color: #fff;
}

.photo-award-photographer-award-badge.award_honorable_mention {
    background: rgba(88, 151, 190, 0.96);
    color: #fff;
}

.photo-award-photographer-profile .photo-award-photographer-work-card__meta span,
.photo-award-photographer-profile .photo-award-photographer-work-card__meta span:where(:not(.photo-award-photographer-award-badge)) {
    background: #ffffff !important;
    border-color: #ffffff !important;
    color: #000000 !important;
    text-shadow: none !important;
}

.photo-award-photographer-work-card__body {
    min-width: 0;
    padding: clamp(18px, 3vw, 28px);
}

.photo-award-photographer-work-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 14px;
}

.photo-award-photographer-work-card__meta span {
    padding: 5px 8px;
    border: 1px solid var(--pap-line);
    color: var(--pap-muted);
    background: #fbfaf7;
    font-size: 0.76rem;
    font-weight: 700;
    text-transform: uppercase;
}

.photo-award-photographer-work-card h4 {
    margin: 0;
    color: var(--pap-ink);
    font-size: clamp(1.12rem, 2.2vw, 1.65rem);
    line-height: 1.18;
}

.photo-award-photographer-work-card p {
    margin: 14px 0 0;
    color: var(--pap-muted);
    font-size: 0.96rem;
    line-height: 1.7;
}

.photo-award-photographer-profile--not-found {
    min-height: 40vh;
}

.photo-award-photographers-directory {
    --pap-ink: #141414;
    --pap-muted: #66615a;
    --pap-line: #e6dfd2;
    --pap-soft: #f7f4ee;
    --pap-paper: #ffffff;
    --pap-gold: #b88a2e;
    --pap-deep: #20242a;
    box-sizing: border-box;
    width: min(1180px, calc(100% - 40px));
    margin: 42px auto 64px;
    color: var(--pap-ink);
    font-family: inherit;
}

.photo-award-photographers-directory *,
.photo-award-photographers-directory *::before,
.photo-award-photographers-directory *::after {
    box-sizing: border-box;
}

.photo-award-photographers-directory__hero {
    padding: clamp(28px, 5vw, 56px);
    border: 1px solid var(--pap-line);
    background:
        linear-gradient(135deg, rgba(184, 138, 46, 0.13), rgba(255, 255, 255, 0) 44%),
        linear-gradient(135deg, #ffffff 0%, #fbfaf7 50%, #f0eadf 100%);
    box-shadow: 0 22px 60px rgba(20, 20, 20, 0.08);
}

.photo-award-photographers-directory__hero p {
    margin: 0 0 10px;
    color: var(--pap-gold);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-award-photographers-directory__hero h1 {
    margin: 0;
    color: var(--pap-ink);
    font-size: clamp(2rem, 5vw, 4rem);
    line-height: 1;
    letter-spacing: 0;
}

.photo-award-photographers-directory__hero div {
    max-width: 720px;
    margin-top: 18px;
    color: var(--pap-muted);
    font-size: 1.05rem;
    line-height: 1.7;
}

.photo-award-photographers-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-top: 28px;
}

.photo-award-photographers-directory--cols-2 .photo-award-photographers-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-award-photographers-directory--cols-4 .photo-award-photographers-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.photo-award-photographer-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--pap-line);
    background: var(--pap-paper);
    box-shadow: 0 16px 42px rgba(20, 20, 20, 0.06);
}

.photo-award-photographer-card__media {
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #111;
    text-decoration: none;
}

.photo-award-photographer-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 180ms ease, filter 180ms ease;
}

.photo-award-photographer-card:hover .photo-award-photographer-card__media img,
.photo-award-photographer-card__media:focus img {
    filter: brightness(1.05);
    transform: scale(1.025);
}

.photo-award-photographer-card__body {
    padding: 22px;
}

.photo-award-photographer-card__country {
    display: inline-flex;
    margin: 0 0 10px;
    padding: 5px 8px;
    border: 1px solid rgba(184, 138, 46, 0.32);
    color: var(--pap-muted);
    background: #fbfaf7;
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
}

.photo-award-photographer-card h2 {
    margin: 0;
    font-size: clamp(1.18rem, 2vw, 1.55rem);
    line-height: 1.16;
}

.photo-award-photographer-card h2 a {
    color: var(--pap-ink);
    text-decoration: none;
}

.photo-award-photographer-card h2 a:hover,
.photo-award-photographer-card h2 a:focus {
    color: var(--pap-gold);
}

.photo-award-photographer-card__stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 18px;
}

.photo-award-photographer-card__stats span {
    min-width: 0;
    padding: 10px 8px;
    border: 1px solid var(--pap-line);
    color: var(--pap-muted);
    background: var(--pap-soft);
    font-size: 0.72rem;
    font-weight: 800;
    text-align: center;
    text-transform: uppercase;
}

.photo-award-photographer-card__stats strong {
    display: block;
    margin-bottom: 4px;
    color: var(--pap-ink);
    font-size: 1.2rem;
    line-height: 1;
}

.photo-award-photographer-card__link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    margin-top: 18px;
    padding: 10px 16px;
    border: 1px solid var(--pap-ink);
    color: #fff;
    background: var(--pap-ink);
    font-size: 0.9rem;
    font-weight: 800;
    text-decoration: none;
}

.photo-award-photographer-card__link:hover,
.photo-award-photographer-card__link:focus {
    color: var(--pap-ink);
    background: #e7c970;
    border-color: #e7c970;
}

.photo-award-photographer-work-card__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 16px;
}

.photo-award-photographer-work-card__actions a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 12px;
    border: 1px solid var(--pap-line);
    color: var(--pap-ink);
    background: #fffaf1;
    font-size: 0.78rem;
    font-weight: 800;
    text-decoration: none;
}

.photo-award-photographer-work-card__actions a:hover,
.photo-award-photographer-work-card__actions a:focus {
    color: #111;
    background: #e7c970;
    border-color: #e7c970;
}

.photo-award-photographers-directory__empty {
    margin-top: 24px;
    padding: 22px;
    border: 1px dashed var(--pap-gold);
    color: var(--pap-muted);
    background: #fffaf1;
    font-weight: 700;
}

.photo-award-photographers-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 30px;
}

.photo-award-photographers-pagination__link {
    display: inline-grid;
    place-items: center;
    min-width: 42px;
    height: 42px;
    padding: 0 12px;
    border: 1px solid var(--pap-line);
    color: var(--pap-ink);
    background: #fff;
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.photo-award-photographers-pagination__link:hover,
.photo-award-photographers-pagination__link:focus,
.photo-award-photographers-pagination__link.is-current {
    color: #111;
    background: #e7c970;
    border-color: #e7c970;
}

body.photo-award-photographer-lightbox-open {
    overflow: hidden;
}

.photo-award-photographer-lightbox {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    padding: clamp(16px, 4vw, 42px);
}

.photo-award-photographer-lightbox.is-open {
    display: flex;
}

.photo-award-photographer-lightbox__overlay {
    position: absolute;
    inset: 0;
    background: rgba(10, 10, 12, 0.86);
    backdrop-filter: blur(10px);
}

.photo-award-photographer-lightbox__dialog {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    width: min(1120px, 100%);
    max-height: min(86vh, 920px);
    padding: clamp(14px, 2.2vw, 24px);
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: #111;
    box-shadow: 0 28px 90px rgba(0, 0, 0, 0.42);
}

.photo-award-photographer-lightbox__image {
    display: block;
    width: 100%;
    max-height: calc(86vh - 104px);
    object-fit: contain;
    background: #0b0b0c;
}

.photo-award-photographer-lightbox__caption {
    min-height: 24px;
    margin: 14px 54px 0 0;
    color: rgba(255, 255, 255, 0.82);
    font-size: 0.95rem;
    line-height: 1.5;
}

.photo-award-photographer-lightbox__close {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
    display: inline-grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    font-size: 30px;
    line-height: 1;
    cursor: pointer;
}

.photo-award-photographer-lightbox__close:hover,
.photo-award-photographer-lightbox__close:focus {
    color: #111;
    background: #e7c970;
    border-color: #e7c970;
}

@media (max-width: 900px) {
    .photo-award-photographer-profile-detail--with-bio,
    .photo-award-photographer-profile-detail--bio {
        width: 100%;
        max-width: 100%;
    }

    .photo-award-photographer-profile {
        width: min(100% - 28px, 760px);
        margin-top: 28px;
    }

    .photo-award-photographers-directory {
        width: min(100% - 28px, 760px);
        margin-top: 28px;
    }

    .photo-award-photographers-grid,
    .photo-award-photographers-directory--cols-2 .photo-award-photographers-grid,
    .photo-award-photographers-directory--cols-4 .photo-award-photographers-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-award-photographer-work-grid,
    .photo-award-photographer-work-card {
        grid-template-columns: 1fr;
    }

    .photo-award-photographer-about {
        grid-template-columns: 1fr;
    }

    .photo-award-photographer-work-card__media,
    .photo-award-photographer-work-card__image-link,
    .photo-award-photographer-work-card__media img,
    .photo-award-photographer-work-card__placeholder {
        min-height: 280px;
    }
}

@media (max-width: 640px) {
    .photo-award-photographer-hero__identity {
        align-items: flex-start;
        flex-direction: column;
    }

    .photo-award-photographer-stats {
        grid-template-columns: 1fr;
    }

    .photo-award-photographer-section-heading,
    .photo-award-photographer-event__header {
        align-items: flex-start;
        flex-direction: column;
    }

    .photo-award-photographers-grid,
    .photo-award-photographers-directory--cols-2 .photo-award-photographers-grid,
    .photo-award-photographers-directory--cols-4 .photo-award-photographers-grid {
        grid-template-columns: 1fr;
    }

    .photo-award-photographer-event__header strong {
        width: auto;
        min-width: 48px;
        padding: 0 16px;
    }
}

/* Final photographer theme cascade lock. */
body[class*="photo-award-global-template-"] .photo-award-photographer-profile {
    --pap-ink: var(--pa-theme-ink, #141414);
    --pap-muted: var(--pa-theme-muted, #66615a);
    --pap-line: var(--pa-theme-line, #e6dfd2);
    --pap-soft: var(--pa-theme-soft, #f7f4ee);
    --pap-paper: var(--pa-theme-surface, #ffffff);
    --pap-gold: var(--pa-theme-accent, #b88a2e);
    --pap-deep: var(--pa-theme-accent-2, #20242a);
    font-family: var(--pa-theme-body, inherit) !important;
}

body[class*="photo-award-global-template-"] .photo-award-photographer-hero,
body[class*="photo-award-global-template-"] .photo-award-photographer-section,
body[class*="photo-award-global-template-"] .photo-award-photographer-award-card,
body[class*="photo-award-global-template-"] .photo-award-photographer-work-card,
body[class*="photo-award-global-template-"] .photo-award-photographer-profile-detail,
body[class*="photo-award-global-template-"] .photo-award-photographer-stats div {
    background: var(--pa-theme-surface, #fff) !important;
    border-color: var(--pa-theme-line, #e6dfd2) !important;
    border-radius: var(--pa-theme-radius, 0) !important;
    color: var(--pa-theme-ink, #141414) !important;
    box-shadow: var(--pa-theme-shadow, none) !important;
}

body[class*="photo-award-global-template-"] .photo-award-photographer-hero h1,
body[class*="photo-award-global-template-"] .photo-award-photographer-section-heading h2,
body[class*="photo-award-global-template-"] .photo-award-photographer-award-card h3,
body[class*="photo-award-global-template-"] .photo-award-photographer-work-card h3 {
    color: var(--pa-theme-ink, #141414) !important;
    font-family: var(--pa-theme-display, inherit) !important;
    letter-spacing: -0.035em;
}

body[class*="photo-award-global-template-"] .photo-award-photographer-hero__eyebrow,
body[class*="photo-award-global-template-"] .photo-award-photographer-section-heading p,
body[class*="photo-award-global-template-"] .photo-award-photographer-award-rank,
body[class*="photo-award-global-template-"] .photo-award-photographer-profile-detail span {
    color: var(--pa-theme-accent, #b88a2e) !important;
    font-family: var(--pa-theme-mono, inherit) !important;
    letter-spacing: .12em;
}

body.photo-award-global-template-prestige-gold .photo-award-photographer-hero,
body.photo-award-global-template-prestige-gold .photo-award-photographer-section,
body.photo-award-global-template-prestige-gold .photo-award-photographer-award-card,
body.photo-award-global-template-prestige-gold .photo-award-photographer-work-card {
    border-width: 2px !important;
}

body.photo-award-global-template-prestige-gold .photo-award-photographer-hero h1,
body.photo-award-global-template-midnight-cinema .photo-award-photographer-hero h1 {
    text-transform: uppercase;
}

body.photo-award-global-template-midnight-cinema .photo-award-photographer-hero::after {
    border-color: var(--pa-theme-accent, #d4ff00) !important;
}

body.photo-award-global-template-gallery-curator .photo-award-photographer-work-card:hover img,
body.photo-award-global-template-gallery-curator .photo-award-photographer-award-card:hover img {
    transform: scale(1.025);
}

body.photo-award-global-template-signal-ops .photo-award-photographer-hero,
body.photo-award-global-template-signal-ops .photo-award-photographer-section {
    border-top-width: 3px !important;
}

body.photo-award-global-template-signal-ops .photo-award-photographer-hero h1,
body.photo-award-global-template-signal-ops .photo-award-photographer-section-heading h2 {
    font-style: italic;
}
