/* thodorisnikolaou.com — layout v2 (25/11/2026)
   All pages: a page header like PROJECTS (left aligned), content full width (like the projects list), text left aligned.
   PUBLICATIONS / WORKSHOPS: cards in a 2-column grid, square, no shadows, ink rules like the rest of the site. */

/* page header: the same title as on PROJECTS */
html.tn-v2 .tn-page > .page-title{margin:0 0 50px;text-align:left}
html.tn-v2 .tn-page > .page-title + .entry-meta{margin:-40px 0 40px;text-align:left}
@media (max-width:1199px){html.tn-v2 .tn-page > .page-title{margin-bottom:30px}html.tn-v2 .tn-page > .page-title + .entry-meta{margin-top:-20px}}

/* full width, left aligned: the text keeps its words, only its alignment changes (old centred paragraphs) */
html.tn-v2 .tn-page .entry-content{max-width:none;margin-left:0;margin-right:0;text-align:left}
html.tn-v2 .tn-page .entry-content :is(p,h1,h2,h3,h4,h5,h6,li,figcaption).has-text-align-center,
html.tn-v2 .tn-page .entry-content [style*="text-align: center"],
html.tn-v2 .tn-page .entry-content [style*="text-align:center"]{text-align:left !important}
html.tn-v2 .tn-page .entry-content figure:not(#tn){margin-left:0;margin-right:0}
html.tn-v2 .tn-page .entry-content hr:not(#tn){margin:0 0 24px;border:0;border-top:1px solid var(--rule)}
html.tn-v2 .tn-page .entry-content .aligncenter{margin-left:0}
html.tn-v2 .tn-page .tn-share{justify-content:flex-start}
html.tn-v2 .tn-page .searchform{max-width:none}
html.tn-v2 .tn-page .wpcf7,html.tn-v2 .tn-page .wpcf7-form{max-width:none}
html.tn-v2 .tn-page .tn-contact-alt{text-align:left}

/* ---------- cards: Publications / Workshops ---------- */
.tn-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:50px;margin:0;padding:0}
@media (max-width:1199px){.tn-cards{gap:30px}}
@media (max-width:767px){.tn-cards{grid-template-columns:1fr;gap:24px}}
.tn-card{position:relative;display:flex;flex-direction:column;border:1px solid var(--ink);background:var(--paper);border-radius:0;box-shadow:none;min-width:0}
.tn-card__media{display:block;background:var(--soft);line-height:0;overflow:hidden;border-bottom:1px solid var(--ink)}
.tn-card__media img{display:block;width:100%;height:auto}
a.tn-card__media{cursor:zoom-in}
a.tn-card__media img{transition:transform .9s var(--ease),opacity .3s}
a.tn-card__media:hover img,a.tn-card__media:focus-visible img{transform:scale(1.025)}
.tn-card__body{padding:28px 30px 30px}
@media (max-width:767px){.tn-card__body{padding:20px 18px 22px}}
html .tn-card__title{margin:0;font-size:22px;line-height:1.15;font-weight:600;letter-spacing:var(--tn-ls-title,-.02em);text-transform:uppercase;color:var(--ink);font-stretch:var(--tn-wd-title,115%);text-wrap:balance}
.tn-card__dates{margin:10px 0 0;font-size:12px;font-weight:500;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-stretch:var(--tn-wd-title,115%)}
.tn-card__details{list-style:none;margin:18px 0 0;padding:16px 0 0;border-top:1px solid var(--rule)}
.tn-card__details li{margin:0;font-size:15px;line-height:1.65;color:var(--ink-2)}
.tn-cards--workshops .tn-card__body{padding-top:34px;padding-bottom:36px}
.tn-cards-empty{color:var(--muted)}
/* dark theme: the variables already flip; the card frame follows the ink */
html.tn-dark .tn-card{background:transparent}

/* entrance motion like the projects list */
html.f-motion.tn-anim .tn-card:not(.is-in){opacity:0;transform:translateY(14px)}
html.f-motion .tn-card{transition:opacity .45s var(--ease),transform .55s var(--ease);transition-delay:var(--d,0s)}
html.tn-still .tn-card{transition:none !important;opacity:1 !important;transform:none !important}

/* ---------- 25/11 round 2 ---------- */
/* Publications: no outer frame; the photo is a carousel with arrows always visible */
.tn-cards--publications .tn-card{border:0;background:transparent}
.tn-cards--publications .tn-card__body{padding:22px 0 0}
.tn-carousel{position:relative;background:var(--soft)}
.tn-carousel__track{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-x:contain}
.tn-carousel__track::-webkit-scrollbar{display:none}
.tn-carousel__slide{flex:0 0 100%;min-width:100%;scroll-snap-align:start;display:block;line-height:0;cursor:zoom-in}
.tn-carousel__slide img{display:block;width:100%;height:auto}
.tn-carousel .tn-carousel__btn:not(#tn){position:absolute;top:50%;transform:translateY(-50%);z-index:2;width:44px;height:44px;margin:0;padding:0;border:0;border-radius:0;box-shadow:none;background:var(--paper);color:var(--ink);display:flex;align-items:center;justify-content:center;cursor:pointer;opacity:.92;transition:background .2s,color .2s,opacity .2s}
.tn-carousel .tn-carousel__btn--prev:not(#tn){left:0}
.tn-carousel .tn-carousel__btn--next:not(#tn){right:0}
.tn-carousel .tn-carousel__btn:not(#tn):hover,.tn-carousel .tn-carousel__btn:not(#tn):focus-visible{background:var(--ink);color:var(--on-ink);opacity:1}
.tn-carousel__btn svg{width:20px;height:20px;display:block}
.tn-carousel__count{position:absolute;left:0;bottom:0;z-index:2;padding:5px 9px;background:var(--paper);color:var(--ink);font-size:11px;line-height:1.4;letter-spacing:.08em;font-stretch:var(--tn-wd-title,115%)}
@media (max-width:767px){.tn-carousel .tn-carousel__btn:not(#tn){width:40px;height:40px}}

/* lightbox: arrows visible at once (the old theme painted them dark grey on the dark backdrop) and on touch screens too */
html.f-lightbox .tn-lb .mfp-arrow{opacity:.9}
html.f-lightbox .tn-lb .mfp-arrow:hover,html.f-lightbox .tn-lb .mfp-arrow:focus{opacity:1}
html.f-lightbox .tn-lb .mfp-arrow:after{color:#f2f2f2}
@media (hover:none){html.f-lightbox .tn-lb .mfp-arrow{display:block !important;width:56px}}

/* Workshops: tighter, and the card inverts on hover */
.tn-cards--workshops{gap:20px}
@media (max-width:767px){.tn-cards--workshops{gap:14px}}
.tn-cards--workshops .tn-card__body{padding:24px 26px 26px}
html .tn-cards--workshops .tn-card{transition:background .25s var(--ease),border-color .25s var(--ease)}
html.f-motion .tn-cards--workshops .tn-card{transition:opacity .45s var(--ease),transform .55s var(--ease),background .25s var(--ease),border-color .25s var(--ease)}
.tn-cards--workshops .tn-card :is(.tn-card__title,.tn-card__dates,.tn-card__details li){transition:color .25s var(--ease)}
.tn-cards--workshops .tn-card:hover{background:var(--ink)}
.tn-cards--workshops .tn-card:hover :is(.tn-card__title,.tn-card__dates,.tn-card__details li){color:var(--on-ink)}
.tn-cards--workshops .tn-card:hover .tn-card__details{border-top-color:var(--on-ink)}
