/*
Theme Name: Yves Lacroix
Description: Minimal custom photography portfolio theme.
Version: 0.3.51
Text Domain: yves-lacroix
*/

:root{
  --header-h:58px;
  --pad-x:clamp(18px,3.2vw,54px);
  --text:#111;
  --muted:#777;
  --line:#e9e9e9;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;background:#fff;color:var(--text);
  font-family:Helvetica,Arial,sans-serif;
  font-size:13px;line-height:1.45;
}
body.no-scroll{overflow:hidden}
a{color:inherit;text-decoration:none}
button,input,textarea,select{font:inherit}
button{color:inherit}

.site-header{
  position:fixed;inset:0 0 auto 0;height:var(--header-h);z-index:100;
  display:flex;align-items:center;justify-content:space-between;
  padding:0 var(--pad-x);background:rgba(255,255,255,.98);
}
.site-brand{
  font-size:12px;letter-spacing:.08em;text-transform:uppercase;white-space:nowrap;
}
.site-nav{display:flex;gap:30px;align-items:center;font-size:11px;letter-spacing:.01em}
.site-nav ul{list-style:none;margin:0;padding:0;display:flex;gap:30px}
.site-nav a:hover{opacity:.55}

.site-main{padding-top:calc(var(--header-h) + 28px)}
.wrap{padding-left:var(--pad-x);padding-right:var(--pad-x)}
.page-title,.series-title{margin:0;font-size:13px;font-weight:400;letter-spacing:.01em}
.page-label{font-size:11px;text-transform:uppercase}

