:root {
    --mjkfp-background: #f7f3ed;
    --mjkfp-surface: #fffaf3;
    --mjkfp-surface-strong: #ffffff;
    --mjkfp-text: #171412;
    --mjkfp-muted: #6f6760;
    --mjkfp-border: rgba(23, 20, 18, 0.12);
    --mjkfp-accent: #111111;
    --mjkfp-shadow: 0 24px 80px rgba(23, 20, 18, 0.08);
    --mjkfp-shell: min(2400px, calc(100vw - clamp(10px, 2vw, 36px)));
    --mjkfp-radius: 24px;
    --mjkfp-font-sans: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    --mjkfp-font-serif: Georgia, "Times New Roman", serif;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    background: var(--mjkfp-background);
    color: var(--mjkfp-text);
    font-family: var(--mjkfp-font-sans);
    font-size: 18px;
    line-height: 1.65;
    text-rendering: optimizeLegibility;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: inherit;
    text-decoration-thickness: 0.08em;
    text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
    color: #000000;
}

:focus-visible {
    outline: 3px solid rgba(17, 17, 17, 0.35);
    outline-offset: 4px;
}

.mjkfp-shell {
    width: var(--mjkfp-shell);
    margin-right: auto;
    margin-left: auto;
}

.mjkfp-skip-link {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 1000;
    transform: translateY(-150%);
    padding: 10px 14px;
    border-radius: 999px;
    background: var(--mjkfp-text);
    color: var(--mjkfp-surface-strong);
}

.mjkfp-skip-link:focus {
    transform: translateY(0);
}

.mjkfp-site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--mjkfp-border);
    background: rgba(247, 243, 237, 0.9);
    backdrop-filter: blur(18px);
}

.mjkfp-header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 82px;
    gap: 24px;
}

