.saphoto-directory,
.saphoto-profile,
.saphoto-submit-form {
    box-sizing: border-box;
    width: 100%;
}

.saphoto-directory *,
.saphoto-profile *,
.saphoto-submit-form * {
    box-sizing: border-box;
}

.saphoto-directory {
    border-top: 4px solid #4f46e5;
    padding-top: 1.25rem;
}

.saphoto-directory-tools {
    display: flex;
    flex-wrap: wrap;
    gap: .8rem;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 1.25rem;
    padding: 1rem;
    border: 1px solid rgba(120, 120, 160, .22);
    border-radius: 20px;
    background: rgba(255, 255, 255, .72);
    backdrop-filter: blur(10px);
    box-shadow: 0 10px 30px rgba(31, 41, 55, .08);
}

.saphoto-directory-tools input,
.saphoto-directory-tools select,
.saphoto-submit-form input,
.saphoto-submit-form select,
.saphoto-submit-form textarea {
    width: 100%;
    border: 1px solid rgba(120, 120, 160, .35);
    border-radius: 14px;
    padding: .78rem .9rem;
    background: #fff;
    color: #111827;
    min-height: 44px;
}

.saphoto-submit-form input[type="checkbox"],
.saphoto-submit-form input[type="radio"] {
    width: 18px;
    min-width: 18px;
    height: 18px;
    min-height: 18px;
    padding: 0;
    margin: 0 .45rem 0 0;
    border-radius: 5px;
    vertical-align: middle;
    accent-color: var(--saphoto-accent, #4f46e5);
    box-shadow: none;
}

.saphoto-submit-form input[type="file"] {
    min-height: 52px;
}

.saphoto-submit-form small,
.saphoto-upload-guidance {
    display: block;
    margin-top: .45rem;
    color: #4b5563;
    font-size: .88rem;
    line-height: 1.45;
}

.saphoto-upload-guidance {
    margin: .65rem 0 0;
    padding: .8rem .9rem;
    border: 1px solid rgba(79, 70, 229, .16);
    border-radius: 16px;
    background: rgba(79, 70, 229, .06);
}

.saphoto-consent,
.saphoto-current-gallery-grid label span {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
}

.saphoto-current-gallery-grid label span input[type="checkbox"] {
    margin-right: .25rem;
}

.saphoto-directory-tools input {
    flex: 1 1 280px;
}

.saphoto-directory-tools select {
    flex: 0 1 210px;
}

.saphoto-card-grid {
    display: grid;
    gap: 1.2rem;
}

.saphoto-layout-grid.saphoto-columns-1 .saphoto-card-grid {
    grid-template-columns: 1fr;
}

.saphoto-layout-grid.saphoto-columns-2 .saphoto-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.saphoto-layout-grid.saphoto-columns-3 .saphoto-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.saphoto-layout-grid.saphoto-columns-4 .saphoto-card-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.saphoto-layout-list .saphoto-card-grid {
    grid-template-columns: 1fr;
}

.saphoto-card {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(120, 120, 160, .25);
    border-radius: 24px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
    box-shadow: 0 18px 45px rgba(15, 23, 42, .10);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.saphoto-card:hover {
    transform: translateY(-4px);
    border-color: rgba(79, 70, 229, .35);
    box-shadow: 0 25px 60px rgba(15, 23, 42, .16);
}

.saphoto-card-image {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: radial-gradient(circle at top left, #dbeafe 0, #eef2ff 42%, #f8fafc 100%);
    color: #1e1b4b;
    text-decoration: none;
}

.saphoto-card-image img,
.saphoto-profile-photo img,
.saphoto-gallery-grid img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.saphoto-card-placeholder,
.saphoto-profile-placeholder {
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    font-size: clamp(2rem, 6vw, 4.5rem);
    font-weight: 800;
    letter-spacing: .04em;
}

.saphoto-status {
    position: absolute;
    left: 1rem;
    bottom: 1rem;
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    border-radius: 999px;
    padding: .35rem .75rem;
    font-size: .78rem;
    font-weight: 800;
    background: #111827;
    color: #fff;
    box-shadow: 0 10px 22px rgba(0, 0, 0, .2);
}

.saphoto-status-open {
    background: #047857;
}

.saphoto-status-limited {
    background: #b45309;
}

.saphoto-status-ask {
    background: #4f46e5;
}

.saphoto-status-closed {
    background: #b91c1c;
}

.saphoto-card-body {
    padding: 1.15rem;
}

.saphoto-card h3,
.saphoto-profile h1,
.saphoto-profile h2,
.saphoto-submit-form h2 {
    margin-top: 0;
    line-height: 1.12;
}

.saphoto-card h3 {
    margin-bottom: .3rem;
    font-size: 1.25rem;
}

.saphoto-card h3 a {
    color: inherit;
    text-decoration: none;
}

.saphoto-tagline,
.saphoto-profile-tagline {
    color: #4b5563;
    margin: 0 0 .75rem;
}

.saphoto-card-excerpt {
    color: #374151;
    margin: .75rem 0 1rem;
}

.saphoto-chip-row,
.saphoto-link-row,
.saphoto-profile-meta {
    display: flex;
    flex-wrap: wrap;
    gap: .45rem;
    align-items: center;
}

.saphoto-chip,
.saphoto-profile-meta span {
    display: inline-flex;
    align-items: center;
    border: 1px solid rgba(79, 70, 229, .18);
    border-radius: 999px;
    padding: .28rem .65rem;
    font-size: .78rem;
    font-weight: 700;
    color: #3730a3;
    background: #eef2ff;
}

.saphoto-mini-link,
.saphoto-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    text-decoration: none;
    font-weight: 800;
    line-height: 1;
    transition: transform .16s ease, box-shadow .16s ease;
}

.saphoto-mini-link {
    padding: .45rem .7rem;
    border: 1px solid rgba(17, 24, 39, .12);
    color: #111827;
    background: #fff;
    font-size: .82rem;
}

.saphoto-mini-link:hover,
.saphoto-button:hover {
    transform: translateY(-1px);
}

.saphoto-button {
    margin-top: .95rem;
    padding: .75rem 1rem;
    background: #4f46e5;
    color: #fff !important;
    box-shadow: 0 12px 26px rgba(79, 70, 229, .28);
}

.saphoto-button-large {
    border: 0;
    cursor: pointer;
    min-height: 48px;
    padding-left: 1.25rem;
    padding-right: 1.25rem;
}

.saphoto-profile-hero {
    display: grid;
    grid-template-columns: minmax(220px, 360px) minmax(0, 1fr);
    gap: 1.6rem;
    align-items: stretch;
    margin-bottom: 1.5rem;
    padding: clamp(1rem, 3vw, 2rem);
    border: 1px solid rgba(120, 120, 160, .22);
    border-radius: 30px;
    background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
    box-shadow: 0 20px 55px rgba(15, 23, 42, .10);
}

.saphoto-profile-photo {
    overflow: hidden;
    min-height: 280px;
    border-radius: 24px;
    background: radial-gradient(circle at top left, #dbeafe 0, #eef2ff 42%, #f8fafc 100%);
}

.saphoto-profile-intro {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: .65rem;
}

.saphoto-kicker {
    margin: 0;
    color: #4f46e5;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
    font-size: .8rem;
}

.saphoto-profile h1 {
    margin-bottom: 0;
    font-size: clamp(2rem, 5vw, 4rem);
}

.saphoto-profile h2 {
    font-size: 1.35rem;
}

.saphoto-profile-sections {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 340px);
    gap: 1.25rem;
}

.saphoto-profile-main,
.saphoto-profile-side,
.saphoto-profile-gallery,
.saphoto-submit-form {
    border: 1px solid rgba(120, 120, 160, .22);
    border-radius: 24px;
    padding: clamp(1rem, 3vw, 1.4rem);
    background: #fff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.saphoto-gear-list {
    display: grid;
    gap: .85rem;
}

.saphoto-gear-item {
    border-radius: 18px;
    padding: .9rem;
    background: #f8fafc;
    border: 1px solid rgba(120, 120, 160, .18);
}

.saphoto-gear-item strong,
.saphoto-gear-item span {
    display: block;
}

.saphoto-gear-item strong {
    margin-bottom: .25rem;
    color: #111827;
}

.saphoto-gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .8rem;
}

.saphoto-gallery-grid a {
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border-radius: 18px;
    background: #eef2ff;
}

.saphoto-submit-form {
    max-width: 980px;
    margin: 0 auto;
}

.saphoto-form-grid,
.saphoto-admin-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.saphoto-submit-form label {
    display: grid;
    gap: .35rem;
    font-weight: 800;
    color: #111827;
}

.saphoto-submit-form span {
    color: #b91c1c;
}

.saphoto-consent {
    display: flex !important;
    flex-direction: row;
    align-items: flex-start;
    gap: .55rem;
    font-weight: 600 !important;
}

.saphoto-consent input {
    width: auto;
    min-height: auto;
    margin-top: .2rem;
}

.saphoto-notice {
    margin: 0 0 1rem;
    border-radius: 18px;
    padding: 1rem;
    background: #ecfdf5;
    color: #065f46;
    font-weight: 800;
}

.saphoto-honey,
.saphoto-sr-only {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.saphoto-empty {
    padding: 1rem;
    border-radius: 18px;
    background: #f8fafc;
}

.saphoto-gallery-preview {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .6rem 0;
}

.saphoto-gallery-preview img {
    width: 90px;
    height: 90px;
    object-fit: cover;
    border-radius: 10px;
}

.saphoto-profile-hidden {
    display: none !important;
}

@media (max-width: 980px) {
    .saphoto-layout-grid.saphoto-columns-3 .saphoto-card-grid,
    .saphoto-layout-grid.saphoto-columns-4 .saphoto-card-grid,
    .saphoto-profile-sections {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 720px) {
    .saphoto-layout-grid.saphoto-columns-2 .saphoto-card-grid,
    .saphoto-layout-grid.saphoto-columns-3 .saphoto-card-grid,
    .saphoto-layout-grid.saphoto-columns-4 .saphoto-card-grid,
    .saphoto-profile-hero,
    .saphoto-profile-sections,
    .saphoto-form-grid,
    .saphoto-admin-grid,
    .saphoto-gallery-grid {
        grid-template-columns: 1fr;
    }

    .saphoto-directory-tools {
        display: grid;
    }
}

/* Profile builder upgrades */
.saphoto-profile-builder {
    position: relative;
    overflow: hidden;
    padding: 0;
    background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.saphoto-profile-builder::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 9px;
    background: linear-gradient(90deg, #4f46e5, #06b6d4, #a855f7);
}

.saphoto-form-hero {
    padding: clamp(1.2rem, 4vw, 2rem);
    border-bottom: 1px solid rgba(120, 120, 160, .18);
    background: radial-gradient(circle at top right, rgba(79, 70, 229, .16), transparent 35%), linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.saphoto-form-hero h2 {
    margin-bottom: .45rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.saphoto-form-hero p:last-child {
    max-width: 760px;
    margin-bottom: 0;
    color: #374151;
}

.saphoto-form-section {
    padding: clamp(1rem, 3vw, 1.5rem);
    border-bottom: 1px solid rgba(120, 120, 160, .16);
}

.saphoto-form-section:last-child {
    border-bottom: 0;
}

.saphoto-section-heading {
    display: flex;
    gap: .9rem;
    align-items: flex-start;
    margin-bottom: 1rem;
}

.saphoto-section-heading > span {
    display: inline-grid;
    place-items: center;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    border-radius: 999px;
    background: #4f46e5;
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(79, 70, 229, .28);
}

.saphoto-section-heading h3 {
    margin: 0 0 .15rem;
    font-size: 1.25rem;
}

.saphoto-section-heading p {
    margin: 0;
    color: #4b5563;
}

.saphoto-form-grid-wide p {
    min-width: 0;
}

.saphoto-submit-form small {
    display: block;
    margin-top: .35rem;
    color: #4b5563;
    font-weight: 700;
}

.saphoto-upload-section {
    background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.saphoto-upload-preview {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .65rem;
    margin-top: .9rem;
}

.saphoto-upload-preview img {
    display: block;
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 16px;
    border: 1px solid rgba(120, 120, 160, .2);
    box-shadow: 0 12px 25px rgba(15, 23, 42, .08);
}

.saphoto-submit-footer {
    background: #ffffff;
}

.saphoto-photo-count {
    position: absolute;
    right: 1rem;
    top: 1rem;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: .32rem .7rem;
    font-size: .78rem;
    font-weight: 900;
    color: #111827;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}

.saphoto-gallery-heading {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: end;
    margin-bottom: .9rem;
}

.saphoto-gallery-heading h2,
.saphoto-gallery-heading p {
    margin: 0;
}

.saphoto-gallery-heading p {
    color: #4b5563;
    font-weight: 800;
}

.saphoto-profile-gallery {
    margin-top: 1.25rem;
}

.saphoto-profile-gallery .saphoto-gallery-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.saphoto-profile-gallery .saphoto-gallery-grid a:first-child {
    grid-column: span 2;
    grid-row: span 2;
}

.saphoto-profile-gallery .saphoto-gallery-grid a:hover img {
    transform: scale(1.04);
}

.saphoto-profile-gallery .saphoto-gallery-grid img {
    transition: transform .22s ease;
}

.saphoto-quick-list {
    display: grid;
    gap: .75rem;
    margin-bottom: 1.1rem;
}

.saphoto-quick-list div {
    border-radius: 18px;
    padding: .9rem;
    background: #eef2ff;
    border: 1px solid rgba(79, 70, 229, .16);
}

.saphoto-quick-list strong,
.saphoto-quick-list span {
    display: block;
}

.saphoto-quick-list strong {
    color: #312e81;
    margin-bottom: .2rem;
}

@media (max-width: 980px) {
    .saphoto-profile-gallery .saphoto-gallery-grid,
    .saphoto-upload-preview {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 720px) {
    .saphoto-gallery-heading {
        display: block;
    }

    .saphoto-profile-gallery .saphoto-gallery-grid a:first-child {
        grid-column: auto;
        grid-row: auto;
    }
}

/* Version 1.2.0: matched card system for Photographer and Subject Profiles */
.saphoto-directory,
.saphoto-submit-form,
.saphoto-profile,
.saphoto-featured-wrap,
.saphoto-spotlight {
    --saphoto-accent: #2563eb;
    --saphoto-accent-rgb: 37, 99, 235;
    --saphoto-card-radius: 24px;
    --saphoto-card-image-height: 250px;
    --saphoto-heading-color: #121a2c;
    --saphoto-body-color: #162033;
    --saphoto-muted-color: #64748b;
    --saphoto-card-title-color: #0f172a;
    --saphoto-card-text-color: #64748b;
    --saphoto-button-text-color: #ffffff;
    color: var(--saphoto-body-color);
}

.saphoto-directory *,
.saphoto-submit-form *,
.saphoto-profile *,
.saphoto-featured-wrap *,
.saphoto-spotlight * {
    box-sizing: border-box;
}

.saphoto-featured-wrap {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px;
}

.saphoto-featured-header {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--saphoto-card-radius);
    box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
    padding: 30px;
    margin-bottom: 22px;
}

.saphoto-featured-header h2 {
    margin: 0 0 10px;
    color: var(--saphoto-heading-color);
    font-size: clamp(2rem, 4vw, 3.5rem);
    line-height: 1.05;
}

.saphoto-featured-header p:last-child {
    margin-bottom: 0;
    color: var(--saphoto-muted-color);
    max-width: 760px;
}

.saphoto-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}

.saphoto-featured-card {
    position: relative;
    overflow: hidden;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    border-radius: var(--saphoto-card-radius);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.saphoto-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.saphoto-featured-layout-spotlight .saphoto-featured-card-large {
    grid-column: span 2;
    display: grid;
    grid-template-columns: minmax(280px, 48%) 1fr;
}

.saphoto-featured-media {
    position: relative;
    display: block;
    min-height: var(--saphoto-card-image-height);
    background: #eff5fb;
    overflow: hidden;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    text-decoration: none;
}

.saphoto-featured-media img,
.saphoto-featured-media .saphoto-card-placeholder {
    width: 100%;
    height: 100%;
    min-height: var(--saphoto-card-image-height);
    object-fit: cover;
    display: block;
}

.saphoto-featured-card-large .saphoto-featured-media img,
.saphoto-featured-card-large .saphoto-featured-media .saphoto-card-placeholder {
    min-height: 100%;
}

.saphoto-featured-ribbon {
    position: absolute;
    top: 16px;
    left: 16px;
    display: inline-flex;
    align-items: center;
    padding: 8px 13px;
    border-radius: 999px;
    background: #ffffff;
    color: #0f172a;
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    border: 1px solid rgba(15, 23, 42, 0.08);
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.10);
}

.saphoto-featured-body {
    position: relative;
    padding: 18px 18px 20px;
}

.saphoto-featured-body h3 {
    margin: 10px 0 7px;
    font-size: 1.24rem;
    line-height: 1.22;
}

.saphoto-featured-card-large .saphoto-featured-body h3 {
    font-size: clamp(1.6rem, 3vw, 2.25rem);
}

.saphoto-featured-body h3 a {
    color: var(--saphoto-card-title-color);
    text-decoration: none;
    font-weight: 800;
}

.saphoto-featured-text {
    color: var(--saphoto-card-text-color);
    line-height: 1.55;
}

.saphoto-status-badge {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: 4px 0 8px;
    padding: 6px 10px;
    border-radius: 999px;
    background: #ecfdf3;
    color: #15703d;
    border: 1px solid rgba(34, 197, 94, 0.18);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.02em;
}

.saphoto-card,
.saphoto-profile-hero,
.saphoto-profile-main,
.saphoto-profile-side,
.saphoto-profile-gallery,
.saphoto-form-hero,
.saphoto-form-section,
.saphoto-directory-tools,
.saphoto-empty,
.saphoto-notice {
    border-radius: var(--saphoto-card-radius);
}

.saphoto-card h3 a,
.saphoto-profile h1,
.saphoto-profile h2,
.saphoto-submit-form h2,
.saphoto-section-heading h3,
.saphoto-gear-item strong,
.saphoto-quick-list strong {
    color: var(--saphoto-heading-color);
}

.saphoto-card h3 a,
.saphoto-featured-body h3 a {
    color: var(--saphoto-card-title-color);
}

.saphoto-tagline,
.saphoto-profile-tagline,
.saphoto-card-excerpt,
.saphoto-featured-text,
.saphoto-form-hero p:last-child,
.saphoto-section-heading p,
.saphoto-submit-form small,
.saphoto-gallery-heading p {
    color: var(--saphoto-card-text-color);
}

.saphoto-kicker {
    color: var(--saphoto-accent);
}

.saphoto-chip,
.saphoto-profile-meta span {
    background: rgba(var(--saphoto-accent-rgb), 0.10);
    border-color: rgba(var(--saphoto-accent-rgb), 0.14);
    color: var(--saphoto-accent);
}

.saphoto-button,
.saphoto-section-heading > span {
    background: var(--saphoto-accent);
    color: var(--saphoto-button-text-color) !important;
    box-shadow: 0 12px 26px rgba(var(--saphoto-accent-rgb), 0.24);
}

.saphoto-button:hover {
    color: var(--saphoto-button-text-color) !important;
}

.saphoto-card-image,
.saphoto-featured-media {
    height: var(--saphoto-card-image-height);
    min-height: var(--saphoto-card-image-height);
}

.saphoto-card-image img,
.saphoto-featured-media img {
    transition: transform 260ms ease;
}

.saphoto-card:hover .saphoto-card-image img,
.saphoto-featured-card:hover .saphoto-featured-media img {
    transform: scale(1.035);
}

.saphoto-layout-list .saphoto-card {
    display: grid;
    grid-template-columns: 240px 1fr;
}

.saphoto-layout-list .saphoto-card-image {
    height: 100%;
    min-height: var(--saphoto-card-image-height);
}

/* Latest News style */
.saphoto-skin-news.saphoto-directory {
    border-top: 0;
    padding-top: 0;
}

.saphoto-skin-news .saphoto-directory-tools,
.saphoto-skin-news .saphoto-card,
.saphoto-skin-news .saphoto-featured-card,
.saphoto-skin-news .saphoto-featured-header,
.saphoto-skin-news .saphoto-profile-hero,
.saphoto-skin-news .saphoto-profile-main,
.saphoto-skin-news .saphoto-profile-side,
.saphoto-skin-news .saphoto-profile-gallery,
.saphoto-skin-news.saphoto-submit-form,
.saphoto-skin-news .saphoto-form-hero,
.saphoto-skin-news .saphoto-form-section {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.07);
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.075);
}

.saphoto-skin-news .saphoto-card {
    border-radius: var(--saphoto-card-radius);
}

.saphoto-skin-news .saphoto-card:hover,
.saphoto-skin-news .saphoto-featured-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.12);
}

.saphoto-skin-news .saphoto-card-image,
.saphoto-skin-news .saphoto-featured-media {
    background: #eff5fb;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}

.saphoto-skin-news .saphoto-card-body,
.saphoto-skin-news .saphoto-featured-body {
    padding: 18px 18px 20px;
}

.saphoto-skin-news .saphoto-card h3,
.saphoto-skin-news .saphoto-featured-body h3 {
    margin: 10px 0 7px;
    line-height: 1.22;
}

.saphoto-skin-news .saphoto-card h3 a,
.saphoto-skin-news .saphoto-featured-body h3 a {
    color: var(--saphoto-card-title-color);
    font-weight: 800;
}

.saphoto-skin-news .saphoto-card-excerpt,
.saphoto-skin-news .saphoto-featured-text,
.saphoto-skin-news .saphoto-tagline {
    color: var(--saphoto-card-text-color);
}

.saphoto-skin-news .saphoto-button {
    margin-top: 8px;
    padding: 9px 14px;
    background: var(--saphoto-accent);
    color: var(--saphoto-button-text-color) !important;
    box-shadow: none;
    font-size: 0.88rem;
}

.saphoto-skin-news .saphoto-chip {
    background: #eef5ff;
    color: #225aa0;
    border: 1px solid rgba(37, 99, 235, 0.08);
    font-weight: 700;
}

/* Glass skin */
.saphoto-skin-glass .saphoto-directory-tools,
.saphoto-skin-glass .saphoto-card,
.saphoto-skin-glass .saphoto-featured-card,
.saphoto-skin-glass .saphoto-featured-header,
.saphoto-skin-glass .saphoto-profile-hero,
.saphoto-skin-glass .saphoto-profile-main,
.saphoto-skin-glass .saphoto-profile-side,
.saphoto-skin-glass .saphoto-profile-gallery,
.saphoto-skin-glass.saphoto-submit-form,
.saphoto-skin-glass .saphoto-form-hero,
.saphoto-skin-glass .saphoto-form-section {
    background: linear-gradient(180deg, rgba(255,255,255,0.68) 0%, rgba(255,255,255,0.48) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.34);
    box-shadow: 0 18px 54px rgba(15, 23, 42, 0.14);
}

.saphoto-skin-glass .saphoto-card-image,
.saphoto-skin-glass .saphoto-featured-media {
    background: linear-gradient(135deg, rgba(255,255,255,0.35), rgba(var(--saphoto-accent-rgb), 0.12));
}

.saphoto-skin-glass .saphoto-featured-ribbon,
.saphoto-skin-glass .saphoto-photo-count {
    background: rgba(255,255,255,0.78);
    color: var(--saphoto-accent);
    border: 1px solid rgba(255,255,255,0.45);
}

/* Glass dark skin */
.saphoto-skin-glass-dark {
    color: #edf2ff;
}

.saphoto-skin-glass-dark .saphoto-directory-tools,
.saphoto-skin-glass-dark .saphoto-card,
.saphoto-skin-glass-dark .saphoto-featured-card,
.saphoto-skin-glass-dark .saphoto-featured-header,
.saphoto-skin-glass-dark .saphoto-profile-hero,
.saphoto-skin-glass-dark .saphoto-profile-main,
.saphoto-skin-glass-dark .saphoto-profile-side,
.saphoto-skin-glass-dark .saphoto-profile-gallery,
.saphoto-skin-glass-dark.saphoto-submit-form,
.saphoto-skin-glass-dark .saphoto-form-hero,
.saphoto-skin-glass-dark .saphoto-form-section {
    background: linear-gradient(180deg, rgba(15,23,42,0.78) 0%, rgba(30,41,59,0.58) 100%);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    border: 1px solid rgba(255,255,255,0.12);
    box-shadow: 0 22px 58px rgba(2, 8, 23, 0.42);
}

.saphoto-skin-glass-dark .saphoto-featured-header h2,
.saphoto-skin-glass-dark .saphoto-featured-body h3 a,
.saphoto-skin-glass-dark .saphoto-card h3 a,
.saphoto-skin-glass-dark .saphoto-profile h1,
.saphoto-skin-glass-dark .saphoto-profile h2,
.saphoto-skin-glass-dark .saphoto-section-heading h3,
.saphoto-skin-glass-dark .saphoto-submit-form label,
.saphoto-skin-glass-dark .saphoto-gear-item strong,
.saphoto-skin-glass-dark .saphoto-quick-list strong {
    color: #f8fbff;
}

.saphoto-skin-glass-dark .saphoto-featured-header p:last-child,
.saphoto-skin-glass-dark .saphoto-featured-text,
.saphoto-skin-glass-dark .saphoto-card-excerpt,
.saphoto-skin-glass-dark .saphoto-tagline,
.saphoto-skin-glass-dark .saphoto-profile-tagline,
.saphoto-skin-glass-dark .saphoto-section-heading p,
.saphoto-skin-glass-dark .saphoto-submit-form small,
.saphoto-skin-glass-dark .saphoto-gallery-heading p {
    color: #cbd5e1;
}

.saphoto-skin-glass-dark input,
.saphoto-skin-glass-dark select,
.saphoto-skin-glass-dark textarea {
    background: rgba(15, 23, 42, 0.62);
    border-color: rgba(255,255,255,0.10);
    color: #f8fbff;
}

.saphoto-skin-glass-dark .saphoto-card-image,
.saphoto-skin-glass-dark .saphoto-featured-media,
.saphoto-skin-glass-dark .saphoto-card-placeholder,
.saphoto-skin-glass-dark .saphoto-profile-placeholder {
    background: linear-gradient(135deg, rgba(15,23,42,0.75), rgba(var(--saphoto-accent-rgb), 0.18));
    color: #e2e8f0;
}

.saphoto-skin-glass-dark .saphoto-chip,
.saphoto-skin-glass-dark .saphoto-profile-meta span,
.saphoto-skin-glass-dark .saphoto-featured-ribbon,
.saphoto-skin-glass-dark .saphoto-photo-count {
    background: rgba(var(--saphoto-accent-rgb), 0.20);
    color: #ffffff;
    border: 1px solid rgba(255,255,255,0.12);
}

/* Minimal skin */
.saphoto-skin-minimal .saphoto-directory-tools,
.saphoto-skin-minimal .saphoto-card,
.saphoto-skin-minimal .saphoto-featured-card,
.saphoto-skin-minimal .saphoto-featured-header,
.saphoto-skin-minimal .saphoto-profile-hero,
.saphoto-skin-minimal .saphoto-profile-main,
.saphoto-skin-minimal .saphoto-profile-side,
.saphoto-skin-minimal .saphoto-profile-gallery,
.saphoto-skin-minimal.saphoto-submit-form,
.saphoto-skin-minimal .saphoto-form-hero,
.saphoto-skin-minimal .saphoto-form-section {
    box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
    border: 1px solid rgba(15, 23, 42, 0.08);
    background: #ffffff;
}

.saphoto-skin-minimal .saphoto-button,
.saphoto-skin-minimal .saphoto-section-heading > span {
    box-shadow: none;
}

@media (max-width: 900px) {
    .saphoto-featured-grid,
    .saphoto-featured-layout-spotlight .saphoto-featured-card-large,
    .saphoto-layout-list .saphoto-card {
        grid-template-columns: 1fr;
    }

    .saphoto-featured-layout-spotlight .saphoto-featured-card-large {
        grid-column: span 1;
        display: block;
    }
}

@media (max-width: 640px) {
    .saphoto-featured-grid {
        grid-template-columns: 1fr;
    }

    .saphoto-featured-header,
    .saphoto-featured-body {
        padding: 20px;
    }
}

.saphoto-featured-wrap.saphoto-columns-1 .saphoto-featured-grid { grid-template-columns: 1fr; }
.saphoto-featured-wrap.saphoto-columns-2 .saphoto-featured-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.saphoto-featured-wrap.saphoto-columns-3 .saphoto-featured-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.saphoto-featured-wrap.saphoto-columns-4 .saphoto-featured-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 900px) {
    .saphoto-featured-wrap.saphoto-columns-3 .saphoto-featured-grid,
    .saphoto-featured-wrap.saphoto-columns-4 .saphoto-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .saphoto-featured-wrap.saphoto-columns-2 .saphoto-featured-grid,
    .saphoto-featured-wrap.saphoto-columns-3 .saphoto-featured-grid,
    .saphoto-featured-wrap.saphoto-columns-4 .saphoto-featured-grid {
        grid-template-columns: 1fr;
    }
}

/* Version 1.2.1: centered single featured photographer rotator */
.saphoto-featured-layout-single .saphoto-featured-grid {
    grid-template-columns: minmax(0, 620px);
    justify-content: center;
    justify-items: center;
}

.saphoto-featured-card-single {
    width: 100%;
    max-width: 620px;
    text-align: center;
}

.saphoto-featured-card-single .saphoto-featured-media {
    width: 100%;
    height: clamp(260px, 42vw, 390px);
    min-height: clamp(260px, 42vw, 390px);
}

.saphoto-featured-card-single .saphoto-featured-media img,
.saphoto-featured-card-single .saphoto-featured-media .saphoto-card-placeholder {
    min-height: clamp(260px, 42vw, 390px);
}

.saphoto-featured-card-single .saphoto-featured-body {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: clamp(22px, 4vw, 34px);
}

.saphoto-featured-card-single .saphoto-kicker {
    margin-bottom: 8px;
}

.saphoto-featured-card-single .saphoto-tagline {
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
}

.saphoto-featured-card-single .saphoto-featured-detail-block {
    width: 100%;
    max-width: 500px;
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: calc(var(--saphoto-card-radius) - 8px);
    background: rgba(var(--saphoto-accent-rgb), 0.055);
    border: 1px solid rgba(var(--saphoto-accent-rgb), 0.10);
}

.saphoto-featured-detail-block > span {
    display: block;
    margin-bottom: 6px;
    color: var(--saphoto-accent);
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.saphoto-featured-detail-block p {
    margin: 0;
    color: var(--saphoto-card-text-color);
    line-height: 1.55;
}

.saphoto-featured-card-single .saphoto-chip-row {
    justify-content: center;
}

.saphoto-featured-card-single .saphoto-status-badge {
    margin-top: 16px;
}

.saphoto-featured-card-single .saphoto-button {
    margin-top: 16px;
    min-width: 150px;
}

.saphoto-skin-glass-dark .saphoto-featured-card-single .saphoto-featured-detail-block {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 640px) {
    .saphoto-featured-card-single .saphoto-featured-body {
        padding: 20px;
    }

    .saphoto-featured-card-single .saphoto-featured-detail-block {
        padding: 12px;
    }
}

/* Version 1.2.3: horizontal card-list directory layout */
.saphoto-layout-card-list .saphoto-card-grid {
    grid-template-columns: minmax(0, 980px);
    justify-content: center;
}

.saphoto-layout-card-list .saphoto-card-horizontal {
    display: grid;
    grid-template-columns: minmax(220px, 34%) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
}

.saphoto-layout-card-list .saphoto-card-horizontal .saphoto-card-image {
    height: 100%;
    min-height: var(--saphoto-card-image-height);
    aspect-ratio: auto;
}

.saphoto-layout-card-list .saphoto-card-horizontal .saphoto-card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(20px, 3vw, 32px);
}

.saphoto-horizontal-details {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(160px, 0.8fr);
    gap: 12px;
    margin-top: 14px;
}

.saphoto-horizontal-detail {
    padding: 13px 15px;
    border-radius: calc(var(--saphoto-card-radius) - 8px);
    background: rgba(var(--saphoto-accent-rgb), 0.055);
    border: 1px solid rgba(var(--saphoto-accent-rgb), 0.10);
}

.saphoto-horizontal-detail:first-child {
    grid-row: span 2;
}

.saphoto-horizontal-detail > span {
    display: block;
    margin-bottom: 6px;
    color: var(--saphoto-accent);
    font-size: 0.75rem;
    font-weight: 900;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.saphoto-horizontal-detail p {
    margin: 0;
    color: var(--saphoto-card-text-color);
    line-height: 1.55;
}

.saphoto-horizontal-detail .saphoto-chip-row {
    margin-top: 0;
}

.saphoto-horizontal-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 16px;
}

.saphoto-horizontal-actions .saphoto-link-row {
    margin: 0;
}

.saphoto-skin-glass-dark .saphoto-horizontal-detail {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 900px) {
    .saphoto-layout-card-list .saphoto-card-horizontal {
        grid-template-columns: 1fr;
    }

    .saphoto-layout-card-list .saphoto-card-horizontal .saphoto-card-image {
        height: var(--saphoto-card-image-height);
    }

    .saphoto-horizontal-details {
        grid-template-columns: 1fr;
    }

    .saphoto-horizontal-detail:first-child {
        grid-row: auto;
    }
}

@media (max-width: 640px) {
    .saphoto-layout-card-list .saphoto-card-horizontal .saphoto-card-body {
        padding: 20px;
    }

    .saphoto-horizontal-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .saphoto-horizontal-actions .saphoto-link-row,
    .saphoto-horizontal-actions .saphoto-button {
        width: 100%;
        justify-content: center;
    }
}


/* Version 1.2.4: horizontal featured photographer card for front page sections */
.saphoto-featured-layout-horizontal .saphoto-featured-grid {
    grid-template-columns: minmax(0, 1040px);
    justify-content: center;
    justify-items: center;
}

.saphoto-featured-card-horizontal {
    display: grid;
    grid-template-columns: minmax(240px, 36%) minmax(0, 1fr);
    align-items: stretch;
    width: 100%;
    max-width: 1040px;
    text-align: left;
}

.saphoto-featured-card-horizontal .saphoto-featured-media {
    height: 100%;
    min-height: clamp(270px, 32vw, 430px);
    border-bottom: 0;
    border-right: 1px solid rgba(15, 23, 42, 0.06);
}

.saphoto-featured-card-horizontal .saphoto-featured-media img,
.saphoto-featured-card-horizontal .saphoto-featured-media .saphoto-card-placeholder {
    min-height: clamp(270px, 32vw, 430px);
}

.saphoto-featured-card-horizontal .saphoto-featured-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 4vw, 38px);
}

.saphoto-featured-card-horizontal .saphoto-featured-body h3 {
    font-size: clamp(1.65rem, 3vw, 2.45rem);
}

.saphoto-featured-card-horizontal .saphoto-tagline {
    max-width: 720px;
}

.saphoto-featured-card-horizontal .saphoto-featured-detail-block {
    margin-top: 14px;
    padding: 14px 16px;
    border-radius: calc(var(--saphoto-card-radius) - 8px);
    background: rgba(var(--saphoto-accent-rgb), 0.055);
    border: 1px solid rgba(var(--saphoto-accent-rgb), 0.10);
}

.saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(2),
.saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(3) {
    width: fit-content;
    max-width: 100%;
}

.saphoto-featured-card-horizontal .saphoto-chip-row {
    justify-content: flex-start;
}

.saphoto-featured-card-horizontal .saphoto-status-badge {
    margin-top: 16px;
}

.saphoto-featured-card-horizontal .saphoto-button {
    width: fit-content;
    min-width: 150px;
    margin-top: 12px;
}

.saphoto-skin-glass-dark .saphoto-featured-card-horizontal .saphoto-featured-detail-block {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.10);
}