.about-series{
  margin-top:7px;padding:0;border:0;background:none;font-size:11px;color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.about-series:hover{color:#111}


/* v0.3.46 — direct navigation between published series */
.series-sibling-nav{
  position:relative;
  z-index:3;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  gap:5px;
  margin-top:36px;
  font-size:11px;
  line-height:1.45;
}
.series-sibling-nav a,
.series-sibling-nav .current-series{
  font:inherit;
  color:var(--muted);
}
.series-sibling-nav a:hover,
.series-sibling-nav .current-series{
  color:#111;
}

@media(max-width:820px){
  .series-sibling-nav{
    margin-top:24px;
    flex-direction:row;
    flex-wrap:wrap;
    column-gap:13px;
    row-gap:5px;
  }
}

/* Works in Series: compact contact-sheet scale on desktop */
.works-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:44px 80px;
  width:min(796px,calc(100% - (2 * var(--pad-x))));
  margin:34px auto 100px;
}
.series-card{display:block}
.series-cover-wrap{aspect-ratio:4/3;overflow:hidden;background:#f3f3f3}
.series-card img{display:block;width:100%;height:100%;object-fit:cover}
.series-card-title{margin-top:10px;font-size:11px;line-height:1.35;text-transform:uppercase}
.series-card:hover .series-card-title{opacity:.55}

/* Videos */
.videos-grid{
  display:grid;grid-template-columns:repeat(2,minmax(0,1fr));
  gap:66px 34px;
  width:min(1180px,calc(100% - (2 * var(--pad-x))));
  margin:34px auto 100px;
}
.video-card{min-width:0}
.video-frame{position:relative;aspect-ratio:16/9;background:#f3f3f3;overflow:hidden}
.video-frame iframe{display:block;width:100%;height:100%;border:0}
.video-poster{
  position:relative;display:block;width:100%;height:100%;padding:0;border:0;background:#f3f3f3;
  cursor:pointer;overflow:hidden;
}
.video-poster img{display:block;width:100%;height:100%;object-fit:cover}
.video-play{
  position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);
  width:42px;height:42px;border-radius:50%;background:rgba(255,255,255,.9);
  display:flex;align-items:center;justify-content:center;transition:opacity .15s ease;
}
.video-play span{
  display:block;width:0;height:0;margin-left:3px;
  border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:9px solid #111;
}
.video-poster:hover .video-play{opacity:.68}
.video-text{margin-top:10px;font-size:11px;line-height:1.45}
.video-title{margin:0;font-size:11px;font-weight:400}
.video-caption{margin:4px 0 0;color:var(--muted);max-width:90%}

/* Series page */
.series-head{padding:0 var(--pad-x);margin-bottom:22px}
.series-viewer{padding:0 var(--pad-x)}
.series-stage-wrap{
  position:relative;display:flex;justify-content:center;align-items:center;min-height:58vh;
}
.series-stage{
  max-width:min(88vw,1500px);max-height:72vh;width:auto;height:auto;display:block;
  cursor:zoom-in;user-select:none;
}
.series-meta{
  width:min(88vw,1500px);margin:5px auto 0;min-height:34px;font-size:11px;
  padding-left:36px;
}
.series-meta-row{display:flex;gap:18px;align-items:baseline}
.read-more{
  border:0;background:none;padding:0;color:var(--muted);
  text-decoration:underline;text-underline-offset:3px;cursor:pointer;
}
.read-more:hover{color:#111}
.series-meta-copy{display:flex;gap:10px;align-items:baseline;min-width:0}
.series-photo-title{font-weight:500}
.series-caption:empty{display:none}
.read-more[hidden]{display:none}

.thumb-row{
  width:min(88vw,1500px);margin:3px auto 22px;
  display:grid;grid-template-columns:24px minmax(0,1fr) 24px;gap:12px;align-items:center;
}
.thumb-strip{display:flex;gap:8px;overflow-x:auto;scrollbar-width:none}
.thumb-strip::-webkit-scrollbar{display:none}
.thumb{
  flex:0 0 84px;height:62px;opacity:.42;border:1px solid transparent;background:#fff;padding:0;
}
.thumb:hover{opacity:.75}
.thumb.active{opacity:1;border-color:#111}
.thumb img{width:100%;height:100%;object-fit:contain;display:block}
.arrow{border:0;background:none;font-size:18px;padding:12px 0;cursor:pointer}

.photo-grid{
  width:min(calc(62vw + 72px),1032px);margin:0 auto 90px;padding:0;display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));row-gap:24px;column-gap:40px;
}
.photo-grid button{border:0;background:none;padding:0;cursor:pointer}
.photo-grid img{width:100%;height:auto;display:block}


/* Desktop series viewport: keep a glimpse of the lower clickable grid visible. */
@media(min-width:821px){
  /* v0.3.51 — laptop/desktop: raise the entire viewer block by 100px total.
     The sibling-series nav is aligned to the stage by gallery.js and follows it. */
  .series-viewer{margin-top:-100px}
  .series-stage{max-height:66vh}
  .series-head{margin-bottom:16px}
  .thumb-row{margin-bottom:38px}
}

/* Wide desktop: align the lower grid with the actual thumbnail strip edges
   (the carousel arrows sit outside these axes). */
@media(min-width:1200px){
  .photo-grid{
    width:min(calc(88vw - 72px),1428px);
    grid-template-columns:repeat(4,minmax(0,1fr));
    justify-content:stretch;
    column-gap:48px;
  }
}

/* Fullscreen */
.overlay{
  position:fixed;inset:0;display:none;background:#fff;z-index:300;
}
.overlay.open{display:block}
.overlay-inner{
  position:absolute;inset:0;display:flex;align-items:center;justify-content:center;padding:30px 64px;
}
.overlay-image{
  max-width:calc(100vw - 128px);max-height:calc(100vh - 60px);
  width:auto;height:auto;object-fit:contain;display:block;cursor:zoom-out;flex:0 0 auto;
}
.overlay-close{
  position:absolute;top:22px;right:28px;border:0;background:none;font-size:24px;line-height:1;cursor:pointer;
}
.overlay-prev,.overlay-next{
  position:absolute;top:50%;transform:translateY(-50%);
  border:0;background:none;font-size:30px;line-height:1;padding:18px;cursor:pointer;
}
.overlay-prev{left:12px}.overlay-next{right:12px}
.overlay-meta{
  position:absolute;left:28px;bottom:18px;display:flex;gap:16px;
  align-items:baseline;font-size:11px;
}
.overlay-caption{max-width:58vw}
.overlay-count{position:absolute;right:28px;bottom:18px;font-size:11px;color:var(--muted)}

/* Side drawers */
.drawer-backdrop{
  position:fixed;inset:0;z-index:449;background:rgba(255,255,255,.08);display:none;
}
.drawer-backdrop.open{display:block}
.drawer{
  position:fixed;top:0;right:0;bottom:0;width:min(40vw,620px);min-width:420px;
  transform:translateX(100%);transition:transform .2s ease;background:#fff;
  border-left:1px solid var(--line);z-index:450;padding:28px 34px 50px;overflow-y:auto;
}
.drawer.open{transform:none}
.drawer-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:42px}
.drawer-kicker{font-size:11px;color:var(--muted);text-transform:uppercase;letter-spacing:.04em}
.drawer-title{margin:0 0 24px;font-size:18px;font-weight:400}
.drawer-close{border:0;background:none;font-size:20px;line-height:1;padding:0;cursor:pointer}
.drawer-text{max-width:540px;font-size:14px;line-height:1.65}
.drawer-text p{margin:0 0 1.15em}
.drawer-bottom{display:flex;justify-content:flex-end;padding-top:34px}

/* Home image */
.home-image-wrap{
  min-height:calc(100vh - var(--header-h) - 28px);
  display:flex;align-items:center;justify-content:center;padding:0 var(--pad-x) 24px;
}
.home-image{
  max-width:min(88vw,1500px);max-height:calc(100vh - var(--header-h) - 54px);
  width:auto;height:auto;display:block;
}

/* Biography */
.bio-page-head,
.bio-layout{
  width:min(1200px,calc(100% - (2 * var(--pad-x))));
  margin-left:auto;margin-right:auto;
}
.bio-page-head{padding-left:0;padding-right:0}
.bio-layout{
  display:grid;grid-template-columns:minmax(0,720px) minmax(220px,320px);
  gap:clamp(60px,9vw,150px);align-items:start;
  padding:40px 0 100px;
}
.bio-text{font-size:14px;line-height:1.68}
.bio-text p{margin:0 0 1.4em}
.bio-side{font-size:11px;line-height:1.5}
.bio-side-section{margin-bottom:38px}
.bio-side-title{margin:0 0 14px;font-size:11px;font-weight:400;text-transform:uppercase}
.bio-item{margin:0 0 10px}
.bio-year{display:block;color:var(--muted);margin-bottom:1px}
.bio-side a:hover{opacity:.55}

/* Contact / CF7 */
.contact-wrap{max-width:680px;margin:0 auto;padding:40px var(--pad-x) 100px}
.contact-wrap .wpcf7{max-width:560px;margin:0 auto}
.contact-wrap .wpcf7 form{margin:0}
.contact-wrap .wpcf7 p{margin:0 0 28px}
.contact-wrap .wpcf7 label{display:block;font-size:11px;line-height:1.4;color:var(--muted)}
.contact-wrap .yl-optional{opacity:.65}
.contact-wrap .wpcf7-form-control-wrap{display:block}
.contact-wrap .wpcf7 input:not([type=submit]),
.contact-wrap .wpcf7 textarea{
  display:block;width:100%;margin:2px 0 0;border:0;border-bottom:1px solid #cfcfcf;border-radius:0;
  background:transparent;padding:6px 0 8px;outline:none;color:#111;box-shadow:none;-webkit-appearance:none;
}
.contact-wrap .wpcf7 textarea{min-height:170px;resize:vertical}
.contact-wrap .wpcf7 input:not([type=submit]):focus,
.contact-wrap .wpcf7 textarea:focus{border-bottom-color:#111}
.contact-wrap .wpcf7 input:-webkit-autofill,
.contact-wrap .wpcf7 input:-webkit-autofill:hover,
.contact-wrap .wpcf7 input:-webkit-autofill:focus{
  -webkit-text-fill-color:#111;-webkit-box-shadow:0 0 0 1000px #fff inset;transition:background-color 9999s ease-out;
}
.contact-wrap .wpcf7 input[type=submit]{
  width:auto;border:0;padding:0;background:none;color:#111;font-size:11px;text-transform:uppercase;cursor:pointer;
  -webkit-appearance:none;
}
.contact-wrap .wpcf7 input[type=submit]:hover{opacity:.55}
.contact-wrap .wpcf7 input[type=submit]:disabled{opacity:.35;cursor:default}
.contact-wrap .wpcf7 .wpcf7-spinner{width:14px;height:14px;margin:0 0 0 10px;vertical-align:middle}
.contact-wrap .wpcf7-response-output{
  margin:30px 0 0!important;padding:0!important;border:0!important;font-size:11px!important;line-height:1.45!important;
}
.contact-wrap .wpcf7-not-valid-tip{font-size:10px;line-height:1.4;margin-top:5px;color:#111}
.contact-wrap .wpcf7 .wpcf7-not-valid{border-bottom-color:#111}
.contact-wrap .wpcf7 form.sent .wpcf7-response-output,
.contact-wrap .wpcf7 form.invalid .wpcf7-response-output,
.contact-wrap .wpcf7 form.unaccepted .wpcf7-response-output,
.contact-wrap .wpcf7 form.payment-required .wpcf7-response-output,
.contact-wrap .wpcf7 form.spam .wpcf7-response-output,
.contact-wrap .wpcf7 form.failed .wpcf7-response-output,
.contact-wrap .wpcf7 form.aborted .wpcf7-response-output{border:0!important}

@media(max-width:820px){
  :root{--header-h:54px}
  .site-header{padding:0 18px}
  .site-nav,.site-nav ul{gap:16px}
  .works-grid{
    grid-template-columns:1fr;width:auto;margin:28px 18px 70px;gap:44px;
  }
  .videos-grid{grid-template-columns:1fr;width:auto;margin:28px 18px 70px;gap:44px}
  .series-head{padding:0 18px}
  .series-viewer{padding:0 18px}
  .series-stage-wrap{min-height:42vh}
  .series-stage{max-width:100%;max-height:64vh}
  .series-meta,.thumb-row{width:100%}
  .series-meta{padding-left:36px}
  .photo-grid{width:auto;margin:0;padding:0 18px 70px;grid-template-columns:repeat(2,1fr);gap:26px 12px}
  .drawer{width:100vw;min-width:0;padding:22px 22px 42px}
  .overlay-inner{padding:48px 18px 34px}
  .overlay-image{max-width:calc(100vw - 36px);max-height:calc(100vh - 82px)}
  .overlay-prev{left:0}.overlay-next{right:0}
  .overlay-close{top:14px;right:18px}
  .overlay-meta{left:18px;bottom:10px;gap:12px}
  .overlay-caption{max-width:62vw}
  .overlay-count{right:18px;bottom:10px}
  .bio-page-head,
  .bio-layout{width:auto;margin-left:18px;margin-right:18px}
  .bio-layout{grid-template-columns:1fr;padding:30px 0 70px;gap:54px}
  .contact-wrap{padding:30px 18px 70px}
}
@media(max-width:560px){
  .site-nav,.site-nav ul{gap:11px}
}

.header-right{display:flex;align-items:center;gap:24px}
.language-switcher{display:flex;gap:8px;font-size:10px;letter-spacing:.02em}
.language-switcher a{opacity:.45}
.language-switcher a:hover,.language-switcher a.active{opacity:1}
@media(max-width:820px){
  .header-right{gap:14px}
  .language-switcher{gap:6px}
}


/* v0.3.1 header reliability */
.site-header{color:#111}
.header-right{display:flex;align-items:center;gap:24px}
.language-switcher{
  display:flex;
  align-items:center;
  gap:8px;
  font-size:10px;
  letter-spacing:.02em;
  white-space:nowrap;
}
.language-switcher a{opacity:.45}
.language-switcher a.active,
.language-switcher a:hover{opacity:1}


/* v0.3.2 — WordPress admin toolbar compatibility */
body.admin-bar .site-header{
  top:32px;
}
body.admin-bar .site-main{
  padding-top:calc(var(--header-h) + 60px);
}

@media screen and (max-width:782px){
  body.admin-bar .site-header{
    top:46px;
  }
  body.admin-bar .site-main{
    padding-top:calc(var(--header-h) + 74px);
  }
}


/* v0.3.5 — language hierarchy */
.header-language-switcher{
  font-size:10px;
}

.series-language-switcher{
  display:flex;
  gap:9px;
  margin-top:7px;
  font-size:10px;
  letter-spacing:.02em;
  line-height:1;
}

.series-language-switcher a{
  opacity:.42;
}

.series-language-switcher a:hover,
.series-language-switcher a.active{
  opacity:1;
}

.series-head .about-series{
  display:block;
  margin-top:9px;
}

@media(max-width:820px){
  .series-language-switcher{
    gap:8px;
  }
}


/* v0.3.6 — page language switcher near title */
.page-head{
  display:flex;
  align-items:baseline;
  gap:14px;
}

.page-language-switcher{
  display:flex;
  gap:8px;
  font-size:10px;
  letter-spacing:.02em;
  line-height:1;
}

.page-language-switcher a{
  opacity:.42;
}

.page-language-switcher a:hover,
.page-language-switcher a.active{
  opacity:1;
}

/* header returns to navigation only */
.header-right{
  gap:0;
}


/* v0.3.8 — clickable homepage image */
.home-image-link{
  display:block;
  line-height:0;
  cursor:pointer;
}


/* v0.3.9 — Instagram header icon */
.instagram-link{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:13px;
  height:13px;
  flex:0 0 13px;
}
.instagram-icon{
  display:block;
  width:13px;
  height:13px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  stroke-linecap:round;
  stroke-linejoin:round;
}
.instagram-dot{
  fill:currentColor;
  stroke:none;
}


/* v0.3.10 — tighter text navigation, Instagram kept apart */
@media (min-width:821px){
  .site-nav{
    gap:20px;
  }
  .site-nav .instagram-link{
    margin-left:10px;
  }
}


/* v0.3.11 — explicit desktop navigation spacing */
@media (min-width:821px){
  .site-nav{
    gap:0;
  }

  .site-nav > a:not(.instagram-link) + a:not(.instagram-link){
    margin-left:10px;
  }

  .site-nav > .instagram-link{
    margin-left:30px;
  }
}


/* v0.3.42 — global copyright */
.site-footer{
  width:100%;
  padding:0 var(--pad-x) 18px;
}
.site-footer-copyright{
  width:100%;
  text-align:center;
  font-size:10px;
  line-height:1.4;
  color:var(--muted);
}

/* v0.3.42 — homepage: subtle upward adjustment on mobile only */
@media (max-width:820px){
  .home-image-link{
    transform:translateY(-10px);
  }
}
/* v0.3.44 — homepage desktop: shorten the page so the copyright stays clearly visible */
@media (min-width:821px){
  body.home .home-image-wrap{
    min-height:0;
    height:calc(100vh - var(--header-h) - 110px);
    height:calc(100dvh - var(--header-h) - 110px);
    padding-bottom:12px;
  }
  body.home .home-image{
    max-height:calc(100vh - var(--header-h) - 136px);
    max-height:calc(100dvh - var(--header-h) - 136px);
  }
  body.home .home-image-link{
    transform:translateY(-18px);
  }
}