.mjkfp-branding {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.mjkfp-site-title {
    font-family: var(--mjkfp-font-serif);
    font-size: clamp(1.35rem, 2vw, 1.8rem);
    line-height: 1.1;
    text-decoration: none;
}

.mjkfp-site-domain,
.mjkfp-kicker,
.mjkfp-album-count,
.mjkfp-photo-title,
.mjkfp-footer-inner span {
    color: var(--mjkfp-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mjkfp-menu,
.mjkfp-footer-menu {
    display: flex;
    align-items: center;
    gap: 20px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mjkfp-menu a,
.mjkfp-footer-menu a {
    text-decoration: none;
    font-size: 0.95rem;
    color: var(--mjkfp-muted);
}

.mjkfp-menu a:hover,
.mjkfp-menu a:focus-visible,
.mjkfp-footer-menu a:hover,
.mjkfp-footer-menu a:focus-visible {
    color: var(--mjkfp-text);
}

.mjkfp-hero,
.mjkfp-page-hero {
    padding: clamp(36px, 5vw, 80px) 0;
}

.mjkfp-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.88fr) minmax(300px, 1.12fr);
    align-items: center;
    gap: clamp(32px, 6vw, 88px);
}

.mjkfp-hero-copy h1,
.mjkfp-page-hero h1,
.mjkfp-photo-header h1 {
    margin: 0 0 24px;
    font-family: var(--mjkfp-font-serif);
    font-size: clamp(3.4rem, 9vw, 8rem);
    font-weight: 500;
    line-height: 0.92;
    letter-spacing: -0.075em;
}

.mjkfp-page-hero h1,
.mjkfp-photo-header h1 {
    max-width: 980px;
    font-size: clamp(3rem, 7vw, 6.5rem);
}

.mjkfp-hero-copy p,
.mjkfp-page-hero p,
.mjkfp-term-description {
    max-width: 680px;
    color: var(--mjkfp-muted);
    font-size: clamp(1.05rem, 1.7vw, 1.32rem);
}

.mjkfp-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.mjkfp-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 20px;
    border: 1px solid var(--mjkfp-text);
    border-radius: 999px;
    background: var(--mjkfp-text);
    color: var(--mjkfp-surface-strong);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
}

.mjkfp-button:hover,
.mjkfp-button:focus-visible {
    background: #000000;
    color: var(--mjkfp-surface-strong);
}

.mjkfp-button-secondary {
    background: transparent;
    color: var(--mjkfp-text);
}

.mjkfp-button-secondary:hover,
.mjkfp-button-secondary:focus-visible {
    background: var(--mjkfp-text);
    color: var(--mjkfp-surface-strong);
}

.mjkfp-hero-photo {
    overflow: hidden;
    min-height: 360px;
    border-radius: var(--mjkfp-radius);
    background: rgba(23, 20, 18, 0.06);
    box-shadow: var(--mjkfp-shadow);
}

.mjkfp-hero-photo img {
    width: 100%;
    height: 100%;
    min-height: 360px;
    object-fit: cover;
}

.mjkfp-section {
    padding: clamp(32px, 4vw, 64px) 0;
}

.mjkfp-section-muted {
    background: rgba(255, 250, 243, 0.6);
    border-top: 1px solid var(--mjkfp-border);
    border-bottom: 1px solid var(--mjkfp-border);
}

.mjkfp-section-header {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 32px;
}

.mjkfp-section-header h2 {
    margin: 0;
    font-family: var(--mjkfp-font-serif);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
    line-height: 1;
    letter-spacing: -0.04em;
}

.mjkfp-section-header a {
    color: var(--mjkfp-muted);
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mjkfp-masonry-grid {
    column-width: clamp(150px, 11vw, 230px);
    column-gap: clamp(8px, 0.8vw, 16px);
}

.mjkfp-photo-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 clamp(8px, 0.8vw, 16px);
    break-inside: avoid;
    border-radius: 20px;
    background: var(--mjkfp-surface);
    box-shadow: 0 18px 60px rgba(23, 20, 18, 0.06);
}

.mjkfp-photo-link {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    text-decoration: none;
}

.mjkfp-photo-link img {
    width: 100%;
    transition: opacity 220ms ease, transform 450ms ease;
}

.mjkfp-photo-link:hover img,
.mjkfp-photo-link:focus-visible img {
    transform: scale(1.025);
}

.mjkfp-photo-title {
    position: absolute;
    right: 12px;
    bottom: 12px;
    left: 12px;
    padding: 10px 12px;
    border-radius: 999px;
    background: rgba(255, 250, 243, 0.9);
    color: var(--mjkfp-text);
    opacity: 0;
    transform: translateY(8px);
    transition: opacity 180ms ease, transform 180ms ease;
}

.mjkfp-photo-link:hover .mjkfp-photo-title,
.mjkfp-photo-link:focus-visible .mjkfp-photo-title {
    opacity: 1;
    transform: translateY(0);
}

.mjkfp-album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(clamp(180px, 14vw, 300px), 1fr));
    gap: clamp(10px, 1vw, 20px);
}

.mjkfp-album-card a {
    display: grid;
    min-height: 260px;
    overflow: hidden;
    border: 1px solid var(--mjkfp-border);
    border-radius: 20px;
    background: var(--mjkfp-surface);
    text-decoration: none;
    box-shadow: 0 18px 60px rgba(23, 20, 18, 0.06);
}

.mjkfp-album-card img,
.mjkfp-album-placeholder {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 3;
}

.mjkfp-album-card img {
    object-fit: cover;
}

.mjkfp-album-placeholder {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(23, 20, 18, 0.08), rgba(23, 20, 18, 0.02));
    color: rgba(23, 20, 18, 0.42);
    font-family: var(--mjkfp-font-serif);
    font-size: clamp(3rem, 8vw, 6rem);
}

.mjkfp-album-title,
.mjkfp-album-count {
    display: block;
    padding: 0 18px;
}

.mjkfp-album-title {
    padding-top: 16px;
    font-family: var(--mjkfp-font-serif);
    font-size: 1.4rem;
    line-height: 1.1;
}

.mjkfp-album-count {
    padding-bottom: 18px;
}


.mjkfp-album-card-empty .mjkfp-album-placeholder {
    background: repeating-linear-gradient(135deg, rgba(23, 20, 18, 0.06), rgba(23, 20, 18, 0.06) 10px, rgba(23, 20, 18, 0.025) 10px, rgba(23, 20, 18, 0.025) 20px);
}

