/*
Theme Name: Chandranandin Arts Final
Theme URI:
Author: Custom
Description: Lightweight custom portfolio theme for Chandranandin Arts: films, paintings and photography.
Version: 1.0.24
Requires at least: 6.5
Requires PHP: 8.0
Text Domain: chandranandin-arts-final
*/
:root{
  --bg:#6B1421;
  --text:#F2E9DF;
  --muted:#DCCBC1;
  --line:rgba(242,233,223,.28);
  --max:1600px;
  --font-iowan: 'iowan-old-style-bt', 'Warbler', Georgia, serif;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
.site-header{
  position:relative;
  width:100%;
  min-height:calc(7.25rem - 0.5in);
  padding:1.05rem 4vw 0;
}
.site-nav{
  position:absolute;
  left:4vw;
  top:1.55rem;
  display:flex;
  flex-wrap:wrap;
  gap:1.5rem;
  z-index:2;
}
.site-nav a{
  font-size:.82rem;
  letter-spacing:.04em;
  text-transform:lowercase;
  color:var(--text);
  transition:opacity .2s ease;
}
.site-nav a:hover,.site-nav a:focus-visible{opacity:.62}
.site-identity{
  transform:translateY(-0.5in);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  margin:0 auto;
  max-width:1200px;
}
.site-title{display:block}
.site-subtitle{
  margin-top:1in;
  font-size:clamp(.85rem,1.2vw,1.1rem);
  color:var(--muted);
  letter-spacing:.04em;
}
@media (max-width:700px){
  .site-header{
    min-height:auto;
    padding:1.5rem 4vw 2rem;
  }
  .site-nav{
    position:static;
    justify-content:center;
    margin-bottom:2rem;
    gap:.9rem 1.2rem;
  }
  .site-identity{margin:-0.5in 0 0;transform:none}
}

/* Header identity spacing — the subtitle is an inline SVG, not .site-subtitle. */
.site-identity > .embossed-text-svg--subtitle{
  margin-top:-1.25in;
}

/* Page title / subtitle */
.page-heading{
  width:min(var(--max),100%);
  margin:0 auto;
  padding:2.8vw 4vw 3.8vw;
  text-align:center;
}
.page-heading .embossed-text-svg--title{
  width:min(900px,100%);
  margin:0 auto;
}
.page-heading .embossed-text-svg--subtitle{
  width:min(560px,72%);
  margin:.15rem auto 0;
}
@media (max-width:700px){
  .page-heading{
    padding:2rem 4vw 2.9rem;
  }
  .page-heading .embossed-text-svg--title{
    width:100%;
  }
  .page-heading .embossed-text-svg--subtitle{
    width:86%;
  }
}

body{margin:0;background:var(--bg);color:var(--text);font-family:var(--font-iowan);font-size:16px;line-height:1.45}

/* Move the main content upward by 0.5in while leaving the navigation untouched. */
.site-main{margin-top:-0.5in}

/* Header identity — faithful inline SVG version of the supplied rounded 3D embossing.
   The visual treatment is rendered by the SVG filters/layers themselves rather than approximated
   with flat CSS text-shadows. */
.site-title,
.site-subtitle{
  display:block;
  margin-left:auto;
  margin-right:auto;
  color:inherit;
  text-decoration:none;
}
.site-title{
  width:min(1200px, 100%);
}
.site-subtitle{
  width:min(500px, 83.333%);
  margin-top:1in;
}
.embossed-text-svg{
  display:block;
  width:100%;
  height:auto;
  overflow:visible;
}
.site-title .embossed-text-svg{
  width:100%;
}
.site-subtitle.embossed-text-svg{
  width:min(500px, 83.333%);
}
.site-nav a,.work-block__type,.showreel-placeholder__label{font-family:var(--font-iowan)}
a{color:inherit;text-decoration:none}
img,video{display:block;max-width:100%}
.site-main{width:100%}
.showreel-placeholder{
  width:100vw;
  height:calc(clamp(22rem,42vh,38rem) * 1.5 + 1in);
  margin-left:calc(50% - 50vw);
  display:block;
  padding:0;
  overflow:hidden;
}
.showreel-strip{
  width:100%;
  height:100%;
  display:grid;
  grid-template-columns:22.5% 55% 22.5%;
  overflow:hidden;
}
.showreel-strip__frame{
  position:relative;
  height:100%;
  min-width:0;
  overflow:hidden;
  margin:0;
  padding:0;
}
.showreel-strip__frame img{
  position:absolute;
  top:0;
  height:100%;
  width:auto;
  max-width:none;
  object-fit:cover;
  display:block;
}
.showreel-strip__frame--left img{
  right:0;
}
.showreel-strip__frame--center img{
  left:50%;
  transform:translateX(-50%);
}
.showreel-strip__frame--right img{
  left:0;
}
.showreel-strip__frame--left img,
.showreel-strip__frame--right img{
  /* Each side window begins at a different point in the same continuous reel. */
  width:220%;
}
.showreel-strip__frame--center img{
  width:181.818%;
}
.showreel-placeholder__label{font-size:clamp(1rem,1.5vw,1.5rem);letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.work-list{width:min(var(--max),100%);margin:0 auto;padding:0 4vw 8vw}
.work-block{position:relative;margin:0 0 5vw}
.work-block__link{display:block}
.work-block__media{position:relative;overflow:hidden;aspect-ratio:2.4/1;background:rgba(0,0,0,.12)}
.work-block__media img,.work-block__media video{width:100%;height:100%;object-fit:cover}
.work-block__media video{position:absolute;inset:0;opacity:0;transition:opacity .35s ease}
.work-block--film:hover .work-block__media video,
.work-block--film:focus-within .work-block__media video{opacity:1}
.work-block--film:hover .work-block__media img,
.work-block--film:focus-within .work-block__media img{opacity:.25}
.work-block__caption{display:flex;justify-content:space-between;gap:2rem;padding:.8rem 0 0;border-top:1px solid var(--line);margin-top:.7rem}
.work-block__title{font-size:clamp(1.15rem,2vw,2rem)}
.work-block__type{font-size:.75rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted)}
.placeholder-media{width:100%;height:100%;display:grid;place-items:center;color:var(--muted);letter-spacing:.08em;text-transform:uppercase}
@media (max-width:700px){
  .showreel-placeholder{height:calc(clamp(18rem,48vh,30rem) + 1in);padding:0}
  .work-list{padding:0 4vw 12vw}
  .work-block{margin-bottom:10vw}
  .work-block__media{aspect-ratio:1.5/1}
  .work-block__caption{display:block}
  .work-block__type{margin-top:.3rem}
}

.showreel-placeholder .showreel-video{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
  object-position:center;
}
