/*
Theme Name: The Harlow Journal
Theme URI: https://harlowjournal.com/
Author: The Harlow
Description: A responsive editorial theme inspired by The Harlow archive, with the original wordmark, category navigation, image-led article grid, and readable post pages.
Version: 1.0.19
Requires at least: 6.4
Tested up to: 6.8
Requires PHP: 7.4
Text Domain: the-harlow-journal
*/
:root{--harlow-ink:#555;--harlow-soft:#777;--harlow-line:#d8d0c5;--harlow-paper:#f6f2eb;--harlow-accent:#7a3e43;--harlow-width:1380px}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--harlow-paper);color:var(--harlow-ink);font-family:Arial,Helvetica,sans-serif;font-size:16px;line-height:1.65}a{color:inherit;text-decoration:none}a:hover{color:var(--harlow-accent)}
.site-header{padding:42px 24px 0;text-align:center;background:var(--harlow-paper);border-bottom:1px solid var(--harlow-line)}.masthead-date{margin:15px 0 0;color:#8a8178;font-family:Georgia,'Times New Roman',serif;font-size:11px;letter-spacing:.12em;text-transform:uppercase}.masthead-established{margin:2px 0 0;color:var(--harlow-accent);font-family:Georgia,'Times New Roman',serif;font-size:10px;letter-spacing:.08em;text-transform:uppercase;text-align:center}.brand{display:block;margin:0 auto;max-width:700px}.brand img,.custom-logo{display:block;width:min(480px,86vw);height:auto;margin:0 auto}.custom-logo-link{display:block}.site-name-fallback{font-family:Georgia,serif;font-size:46px;letter-spacing:.04em;color:#444}
.primary-nav{display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:0 28px;margin:21px auto 0}.primary-nav ul{display:flex;justify-content:center;flex-wrap:wrap;gap:14px 40px;list-style:none;margin:0;padding:0}.primary-nav a{display:block;color:#616161;font-size:13px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;padding:7px 0}.primary-nav a:hover{color:#000}
.category-nav{max-width:var(--harlow-width);margin:24px auto 0;padding:11px 12px 14px;border-top:1px dotted #bbb}.category-nav .category-label{margin:0 0 8px;color:var(--harlow-accent);font-size:10px;letter-spacing:.18em;text-transform:uppercase}.category-nav ul{display:flex;justify-content:center;flex-wrap:wrap;gap:8px 20px;list-style:none;margin:0;padding:0}.category-nav li{margin:0}.category-nav a{font-size:11px;font-weight:600;letter-spacing:.07em;text-transform:uppercase;color:#777}.category-nav a:hover{color:var(--harlow-accent)}
.site-main{width:min(var(--harlow-width),calc(100% - 48px));margin:34px auto 70px}.archive-heading{margin:0 0 24px;font-family:Georgia,'Times New Roman',serif;font-size:24px;font-weight:400;text-align:center}.post-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:34px 22px}.post-card{min-width:0;padding-bottom:18px;border-bottom:1px solid var(--harlow-line)}.post-card-media{display:block;margin-bottom:15px;background:#f5f5f5;overflow:hidden}.post-card-media img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:cover;transition:opacity .25s}.post-card-media:hover img{opacity:.88}.post-card-title{margin:0 0 7px;font-family:Georgia,'Times New Roman',serif;font-size:19px;line-height:1.25;font-weight:400;text-transform:uppercase}.post-meta{margin:0 0 10px;color:#999;font-size:10px;letter-spacing:.08em;text-transform:uppercase}.post-excerpt{margin:0;color:#666;font-size:14px;line-height:1.55}.read-more-link{display:inline-block;margin-top:12px;color:var(--harlow-accent);font-size:10px;font-weight:600;letter-spacing:.12em;text-transform:uppercase;border-bottom:0;padding-bottom:0}.read-more-link:hover{color:#4f292d;border-color:#4f292d}.read-more-link span[aria-hidden="true"]{margin-left:3px}.post-categories{margin-top:12px;color:var(--harlow-accent);font-size:10px;letter-spacing:.1em;text-transform:uppercase}.pagination{display:flex;justify-content:space-between;gap:20px;margin:42px 0;font-size:12px;letter-spacing:.1em;text-transform:uppercase}
.single-header,.page-header{max-width:850px;margin:0 auto 28px;text-align:center}.single-title,.page-title{margin:0 0 12px;color:#333;font-family:Georgia,'Times New Roman',serif;font-size:clamp(28px,4vw,44px);font-weight:400;line-height:1.15;text-transform:uppercase}.single-meta{color:#999;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.single-featured{max-width:1050px;margin:0 auto 34px}.single-featured img{display:block;width:100%;height:auto}.entry-content{max-width:800px;margin:0 auto;color:#333;font-family:Georgia,'Times New Roman',serif;font-size:18px;line-height:1.8;overflow-wrap:anywhere}.entry-content p{margin:0 0 1.35em}
body.page-id-2433 .entry-content{font-family:Arial,Helvetica,sans-serif}body.page-id-2433 .entry-content h1,body.page-id-2433 .entry-content h2,body.page-id-2433 .entry-content h3,body.page-id-2433 .entry-content h4,body.page-id-2433 .entry-content h5,body.page-id-2433 .entry-content h6{font-family:Georgia,'Times New Roman',serif}.entry-content img{display:block;max-width:100%;height:auto;margin:24px auto}.entry-content figure{margin:28px auto}.entry-content a{text-decoration:underline;text-underline-offset:3px}.entry-content blockquote{margin:28px 0;padding:4px 24px;border-left:2px solid #aaa;color:#666}.post-navigation{display:flex;justify-content:space-between;gap:24px;max-width:800px;margin:44px auto 0;padding-top:18px;border-top:1px solid var(--harlow-line);font-size:12px;letter-spacing:.08em;text-transform:uppercase}
.site-footer{padding:30px 20px;border-top:1px solid #ddd;text-align:center;color:#888;font-size:11px;letter-spacing:.08em;text-transform:uppercase}.site-footer p{margin:0}.site-footer .copyright-notice{max-width:900px;margin:10px auto 0;font-size:10px;line-height:1.55;letter-spacing:.035em;text-transform:none}.screen-reader-text{position:absolute!important;clip:rect(1px,1px,1px,1px);width:1px;height:1px;overflow:hidden;white-space:nowrap}
@media(max-width:1100px){.post-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.site-main{width:min(var(--harlow-width),calc(100% - 36px))}}
@media(max-width:760px){.site-header{padding:30px 16px 0}.primary-nav ul{gap:8px 22px}.category-nav{margin-top:18px}.category-nav ul{gap:7px 14px}.site-main{width:calc(100% - 32px);margin-top:26px}.post-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px 14px}.post-card-title{font-size:16px}.post-excerpt{font-size:13px}.read-more-link{margin-top:10px}.entry-content{font-size:17px}}
@media(max-width:440px){.post-grid{grid-template-columns:1fr}.post-card-media img{aspect-ratio:1.35/1}.single-title,.page-title{font-size:29px}}
body.page-id-2453 .contact-letter{position:relative;max-width:760px;margin:12px auto 0;padding:68px 54px 48px;background:#faf7f0;border:1px solid #d8cbbb;box-shadow:0 2px 8px rgba(63,48,34,.08),inset 0 0 0 5px rgba(255,255,255,.55)}
body.page-id-2453 .contact-letter:before{content:"";position:absolute;top:22px;right:32px;width:78px;height:92px;background:url("https://harlowjournal.com/wp-content/uploads/2026/11/contact-francobollo-tiziano.jpg") center/contain no-repeat;mix-blend-mode:multiply;filter:sepia(.18) saturate(.77);opacity:.9;transform:rotate(5deg);pointer-events:none}
body.page-id-2453 .contact-letter>p:first-child{padding-right:130px;color:#7a3e43;font-style:italic}body.page-id-2453 .contact-letter p{margin-bottom:1.2em}body.page-id-2453 .contact-letter .wp-block-shortcode{margin-top:30px}body.page-id-2453 .contact-letter form{margin:0}body.page-id-2453 .contact-letter label{font-family:Arial,Helvetica,sans-serif;font-size:11px;letter-spacing:.08em;text-transform:uppercase;color:#71665b}
body.page-id-2453 .contact-letter input:not([type=submit]),body.page-id-2453 .contact-letter textarea{width:100%;padding:11px 12px;background:#fffdf9;border:1px solid #cfc3b4;border-radius:0;color:#3e3933;font:16px Georgia,'Times New Roman',serif}body.page-id-2453 .contact-letter input:focus,body.page-id-2453 .contact-letter textarea:focus{outline:1px solid #7a3e43;outline-offset:1px}
body.page-id-2453 .contact-letter input[type=submit],body.page-id-2453 .contact-letter button{padding:10px 22px;background:#7a3e43;border:1px solid #7a3e43;border-radius:0;color:#fff;font-family:Arial,Helvetica,sans-serif;font-size:11px;letter-spacing:.1em;text-transform:uppercase;cursor:pointer}body.page-id-2453 .contact-letter input[type=submit]:hover,body.page-id-2453 .contact-letter button:hover{background:#5e3034}
@media(max-width:600px){body.page-id-2453 .contact-letter{padding:116px 22px 30px}body.page-id-2453 .contact-letter:before{top:20px;right:25px;width:65px;height:77px}body.page-id-2453 .contact-letter>p:first-child{padding-right:0}}

/* Keep article previews contained, including long unbroken text. */
.post-card{overflow-wrap:anywhere;word-break:normal}
.post-card-title,.post-meta,.post-excerpt{max-width:100%;overflow-wrap:anywhere}
.post-excerpt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:6;overflow:hidden}
.post-excerpt p{margin:0}
.entry-content{display:flow-root}
.entry-content .alignleft,.entry-content .alignright{float:none;display:block;margin:24px auto;max-width:100%}

/* Compact, readable legal pages. */
body.page-id-2614 .entry-content,body.page-id-2616 .entry-content{font-size:15px;line-height:1.7}
body.page-id-2614 .entry-content h2,body.page-id-2616 .entry-content h2{font-size:20px;line-height:1.35;font-weight:400}
body.page-id-2614 .page-title,body.page-id-2616 .page-title{font-size:30px}

/* Preserve the complete Van Vechten photograph. */
.post-card.post-2400 .post-card-media img{object-fit:contain;background:var(--harlow-paper)}
body.single-post.postid-2400 .single-featured{max-width:460px}

/* Fit the complete Guy Bourdin portrait within the Journal thumbnail. */
.post-card.post-2404 .post-card-media{background:var(--harlow-paper)}
.post-card.post-2404 .post-card-media img{width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;object-position:center;background:var(--harlow-paper)}

/* Journal: show every thumbnail in full, centered in a consistent frame. */
.post-card .post-card-media{background:var(--harlow-paper)}
.post-card .post-card-media img{display:block;width:100%;height:auto;aspect-ratio:4/3;object-fit:contain;object-position:center;background:var(--harlow-paper)}

/* Journal previews fill their column at their natural proportions. */
.post-grid .post-card .post-card-media img{display:block;width:100%;max-width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

/* Equal Journal image frames keep article headings aligned. */
.post-grid .post-card .post-card-media{display:block;width:100%;aspect-ratio:4/3;overflow:hidden}
.post-grid .post-card .post-card-media img{display:block;width:100%;height:100%;max-width:100%;aspect-ratio:auto;object-fit:cover;object-position:center}

.post-grid .post-card:not(:has(.post-card-media))::before{content:"";display:block;width:100%;aspect-ratio:4/3;margin-bottom:15px}
.post-grid .post-card.post-2400 .post-card-media img{object-fit:contain}

.post-grid .post-card .post-card-media img{object-position:center top}

/* Preserve original photo orientation in the Journal and article pages. */
.post-grid .post-card .post-card-media{aspect-ratio:auto;height:auto;background:transparent}
.post-grid .post-card .post-card-media img{display:block;width:100%;height:auto;aspect-ratio:auto;object-fit:contain}
.post-grid .post-card:not(:has(.post-card-media))::before{display:none}
body.single-post .single-featured{width:100%;max-width:800px;margin-left:auto;margin-right:auto}
body.single-post .entry-content img{width:100%;height:auto;max-width:100%;object-fit:contain}
body.single-post .entry-content figure{width:100%;max-width:100%}

/* Let actual image proportions determine height, including lazy-loaded photos. */
.post-grid .post-card .post-card-media img{contain:none;contain-intrinsic-size:none}
body.single-post .entry-content img,body.single-post .single-featured img{contain:none;contain-intrinsic-size:none}

.post-grid .post-card .post-card-media img{aspect-ratio:auto}
body.single-post .entry-content img,body.single-post .single-featured img{aspect-ratio:auto}

/* Compact newspaper columns: each story stays with its photograph. */
.post-grid{display:block;column-count:3;column-gap:26px}
.post-grid .post-card{display:inline-block;vertical-align:top;width:100%;break-inside:avoid;page-break-inside:avoid;margin:0 0 28px;padding-bottom:18px}
.post-grid .post-card:nth-child(6n + 3) .post-card-media{width:86%;margin-left:auto;margin-right:auto}
.post-grid .post-card:nth-child(6n + 5) .post-card-media{width:93%}
.post-grid .post-card .post-card-title{font-size:20px}
@media(max-width:900px){.post-grid{column-count:2;column-gap:20px}}
@media(max-width:540px){.post-grid{column-count:1}.post-grid .post-card{margin-bottom:24px}.post-grid .post-card .post-card-title{font-size:19px}}

/* Comfortable iPhone reading and touch targets. */
@media(max-width:540px){
 .site-header{padding:24px 16px 0}
 .brand img,.custom-logo{width:100%;max-width:380px}
 .primary-nav{margin-top:14px}.primary-nav ul{gap:4px 24px}
 .primary-nav a{min-height:44px;display:flex;align-items:center;font-size:12px}
 .site-main{width:calc(100% - 32px);margin-top:24px}
 .post-grid .post-card .post-card-title{font-size:22px;line-height:1.25}
 .post-excerpt{font-size:15px;line-height:1.6}
 .post-meta{font-size:10px;line-height:1.6}
 .read-more-link{min-height:44px;display:inline-flex;align-items:center;margin-top:4px;font-size:11px}
 .pagination a{min-height:44px;display:inline-flex;align-items:center}
 .post-grid .post-card{margin-bottom:26px;padding-bottom:12px}
 .entry-content{font-size:18px;line-height:1.7}
 .single-title,.page-title{font-size:29px;overflow-wrap:anywhere}
}

/* Article hearts: one compact counter, without a second like widget. */
body.single-post .jetpack-likes-widget-wrapper{display:none!important}
body.single-post .wpulike{display:flex;justify-content:center;margin:32px 0 24px;padding:0}
body.single-post .wpulike .wp_ulike_btn{min-width:44px;min-height:44px;box-shadow:none}
body.single-post .wpulike .count-box{font-family:Arial,Helvetica,sans-serif;font-size:12px;box-shadow:none}


/* Page three: the same varied, compact rhythm as page two. */
body.paged-3 .post-grid{column-count:3;column-gap:26px;column-fill:balance}
body.paged-3 .post-grid .post-card .post-card-media{width:100%;margin-left:auto;margin-right:auto}
body.paged-3 .post-grid .post-card:nth-child(5n + 2) .post-card-media{width:74%}
body.paged-3 .post-grid .post-card:nth-child(5n + 3) .post-card-media{width:90%}
body.paged-3 .post-grid .post-card:nth-child(5n + 4) .post-card-media{width:68%}
body.paged-3 .post-grid .post-card:nth-child(5n) .post-card-media{width:84%}
@media(max-width:900px){body.paged-3 .post-grid{column-count:2;column-gap:20px}}
@media(max-width:540px){body.paged-3 .post-grid{column-count:1}}

/* Page two: varied image sizes while keeping every photograph intact. */
body.paged-2 .post-grid{column-fill:balance}
body.paged-2 .post-grid .post-card .post-card-media{width:100%;margin-left:auto;margin-right:auto}
body.paged-2 .post-grid .post-card:nth-child(5n + 2) .post-card-media{width:74%}
body.paged-2 .post-grid .post-card:nth-child(5n + 3) .post-card-media{width:90%}
body.paged-2 .post-grid .post-card:nth-child(5n + 4) .post-card-media{width:68%}
body.paged-2 .post-grid .post-card:nth-child(5n) .post-card-media{width:84%}

/* Balance the final column edges without adding empty spacer blocks. */
@media(min-width:901px){body.paged-2 .post-grid .post-card:nth-child(-n + 9) .post-card-media{width:100%}body.paged-2 .post-grid .post-card.post-2081 .post-card-media{width:90%}body.paged-2 .post-grid .post-card.post-1828 .post-card-media{width:92%}}

/* Balance page three at desktop widths while retaining varied image sizes. */
@media(min-width:901px){
body.paged-3 .post-grid .post-card.post-1728 .post-card-media{width:100%}
body.paged-3 .post-grid .post-card.post-1674 .post-card-media{width:62%}
body.paged-3 .post-grid .post-card.post-1669 .post-card-media{width:58%}
body.paged-3 .post-grid .post-card.post-1654 .post-card-media{width:100%}
body.paged-3 .post-grid .post-card.post-1646 .post-card-media{width:90%}
}

/* Model credits match the existing article captions. */
.single-featured .thj-model-photo figcaption{font-family:Georgia,'Times New Roman',serif;color:#333;font-weight:400;letter-spacing:normal;text-transform:none}
.single-featured .thj-model-photo figcaption a{text-decoration:underline;text-underline-offset:3px}

/* Winogrand: full-column photograph in the Journal. */
body .post-grid .post-card.post-1714 .post-card-media{width:100%;max-width:100%;margin-left:0;margin-right:0}

/* Page three: every photograph fills its column, preserving orientation. */
body.paged-3 .post-grid .post-card:nth-child(n) .post-card-media{width:100%;max-width:100%;margin-left:0;margin-right:0}
body.paged-3 .post-grid .post-card .post-card-media img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

/* Page two: photographs fill the full story column. */
body.paged-2 .post-grid .post-card:nth-child(n) .post-card-media{width:100%;max-width:100%;margin-left:0;margin-right:0}
body.paged-2 .post-grid .post-card .post-card-media img{width:100%;height:auto;aspect-ratio:auto;object-fit:contain}

/* Remove the white outer margins from these two Journal photographs. */
body .post-grid .post-card.post-2338 .post-card-media,body .post-grid .post-card.post-2326 .post-card-media{position:relative;width:100%;max-width:100%;margin-left:0;margin-right:0;overflow:hidden}
body .post-grid .post-card.post-2338 .post-card-media{aspect-ratio:0.73}
body .post-grid .post-card.post-2326 .post-card-media{aspect-ratio:0.714}
body .post-grid .post-card.post-2338 .post-card-media img{position:absolute;width:118.5%;max-width:none;height:auto;left:-9.25%;top:-6.6%;aspect-ratio:auto}
body .post-grid .post-card.post-2326 .post-card-media img{position:absolute;width:117.65%;max-width:none;height:auto;left:-8.825%;top:-6.3%;aspect-ratio:auto}

/* Susan Seidelman: full-column Journal photograph. */
body .post-grid .post-card.post-2119 .post-card-media{width:100%;max-width:100%;margin-left:0;margin-right:0}

/* Animalita: trim the white bottom strip from the Journal preview. */
body .post-grid .post-card.post-2412 .post-card-media{position:relative;aspect-ratio:800/777;overflow:hidden}
body .post-grid .post-card.post-2412 .post-card-media img{position:absolute;top:-8.37%;left:0;width:100%;height:auto;aspect-ratio:auto}

/* Fluorescent Colors: edge-to-edge poster without its white surround. */
body.paged-2 .post-grid .post-card.post-2069:nth-child(n) .post-card-media{position:relative;width:100%;max-width:100%;aspect-ratio:316/484;overflow:hidden;margin-left:0;margin-right:0}
body.paged-2 .post-grid .post-card.post-2069 .post-card-media img{position:absolute;left:-31.96%;top:-2.89%;width:164.56%;max-width:none;height:auto;aspect-ratio:auto}

/* Photo credits stay centred beneath their own image, in old and new posts. */
body.single-post figcaption,
body.single-post .wp-caption-text,
body.single-post .photo-credit {
    display:block;
    text-align:center !important;
    max-width:100%;
    margin-left:auto !important;
    margin-right:auto !important;
}
body.single-post figure.wp-caption,
body.single-post .entry-content .wp-caption {
    max-width:100%;
    margin-left:auto !important;
    margin-right:auto !important;
}

/* Keep the Pieter Hugo preview flush with its Journal column. */
body .post-grid .post-card.post-2426 .post-card-media {width:100%;max-width:100%;margin-inline:0;}
body .post-grid .post-card.post-2426 .post-card-media img {width:100%;height:auto;}

body .post-grid .post-card.post-260 .post-card-media { overflow:hidden; }
body .post-grid .post-card.post-260 .post-card-media img { display:block; width:126.27%; max-width:none; height:auto; margin-inline-start:-13.26%; }

.post-card.post-127 .post-card-media { width: 100% !important; margin-inline: 0 !important; }

.post-card.post-575 .post-card-media { width: 100% !important; margin-inline: 0 !important; }

.post-card.post-260 .post-card-media { width: 100% !important; margin-inline: 0 !important; }

.post-card.post-260 .post-card-media, .post-card.post-260 .post-card-media img { width:100% !important; max-width:100% !important; margin-inline:0 !important; }

.post-card.post-2392 .post-card-media, .post-card.post-2392 .post-card-media img { width:100% !important; max-width:100% !important; margin-inline:0 !important; }