@media (max-width: 900px) {
    .saphoto-featured-card-horizontal {
        grid-template-columns: 1fr;
    }

    .saphoto-featured-card-horizontal .saphoto-featured-media {
        height: var(--saphoto-card-image-height);
        min-height: var(--saphoto-card-image-height);
        border-right: 0;
        border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    }

    .saphoto-featured-card-horizontal .saphoto-featured-media img,
    .saphoto-featured-card-horizontal .saphoto-featured-media .saphoto-card-placeholder {
        min-height: var(--saphoto-card-image-height);
    }
}

@media (max-width: 640px) {
    .saphoto-featured-card-horizontal .saphoto-featured-body {
        padding: 20px;
    }

    .saphoto-featured-card-horizontal .saphoto-button,
    .saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(2),
    .saphoto-featured-card-horizontal .saphoto-featured-detail-block:nth-of-type(3) {
        width: 100%;
    }
}

/* Member profile hub and edit form upgrades */
.saphoto-member-hub {
    display: grid;
    gap: 1.25rem;
}

.saphoto-member-hub-hero,
.saphoto-member-hub-card,
.saphoto-member-hub-section,
.saphoto-current-profile-image,
.saphoto-current-gallery {
    border: 1px solid rgba(120, 120, 160, .20);
    border-radius: var(--saphoto-card-radius, 24px);
    background: #ffffff;
    box-shadow: 0 16px 40px rgba(15, 23, 42, .08);
}

