/* Supplied title frame for the More Than a Pill feature card. */
article.post-11538 .card-media {
  background-image: url("https://dolliehouse.com/wp-content/uploads/2026/10/dolliehouse-more-than-a-pill-title.png") !important;
  background-position: center center;
  background-size: contain;
  background-repeat: no-repeat;
  background-color: #000;
}

/* Give the story title and its supporting details a clearer hierarchy. */
article.post-11538 .card-body {
  padding: clamp(1.25rem, 2.8vw, 2rem);
}
article.post-11538 .meta {
  margin: 0 0 .65rem;
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: .15em;
}
article.post-11538 h3 {
  margin: 0 0 .7rem;
  font-size: clamp(1.65rem, 2.1vw, 2rem);
  line-height: 1.08;
}
article.post-11538 .card-body > p:not(.meta) {
  max-width: 36rem;
  font-size: 1rem;
  line-height: 1.55;
}
article.post-11538 .sharedaddy.sd-sharing { margin-top: 1.2rem; }
article.post-11538 .sharedaddy .sd-title {
  margin: 0 0 .55rem;
  color: var(--muted);
  font-family: inherit;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .035em;
}
article.post-11538 .sharedaddy.sd-like {
  margin-top: .9rem;
  padding-top: .9rem;
  border-top: 1px solid var(--line);
}
article.post-11538 .sd-content ul {
  display: flex;
  flex-wrap: wrap;
  gap: .45rem;
  margin: 0;
  padding: 0;
}

@media (max-width: 980px) {
  article.post-11538.story-card.featured {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr);
  }
  article.post-11538 .card-media {
    width: 100%;
    min-height: 0 !important;
    height: auto;
    aspect-ratio: 16 / 9;
  }
  article.post-11538 .card-body {
    padding: 1.35rem clamp(1rem, 4vw, 1.6rem);
  }
  article.post-11538 h3 { font-size: clamp(1.55rem, 5.5vw, 2rem); }
}
@media (max-width: 620px) {
  article.post-11538 .card-body { padding: 1.15rem 1rem; }
  article.post-11538 .sharedaddy.sd-sharing { margin-top: 1rem; }
  article.post-11538 .sharedaddy.sd-like { margin-top: .75rem; padding-top: .75rem; }
}

/* Ways of telling: give every story card equal visual weight. */
body .band.surface .story-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: stretch;
  gap: clamp(1rem, 1.6vw, 1.5rem);
}
body .band.surface .story-grid > .story-card,
body .band.surface .story-grid > .story-card.featured {
  display: flex;
  flex-direction: column;
  grid-column: auto;
  min-width: 0;
}
body .band.surface .story-grid .card-media {
  display: block;
  width: 100%;
  height: auto;
  min-height: 0;
  aspect-ratio: 16 / 10;
  flex: none;
  background-size: cover;
  background-position: center;
}
body .band.surface .story-grid .card-body {
  flex: 1;
  padding: clamp(1.1rem, 1.6vw, 1.6rem);
}
body .band.surface .story-grid .card-body h3 {
  margin: 0 0 .7rem;
  font-size: clamp(1.45rem, 1.75vw, 2rem);
  line-height: 1.08;
  text-wrap: balance;
}
body .band.surface .story-grid .card-body p:not(.meta) {
  max-width: 34rem;
  margin: 0;
  text-align: left;
  font-size: clamp(.98rem, 1.12vw, 1.1rem);
  line-height: 1.5;
}
@media (max-width: 900px) {
  body .band.surface .story-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body .band.surface .story-grid { grid-template-columns: 1fr; }
}

/* Keep prose evenly aligned across every page. */
main p:not(.meta):not(.eyebrow):not(.sd-title),
.site-footer p {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}

/* Avoid mid-word breaks in the narrow story-card descriptions. */
body .band.surface .story-grid .card-body p:not(.meta) { hyphens: none; }


/* Align the shared visual strips consistently across pages. */
.visual-strip { align-items: start; }
.visual-strip img:nth-child(2) { margin-top: 0; }


/* Community page: align the lead and justify readable body copy. */
.community-page .content-area > p.lead { text-align: left; hyphens: none; }
.community-page .content-area > p:not(.lead) { text-align: justify; text-justify: inter-word; hyphens: none; }
.community-page .content-area > blockquote { text-align: left; hyphens: none; }

/* Give Community page typography priority over block alignment styles. */
body article.community-page .content-area > p.lead { text-align: left; hyphens: none; }
body article.community-page .content-area > p:not(.lead) { text-align: justify; text-justify: inter-word; hyphens: none; }


