/* thodorisnikolaou.com — native Elementor templates (30/11)
   The old classes (tn.css / tn-v2.css: the approved look) now sit on Elementor containers and widgets. This file makes those
   wrappers behave like the old elements. Loaded only when the native templates render (tn_native_on). */

/* ---------- 1. Elementor's own spacing off inside the site's templates (the old classes carry their own margins) ---------- */
.tn-tpl,.elementor-location-single .tn-lab__hero,.elementor-location-single .tn-lab__sec{--kit-widget-spacing:0px;--widgets-spacing:0px;--widgets-spacing-row:0px;--widgets-spacing-column:0px}
html .tn-tpl .e-con:is(.item-details,.tn-foot,.tn-icons,.tn-pagefoot__l){width:auto}

/* ---------- 2. Heading / Post Title widgets: the inner title takes the wrapper's type, as the old element did ---------- */
html .elementor-widget:is(.site-logo,.site-tagline,.page-title,.entry-title,.item-title,.item-more,.tn-card__title,.tn-card__dates,.tn-card__more,.tn-lab__label,.tn-lab__tagline,.tn-lab__season,.tn-lab__affil-k,.entry-meta,.entry-time,.entry-cats,.tn-pub__dt,.tn-pub__dd,.tn-foot__copy,.tn-foot-ck,.tn-pagefoot__copy,.tn-pagefoot__ck,.tn-aff-line__role,.tn-aff-line__name,.tn-lab-link) .elementor-heading-title{font:inherit;font-stretch:inherit;letter-spacing:inherit;text-transform:inherit;color:inherit;line-height:inherit;margin:0;padding:0;text-wrap:inherit}
html .elementor-widget:is(.site-logo,.item-more,.tn-card__title,.tn-card__more,.tn-foot-ck,.tn-pagefoot__ck,.tn-lab-link) .elementor-heading-title a{color:inherit;text-decoration:inherit}
html.f-dark.tn-dark .elementor-widget:is(.item-more,.btn) a:not(#tn){color:inherit !important}

/* the old bottom margins of those elements (Elementor's widget spacing rule is stronger than the old class rules) */
html .tn-tpl .elementor-widget.page-title:not(:last-child){margin-block-end:50px}
@media (max-width:1199px){html .tn-tpl .elementor-widget.page-title:not(:last-child){margin-block-end:30px}}
html.tn-v2 .tn-tpl .elementor-widget.entry-title:not(:last-child){margin-block-end:15px}
html .tn-tpl .elementor-widget.entry-meta:not(:last-child){margin-block-end:20px}
html .tn-lab .elementor-widget.tn-lab__tagline:not(:last-child),html .elementor-widget.tn-lab__tagline:not(:last-child){margin-block-end:30px}
html .elementor-widget.tn-lab__season:not(:last-child){margin-block-end:24px}
html .elementor-widget.tn-lab__affil-k:not(:last-child){margin-block-end:6px}
html .tn-member > .elementor-widget.tn-lab__label:not(:last-child){margin-block-end:24px}
html .elementor-widget.tn-card__role:not(:last-child){margin-block-end:10px}
html .elementor-widget.tn-lab__logo:not(:last-child){margin-block-end:30px}
@media (max-width:767px){html .elementor-widget.tn-lab__tagline:not(:last-child){margin-block-end:24px}html .elementor-widget.tn-lab__logo:not(:last-child){margin-block-end:22px}}

/* ---------- 3. home / archive / related items: the photo is a native Featured Image (lazy, right size) instead of a background ---------- */
html .tn-tpl .item > .item-img{position:absolute;inset:0;z-index:0;width:auto;max-width:none;margin:0;overflow:hidden}
html .tn-tpl .item > .item-img img{display:block;width:100%;height:100%;max-width:none;object-fit:cover;object-position:center;transition:transform 1.4s var(--ease)}
html.f-hover .tn-tpl .item:hover > .item-img img{transform:scale(1.025)}
html .tn-loop .e-loop-item{min-width:0}

/* ---------- 4. project page: photos as the old figures, previous / next ---------- */
html .tn-prevnext .elementor-post-navigation{display:grid;grid-template-columns:1fr 1fr;border:0;margin:0;padding:0}
html .tn-prevnext .elementor-post-navigation__separator-wrapper{display:none}
html .tn-prevnext .elementor-post-navigation__link{width:auto;max-width:none}
html .tn-prevnext .elementor-post-navigation__link a{display:block;padding:22px 20px;color:var(--ink);transition:background .25s,color .25s}
html .tn-prevnext .elementor-post-navigation__next{text-align:right;border-left:1px solid var(--ink)}
html .tn-prevnext .elementor-post-navigation__next:only-child{grid-column:2}
html .tn-prevnext .post-navigation__prev--label,html .tn-prevnext .post-navigation__next--label{display:block;font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--muted);margin-bottom:8px;transition:color .25s}
html .tn-prevnext .post-navigation__prev--title,html .tn-prevnext .post-navigation__next--title{display:block;font-weight:700;font-size:18px;line-height:1.2;text-transform:uppercase;letter-spacing:-.015em;font-stretch:var(--tn-wd-title,115%)}
html .tn-prevnext .elementor-post-navigation__link a:hover{background:var(--ink);color:var(--on-ink)}
html .tn-prevnext .elementor-post-navigation__link a:hover span{color:var(--on-ink)}
@media (max-width:767px){html .tn-prevnext .elementor-post-navigation__link a{padding:16px 12px}html .tn-prevnext :is(.post-navigation__prev--title,.post-navigation__next--title){font-size:15px}}