.saphoto-member-hub-hero {
    padding: clamp(1.2rem, 4vw, 2rem);
    background: radial-gradient(circle at top right, rgba(var(--saphoto-accent-rgb), .16), transparent 36%), linear-gradient(135deg, #ffffff 0%, #eef2ff 100%);
}

.saphoto-member-hub-hero h2 {
    margin: 0 0 .45rem;
    color: var(--saphoto-heading-color, #121a2c);
    font-size: clamp(1.8rem, 4vw, 3rem);
}

.saphoto-member-hub-hero p:last-child {
    max-width: 780px;
    margin-bottom: 0;
    color: var(--saphoto-body-color, #162033);
}

.saphoto-member-hub-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.saphoto-member-hub-card {
    position: relative;
    display: grid;
    gap: .45rem;
    padding: 1.15rem;
    text-decoration: none;
    color: var(--saphoto-card-title-color, #0f172a);
    transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}

.saphoto-member-hub-card:hover,
.saphoto-member-hub-card:focus {
    transform: translateY(-2px);
    border-color: rgba(var(--saphoto-accent-rgb), .35);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .12);
}

.saphoto-member-hub-card strong {
    font-size: 1.05rem;
}

.saphoto-member-hub-card span {
    color: var(--saphoto-card-text-color, #64748b);
    font-weight: 650;
}

.saphoto-member-hub-card.is-active {
    border-color: rgba(var(--saphoto-accent-rgb), .42);
    box-shadow: 0 20px 50px rgba(15, 23, 42, .14);
}

.saphoto-member-hub-badge {
    justify-self: start;
    display: inline-flex;
    align-items: center;
    width: auto;
    padding: .28rem .65rem;
    border-radius: 999px;
    background: rgba(var(--saphoto-accent-rgb), .12);
    color: var(--saphoto-accent, #2563eb) !important;
    font-size: .78rem;
    line-height: 1;
    font-weight: 900;
}

.saphoto-member-hub.saphoto-member-hub-has-active .saphoto-member-hub-cards {
    display: none;
}

.saphoto-member-hub-section {
    display: none;
    padding: clamp(.6rem, 2vw, 1rem);
    background: linear-gradient(180deg, rgba(255, 255, 255, .86), rgba(248, 250, 252, .92));
}

.saphoto-member-hub-section.is-active,
.saphoto-member-hub-section:target {
    display: block;
}

.saphoto-member-hub-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .65rem .75rem 1rem;
    color: var(--saphoto-card-title-color, #0f172a);
}

.saphoto-member-hub-back {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    color: var(--saphoto-accent, #2563eb);
    font-weight: 900;
    text-decoration: none;
}

.saphoto-member-hub-back:hover,
.saphoto-member-hub-back:focus {
    text-decoration: underline;
}

.saphoto-member-hub-section .saphoto-submit-form {
    max-width: none;
    box-shadow: none;
}

.saphoto-form-status {
    margin-top: .65rem;
    font-weight: 750;
}

.saphoto-form-status a {
    color: var(--saphoto-accent, #2563eb);
    font-weight: 900;
}

.saphoto-current-profile-image,
.saphoto-current-gallery {
    margin-bottom: 1rem;
    padding: 1rem;
    background: #f8fafc;
}

.saphoto-current-profile-image strong,
.saphoto-current-gallery > strong {
    display: block;
    margin-bottom: .7rem;
    color: #111827;
}

.saphoto-current-profile-image img {
    display: block;
    width: min(220px, 100%);
    height: auto;
    border-radius: 18px;
}

.saphoto-current-gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .75rem;
}

.saphoto-current-gallery-grid label {
    display: grid;
    gap: .45rem;
    padding: .55rem;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(120, 120, 160, .18);
}

.saphoto-current-gallery-grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 14px;
}

.saphoto-current-gallery-grid label span {
    display: flex;
    align-items: center;
    gap: .4rem;
    color: #374151;
    font-weight: 800;
}

.saphoto-current-gallery-grid input[type="checkbox"] {
    width: auto;
    min-height: auto;
}

.saphoto-notice-info {
    background: #eff6ff;
    color: #1e3a8a;
}

.saphoto-notice a {
    color: inherit;
    font-weight: 900;
    text-decoration: underline;
}

@media (max-width: 780px) {
    .saphoto-member-hub-cards,
    .saphoto-current-gallery-grid {
        grid-template-columns: 1fr;
    }
}

/* Version 1.2.8: final uniform checkbox/radio sizing for member profile builder */
.saphoto-submit-form input[type="checkbox"],
.saphoto-submit-form input[type="radio"],
.saphoto-consent input[type="checkbox"],
.saphoto-current-gallery-grid input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 !important;
    margin: 0 7px 0 0 !important;
    border-radius: 5px;
    flex: 0 0 18px;
    vertical-align: middle;
    accent-color: var(--saphoto-accent, #4f46e5);
    box-shadow: none;
}

.saphoto-consent input[type="checkbox"] {
    margin-top: .15rem !important;
}

.saphoto-current-gallery-grid label span,
.saphoto-consent {
    line-height: 1.25;
}

/* Version 1.3.0: match photographer member form to subject profile form style */
.saphoto-submit-form.saphoto-form-like-subject {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 18px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--saphoto-body-color, #162033);
}

.saphoto-form-like-subject .saphoto-form-hero,
.saphoto-form-like-subject .saphoto-form-section,
.saphoto-form-like-subject .saphoto-submit-footer {
    background: #ffffff;
    border: 1px solid rgba(40, 55, 90, 0.12);
    border-radius: var(--saphoto-card-radius, 24px);
    box-shadow: 0 18px 48px rgba(19, 27, 51, 0.08);
}

.saphoto-form-like-subject .saphoto-form-hero {
    display: block;
    padding: 28px;
    margin-bottom: 24px;
    border-bottom: 1px solid rgba(40, 55, 90, 0.12);
    background: linear-gradient(135deg, #ffffff 0%, #f0f6ff 55%, #fff6e9 100%);
}

.saphoto-form-like-subject .saphoto-form-hero h2,
.saphoto-member-hub-hero h2,
.saphoto-submit-form h2 {
    font-size: clamp(1.45rem, 2.7vw, 2.15rem) !important;
    line-height: 1.12;
}

.saphoto-form-like-subject .saphoto-form-hero p {
    max-width: 860px;
    color: var(--saphoto-muted-color, #475569);
}

.saphoto-form-like-subject .saphoto-form-section {
    padding: 24px;
    margin: 18px 0;
    border-bottom: 1px solid rgba(40, 55, 90, 0.12);
}

.saphoto-form-like-subject .saphoto-form-section h3 {
    margin: 0 0 8px;
    color: var(--saphoto-heading-color, #121a2c);
    font-size: 1.25rem;
    line-height: 1.2;
}

.saphoto-form-like-subject .saphoto-help {
    color: var(--saphoto-muted-color, #475569);
    font-size: .95rem;
    line-height: 1.5;
}

.saphoto-form-like-subject .saphoto-upload-guidance {
    color: #111827 !important;
    font-size: .95rem;
    line-height: 1.5;
}

.saphoto-form-like-subject .saphoto-form-grid,
.saphoto-form-like-subject .saphoto-form-grid-wide {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.saphoto-form-like-subject .saphoto-form-grid p,
.saphoto-form-like-subject .saphoto-form-grid-wide p {
    margin: 0;
}

.saphoto-form-like-subject label {
    display: grid;
    gap: 7px;
    font-weight: 800;
    color: #233049;
}

.saphoto-form-like-subject input,
.saphoto-form-like-subject select,
.saphoto-form-like-subject textarea {
    width: 100%;
    border: 1px solid rgba(40, 55, 90, 0.18);
    border-radius: 14px;
    padding: 12px 14px;
    background: #ffffff;
    color: #162033;
    font-size: 1rem;
    min-height: 44px;
}

.saphoto-form-like-subject input[type="file"] {
    min-height: 52px;
}

.saphoto-form-like-subject .saphoto-section-heading {
    display: block;
}

.saphoto-form-like-subject .saphoto-section-heading > span {
    display: none !important;
}

.saphoto-form-like-subject .saphoto-current-profile-image,
.saphoto-form-like-subject .saphoto-current-gallery {
    margin: 10px 0 16px;
    padding: 12px;
    border: 1px solid rgba(40, 55, 90, 0.12);
    border-radius: 18px;
    background: #f8fafc;
    box-shadow: none;
}

.saphoto-form-like-subject .saphoto-current-profile-image {
    display: inline-grid;
    gap: 10px;
}

.saphoto-form-like-subject .saphoto-current-profile-image img,
.saphoto-form-like-subject .saphoto-current-gallery img {
    border-radius: 14px;
}

.saphoto-form-like-subject .saphoto-submit-footer {
    padding: 24px;
    margin-top: 18px;
}

.saphoto-form-like-subject .saphoto-consent {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #f7f9fc;
    border: 1px solid rgba(40, 55, 90, 0.12);
    border-radius: 18px;
    font-weight: 800 !important;
}

.saphoto-form-like-subject input[type="checkbox"],
.saphoto-form-like-subject input[type="radio"],
.saphoto-submit-form input[type="checkbox"],
.saphoto-submit-form input[type="radio"],
.saphoto-consent input[type="checkbox"],
.saphoto-current-gallery-grid input[type="checkbox"] {
    width: 18px !important;
    min-width: 18px !important;
    max-width: 18px !important;
    height: 18px !important;
    min-height: 18px !important;
    max-height: 18px !important;
    padding: 0 !important;
    margin: 0 7px 0 0 !important;
    display: inline-block !important;
    flex: 0 0 18px !important;
    box-sizing: border-box !important;
    vertical-align: middle !important;
    accent-color: var(--saphoto-accent, #4f46e5);
    box-shadow: none !important;
}

.saphoto-form-like-subject .saphoto-button-large {
    border-radius: 999px;
    font-size: 1.02rem;
    font-weight: 900;
}

.saphoto-member-hub-hero {
    padding: 28px;
}

@media (max-width: 760px) {
    .saphoto-form-like-subject .saphoto-form-grid,
    .saphoto-form-like-subject .saphoto-form-grid-wide {
        grid-template-columns: 1fr;
    }

    .saphoto-form-like-subject,
    .saphoto-form-like-subject .saphoto-form-hero,
    .saphoto-form-like-subject .saphoto-form-section,
    .saphoto-form-like-subject .saphoto-submit-footer,
    .saphoto-member-hub-hero {
        padding: 18px;
    }
}


/* v1.3.1: make the member profile choice intro work better on dark SA Photo Furs pages */
.saphoto-member-hub > .saphoto-member-hub-hero {
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0 0 .45rem;
}

.saphoto-member-hub > .saphoto-member-hub-hero .saphoto-kicker,
.saphoto-member-hub > .saphoto-member-hub-hero h2,
.saphoto-member-hub > .saphoto-member-hub-hero p {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .28);
}

.saphoto-member-hub > .saphoto-member-hub-hero p {
    opacity: .94;
}

/* v1.3.2: public profile share tools */
.saphoto-share-profile {
    margin-top: 1rem;
}

.saphoto-share-menu {
    display: inline-block;
    position: relative;
}

.saphoto-share-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    padding: .72rem 1rem;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--saphoto-accent, #2563eb), #7c3aed);
    color: var(--saphoto-button-text-color, #ffffff);
    font-weight: 900;
    cursor: pointer;
    list-style: none;
    box-shadow: 0 14px 32px rgba(37, 99, 235, .22);
    user-select: none;
}

.saphoto-share-toggle::-webkit-details-marker {
    display: none;
}

.saphoto-share-toggle::after {
    content: "↗";
    font-size: .92em;
    line-height: 1;
}

.saphoto-share-menu[open] .saphoto-share-toggle {
    filter: brightness(.98);
}

.saphoto-share-panel {
    width: min(520px, calc(100vw - 42px));
    margin-top: .85rem;
    padding: 1rem;
    border: 1px solid rgba(15, 23, 42, .12);
    border-radius: 20px;
    background: rgba(255, 255, 255, .96);
    color: #162033;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .16);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.saphoto-share-panel p {
    margin: 0 0 .75rem;
    color: #64748b;
    font-weight: 700;
}

.saphoto-share-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-bottom: .8rem;
}

.saphoto-share-action {
    appearance: none;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 999px;
    background: rgba(37, 99, 235, .08);
    color: var(--saphoto-accent, #2563eb) !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font: inherit;
    font-size: .92rem;
    font-weight: 900;
    line-height: 1;
    min-height: 38px;
    padding: .62rem .82rem;
    text-decoration: none !important;
}

.saphoto-share-action:hover,
.saphoto-share-action:focus {
    background: var(--saphoto-accent, #2563eb);
    color: var(--saphoto-button-text-color, #ffffff) !important;
}

.saphoto-share-url-label {
    display: grid;
    gap: .4rem;
    color: #475569;
    font-size: .82rem;
    font-weight: 900;
}

.saphoto-share-url {
    width: 100%;
    border: 1px solid rgba(15, 23, 42, .14) !important;
    border-radius: 14px !important;
    background: #f8fafc !important;
    color: #0f172a !important;
    font-size: .92rem !important;
    padding: .7rem .8rem !important;
}

@media (max-width: 640px) {
    .saphoto-share-menu,
    .saphoto-share-toggle {
        width: 100%;
    }

    .saphoto-share-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }
}

.saphoto-delete-profile-form.saphoto-danger-zone {
    margin-top: 1.2rem;
    border-color: rgba(220, 38, 38, .24) !important;
    background: linear-gradient(180deg, rgba(254, 242, 242, .98), rgba(255, 255, 255, .96)) !important;
}

.saphoto-delete-profile-form .saphoto-form-section {
    border-color: rgba(220, 38, 38, .22) !important;
    background: rgba(255, 255, 255, .78) !important;
}

.saphoto-delete-profile-form h3 {
    color: #991b1b !important;
}

.saphoto-button.saphoto-button-danger {
    background: #dc2626 !important;
    border-color: #dc2626 !important;
    color: #ffffff !important;
}

.saphoto-button.saphoto-button-danger:hover,
.saphoto-button.saphoto-button-danger:focus {
    background: #b91c1c !important;
    border-color: #b91c1c !important;
}


/* v1.4.1: front-end photo upload progress bar */
.saphoto-upload-progress {
    display: none;
    margin-top: 1rem;
    padding: 1rem;
    border: 1px solid rgba(37, 99, 235, .18);
    border-radius: 18px;
    background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
    box-shadow: 0 14px 32px rgba(15, 23, 42, .08);
}

.saphoto-upload-progress.is-visible {
    display: block;
}

.saphoto-upload-progress-top {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    align-items: center;
    margin-bottom: .65rem;
    color: #172033;
    font-size: .95rem;
}

.saphoto-upload-progress-top span {
    color: #475569;
    font-weight: 800;
    text-align: right;
}

.saphoto-upload-progress-track {
    overflow: hidden;
    height: 14px;
    border-radius: 999px;
    background: rgba(15, 23, 42, .1);
}

.saphoto-upload-progress-bar {
    width: 0%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--saphoto-accent, #2563eb), #f59e0b);
    transition: width .22s ease;
}

.saphoto-upload-progress.is-processing .saphoto-upload-progress-bar {
    background-size: 180% 100%;
    animation: saphotoUploadPulse 1.1s linear infinite;
}

.saphoto-upload-progress.is-complete .saphoto-upload-progress-bar {
    background: linear-gradient(90deg, #16a34a, #22c55e);
}

.saphoto-upload-progress.is-error {
    border-color: rgba(220, 38, 38, .35);
    background: #fff7f7;
}

.saphoto-upload-progress.is-error .saphoto-upload-progress-bar {
    background: linear-gradient(90deg, #dc2626, #f97316);
}

.saphoto-upload-progress-note {
    margin: .55rem 0 0;
    color: #64748b;
    font-size: .9rem;
    font-weight: 700;
}

.saphoto-submit-form button.is-disabled,
.saphoto-submit-form input[type="submit"].is-disabled {
    opacity: .65;
    cursor: wait;
}

@keyframes saphotoUploadPulse {
    0% { background-position: 0% 50%; }
    100% { background-position: 180% 50%; }
}

@media (max-width: 640px) {
    .saphoto-upload-progress-top {
        display: grid;
        gap: .35rem;
    }

    .saphoto-upload-progress-top span {
        text-align: left;
    }
}

.saphoto-upload-stack {
    display: grid;
    gap: 18px;
}

.saphoto-profile-image-upload {
    margin: 0;
}

.saphoto-upload-stack .saphoto-photo-picker {
    width: 100%;
}


/* Version 1.4.7: keep the form hero readable on dark pages with white global text settings */
.saphoto-submit-form.saphoto-form-like-subject .saphoto-form-hero {
    color: #162033 !important;
}

.saphoto-submit-form.saphoto-form-like-subject .saphoto-form-hero h2 {
    color: #121a2c !important;
}

.saphoto-submit-form.saphoto-form-like-subject .saphoto-form-hero > p:not(.saphoto-kicker),
.saphoto-submit-form.saphoto-form-like-subject .saphoto-form-hero .saphoto-form-status,
.saphoto-submit-form.saphoto-form-like-subject .saphoto-form-hero .saphoto-form-status strong {
    color: #475569 !important;
}

.saphoto-submit-form.saphoto-form-like-subject .saphoto-form-hero .saphoto-form-status a {
    color: #0b5cff !important;
}
