/*
Theme Name: LF Spotlight
Theme URI: https://example.com/
Author: OpenAI x Laurent François
Description: A clean, editorial WordPress portfolio theme. Independent implementation with placeholder content/assets.
Version: 1.9.2
Text Domain: lf-spotlight
*/
:root{
  --bg:#fff;
  --fg:#070707;
  --pad:clamp(18px,2vw,34px);
  --gap:clamp(18px,2.1vw,34px);
  --small:12px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:var(--fg);font-family:Arial,Helvetica,sans-serif;-webkit-font-smoothing:antialiased}
a{color:inherit;text-decoration:none}
img{display:block;max-width:100%;height:auto}
button{font:inherit;color:inherit;background:none;border:0;padding:0;cursor:pointer}
.site-shell{min-height:100vh;padding:var(--pad)}
.site-header{height:34px;display:grid;grid-template-columns:1fr auto 1fr;align-items:start;font-size:var(--small);line-height:1;text-transform:none;position:relative;z-index:10}
.identity-block{justify-self:start;display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.site-brand{font-size:13px;font-weight:700;letter-spacing:-.035em;line-height:.9;text-transform:uppercase;white-space:nowrap}
.social-links{display:flex;align-items:center;gap:8px;height:15px}
.social-links a{display:inline-flex;width:14px;height:14px;align-items:center;justify-content:center;opacity:.92;transition:opacity .15s ease}
.social-links a:hover{opacity:.45}
.social-links svg{display:block;width:100%;height:100%;fill:currentColor}
.view-switch{justify-self:center;display:flex;align-items:center;gap:5px;white-space:nowrap}
.view-switch button{font-size:12px;line-height:1}
.view-switch .is-active{text-decoration:underline;text-underline-offset:3px}
.site-about{justify-self:end;font-size:12px}

/* GRID */
.portfolio-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:44px var(--gap);padding-top:44px}
.project-card{min-width:0}
.project-media{overflow:hidden;background:#efefef;aspect-ratio:4/5}
.project-media.wide{aspect-ratio:1.33/1}
.project-media.square{aspect-ratio:1/1}
.project-media img{width:100%;height:100%;object-fit:cover;transition:transform .45s ease}
.project-card:hover .project-media img{transform:scale(1.015)}
.project-caption{font-size:11px;text-align:center;padding-top:7px;line-height:1.15}

/* LIST */
.portfolio-list{display:none;min-height:calc(100vh - 70px);padding-top:36px;position:relative;overflow:hidden;text-align:center}
.portfolio-list.is-visible{display:block}
.portfolio-grid.is-hidden{display:none}
.list-row{width:100%;font-size:clamp(52px,7.2vw,122px);font-weight:800;letter-spacing:-.055em;line-height:.82;text-transform:uppercase;white-space:nowrap;position:relative;z-index:2;text-align:center}
.list-row a{display:inline-block;margin:0 auto}
.list-row a:hover{opacity:.48}
.list-preview{position:fixed;right:var(--pad);bottom:var(--pad);width:min(26vw,390px);aspect-ratio:1.25/1;background:#eee;opacity:0;transform:translateY(8px);transition:.18s ease;pointer-events:none;z-index:5;overflow:hidden}
.list-preview.is-visible{opacity:1;transform:none}
.list-preview img{width:100%;height:100%;object-fit:cover}

/* ABOUT */
.about-page{
  padding-top:clamp(42px,5vw,78px);
  min-height:calc(100vh - 70px);
  padding-bottom:clamp(80px,10vw,150px);
}
.about-title{
  text-align:center;
  font-size:clamp(68px,8.8vw,148px);
  font-weight:800;
  letter-spacing:-.065em;
  line-height:.78;
  margin:0 0 clamp(70px,8vw,126px);
}
.about-kicker{
  text-align:center;
  font-size:clamp(11px,1.05vw,18px);
  font-weight:600;
  margin:0 auto clamp(28px,3vw,48px);
}
.about-editor-content{max-width:none;margin:0 auto}
.about-editor-content > p:first-child{
  width:min(94%,1540px);
  margin:0 auto clamp(105px,11vw,175px);
  text-align:center;
  text-transform:uppercase;
  font-size:clamp(32px,3.55vw,62px);
  font-weight:800;
  line-height:.92;
  letter-spacing:-.045em;
}
.about-editor-content > p:first-child a{
  text-decoration:underline;
  text-decoration-thickness:.06em;
  text-underline-offset:.09em;
}
.about-editor-content > *:not(:first-child){
  width:min(92%,1120px);
  margin-left:auto;
  margin-right:auto;
}
.about-editor-content > p:not(:first-child){
  font-size:clamp(16px,1.25vw,22px);
  line-height:1.18;
  margin-top:0;
  margin-bottom:clamp(24px,2.5vw,42px);
}
.about-editor-content > h2,
.about-editor-content > h3{
  text-align:center;
  text-transform:uppercase;
  font-weight:800;
  letter-spacing:-.04em;
  line-height:.95;
  margin-top:clamp(78px,8vw,130px);
  margin-bottom:clamp(28px,3vw,50px);
}
.about-editor-content > h2{font-size:clamp(34px,4.25vw,72px)}
.about-editor-content > h3{font-size:clamp(23px,2.4vw,40px)}
.about-editor-content .wp-block-buttons{
  justify-content:center;
  gap:14px 28px;
  margin-top:32px;
}
.about-editor-content .wp-block-button__link{
  background:transparent;
  color:var(--fg);
  padding:0;
  border-radius:0;
  text-transform:uppercase;
  font-size:clamp(24px,3vw,50px);
  font-weight:800;
  line-height:1;
  letter-spacing:-.035em;
  text-decoration:underline;
  text-underline-offset:5px;
}
.about-editor-content .wp-block-columns{
  width:min(92%,1120px);
  gap:clamp(24px,4vw,70px);
  margin:clamp(60px,7vw,110px) auto 0;
}
.about-editor-content .wp-block-image{margin:0}
.about-editor-content .wp-block-image img{width:100%;height:auto}

/* SINGLE */
.project-page{padding-top:46px}
.project-heading{text-align:center;margin:0 auto 44px;max-width:1100px}
.project-heading h1{font-size:clamp(58px,8vw,120px);letter-spacing:-.055em;line-height:.85;text-transform:uppercase;margin:0;font-weight:800}
.project-meta{font-size:11px;margin-top:12px}
.project-hero{max-width:1200px;margin:0 auto 30px;background:#eee;overflow:hidden}
.project-hero img{width:100%;height:auto}
.project-copy{max-width:720px;margin:42px auto 70px;text-align:center;font-size:18px;line-height:1.25}
.project-gallery{display:grid;grid-template-columns:repeat(2,1fr);gap:var(--gap);max-width:1280px;margin:0 auto}
.project-gallery figure{margin:0;background:#eee;overflow:hidden}
.project-gallery figure:nth-child(3n){grid-column:1/-1}
.project-gallery img{width:100%;height:100%;object-fit:cover}
.back-home{position:fixed;left:var(--pad);bottom:var(--pad);font-size:11px;z-index:9}

@media (max-width:780px){
  :root{--pad:16px;--gap:14px}
  .site-header{height:30px}
  .site-brand{font-size:11px}
  .identity-block{gap:5px}
  .social-links{gap:7px;height:14px}
  .social-links a{width:13px;height:13px}
  .view-switch button,.site-about{font-size:11px}
  .portfolio-grid{grid-template-columns:1fr 1fr;gap:28px 12px;padding-top:28px}
  .project-caption{font-size:9px;padding-top:5px}
  .portfolio-list{padding-top:28px}
  .list-row{font-size:clamp(41px,14vw,74px);line-height:.87;white-space:normal}
  .list-preview{position:fixed;right:16px;bottom:16px;width:42vw}
  .project-page{padding-top:28px}
  .project-heading{margin-bottom:24px}
  .project-heading h1{font-size:15vw}
  .project-gallery{grid-template-columns:1fr;gap:14px}
  .project-gallery figure:nth-child(3n){grid-column:auto}
  .project-copy{font-size:15px;margin:28px auto 50px;padding:0 14px}
}


/* =========================================================
   V1.3 — editable Home Projects + native Gutenberg content
   ========================================================= */
.list-row{overflow:visible}
.list-row a{
  position:relative;
  display:inline-grid;
  grid-template-columns:minmax(95px,14vw) auto minmax(95px,14vw);
  align-items:center;
  justify-items:center;
  margin:0 auto;
  opacity:1 !important;
}
.list-title{grid-column:2;transition:opacity .15s ease}
.list-row a:hover .list-title{opacity:.48}
.list-meta{
  font-size:clamp(10px,.9vw,15px);
  font-weight:400;
  letter-spacing:0;
  line-height:1;
  opacity:0;
  transition:opacity .16s ease;
  white-space:nowrap;
  text-transform:uppercase;
  align-self:center;
}
.list-meta-left{grid-column:1;justify-self:start;margin-right:clamp(28px,5vw,90px)}
.list-meta-right{grid-column:3;justify-self:end;margin-left:clamp(28px,5vw,90px)}
.list-row a:hover .list-meta{opacity:1}

/* Project body is now 100% Gutenberg-editable */
.project-editor-content{max-width:1280px;margin:0 auto 80px}
.project-editor-content > p{max-width:720px;margin:42px auto 70px;text-align:center;font-size:18px;line-height:1.25}
.project-editor-content .wp-block-image{margin:0}
.project-editor-content .wp-block-image img{width:100%;height:auto;display:block}
.project-editor-content .wp-block-columns{gap:var(--gap);margin:0 0 var(--gap)}
.project-editor-content > .wp-block-image,
.project-editor-content > .wp-block-gallery,
.project-editor-content > .wp-block-video,
.project-editor-content > .wp-block-cover{margin-bottom:var(--gap)}
.project-editor-content .alignwide{max-width:1280px;margin-left:auto;margin-right:auto}
.project-editor-content .alignfull{width:calc(100vw - (var(--pad) * 2));max-width:none;margin-left:calc(50% - 50vw + var(--pad));margin-right:calc(50% - 50vw + var(--pad))}

@media (max-width:780px){
  .list-row a{display:block;white-space:normal}
  .list-meta{display:none !important}
  .list-title{display:block}
  .project-editor-content > p{font-size:15px;margin:28px auto 50px;padding:0 14px}
  .project-editor-content .wp-block-columns{gap:14px;margin-bottom:14px}
}


/* V1.4 — About page: Readymag-like hierarchy, still fully Gutenberg editable */
@media (max-width:780px){
  .about-page{padding-top:38px;padding-bottom:80px}
  .about-title{font-size:20vw;line-height:.78;margin-bottom:70px}
  .about-kicker{font-size:11px;margin-bottom:26px}
  .about-editor-content > p:first-child{
    width:100%;
    font-size:8.2vw;
    line-height:.94;
    margin-bottom:80px;
  }
  .about-editor-content > *:not(:first-child){width:100%}
  .about-editor-content > p:not(:first-child){font-size:16px;line-height:1.22;margin-bottom:26px}
  .about-editor-content > h2{font-size:10vw;margin-top:80px}
  .about-editor-content > h3{font-size:7vw;margin-top:62px}
  .about-editor-content .wp-block-columns{width:100%;gap:18px;margin-top:56px}
  .about-editor-content .wp-block-button__link{font-size:8vw}
}


/* =========================================================
   V1.5 — PRESS: complete editable archive, pure white background
   ========================================================= */
body,.site-shell,.press-page{background:#fff}
.press-page{
  padding-top:clamp(42px,4.8vw,72px);
  padding-bottom:clamp(80px,9vw,150px);
  min-height:calc(100vh - 70px);
}
.press-hero{text-align:center;margin:0 auto clamp(54px,6vw,92px)}
.press-title{
  margin:0;
  font-size:clamp(72px,8.5vw,146px);
  line-height:.78;
  letter-spacing:-.065em;
  font-weight:800;
}
.press-subtitle{
  margin:clamp(20px,2vw,30px) 0 0;
  font-size:clamp(13px,1.12vw,19px);
  line-height:1.15;
}
.press-archive{width:min(100%,1280px);margin:0 auto}
.press-year-block{
  display:grid;
  grid-template-columns:minmax(150px,220px) 1fr;
  gap:clamp(28px,4vw,72px);
  padding:clamp(22px,2.5vw,38px) 0;
  border-top:1px solid #bdbdbd;
}
.press-year-block:first-child{border-top:0;padding-top:0}
.press-year{
  margin:0;
  font-size:clamp(38px,4.2vw,70px);
  line-height:.85;
  letter-spacing:-.055em;
  font-weight:800;
  white-space:nowrap;
}
.press-items{min-width:0}
.press-item{
  display:grid;
  grid-template-columns:minmax(140px,220px) 22px minmax(0,1fr);
  align-items:baseline;
  gap:0;
  padding:3px 0;
  font-size:clamp(14px,1.1vw,18px);
  line-height:1.18;
  transition:opacity .14s ease;
}
a.press-item:hover{opacity:.42}
.press-outlet{font-weight:700;min-width:0}
.press-dash{text-align:center}
.press-item-title{min-width:0}

@media (max-width:780px){
  .press-page{padding-top:42px;padding-bottom:80px}
  .press-hero{margin-bottom:54px}
  .press-title{font-size:20vw}
  .press-subtitle{font-size:12px;margin-top:16px}
  .press-year-block{grid-template-columns:1fr;gap:18px;padding:28px 0}
  .press-year{font-size:14vw}
  .press-item{grid-template-columns:auto 18px 1fr;font-size:13px;padding:5px 0}
  .press-outlet{min-width:0}
}


/* =========================================================
   V1.7 — LIST-only HP, contact CTA, editorial link hover,
   calmer mobile press archive, universal Index return
   ========================================================= */

/* Homepage is deliberately list-only. */
.view-switch,.portfolio-grid{display:none !important}
.site-header{grid-template-columns:1fr 1fr}
.site-about{grid-column:2;justify-self:end}
.portfolio-list{display:block !important}

/* Small contact signature in the lower-right corner of the HP. */
.home-contact-cta{
  position:fixed;
  right:var(--pad);
  bottom:var(--pad);
  z-index:8;
  font-size:12px;
  line-height:1.1;
  text-transform:lowercase;
  white-space:nowrap;
}

/* Editorial text links: black highlighter / white type on hover.
   Intentionally excludes the giant HP titles and social icons. */
.about-editor-content a,
.project-editor-content a,
.project-copy a,
.site-about,
.back-home,
.home-contact-cta a{
  transition:background-color .12s ease,color .12s ease;
  -webkit-box-decoration-break:clone;
  box-decoration-break:clone;
}
.about-editor-content a:hover,
.project-editor-content a:hover,
.project-copy a:hover,
.site-about:hover,
.back-home:hover,
.home-contact-cta a:hover{
  background:#000;
  color:#fff;
  text-decoration:none;
}

/* Universal return link on every interior page/post. */
.back-home{
  position:fixed;
  left:var(--pad);
  bottom:var(--pad);
  font-size:13px;
  font-weight:600;
  line-height:1;
  z-index:20;
  padding:3px 4px;
  margin-left:-4px;
}

/* Mobile press archive: outlet first line, title second line. */
@media (max-width:780px){
  .home-contact-cta{
    position:static;
    margin:54px 0 10px;
    text-align:right;
    font-size:11px;
    white-space:normal;
  }
  .portfolio-list{min-height:auto;padding-bottom:0}

  .press-year-block{gap:20px;padding:30px 0}
  .press-year{font-size:13.5vw}
  .press-item{
    display:block;
    padding:8px 0 10px;
    font-size:14px;
    line-height:1.12;
  }
  .press-outlet{
    display:block;
    font-weight:700;
    margin-bottom:3px;
  }
  .press-dash{display:none}
  .press-item-title{
    display:block;
    font-weight:400;
    padding-right:6px;
  }
  a.press-item:hover{opacity:1}
  .back-home{font-size:12px}
}


/* =========================================================
   V1.8 — sticky identity/navigation + mobile title auto-fit
   ========================================================= */

/* Keep Laurent / social icons / About visible while scrolling.
   The negative margins neutralise the extra sticky backdrop space,
   so existing page spacing stays visually unchanged. */
.site-header{
  position:sticky;
  top:0;
  z-index:100;
  height:auto;
  min-height:34px;
  padding-top:var(--pad);
  padding-bottom:8px;
  margin-top:calc(-1 * var(--pad));
  margin-bottom:-8px;
  background:rgba(255,255,255,.97);
  -webkit-backdrop-filter:blur(7px);
  backdrop-filter:blur(7px);
}

/* On mobile the title must stay on one line. JS only reduces titles
   that physically overflow, leaving all other titles at full size. */
@media (max-width:780px){
  .site-header{
    min-height:30px;
    padding-bottom:7px;
    margin-bottom:-7px;
  }
  .list-row{overflow:visible}
  .list-title{
    display:inline-block;
    max-width:100%;
    white-space:nowrap;
    vertical-align:top;
  }
}

/* =========================================================
   V1.8.1 — Gutenberg image alignment on About
   ========================================================= */
/* Respect Gutenberg alignment controls instead of forcing every
   image block to behave like a full-width left-aligned block. */
.about-editor-content > figure.wp-block-image{
  width:auto;
  max-width:min(92%,1120px);
}
.about-editor-content .wp-block-image img{
  width:auto;
  max-width:100%;
  height:auto;
  display:block;
}
.about-editor-content > figure.wp-block-image.aligncenter,
.about-editor-content .wp-block-image.aligncenter{
  margin-left:auto;
  margin-right:auto;
  text-align:center;
}
.about-editor-content .wp-block-image.aligncenter img{
  margin-left:auto;
  margin-right:auto;
}
.about-editor-content > figure.wp-block-image.alignleft,
.about-editor-content .wp-block-image.alignleft{
  margin-left:4%;
  margin-right:auto;
}
.about-editor-content > figure.wp-block-image.alignright,
.about-editor-content .wp-block-image.alignright{
  margin-left:auto;
  margin-right:4%;
}

@media (max-width:780px){
  .about-editor-content > figure.wp-block-image{
    max-width:92%;
  }
}


/* =========================================================
   V1.8.2 — prevent long project titles cropping on mobile
   ========================================================= */
@media (max-width:780px){
  .project-heading{
    width:100%;
    max-width:100%;
    overflow:visible;
  }
  .project-heading h1{
    width:100%;
    max-width:100%;
    overflow:visible;
  }
}


/* =========================================================
   V1.9 — coherent long-form projects + social/SEO helpers
   ========================================================= */
.screen-reader-text{
  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;
}

/* Default project text: centered, with headings following the same logic. */
.project-editor-content > h2,
.project-editor-content > h3,
.project-editor-content > h4,
.project-editor-content > h5,
.project-editor-content > h6,
.project-editor-content > ul,
.project-editor-content > ol,
.project-editor-content > blockquote{
  max-width:720px;
  margin-left:auto;
  margin-right:auto;
}
.project-editor-content > h2,
.project-editor-content > h3,
.project-editor-content > h4,
.project-editor-content > h5,
.project-editor-content > h6{
  text-align:center;
  text-transform:none;
  letter-spacing:-.025em;
  line-height:1;
  margin-top:clamp(50px,6vw,90px);
  margin-bottom:clamp(20px,2.5vw,34px);
}
.project-editor-content > h2{font-size:clamp(30px,3.5vw,54px)}
.project-editor-content > h3{font-size:clamp(23px,2.5vw,38px)}

/* Editorial layout for essay-like projects such as POST-NAIVE. */
.project-page.project-layout-editorial .project-editor-content{
  max-width:1280px;
}
.project-page.project-layout-editorial .project-editor-content > p,
.project-page.project-layout-editorial .project-editor-content > h2,
.project-page.project-layout-editorial .project-editor-content > h3,
.project-page.project-layout-editorial .project-editor-content > h4,
.project-page.project-layout-editorial .project-editor-content > h5,
.project-page.project-layout-editorial .project-editor-content > h6,
.project-page.project-layout-editorial .project-editor-content > ul,
.project-page.project-layout-editorial .project-editor-content > ol,
.project-page.project-layout-editorial .project-editor-content > blockquote{
  width:min(100%,780px);
  max-width:780px;
  margin-left:auto;
  margin-right:auto;
  text-align:left;
}
.project-page.project-layout-editorial .project-editor-content > p{
  padding:0;
  margin-top:0;
  margin-bottom:1.15em;
  font-size:clamp(17px,1.25vw,20px);
  line-height:1.48;
}
.project-page.project-layout-editorial .project-editor-content > h2{
  font-size:clamp(31px,3vw,48px);
  line-height:.98;
  margin-top:2.1em;
  margin-bottom:.72em;
  letter-spacing:-.035em;
}
.project-page.project-layout-editorial .project-editor-content > h3{
  font-size:clamp(24px,2.2vw,34px);
  line-height:1.02;
  margin-top:1.8em;
  margin-bottom:.65em;
}
.project-page.project-layout-editorial .project-editor-content > ul,
.project-page.project-layout-editorial .project-editor-content > ol{
  padding-left:1.25em;
  font-size:clamp(17px,1.25vw,20px);
  line-height:1.45;
}

@media (max-width:780px){
  .project-page.project-layout-editorial .project-editor-content > p,
  .project-page.project-layout-editorial .project-editor-content > h2,
  .project-page.project-layout-editorial .project-editor-content > h3,
  .project-page.project-layout-editorial .project-editor-content > h4,
  .project-page.project-layout-editorial .project-editor-content > h5,
  .project-page.project-layout-editorial .project-editor-content > h6,
  .project-page.project-layout-editorial .project-editor-content > ul,
  .project-page.project-layout-editorial .project-editor-content > ol,
  .project-page.project-layout-editorial .project-editor-content > blockquote{
    width:100%;
    padding-left:14px;
    padding-right:14px;
  }
  .project-page.project-layout-editorial .project-editor-content > p{
    font-size:16px;
    line-height:1.42;
    margin-bottom:1.05em;
  }
  .project-page.project-layout-editorial .project-editor-content > h2{
    font-size:8.5vw;
    margin-top:1.8em;
  }
  .project-page.project-layout-editorial .project-editor-content > h3{
    font-size:6.7vw;
  }
}


/* =========================================================
   V1.9.2 — Press 2016/2017 split + bulletproof About image centering
   ========================================================= */

/* The About page may receive Gutenberg image markup either as
   <figure class="wp-block-image"> or as a wrapper containing a figure.
   Center the whole image block, not just the img element. */
.about-editor-content .wp-block-image,
.about-editor-content figure.wp-block-image{
  margin-left:auto !important;
  margin-right:auto !important;
  float:none !important;
  clear:both !important;
  text-align:center !important;
  max-width:100% !important;
}
.about-editor-content .wp-block-image{
  display:flex !important;
  flex-direction:column !important;
  align-items:center !important;
}
.about-editor-content .wp-block-image > figure,
.about-editor-content figure.wp-block-image{
  width:fit-content !important;
  max-width:100% !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.about-editor-content .wp-block-image img,
.about-editor-content figure.wp-block-image img,
.about-editor-content .wp-block-image > figure img{
  display:block !important;
  width:auto !important;
  max-width:100% !important;
  height:auto !important;
  margin-left:auto !important;
  margin-right:auto !important;
}
.about-editor-content .wp-block-image figcaption,
.about-editor-content figure.wp-block-image figcaption{
  width:100%;
  text-align:center;
}

/* Separate year labels now stay elegant even on compact desktop widths. */
.press-year{word-break:normal;overflow-wrap:normal}