/* ---------- 5. sidebar footer + page footer: native icons ---------- */
html .tn-icons .elementor-widget-icon{line-height:0}
html .tn-icons .elementor-icon{width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;color:var(--ink);font-size:18px;transition:background .2s,color .2s}
html .tn-icons .elementor-icon svg{width:18px;height:18px;fill:currentColor}
html .tn-icons .elementor-icon:hover{background:var(--ink);color:var(--on-ink)}
html .mobile-toggle .elementor-icon{color:var(--ink);font-size:24px}
html .mobile-toggle .elementor-icon svg{width:24px;height:24px;fill:currentColor}

/* ---------- 6. the WORKSHOPS line to the Lab, cards ---------- */
html .elementor-widget.tn-lab-link{margin:0 0 20px}
@media (max-width:767px){html .elementor-widget.tn-lab-link{margin-bottom:14px}}
html .elementor-widget.tn-lab-link .elementor-heading-title > a{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 18px;padding:20px 26px;border:1px solid var(--ink);color:var(--ink);text-decoration:none;transition:background-color .25s var(--ease),color .25s var(--ease)}
@media (max-width:767px){html .elementor-widget.tn-lab-link .elementor-heading-title > a{padding:16px 18px}}
html .elementor-widget.tn-lab-link .elementor-heading-title > a:hover{background-color:var(--ink);color:var(--on-ink)}
html .elementor-widget.tn-lab-link .elementor-heading-title > a:hover .tn-lab-link__v{color:var(--on-ink)}
html.f-dark.tn-dark .elementor-widget.tn-lab-link .elementor-heading-title > a:hover,html.f-dark.tn-dark .elementor-widget.tn-lab-link .elementor-heading-title > a:hover *{color:var(--on-ink) !important}
html .tn-card__details p{margin:0;font-size:15px;line-height:1.65;color:var(--ink-2)}
html .tn-card__details ul{list-style:none;margin:0;padding:0}
html .tn-cards--member .tn-card:hover .tn-card__more a,html.f-dark.tn-dark .tn-cards--member .tn-card:hover .tn-card__more a:not(#tn){color:var(--on-ink) !important}
html .tn-cards--workshops .tn-card:hover .tn-card__details p{color:var(--on-ink)}
html.f-dark.tn-dark .tn-cards--workshops .tn-card:hover .tn-card__details p:not(#tn){color:var(--on-ink) !important}

/* ---------- 7. SOCIAL DOCUMENTARY LAB page (Elementor content) ---------- */
html .tn-lab__info .tn-pub__dt{margin:0;font-size:11px;font-weight:500;letter-spacing:.1em;line-height:1.9;text-transform:uppercase;color:var(--muted);font-stretch:var(--tn-wd-title,115%)}
html .tn-lab__info .tn-pub__dd{margin:0;font-size:15px;line-height:1.6;color:var(--ink)}
html .e-con.tn-pub__row{display:grid;grid-template-columns:minmax(110px,38%) 1fr;gap:16px}
html .tn-lab__cta .elementor-button{display:inline-flex;align-items:center;justify-content:center;min-height:50px;padding:0 42px;border:0;border-radius:0;background-color:#212121;color:#fff;font-size:12px;font-weight:500;line-height:normal;letter-spacing:.07em;text-transform:uppercase;font-stretch:var(--tn-wd-title,115%)}
html .tn-lab__cta .elementor-button:hover{background-color:#4e4e4e;color:#fff}
html.f-dark.tn-dark .tn-lab__cta .elementor-button:not(#tn){background-color:var(--ink);color:var(--on-ink)}
html .elementor-widget.tn-lab__cta{margin-top:30px}
@media (max-width:767px){html .tn-lab__cta .elementor-button{width:100%}}
html .tn-lab__pillars .elementor-icon-list-items{display:flex;flex-wrap:wrap;gap:4px 0;margin:0;padding:0}
html .tn-lab__pillars .elementor-icon-list-item{margin:0;padding:0}
html .tn-lab__pillars .elementor-icon-list-text{font-size:clamp(22px,2.3vw,34px);line-height:1.15;font-weight:600;letter-spacing:-.02em;text-transform:uppercase;color:var(--ink);font-stretch:var(--tn-wd-title,115%);padding:0}
html .tn-lab__pillars .elementor-icon-list-item:not(:last-child)::after{content:"/";position:static;margin:0 .4em;border:0;width:auto;height:auto;font-size:clamp(22px,2.3vw,34px);font-weight:300;color:var(--muted)}
html .tn-lab__steps .elementor-icon-list-items{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;counter-reset:tnstep}
@media (max-width:1199px){html .tn-lab__steps .elementor-icon-list-items{grid-template-columns:repeat(3,minmax(0,1fr))}}
html .tn-lab__steps .elementor-icon-list-item{display:block;margin:0;padding:14px 0 0;border-top:1px solid var(--rule);counter-increment:tnstep}
html .tn-lab__steps .elementor-icon-list-item::before{content:counter(tnstep,decimal-leading-zero);display:block;font-size:11px;letter-spacing:.1em;color:var(--muted);font-stretch:var(--tn-wd-title,115%)}
html .tn-lab__steps .elementor-icon-list-item::after{display:none}
html .tn-lab__steps .elementor-icon-list-text{display:block;margin:8px 0 0;padding:0;font-size:clamp(14px,1.05vw,17px);line-height:1.25;font-weight:600;letter-spacing:-.01em;text-transform:uppercase;color:var(--ink);font-stretch:var(--tn-wd-title,115%)}
@media (max-width:767px){
  html .tn-lab__steps .elementor-icon-list-items{grid-template-columns:minmax(0,1fr);gap:0}
  html .tn-lab__steps .elementor-icon-list-item{display:grid;grid-template-columns:36px minmax(0,1fr);padding:12px 0;border-top:0;border-bottom:1px solid var(--rule)}
  html .tn-lab__steps .elementor-icon-list-item:first-child{padding-top:0}
  html .tn-lab__steps .elementor-icon-list-item::before{line-height:1.9}
  html .tn-lab__steps .elementor-icon-list-text{margin:0;font-size:16px}
}
html .tn-lab__lead p{margin:0;max-width:780px;font-size:22px;line-height:1.45;font-weight:400;color:var(--ink);text-wrap:pretty}
@media (max-width:767px){html .tn-lab__lead p{font-size:18px}}
html .e-con.tn-lab__photos{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}
html .e-con.tn-lab__photos.is-one{grid-template-columns:minmax(0,1fr)}
html .e-con.tn-lab__posters{display:grid;grid-template-columns:repeat(2,minmax(0,320px));gap:20px;align-items:start}
@media (max-width:767px){html .e-con.tn-lab__photos{grid-template-columns:minmax(0,1fr);gap:14px}html .e-con.tn-lab__posters{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}}
html :is(.tn-lab__cover,.tn-lab__photo,.tn-lab__poster) .elementor-widget-image{width:100%}
html :is(.tn-lab__cover,.tn-lab__photo,.tn-lab__poster) img{display:block;width:100%;height:auto;max-width:none}
html .tn-lab__photos.is-one img{max-height:calc(100vh - 60px);object-fit:contain}
html .tn-aff-line{display:flex;flex-wrap:wrap;gap:0 6px;font-size:14px;line-height:1.6;color:var(--ink-2)}
html .tn-aff-line__role{font-weight:600;color:var(--ink)}
html .elementor-widget.tn-lab__text p{font-size:17px;line-height:1.72}
@media (max-width:767px){html .elementor-widget.tn-lab__text p{font-size:16px}}

/* ---------- 8. the curtain page (Elementor Maintenance Mode): no theme switch there ---------- */
body.elementor-maintenance-mode .tn-theme{display:none}

/* ---------- 9. after the first comparison (30/11) ---------- */
/* sidebar: the name as large as before; the footer at the bottom of the fixed column (not over the menu) */
.elementor-widget.site-logo{font-size:24px}
@media (min-width:992px){html .sidebar-left .e-con.side-wrap{position:static}html .sidebar-left .e-con.footer{position:absolute;left:0;bottom:0;width:100%}}
html .tn-foot .elementor-widget-heading{margin:0;font-size:11px;line-height:1.625;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html .tn-foot .elementor-widget.tn-foot-ck{margin-top:6px}
html .tn-foot .elementor-widget.tn-foot-ck a{text-decoration:underline;text-underline-offset:3px}
html .tn-pagefoot .elementor-widget-heading{margin:0}
html .tn-pagefoot .elementor-widget.tn-pagefoot__ck::before{content:"·";margin:0 .45em}
html .tn-pagefoot .elementor-widget.tn-pagefoot__ck a{text-decoration:underline;text-underline-offset:3px;color:inherit}
/* project: the logos at the right of the title (the old .has-logos grid, now found with :has) */
html.tn-v2 .entry-project-side:has(> .elementor-widget-tn-proj-logos .tn-proj-logos){display:grid;grid-template-columns:minmax(0,1fr) auto;column-gap:30px;align-content:start}
html.tn-v2 .entry-project-side:has(> .elementor-widget-tn-proj-logos .tn-proj-logos) > *{grid-column:1 / -1;min-width:0}
html.tn-v2 .entry-project-side:has(> .elementor-widget-tn-proj-logos .tn-proj-logos) > .entry-title{grid-column:1;grid-row:1}
html.tn-v2 .entry-project-side:has(> .elementor-widget-tn-proj-logos .tn-proj-logos) > .entry-meta{grid-column:1;grid-row:2}
html.tn-v2 .entry-project-side:has(> .elementor-widget-tn-proj-logos .tn-proj-logos) > .elementor-widget-tn-proj-logos{grid-column:2;grid-row:1 / span 2;align-self:start;max-width:260px;width:auto}
html.tn-v2 .entry-project-side:has(> .elementor-widget-tn-proj-logos .tn-proj-logos) > .tn-view{justify-self:start}
@media (max-width:767px){html.tn-v2 .entry-project-side:has(> .elementor-widget-tn-proj-logos .tn-proj-logos) > .elementor-widget-tn-proj-logos{grid-column:1 / -1;grid-row:auto;max-width:none;margin:0 0 22px}}
@media (min-width:1200px){html.tn-v2 .entry-project-side > .elementor-widget-tn-proj-logos .tn-proj-logos__label{padding-right:26px}}
@media (min-width:992px) and (max-width:1199px){html.tn-v2 .entry-project-side > .elementor-widget-tn-proj-logos{margin-right:50px}}
html .e-con.entry-project-side > .tn-view{align-self:flex-start}
/* Loop Grids that carry an old grid class: the grid itself is Elementor's */
html .elementor-widget-loop-grid.tn-grid{display:block}
/* 404: the search field with its button on the same line, as before */
html .tn-search .search-form{display:flex;align-items:stretch;margin:0}
html .tn-search .search-form label{flex:1 1 auto;margin:0}
html .tn-search .search-field{width:100%;margin:0}
html .tn-search .search-submit{height:42px;padding:0 20px;margin:0}

/* ---------- 10. second comparison (30/11) ---------- */
/* page / project titles were h1 / h2 with line-height normal */
html .elementor-widget:is(.page-title,.entry-title){line-height:normal}
/* Lab: Elementor's inline-list rules are stronger than plain class rules */
html .tn-lab__pillars .elementor-icon-list-items .elementor-icon-list-item:not(#tn){margin:0;padding:0}
html .tn-lab__pillars .elementor-icon-list-items:not(#tn){margin:0}
html .tn-lab__steps .elementor-icon-list-items:not(#tn){display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:24px;margin:0;padding:0}
@media (max-width:1199px){html .tn-lab__steps .elementor-icon-list-items:not(#tn){grid-template-columns:repeat(3,minmax(0,1fr))}}
@media (max-width:767px){html .tn-lab__steps .elementor-icon-list-items:not(#tn){grid-template-columns:minmax(0,1fr);gap:0}}
html .tn-lab__steps .elementor-icon-list-items .elementor-icon-list-item:not(#tn){margin:0}
@media (min-width:768px){html .tn-lab__steps .elementor-icon-list-items .elementor-icon-list-item:not(#tn){padding:14px 0 0}}
html .elementor-widget.tn-lab__lead p{margin:0;max-width:780px;font-size:22px;line-height:1.45;font-weight:400;color:var(--ink);text-wrap:pretty}
@media (max-width:767px){html .elementor-widget.tn-lab__lead p{font-size:18px}}

/* ---------- 11. phones (30/11): the page frames were plain blocks in the old markup. As flex containers, a phone computed
   the height of the project lists before their width (cards sized by aspect-ratio counted as 0), so the page ended too soon. ---------- */
html .tn-tpl .e-con:is(.content-wrap,.main,.entry,.entry-project-main,.project-assets:not(.tn-masonry),.related-projects,.tn-related,.tn-member){display:block}
/* Gallery view (masonry, tn.js): the columns side by side, as tn.css had them (an Elementor container is a column by itself) */
html .tn-tpl .e-con.project-assets.tn-masonry{display:flex;flex-direction:row;flex-wrap:nowrap;align-items:flex-start;gap:var(--g)}
/* the old tagline was a <p> (15px bottom margin): on phones it made the header taller; on desktops it disappeared in the menu's margin */
@media (max-width:991px){html .elementor-widget.site-tagline{margin-bottom:15px}}
/* the title colour of a project travels in a hidden Heading (Post Custom Field) that the adapter reads */
html .elementor-widget.tn-color-src{display:none !important}
/* the old .entry-content kept 40px below it when something followed (project side column: before «Read more» and Share) */
html .tn-tpl .elementor-widget.entry-content:not(:last-child){margin-block-end:40px}
/* Lab steps: the inline list takes the whole column */
html .tn-lab__steps .elementor-icon-list-items:not(#tn){width:100%}
/* the old list classes (grid / flex) sit on the Icon List wrapper here: the wrapper is a plain block, the list inside does the layout */
html .elementor-widget:is(.tn-lab__steps,.tn-lab__pillars){display:block}
/* Elementor's «.e-con .elementor-widget.elementor-widget{margin-block-end:0}» is stronger than a plain class: these two need more weight */
@media (max-width:991px){html .elementor-widget.site-tagline:not(#tn){margin-block-end:15px}}
html .elementor-widget.tn-lab-link:not(#tn){margin-block-end:20px}
@media (max-width:767px){html .elementor-widget.tn-lab-link:not(#tn){margin-block-end:14px}}
/* Lab, last touches (30/11): the slash between the pillars on both sides, no icon space in the lists, the button never underlined */
html .tn-lab__pillars .elementor-icon-list-item:not(:last-child):not(#tn)::after{content:"/";position:static;inset:auto;display:inline;width:auto;height:auto;border:0;margin:0 .4em;font-size:clamp(22px,2.3vw,34px);font-weight:300;color:var(--muted)}
html :is(.tn-lab__pillars,.tn-lab__steps) .elementor-icon-list-text:not(#tn){padding:0;margin-inline:0}
html .tn-lab__steps .elementor-icon-list-text:not(#tn){margin-top:8px}
@media (max-width:767px){html .tn-lab__steps .elementor-icon-list-text:not(#tn){margin-top:0}}
html .tn-lab__cta .elementor-button:not(#tn),html .tn-lab__cta .elementor-button:not(#tn) *{text-decoration:none}
/* a step title is never broken inside a word (Elementor's lists allow it; the old list did not) */
html :is(.tn-lab__steps,.tn-lab__pillars) :is(.elementor-icon-list-item,.elementor-icon-list-text):not(#tn){word-break:normal;overflow-wrap:normal}

/* ---------- 12. Story (30/11, user): every photo of a project has the SAME width and none is taller than 95% of the screen.
   The width is the one at which the project's tallest photo (narrowest width/height ratio, --tn-rmin from tn-native.js) is 95% of the
   screen high, never wider than the column; centred. Photos stay whole (no crop). Gallery view unchanged. ---------- */
html.tn-v2:not(.tn-gallery) .project-assets[style*="--tn-rmin"] > .entry-thumb:not(#tn){width:min(100%, calc(95vh * var(--tn-rmin)));margin-left:auto;margin-right:auto}
@supports (height:100svh){html.tn-v2:not(.tn-gallery) .project-assets[style*="--tn-rmin"] > .entry-thumb:not(#tn){width:min(100%, calc(95svh * var(--tn-rmin)))}}
html.tn-v2:not(.tn-gallery) .project-assets[style*="--tn-rmin"] > .entry-thumb img:not(#tn){width:100%;height:auto;max-height:none;object-fit:fill}