.mjkfp-album-note {
    display: block;
    padding: 0 18px 18px;
    color: var(--mjkfp-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.mjkfp-empty-state {
    padding: 56px;
    border: 1px solid var(--mjkfp-border);
    border-radius: var(--mjkfp-radius);
    background: var(--mjkfp-surface);
    text-align: center;
}

.mjkfp-empty-state h2 {
    margin-top: 0;
    font-family: var(--mjkfp-font-serif);
    font-size: clamp(2rem, 4vw, 4rem);
    font-weight: 500;
}

.mjkfp-single-photo {
    padding: clamp(40px, 6vw, 80px) 0;
}

.mjkfp-photo-header {
    margin-bottom: 32px;
}

.mjkfp-flickr-source {
    margin: -10px 0 0;
    color: var(--mjkfp-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.mjkfp-flickr-source a {
    color: inherit;
    text-decoration: none;
    border-bottom: 1px solid rgba(23, 20, 18, 0.2);
}

.mjkfp-flickr-source a:hover,
.mjkfp-flickr-source a:focus-visible {
    color: var(--mjkfp-text);
    border-bottom-color: currentColor;
}

.mjkfp-flickr-source-meta {
    margin: 18px 0 0;
    font-size: 0.68rem;
}

.mjkfp-photo-figure {
    margin: 0;
    overflow: hidden;
    border-radius: var(--mjkfp-radius);
    background: rgba(23, 20, 18, 0.06);
    box-shadow: var(--mjkfp-shadow);
}

.mjkfp-photo-figure img {
    width: 100%;
}

.mjkfp-photo-detail-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 48px;
    margin-top: 48px;
}

.mjkfp-photo-content,
.mjkfp-readable-content,
.mjkfp-content-card {
    max-width: 820px;
}

.mjkfp-readable-content {
    padding: 64px 0;
}

.mjkfp-readable-content h2,
.mjkfp-photo-content h2,
.mjkfp-content-card h2,
.mjkfp-photo-meta h2 {
    font-family: var(--mjkfp-font-serif);
    font-weight: 500;
    line-height: 1.1;
}

.mjkfp-photo-meta {
    align-self: start;
    padding: 24px;
    border: 1px solid var(--mjkfp-border);
    border-radius: 20px;
    background: var(--mjkfp-surface);
}

.mjkfp-photo-meta dl {
    margin: 0 0 24px;
}

.mjkfp-photo-meta dt {
    margin-top: 18px;
    color: var(--mjkfp-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mjkfp-photo-meta dd {
    margin: 4px 0 0;
}

.mjkfp-content-list {
    display: grid;
    gap: 18px;
}

.mjkfp-content-card {
    padding: 28px;
    border: 1px solid var(--mjkfp-border);
    border-radius: 20px;
    background: var(--mjkfp-surface);
}

.mjkfp-content-card h2 {
    margin: 0 0 12px;
}

.navigation.pagination {
    margin-top: 48px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    min-height: 42px;
    padding: 0 12px;
    border: 1px solid var(--mjkfp-border);
    border-radius: 999px;
    text-decoration: none;
}

.page-numbers.current {
    background: var(--mjkfp-text);
    color: var(--mjkfp-surface-strong);
}

.mjkfp-site-footer {
    padding: 42px 0;
    border-top: 1px solid var(--mjkfp-border);
}

.mjkfp-footer-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.mjkfp-footer-inner > div {
    display: flex;
    flex-direction: column;
}


/* Liquid photo archive layout: use the available viewport instead of trapping galleries in a narrow centered column. */
.post-type-archive-mjk_photo .mjkfp-shell,
.tax-mjk_album .mjkfp-shell,
.tax-mjk_photo_tag .mjkfp-shell,
.mjkfp-album-index .mjkfp-shell {
    width: min(1920px, calc(100vw - clamp(16px, 3vw, 56px)));
}

.post-type-archive-mjk_photo .mjkfp-section,
.tax-mjk_album .mjkfp-section,
.tax-mjk_photo_tag .mjkfp-section {
    padding-top: clamp(20px, 3vw, 42px);
}

.post-type-archive-mjk_photo .mjkfp-page-hero,
.tax-mjk_album .mjkfp-page-hero,
.tax-mjk_photo_tag .mjkfp-page-hero {
    padding-bottom: clamp(20px, 3vw, 42px);
}

.mjkfp-photo-card img {
    background: rgba(23, 20, 18, 0.06);
}

@media (max-width: 1000px) {
    .mjkfp-hero-grid,
    .mjkfp-photo-detail-grid {
        grid-template-columns: 1fr;
    }

    .mjkfp-masonry-grid {
        column-width: clamp(180px, 32vw, 260px);
    }

    .mjkfp-album-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

.mjkfp-album-card-empty .mjkfp-album-placeholder {
    background: repeating-linear-gradient(135deg, rgba(23, 20, 18, 0.06), rgba(23, 20, 18, 0.06) 10px, rgba(23, 20, 18, 0.025) 10px, rgba(23, 20, 18, 0.025) 20px);
}

.mjkfp-album-note {
    display: block;
    padding: 0 18px 18px;
    color: var(--mjkfp-muted);
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

@media (max-width: 700px) {
    body {
        font-size: 16px;
    }

    .mjkfp-header-inner,
    .mjkfp-section-header,
    .mjkfp-footer-inner {
        align-items: flex-start;
        flex-direction: column;
    }

    .mjkfp-menu,
    .mjkfp-footer-menu {
        flex-wrap: wrap;
        gap: 12px;
    }

    .mjkfp-masonry-grid {
        column-width: clamp(150px, 46vw, 240px);
    }

    .mjkfp-album-grid {
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    }

    .mjkfp-empty-state {
        padding: 32px 20px;
    }
}

.mjkfp-image-ready-target {
    opacity: 0;
}

.mjkfp-image-ready {
    opacity: 1;
}

.mjkfp-admin-diagnostic-list {
    margin: 1.5rem 0 0;
    padding-left: 1.25rem;
    text-align: left;
}

.mjkfp-admin-diagnostic-list li {
    margin-bottom: 0.65rem;
}

.mjkfp-contact-hero-grid,
.mjkfp-contact-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(300px, 380px);
    gap: clamp(28px, 5vw, 72px);
    align-items: start;
}

.mjkfp-contact-card,
.mjkfp-link-card {
    border: 1px solid var(--mjkfp-border);
    border-radius: 20px;
    background: var(--mjkfp-surface);
    box-shadow: 0 18px 60px rgba(23, 20, 18, 0.06);
}

.mjkfp-contact-card {
    padding: 28px;
}

.mjkfp-contact-card-primary {
    background: var(--mjkfp-text);
    color: var(--mjkfp-surface-strong);
}

.mjkfp-contact-card h2,
.mjkfp-link-card h3,
.mjkfp-contact-intro-card h2 {
    margin-top: 0;
    font-family: var(--mjkfp-font-serif);
    font-weight: 500;
    line-height: 1.1;
}

.mjkfp-contact-card h2,
.mjkfp-contact-intro-card h2 {
    font-size: clamp(1.8rem, 3vw, 3rem);
}

.mjkfp-contact-list,
.mjkfp-mini-link-list {
    display: grid;
    gap: 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.mjkfp-contact-list li {
    display: grid;
    gap: 2px;
}

.mjkfp-contact-list span {
    color: var(--mjkfp-muted);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.mjkfp-contact-card-primary .mjkfp-contact-list span {
    color: rgba(255, 250, 243, 0.62);
}

.mjkfp-contact-card-primary a {
    color: var(--mjkfp-surface-strong);
}

.mjkfp-contact-main {
    display: grid;
    gap: 42px;
}

.mjkfp-contact-side {
    display: grid;
    gap: 18px;
    position: sticky;
    top: 110px;
}

.mjkfp-contact-intro-card {
    max-width: none;
}

.mjkfp-contact-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 28px;
}

.mjkfp-contact-section-header {
    margin-bottom: -10px;
}

.mjkfp-link-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.mjkfp-link-card-grid-three {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mjkfp-link-card {
    padding: 24px;
}

.mjkfp-link-card h3 {
    margin-bottom: 10px;
    font-size: 1.45rem;
}

.mjkfp-link-card p,
.mjkfp-contact-card p {
    color: var(--mjkfp-muted);
}

.mjkfp-mini-link-list a {
    font-weight: 800;
}

.mjkfp-contact-extra-content {
    max-width: 900px;
    padding-top: 0;
}


@media (max-width: 1000px) {
    .mjkfp-contact-hero-grid,
    .mjkfp-contact-grid,
    .mjkfp-link-card-grid,
    .mjkfp-link-card-grid-three {
        grid-template-columns: 1fr;
    }

    .mjkfp-contact-side {
        position: static;
    }
}


/* Version 1.1.9: make the whole public site liquid, not only the photo archive templates. */
.mjkfp-site-main,
.mjkfp-hero,
.mjkfp-section,
.mjkfp-page-hero,
.mjkfp-site-header,
.mjkfp-site-footer {
    width: 100%;
}

.mjkfp-section {
    padding-top: clamp(24px, 3vw, 56px);
    padding-bottom: clamp(24px, 3vw, 56px);
}

.mjkfp-hero,
.mjkfp-page-hero {
    padding-top: clamp(28px, 4vw, 68px);
    padding-bottom: clamp(24px, 3.5vw, 60px);
}

.mjkfp-page-hero h1,
.mjkfp-photo-header h1 {
    max-width: min(1500px, 100%);
}

.mjkfp-hero-copy p,
.mjkfp-page-hero p,
.mjkfp-term-description {
    max-width: min(1100px, 100%);
}

.mjkfp-masonry-grid {
    width: 100%;
    column-fill: balance;
}

.mjkfp-photo-card {
    box-shadow: 0 12px 42px rgba(23, 20, 18, 0.055);
}

.mjkfp-photo-link,
.mjkfp-photo-card {
    border-radius: 16px;
}

.mjkfp-album-card a {
    min-height: 220px;
}

.mjkfp-photo-detail-grid {
    grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
    gap: clamp(24px, 3vw, 56px);
}

.mjkfp-photo-content,
.mjkfp-readable-content,
.mjkfp-content-card {
    max-width: min(1280px, 100%);
}

.mjkfp-contact-extra-content {
    max-width: min(1280px, 100%);
}

.home .mjkfp-shell,
.blog .mjkfp-shell,
.page .mjkfp-shell,
.single .mjkfp-shell,
.archive .mjkfp-shell,
.search .mjkfp-shell,
.error404 .mjkfp-shell,
.mjkfp-album-index .mjkfp-shell,
.post-type-archive-mjk_photo .mjkfp-shell,
.tax-mjk_album .mjkfp-shell,
.tax-mjk_photo_tag .mjkfp-shell {
    width: min(2400px, calc(100vw - clamp(10px, 2vw, 36px)));
}

@media (min-width: 1800px) {
    .mjkfp-masonry-grid {
        column-width: 170px;
    }

    .mjkfp-album-grid {
        grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    }
}

@media (min-width: 2400px) {
    .mjkfp-masonry-grid {
        column-width: 185px;
    }
}


/* Version 1.2.0: on phones the header should not steal vertical space from the photography grid. */
@media (max-width: 700px) {
    .mjkfp-site-header {
        position: static;
        top: auto;
        background: rgba(247, 243, 237, 0.98);
        backdrop-filter: none;
    }

    .mjkfp-header-inner {
        min-height: 0;
        gap: 8px;
        padding-top: 10px;
        padding-bottom: 8px;
    }

    .mjkfp-branding {
        width: 100%;
        gap: 0;
    }

    .mjkfp-site-title {
        font-size: 1.08rem;
        line-height: 1.05;
    }

    .mjkfp-site-domain {
        font-size: 0.58rem;
        letter-spacing: 0.1em;
    }

    .mjkfp-primary-nav {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .mjkfp-primary-nav::-webkit-scrollbar {
        display: none;
    }

    .mjkfp-menu {
        flex-wrap: nowrap;
        width: max-content;
        min-width: 100%;
        gap: 14px;
        padding-bottom: 2px;
    }

    .mjkfp-menu a {
        display: block;
        white-space: nowrap;
        font-size: 0.82rem;
        line-height: 1.2;
        padding-top: 4px;
        padding-bottom: 4px;
    }

    .mjkfp-hero,
    .mjkfp-page-hero {
        padding-top: 22px;
    }
}

/* Version 1.2.1: home hero alignment polish.
   Keep the oversized name visually connected to the hero image while still protecting right-edge image breathing room. */
.home .mjkfp-hero-grid {
    grid-template-columns: minmax(320px, 0.78fr) minmax(420px, 1.22fr);
    gap: clamp(20px, 3vw, 52px);
}

.home .mjkfp-hero-copy {
    justify-self: end;
    max-width: min(760px, 100%);
    text-align: right;
}

.home .mjkfp-hero-copy h1 {
    margin-left: auto;
}

.home .mjkfp-hero-copy p {
    margin-left: auto;
}

.home .mjkfp-hero-actions {
    justify-content: flex-end;
}

.home .mjkfp-hero-photo {
    margin-right: clamp(14px, 2vw, 36px);
}

.home .mjkfp-hero-photo img {
    object-position: center center;
}

@media (max-width: 1000px) {
    .home .mjkfp-hero-grid {
        grid-template-columns: 1fr;
        gap: clamp(22px, 5vw, 42px);
    }

    .home .mjkfp-hero-copy {
        justify-self: stretch;
        text-align: left;
    }

    .home .mjkfp-hero-copy h1,
    .home .mjkfp-hero-copy p {
        margin-left: 0;
    }

    .home .mjkfp-hero-actions {
        justify-content: flex-start;
    }

    .home .mjkfp-hero-photo {
        margin-right: 0;
    }
}

/* Version 1.2.2: text-first liquid album navigation.
   The portfolio already has a large visual photo grid, so album navigation is now a compact dynamic list of crawlable cards instead of another image grid. */
.mjkfp-home-album-list-section {
    background: linear-gradient(180deg, rgba(255, 250, 243, 0.72), rgba(247, 243, 237, 0.92));
}

.mjkfp-album-name-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(clamp(220px, 18vw, 360px), 1fr));
    gap: clamp(10px, 1vw, 18px);
    width: 100%;
}

.mjkfp-album-index-name-grid {
    grid-template-columns: repeat(auto-fit, minmax(clamp(240px, 19vw, 380px), 1fr));
}

.mjkfp-album-name-card a {
    position: relative;
    display: grid;
    min-height: clamp(150px, 12vw, 220px);
    padding: clamp(18px, 1.6vw, 30px);
    overflow: hidden;
    border: 1px solid var(--mjkfp-border);
    border-radius: 22px;
    background:
        radial-gradient(circle at top right, rgba(23, 20, 18, 0.08), transparent 36%),
        linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(255, 255, 255, 0.72));
    box-shadow: 0 18px 58px rgba(23, 20, 18, 0.055);
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.mjkfp-album-name-card a::after {
    content: "";
    position: absolute;
    inset: auto -12% -42% auto;
    width: clamp(90px, 9vw, 160px);
    aspect-ratio: 1;
    border: 1px solid rgba(23, 20, 18, 0.08);
    border-radius: 999px;
    background: rgba(23, 20, 18, 0.025);
}

.mjkfp-album-name-card a:hover,
.mjkfp-album-name-card a:focus-visible {
    transform: translateY(-3px);
    border-color: rgba(23, 20, 18, 0.26);
    box-shadow: 0 28px 78px rgba(23, 20, 18, 0.09);
}

.mjkfp-album-name-kicker,
.mjkfp-album-name-count,
.mjkfp-album-name-note,
.mjkfp-album-name-cta {
    position: relative;
    z-index: 1;
    color: var(--mjkfp-muted);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    line-height: 1.25;
    text-transform: uppercase;
}

.mjkfp-album-name-title {
    position: relative;
    z-index: 1;
    align-self: end;
    max-width: 13em;
    margin-top: clamp(18px, 3vw, 48px);
    font-family: var(--mjkfp-font-serif);
    font-size: clamp(1.55rem, 2.2vw, 2.75rem);
    line-height: 0.98;
    letter-spacing: -0.045em;
}

.mjkfp-album-name-count {
    margin-top: 10px;
}

.mjkfp-album-name-note {
    margin-top: 8px;
}

.mjkfp-album-name-cta {
    align-self: end;
    justify-self: start;
    margin-top: clamp(18px, 2vw, 34px);
    color: var(--mjkfp-text);
}

.mjkfp-album-name-progress {
    position: relative;
    z-index: 1;
    display: block;
    width: min(220px, 100%);
    height: 4px;
    margin-top: 12px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(23, 20, 18, 0.1);
}

.mjkfp-album-name-progress span {
    display: block;
    width: var(--mjkfp-progress, 0%);
    height: 100%;
    border-radius: inherit;
    background: var(--mjkfp-text);
}

.mjkfp-album-name-card-pending a {
    background:
        radial-gradient(circle at top right, rgba(23, 20, 18, 0.05), transparent 36%),
        repeating-linear-gradient(135deg, rgba(255, 250, 243, 0.98), rgba(255, 250, 243, 0.98) 13px, rgba(23, 20, 18, 0.018) 13px, rgba(23, 20, 18, 0.018) 26px);
}

.mjkfp-album-index .mjkfp-page-hero {
    padding-bottom: clamp(18px, 2.4vw, 36px);
}

.mjkfp-album-index .mjkfp-section {
    padding-top: clamp(18px, 2.4vw, 36px);
}

@media (min-width: 1800px) {
    .mjkfp-album-name-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
}

@media (max-width: 700px) {
    .mjkfp-album-name-grid,
    .mjkfp-album-index-name-grid {
        grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
        gap: 10px;
    }

    .mjkfp-album-name-card a {
        min-height: 132px;
        padding: 16px;
        border-radius: 18px;
    }

    .mjkfp-album-name-title {
        margin-top: 20px;
        font-size: clamp(1.35rem, 8vw, 2rem);
    }
}


/* Version 1.2.4: align the homepage title with the top of the hero photograph.
   Album index pages use dynamic text cards, while dedicated album pages keep the thumbnail masonry grid. */
.home .mjkfp-hero-grid {
    align-items: start;
}

.home .mjkfp-hero-copy {
    align-self: start;
    padding-top: clamp(0px, 0.35vw, 10px);
}

.home .mjkfp-hero-photo {
    align-self: start;
}

.tax-mjk_album .mjkfp-masonry-grid {
    display: block;
    column-width: clamp(150px, 11vw, 230px);
    column-gap: clamp(8px, 0.8vw, 16px);
}

@media (max-width: 1000px) {
    .home .mjkfp-hero-grid {
        align-items: stretch;
    }

    .home .mjkfp-hero-copy,
    .home .mjkfp-hero-photo {
        align-self: stretch;
    }
}


/* Version 1.2.5: /albums/ should be a crawlable thumbnail card page.
   Homepage album navigation can stay text-first, but the dedicated album index
   needs visual covers so visitors can choose collections photographically. */
.mjkfp-album-index-thumbnail-grid {
    grid-template-columns: repeat(auto-fill, minmax(clamp(170px, 13vw, 280px), 1fr));
    align-items: stretch;
}

.mjkfp-album-index-thumbnail-grid .mjkfp-album-card a {
    height: 100%;
}

.mjkfp-album-index-thumbnail-grid .mjkfp-album-card img,
.mjkfp-album-index-thumbnail-grid .mjkfp-album-placeholder {
    aspect-ratio: 4 / 3;
}

@media (min-width: 1800px) {
    .mjkfp-album-index-thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    }
}

@media (max-width: 700px) {
    .mjkfp-album-index-thumbnail-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
}

/* Version 1.2.7: admin-only album diagnostics below the public album grid. */
.mjkfp-admin-inline-note {
    margin-top: clamp(22px, 3vw, 44px);
    padding: 18px 20px;
    border: 1px solid var(--mjkfp-border);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.62);
    color: var(--mjkfp-muted);
    font-size: 0.9rem;
}

.mjkfp-admin-inline-note strong {
    display: block;
    margin-bottom: 6px;
    color: var(--mjkfp-ink);
}

.mjkfp-admin-inline-note span {
    display: block;
    overflow-wrap: anywhere;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 0.78rem;
    letter-spacing: 0.01em;
}

.mjkfp-admin-inline-note p {
    margin: 10px 0 0;
}

/* Version 1.3.3: album cover thumbnails must never disappear while the
   JavaScript rotates randomized cover candidates. The old image stays visible
   until the replacement source has loaded successfully. */
.mjkfp-album-card img.mjkfp-image-ready-target,
.mjkfp-album-card img[data-mjkfp-random-cover="1"] {
    opacity: 1;
}


.mjkfp-hero-photo-loading {
    min-height: clamp(360px, 52vw, 760px);
    display: flex;
    align-items: stretch;
    justify-content: stretch;
}

.mjkfp-hero-photo-placeholder {
    width: 100%;
    min-height: inherit;
    border: 1px solid var(--mjkfp-border);
    border-radius: var(--mjkfp-radius-large);
    background: linear-gradient(135deg, rgba(255,255,255,0.64), rgba(229,220,207,0.32));
    display: grid;
    place-items: center;
    color: var(--mjkfp-muted);
    letter-spacing: 0.18em;
    text-transform: uppercase;
    font-size: 0.72rem;
}


/* Version 1.5.3: avoid hiding already-rendered homepage images while JavaScript initializes. */
.mjkfp-image-ready-target {
    opacity: 1;
}


/* Version 1.5.8: restore the homepage random photograph section to thumbnail masonry.
   The homepage grid intentionally uses small liquid columns. Without this class
   the shared photo card width rule can make each random photograph span the
   full content width, which turns the 100-photo thumbnail section into 100
   oversized images. */
.mjkfp-home-photo-grid {
    width: 100%;
    column-width: clamp(118px, 9vw, 190px);
    column-gap: clamp(8px, 0.75vw, 14px);
    column-fill: balance;
}

.mjkfp-home-photo-grid .mjkfp-photo-card {
    display: inline-block;
    width: 100%;
    margin: 0 0 clamp(8px, 0.75vw, 14px);
    break-inside: avoid;
}

.mjkfp-home-photo-grid .mjkfp-photo-link img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 700px) {
    .mjkfp-home-photo-grid {
        column-width: clamp(132px, 43vw, 180px);
        column-gap: 8px;
    }
}


/* Version 1.5.8: clickability hardening.
   Decorative layers and responsive image swaps must never intercept links.
   The cards remain fully crawlable HTML anchors, while pseudo-elements,
   placeholders, overlay labels, and raw image nodes stop stealing pointer
   events from their parent links. */
.mjkfp-site-header,
.mjkfp-site-main,
.mjkfp-section,
.mjkfp-page-hero,
.mjkfp-hero,
.mjkfp-site-footer {
    isolation: isolate;
}

.mjkfp-menu a,
.mjkfp-footer-menu a,
.mjkfp-button,
.mjkfp-section-header a,
.mjkfp-photo-link,
.mjkfp-album-card a,
.mjkfp-album-name-card a,
.mjkfp-contact-list a,
.mjkfp-mini-link-list a,
.mjkfp-source-link,
.mjkfp-pagination a {
    position: relative;
    z-index: 5;
    pointer-events: auto;
}

.mjkfp-photo-card,
.mjkfp-album-card,
.mjkfp-album-name-card {
    position: relative;
}

.mjkfp-photo-link img,
.mjkfp-album-card img,
.mjkfp-photo-title,
.mjkfp-album-placeholder,
.mjkfp-album-name-card a::after,
.mjkfp-hero-photo,
.mjkfp-hero-photo img,
.mjkfp-hero-photo-placeholder {
    pointer-events: none;
}

.mjkfp-photo-link:focus-visible,
.mjkfp-album-card a:focus-visible,
.mjkfp-album-name-card a:focus-visible,
.mjkfp-section-header a:focus-visible {
    z-index: 10;
}
