/* Plyr palette */
:root {
  --plyr-color-main: #fff;                              /* progress bar / range fill */
  --plyr-video-control-color: #fff;                     /* icon color (normal) */
  --plyr-range-fill-background: #fff;
  --plyr-video-control-background-hover: #000;          /* button hover bg — black so white icons stay visible */
  --plyr-video-control-color-hover: #fff;
  --plyr-video-controls-background: transparent;        /* no gradient strip behind controls */
}

/* Symmetric padding so align-items:center lands visually centered */
.plyr--video .plyr__controls {
  padding: 10px;
  align-items: center;
}

.plyr__control--overlaid {
--plyr-control-icon-size: 24px;
}

.plyr__control--overlaid svg {
  left: 0!important;
}

/* Pico.css adds margin-bottom to [type=button], which throws off Plyr's control alignment */
.plyr__controls [type=button] {
  margin-bottom: 0;
}

.plyr {
  border-radius: 0;
}

.plyr__control--overlaid {
  background: #000 !important;
  opacity: 1 !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
}

.plyr__controls__item.plyr__volume button svg {
  height: 24px;
  width: 24px;
}

.album-gallery {
  line-height: 0;
  columns: 1;
  column-gap: 1.5rem;
}
.album-gallery li {
  display: block;
  margin-bottom: 1.5rem;
  break-inside: avoid;
}
@media screen and (min-width: 60rem) {
  .album-gallery {
    columns: 2;
  }
}

header > nav.menu > figure > ul.tags {
  display: none;
}

header > nav.menu > figure:hover > ul.tags {
  display: absolute;
}

.project {
  width: 100%;;
  margin: 0 auto;
  padding: 0;
}
.project-footer {
  padding: 6rem 0;
  text-align: center;
}

figure.caption-overlay {
  position: relative;
}
figure.caption-overlay figcaption {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  background: rgba(0,0,0,0.2);
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: var(--font-family-display);
  color: white;
  padding: 0 10%;
  font-size: 4vw;
  line-height: 100%;
  transition: background 0.5s ease-in-out;
}
figure.caption-overlay figcaption:hover {
  background: rgba(0,0,0,0.75);
  transition: background 3s ease-in-out;
}

figure.super-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
}

.project-tags, .project-credits a:hover {
  color: var(--color-white);
}

.intro {
  margin: var(--gap) 0;
  display: flex;
  gap: var(--gap);
}

.intro .text ul li {
  list-style-type: square;
  margin-bottom: 0;
}

.intro .project-credits, .intro .project-tags {
  font-size: .8rem;
  font-style: italic;
  color: var(--color-text-grey);
}


.intro--split .column {
  flex: 1;
}
.intro--split > .column {
  padding: 24px;
}

.intro--split .meta {
  padding: 48px;
}

.intro--split .meta .grid {
  width: 100%;
  flex-direction: row;
  flex-wrap: wrap;
  gap: var(--gap);
}

.intro.intro--split .meta .grid .text {
  flex: 0 0 100%;
  min-width: 0;
}

.intro--split .meta .grid .column {
  flex: 0 0 calc(50% - var(--gap));
  width: auto;
  min-width: 0;
  
}

.intro .meta {
  gap: var(--gap);
  display: flex;
  flex-direction: column;
  flex: 0 0 calc(50% - var(--gap) / 2);
}

.intro .meta:only-child {
  flex: 1;
}

.intro .meta .grid {
  display: flex;
  margin: 0;
  gap: 48px;
}

.intro .meta .grid .column {
  flex-grow: 1;
  width: 100%;
}

.intro .meta .grid .text {
  flex-basis: 200%;
}

.intro .project-credits li {
  text-wrap: balance;
}


.intro > .column:not(.meta) {
  flex: 1;
  min-width: 0;
}

.intro .media {
  width: 100%;
}

.intro .media video, .intro .media img {
  width: 100%;
  height: auto;
  display: block;
}

.project-tags li, .project-credits li {
  list-style: none;
}

.margin-l {
  margin-bottom: var(--gap);
}


article section.grid .column .text figure img {
  object-fit: cover;
}

section.cover {
  /* margin-bottom: 0; */
}


section.sticky-credits {
  position: sticky;
  top: 0;
  transition: opacity 1s ease;
}

section.sticky-credits.is-sticky {
  opacity: 0.5;
}

section.sticky-credits.fill-viewport {
  height: 100vh;
  margin-bottom: 0;
}

section.sticky-credits.fill-viewport.is-fixed {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 0;
  margin: 0;
}

section.sticky-credits.fill-viewport figure.image img {
  height: 100vh !important;
  object-fit: cover !important;
}

section.sticky-credits.fill-viewport figure.video {
  height: 100vh;
  padding-bottom: 0;
}

footer .project-credits .role, footer .project-credits .people, .credits-intro, .credits-outro {
  font-weight: 700;
  padding: 12px 0;
}

footer .project-credits .credit {
  display: flex;
  justify-content: center;
  gap: 36px;
}
footer.project-footer {
  padding: 0 0 125vh 0;
  z-index: 999;
  position: relative;
}
footer .project-credits .credit .role {
  flex: 1;
  text-align: right;
  
}
footer .project-credits .credit .people {
  flex: 1;
  display: flex;
  gap: 2px;
  margin: 0;
  flex-direction: column;
  align-items: flex-start;
}

@media screen and (max-width: 60rem) {
  figure.caption-overlay figcaption {
    font-size: 4vw;
  }
}

article[data-post-credits] footer.project-footer {
  padding: 6rem 0;
}

/* Site footer scrolls over the sticky credits image on project pages.
   Excluded when a post-credits gallery exists (no sticky effect in that case). */
body:has(article.project:not([data-post-credits])) footer.footer {
  position: relative;
  z-index: 1;
  background: none;
}

@media screen and (max-width: 40rem) {
  figure.caption-overlay figcaption {
    font-size: 4vw;
  }
  
  .intro {
    gap: var(--gap);
    margin: var(--gap) 0;
    flex-direction: column;
  }
  .intro .project-tags {
    font-size: 1rem;
  }
  .hide-mobile {
    display: none;
    visibility: hidden;
  }
  .intro .meta .grid {
    flex-direction: column;
    gap: 12px;
    margin: 0;
    ul {
      margin-bottom: 0;
    }
  }
  .intro--split > .column,
  .intro--split .meta {
    padding: 0;
  }
  footer.project-footer {
    margin: 0;
  }
}
