/* ===== project page shell ===== */
.work{
  max-width: 640px;
  margin: 0 auto;
  padding: 0 24px 80px;
}
.work h1{
  font-size: clamp(48px, 12vw, 80px);
  margin-top: 32px;
  text-align: center;
    padding-left:8px;
    padding-right:8px;
}
.work-tagline{
  text-align: center;
  font-style: italic;
  margin: 8px 0 32px;
}
.work section{margin-top: 40px;}
.work section h2{
  /*font-size: 24px;
  margin-bottom: 10px;*/
    
    font-family:var(--sans);
    text-transform:uppercase;
    font-weight:900;
    font-size:17px;
    line-height:1.3em;
    
    margin-top: 10px;
    text-align: center;
}


/* ===== images: full-width, natural aspect ===== */
/*.work-hero, .work-collage, .work figure {*/
.work figure {
    margin: 32px 0;
}
/*.work-hero img, .work-collage img, .work figure img {*/
.work figure img {
    width: 100%;
    height: auto;
    display: block;
    /*aspect-ratio: auto;*/
    background:none;
    
    border: 8px solid #ccf50c;
}

/* ===== video embeds — match figure spacing ===== */
.work-video {
    margin: 32px 0;
    aspect-ratio: 16/9;
    width: 100%;
    
    /*border: 8px solid #ccf50c;*/
}
.work-video iframe {
    width: 100%;
    height: 100%;
    display: block;
    border: 0;
}

/* ===== optional grayscale-until-hover, desktop only ===== */
@media (hover: hover) and (pointer: fine){
    .work figure.desaturate img {
        filter: grayscale(100%);
        transition: filter .4s ease;
    }
    .work figure.desaturate img:hover {
        filter: grayscale(0%);
    }
}




/* ===== year/materials table ===== */
.work-meta{
  margin-top: 56px;
  padding-top: 8px;
  border-top: 1px solid currentColor;
  width: 100%;
  border-collapse: separate;
  font-size: 14px;
    line-height:1.1em;
}
/* Do not add padding if immediately preceded by an image */
.work figure + .work-meta {
    margin-top: 24px;
    padding-top: 0;
    border-top: none;
}

.work-meta th{
  text-align: left;
  font-weight: 600;
  letter-spacing: .05em;
  text-transform: uppercase;
  padding:3px 16px 0 0;
  vertical-align: top;
  width: 1%;
  white-space: nowrap;
}
.work-meta td{
    padding: 3px 0;
}


/* ===== pull quote / callout ===== */
.work-callout {
    font-family: var(--script);
    font-size: clamp(28px, 4.5vw, 42px);
    line-height: 1.2;
    text-align: left;
    max-width: 12em;
    margin: 56px auto 56px 0;
    padding-left: 24px;
    border: none;
    quotes: none;
}
@media (min-width: 720px){
    .work-callout {
        margin-left: -60px;
    }
}

.work-callout {
    font-family: var(--script);
    font-size: clamp(36px, 6vw, 56px);
    line-height: 1.15;
    text-align: center;
    max-width: 14em;
    margin: 80px auto;
    padding: 0 24px;
    border: none;
    quotes: none;
}
@media (max-width: 720px){
    .work-callout {
        font-size: clamp(32px, 8vw, 44px);
        margin: 56px auto;
    }
}


.work-callout--poetry {
    font-family: var(--sans);
    font-style: italic;
    font-size: 15px;
    /*
    font-family:var(--script);
    
    font-size:3em;*/
    line-height: 1.8;
    white-space: pre-line;
    max-width: 32em;
    margin: 24px auto 24px 0;
    text-align:left;
    border-left: 2px solid #ccf50c;
    padding-left: 20px;
    transform: none;
}




/* ===== multi-image tile (2 or 3 across) ===== */
.figure-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 32px 0;
}
.figure-group img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}








/* ===== fade-in on scroll ===== */
.reveal{
  transition: opacity .6s ease, transform .6s ease;
}
.js-reveal .reveal{
  opacity: 0;
  transform: translateY(14px);
}
.js-reveal .reveal.in{
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce){
  .reveal, .js-reveal .reveal{opacity: 1; transform: none; transition: none;}
}


@media (max-width:720px){
    .work p, .work h1, .work section h2, .work section h3, .work-tagline{
        text-align:left;
        max-width: none;
        padding-left: 0;
        padding-right: 0;
        
    }
    
    /*.work-hero, .work-collage,*/ .work figure {
        margin: 16px 0;
    }   
    
    .work-meta tr:first-of-type{
        padding-top:16px !important;
    }

}






.work-expanded {
    background: var(--lime);
    width: 100vw;
    margin-left: calc(50% - 50vw);
    padding: 60px max(24px, calc(50vw - 410px));
    margin-top: 48px;
    margin-bottom: 48px;
}

@media (min-width: 720px) {
    .work-expanded-inner {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 40px;
        align-items: start;
        max-width: 900px;
        margin: 0 auto;
    }
    .work-expanded-media {
        display: flex;
        flex-direction: column;
        gap: 16px;
        position: sticky;
        top: 24px;
    }
}





/* ===== lightbox ===== */
.lightbox {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    transform: translateY(100%);
    visibility: hidden;
}
.lightbox.open {
    transform: translateY(0);
    visibility: visible;
}

.lightbox {
    transition: transform .2s ease, visibility .3s ease;
}
.lightbox.open {
    transition: transform .5s ease, visibility .5s ease;
}

.lb-backdrop {
    position: absolute;
    inset: 0;
    background: var(--lime);
    cursor: zoom-out;
}
.lb-wrap {
    position: relative;
    z-index: 1;
    max-width: 90vw;
    max-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-close {
    position: fixed;
    top: 20px;
    right: 24px;
    background: none;
    border: none;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    color: var(--ink);
    padding: 8px;
    z-index: 2;
}
.lb-img-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}
.lb-img-wrap img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    display: block;
}
.work figure img {
    cursor: zoom-in;
}