/**
 * Projects, rendered by the theme.
 *
 * The body of a project is core block-editor output, so this styles the block
 * classes directly — no builder markup involved.
 */

.doac-work-single .sv-cs-hero.has-no-media {
  grid-template-columns: 1fr;
}

.doac-work-single .sv-cs-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
     object-fit: cover;
}

.doac-block-heading {
  margin: 0 0 30px;
  color: var(--sv-light, #F6F2E9);
  font-family: zuume, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1em;
}

@media (min-width: 768px) {
  .doac-block-heading {
    font-size: 44px;
  }
}

/* ---------- Block content ---------- */

.doac-prose {
  max-width: 1320px;
  margin: 0 auto;
}

.doac-prose > * {
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.doac-prose p {
  margin: 0 0 20px;
  color: var(--sv-light-2, #C9C2B4);
  font-family: paralucent, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.75;
}

@media (min-width: 992px) {
  .doac-prose p {
    font-size: 18px;
  }
}

.doac-prose a {
  color: var(--sv-accent, #D9A441);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.doac-prose h2 {
  margin: 54px 0 20px;
  color: var(--sv-light, #F6F2E9);
  font-family: zuume, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 30px;
  line-height: 1em;
}

@media (min-width: 992px) {
  .doac-prose h2 {
    font-size: 42px;
  }
}

.doac-prose h3 {
  margin: 40px 0 14px;
  color: var(--sv-light, #F6F2E9);
  font-family: paralucent, sans-serif;
  font-weight: 500;
  font-size: 21px;
  line-height: 1.3;
}

/* Images and galleries run wider than the text column. */

.doac-prose .wp-block-image,
.doac-prose .wp-block-gallery,
.doac-prose .wp-block-embed {
  max-width: 1040px;
  margin: 44px auto;
}

.doac-prose .wp-block-image.alignwide,
.doac-prose .wp-block-gallery.alignwide {
  max-width: 1320px;
}

.doac-prose .wp-block-image img,
.doac-prose .wp-block-gallery img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 20px;
  border: solid 1px var(--sv-line, #3A3327);
  background-color: var(--sv-muted, #2A251B);
}

.doac-prose figcaption,
.doac-prose .wp-element-caption {
  margin-top: 12px;
  text-align: center;
  color: var(--sv-light-2, #C9C2B4);
  font-family: paralucent, sans-serif;
  font-weight: 300;
  font-size: 14px;
  line-height: 1.5;
}

/* Core gallery with no style variation chosen. Anything carrying one of the
   theme's gallery styles is left to gallery-styles.css — same specificity,
   and this file loads later, so it would otherwise win. */

.doac-prose .wp-block-gallery.has-nested-images:not([class*="is-style-doac-"]) {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.doac-prose .wp-block-gallery.has-nested-images:not([class*="is-style-doac-"]) figure.wp-block-image {
  margin: 0;
  flex: 1 1 calc(50% - 8px);
  max-width: calc(50% - 8px);
}

/* Column counts are declared here rather than inherited from core, so the
   grid holds even if wp-block-library loads late or not at all. */
@media (min-width: 768px) {
  .doac-prose .wp-block-gallery.columns-3.has-nested-images:not([class*="is-style-doac-"]) figure.wp-block-image {
    flex-basis: calc(33.333% - 11px);
    max-width: calc(33.333% - 11px);
  }

  .doac-prose .wp-block-gallery.columns-4.has-nested-images:not([class*="is-style-doac-"]) figure.wp-block-image {
    flex-basis: calc(25% - 12px);
    max-width: calc(25% - 12px);
  }

  .doac-prose .wp-block-gallery.columns-2.has-nested-images:not([class*="is-style-doac-"]) figure.wp-block-image {
    flex-basis: calc(50% - 8px);
    max-width: calc(50% - 8px);
  }
}

.doac-prose .wp-block-gallery.has-nested-images:not([class*="is-style-doac-"]) figure.wp-block-image img {
  aspect-ratio: 4 / 3;
  -o-object-fit: cover;
     object-fit: cover;
}

.doac-prose .wp-block-gallery:not([class*="is-style-doac-"]) figure.wp-block-image img {
  border-radius: 14px;
  cursor: zoom-in;
  transition: transform 0.7s cubic-bezier(0.2, 0.6, 0.2, 1);
}

@media (min-width: 992px) {
  .doac-prose .wp-block-gallery figure.wp-block-image:hover img {
    transform: scale(1.03);
  }
}

.doac-prose .wp-block-gallery:not([class*="is-style-doac-"]) figure.wp-block-image figcaption {
  text-align: left;
  font-size: 13px;
}

/* Embeds keep a 16:9 box. */

.doac-prose .wp-block-embed__wrapper {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  border-radius: 20px;
  border: solid 1px var(--sv-line, #3A3327);
  background-color: var(--sv-muted, #2A251B);
}

.doac-prose .wp-block-embed__wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Quote */

.doac-prose .wp-block-quote {
  max-width: 900px;
  margin: 56px auto;
  padding: 0;
  border: 0;
  border-left: solid 3px var(--sv-accent, #D9A441);
  padding-left: 26px;
}

.doac-prose .wp-block-quote p {
  color: var(--sv-light, #F6F2E9);
  font-family: zuume, sans-serif;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 26px;
  line-height: 1.05em;
}

@media (min-width: 768px) {
  .doac-prose .wp-block-quote p {
    font-size: 38px;
  }
}

.doac-prose .wp-block-quote cite {
  display: block;
  margin-top: 14px;
  color: var(--sv-accent, #D9A441);
  font-family: paralucent, sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

/* ---------- Credits without portraits ---------- */

.sv-credit.is-textual {
  display: block;
}

/* ---------- Index: filters and pagination ---------- */

.doac-work-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 34px;
}

.doac-filter {
  display: inline-block;
  padding: 7px 16px;
  border-radius: 40px;
  border: solid 1px var(--sv-line, #3A3327);
  color: var(--sv-light-2, #C9C2B4);
  font-family: paralucent, sans-serif;
  font-weight: 300;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease-in-out;
}

.doac-filter:hover {
  color: var(--sv-accent, #D9A441);
  border-color: var(--sv-accent, #D9A441);
}

.doac-filter.is-current {
  background-color: var(--sv-accent, #D9A441);
  border-color: var(--sv-accent, #D9A441);
  color: var(--sv-ink, #0E0D0B);
}

.doac-work-pagination {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-top: 48px;
}

.doac-work-pagination .page-numbers {
  display: inline-block;
  min-width: 40px;
  padding: 8px 12px;
  text-align: center;
  border-radius: 40px;
  border: solid 1px var(--sv-line, #3A3327);
  color: var(--sv-light-2, #C9C2B4);
  font-family: paralucent, sans-serif;
  font-size: 14px;
  text-decoration: none;
}

.doac-work-pagination .page-numbers.current,
.doac-work-pagination .page-numbers:hover {
  background-color: var(--sv-accent, #D9A441);
  border-color: var(--sv-accent, #D9A441);
  color: var(--sv-ink, #0E0D0B);
}

/* ---------- Project film ---------- */

/**
 * The film plate mirrors the gallery's: a 16:9 still that behaves as one big
 * play button, with the player itself deferred to the overlay so a third-party
 * iframe never loads until it is asked for.
 */
.doac-work-film .sv-film-plate {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  background: var(--sv-muted, #2A251B);
  aspect-ratio: 16 / 9;
}

.doac-work-film .sv-film-plate img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}

.doac-work-film .sv-film-plate:hover img,
.doac-work-film .sv-film-plate:focus-visible img {
  transform: scale(1.03);
}

/* Play affordance — a filled disc with a centred triangle, drawn in CSS so it
   needs no extra asset and inherits the brand accent. */
.doac-work-film .sv-film-plate::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: var(--sv-accent, #D9A441);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s ease;
}

.doac-work-film .sv-film-plate::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-42%, -50%);
  z-index: 2;
  border-style: solid;
  border-width: 15px 0 15px 24px;
  border-color: transparent transparent transparent var(--sv-ink, #0E0D0B);
}

.doac-work-film .sv-film-plate:hover::after,
.doac-work-film .sv-film-plate:focus-visible::after {
  transform: translate(-50%, -50%) scale(1.08);
}

.doac-work-film .sv-film-embed {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--sv-muted, #2A251B);
}

.doac-work-film .sv-film-embed iframe,
.doac-work-film .sv-film-embed video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  object-fit: cover;
}

.doac-work-film .sv-film-caption {
  color: var(--sv-light-2, #C9C2B4);
  margin: 18px 0 0;
  font-size: 15px;
  line-height: 1.6;
  opacity: 0.75;
}

.sv-band.is-light .doac-work-film .sv-film-caption {
  color: var(--sv-brand, #493A17);
}
