/*
Theme Name: LF Spotlight
Theme URI: https://example.com/
Author: OpenAI
Description: A clean, editorial WordPress portfolio theme closely inspired by a Readymag-style Spotlight portfolio layout. Independent implementation with placeholder content/assets.
Version: 1.6.0
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}
}