/* Photography archive: calm, readable image-led banner and aligned galleries. */
body.post-type-archive-photography .archive-header {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: clamp(2.5rem, 6vw, 5.5rem) max(1.25rem, calc((100vw - 1440px) / 2)) clamp(2.25rem, 4vw, 3.5rem);
  background: #f7f3ea;
}
body.post-type-archive-photography .archive-header::before,
body.post-type-archive-photography .archive-header::after {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background-size: cover;
  background-position: center 44%;
}
body.post-type-archive-photography .archive-header::before {
  background-image: linear-gradient(rgba(247,243,234,.70), rgba(247,243,234,.76)), url("https://dolliehouse.com/wp-content/themes/dolliehouse-wordpress-theme-v2.0/assets/images/photography/1%20November%202023-18.jpg");
  animation: photography-slide-a 20s ease-in-out infinite;
}
body.post-type-archive-photography .archive-header::after {
  background-image: linear-gradient(rgba(247,243,234,.70), rgba(247,243,234,.76)), url("https://dolliehouse.com/wp-content/themes/dolliehouse-wordpress-theme-v2.0/assets/images/photography/GOJut%20Photovoice%20Workshop%20Khayalitsha%204%20August%202025-15.jpg");
  animation: photography-slide-b 20s ease-in-out infinite;
}
@keyframes photography-slide-a { 0%, 42% { opacity: .72; } 50%, 92% { opacity: 0; } 100% { opacity: .72; } }
@keyframes photography-slide-b { 0%, 42% { opacity: 0; } 50%, 92% { opacity: .72; } 100% { opacity: 0; } }
body.post-type-archive-photography .archive-header > * { position: relative; z-index: 1; }
body.post-type-archive-photography .archive-header .eyebrow { margin: 0 0 .8rem; color: #285458; }
body.post-type-archive-photography .archive-header .page-title { max-width: 15ch; margin: 0 0 1.25rem; font-size: clamp(3.2rem, 7vw, 6.5rem); line-height: .94; text-align: left; text-wrap: balance; }
body.post-type-archive-photography .archive-intro { max-width: 900px; }
body.post-type-archive-photography .archive-intro > p.lead { max-width: 54ch; margin: 0 0 1.1rem; font-size: clamp(1.45rem, 2.7vw, 2.3rem); line-height: 1.16; text-align: left; hyphens: none; }
body.post-type-archive-photography .archive-intro > p:not(.lead) { max-width: 72ch; margin: 0 0 1rem; font-size: clamp(1rem, 1.18vw, 1.15rem); line-height: 1.6; text-align: justify; text-justify: inter-word; hyphens: none; }
body.post-type-archive-photography .theme-list { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.35rem 0; }
body.post-type-archive-photography .theme-list span { padding: .55rem .9rem; border: 1px solid rgba(32,78,78,.32); border-radius: 999px; background: rgba(250,248,242,.72); color: #204e4e; font-size: .92rem; line-height: 1.25; }
body.post-type-archive-photography .collection-index { display: flex; flex-wrap: wrap; gap: .55rem; max-width: 1440px; margin: 2rem auto 0; }
body.post-type-archive-photography .collection-index a { display: inline-flex; align-items: center; gap: .55rem; padding: .65rem .9rem; border: 1px solid rgba(32,78,78,.3); border-radius: 999px; background: rgba(250,248,242,.82); line-height: 1.25; }
body.post-type-archive-photography .photo-collection { padding-block: clamp(2rem, 4vw, 4rem); border-top: 1px solid var(--line); }
body.post-type-archive-photography .photo-collection-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
body.post-type-archive-photography .photo-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(.7rem, 1.25vw, 1.2rem); }
body.post-type-archive-photography .photo-tile { margin: 0; break-inside: auto; overflow: hidden; background: #e8e3d9; }
body.post-type-archive-photography .photo-tile img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; transition: transform .35s ease; }
body.post-type-archive-photography .photo-tile:hover img { transform: scale(1.025); }
@media (max-width: 900px) { body.post-type-archive-photography .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) {
  body.post-type-archive-photography .archive-header { padding: 2.25rem 1.1rem; }
  body.post-type-archive-photography .archive-header .page-title { font-size: clamp(2.8rem, 12vw, 4.4rem); }
  body.post-type-archive-photography .archive-intro > p:not(.lead) { text-align: left; }
  body.post-type-archive-photography .photo-grid { grid-template-columns: 1fr; }
  body.post-type-archive-photography .collection-index { margin-top: 1.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  body.post-type-archive-photography .archive-header::before { animation: none; opacity: .72; }
  body.post-type-archive-photography .archive-header::after { animation: none; opacity: 0; }
  body.post-type-archive-photography .photo-tile img { transition: none; }
}


/* Homepage archive: turn its single featured film into a balanced full-width feature. */
@media (min-width: 901px) {
  body.home .story-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  body.home .story-grid > .story-card.featured.post-11538 {
    display: grid;
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr);
    align-items: stretch;
    min-height: clamp(28rem, 38vw, 34rem);
  }
  body.home .story-grid > .story-card.featured.post-11538 .card-media {
    width: 100%;
    height: 100%;
    min-height: 0;
    aspect-ratio: auto;
  }
  body.home .story-grid > .story-card.featured.post-11538 .card-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(2rem, 4vw, 4.5rem);
  }
}
body.home .story-grid > .story-card.featured.post-11538 .sharedaddy .sd-title {
  display: block;
  margin: 0 0 .55rem !important;
  font-size: .78rem !important;
  line-height: 1.25 !important;
  letter-spacing: .035em;
}

/* Community copy: keep justified lines in a comfortable reading measure. */
body article.community-page .content-area > p:not(.lead) {
  max-width: 72ch;
  margin-right: auto;
  text-align: justify;
  text-align-last: left;
  text-justify: inter-word;
  line-height: 1.65;
}
@media (max-width: 700px) {
  body article.community-page .content-area > p:not(.lead) {
    max-width: none;
    text-align: left;
  }
}


/* More Than a Pill: frame the title artwork as a widescreen film still. */
body.home article.post-11538.story-card.featured .card-media {
  align-self: center;
  height: auto !important;
  min-height: 0 !important;
  aspect-ratio: 16 / 9 !important;
  background-size: 88% auto !important;
}
@media (max-width: 980px) {
  body.home article.post-11538.story-card.featured .card-media {
    aspect-ratio: 16 / 9 !important;
    background-size: 88% auto !important;
  }
}
