/* Homepage carousel: refined, more legible image-only editorial atmosphere.
   All photographs are locally hosted. The political face-off is illustrative,
   not an archival photo of a historical meeting. No visual text or charts. */
.selected-work-carousel .selected-work-slide {
  isolation: isolate;
  overflow: hidden;
}
.selected-work-carousel .selected-work-copy {
  position: relative;
  z-index: 2;
}
.selected-work-carousel .selected-work-art {
  position: absolute;
  inset: 0 0 0 auto;
  z-index: 0;
  width: min(64%, 1040px);
  height: 100%;
  pointer-events: none;
  opacity: .35;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
  filter: grayscale(1) contrast(.9) brightness(1.05);
  /* Preserve upper focal areas instead of washing out the photographs at the top. */
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.24) 18%, rgba(0,0,0,.86) 45%, #000 77%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.24) 18%, rgba(0,0,0,.86) 45%, #000 77%);
}
.selected-work-carousel .selected-work-art--arms {
  background-image: url('assets/carousel/arms-editorial.webp');
  background-size: auto 108%;
  background-position: 71% 68%;
  opacity: .40;
}


.selected-work-carousel .selected-work-art--fentanyl {
  background-image: url('assets/carousel/fentanyl-editorial.webp');
  background-size: auto 114%;
  background-position: 65% 71%;
  opacity: .48;
}
.selected-work-carousel .selected-work-art--immigration {
  background-image: url('assets/carousel/immigration-editorial.webp');
  background-size: auto 108%;
  background-position: 68% 74%;
  opacity: .44;
}
/* A collapsed note clarifies that the election image is a composite, without
   adding credits, labels, or another competing element inside the slides. */
.carousel-photo-credits {
  background: #f2f4f5;
  color: #71818a;
  padding: 8px clamp(22px, 8vw, 120px) 10px;
  font-size: 10px;
  line-height: 1.55;
  text-align: right;
}
.carousel-photo-credits summary {
  display: inline-block;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(113,129,138,.38);
}
.carousel-photo-credits summary::marker { content: ''; }
.carousel-photo-credits p {
  margin: 8px 0 0 auto;
  max-width: 690px;
}
@media (max-width: 1050px) {
  
  
}
@media (max-width: 700px) {
  .selected-work-carousel .selected-work-art {
    width: 94%;
    opacity: .205;
    background-size: auto 115%;
    background-position: 70% 69%;
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 24%, #000 85%);
    mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.4) 24%, #000 85%);
  }
  
  
  .carousel-photo-credits { padding: 8px 22px 10px; }
}
@media (prefers-reduced-transparency: reduce) {
  .selected-work-carousel .selected-work-art { opacity: .12; }
  
}

/* Prefer the naturally sharp foreground pills; preserve intentional depth-of-field. */
.selected-work-carousel .selected-work-art--fentanyl {
  background-size: auto 105%;
  background-position: 72% 62%;
  filter: grayscale(1) contrast(1.10) brightness(1.04);
}
@media (max-width: 700px) {
  .selected-work-carousel .selected-work-art--fentanyl {
    background-size: auto 106%;
    background-position: 73% 64%;
  }
}

/* Keep tablets prominent but avoid enlarging the shallow-focus source to 130%.
   Native photographic blur cannot be repaired by a stronger crop. */
.selected-work-carousel .selected-work-art--fentanyl {
  width: min(72%, 1080px);
  background-size: auto 112%;
  background-position: 100% 65%;
  opacity: .64;
  filter: grayscale(1) contrast(1.09) brightness(1.045);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.42) 17%, #000 40%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.42) 17%, #000 40%);
}
@media (max-width: 700px) {
  .selected-work-carousel .selected-work-art--fentanyl {
    width: 100%;
    background-size: auto 114%;
    background-position: 100% 61%;
    opacity: .31;
  }
}





/* Approved taller face-off image.  The new portrait supplies the missing
   shoulders and upper-body photography; no artificial extension or duplicated
   faces are needed. Match the other carousel images: right-side placement,
   neutral low opacity, gentle blending into the dark page background.
   Keep all shared carousel text formatting exactly as it is. */
.selected-work-carousel .selected-work-art--election {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(70%, 1080px);
  height: 100%;
  background-image: url("assets/carousel/election-editorial-tall-faceoff.svg?v=20261026-hires-faceoff16");
  background-size: auto 118%;
  background-position: 83% 43%;
  background-repeat: no-repeat;
  background-color: transparent;
  opacity: .38;
  filter: grayscale(.32) contrast(.97) brightness(1.05);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.34) 12%, #000 36%);
  mask-image: linear-gradient(90deg, transparent 0%, rgba(0,0,0,.34) 12%, #000 36%);
}
@media (min-width: 701px) and (max-width: 1099px) {
  .selected-work-carousel .selected-work-art--election {
    width: 72%;
    background-size: auto 112%;
    background-position: 75% 45%;
    opacity: .33;
  }
}
@media (max-width: 700px) {
  .selected-work-carousel .selected-work-art--election {
    inset: 0 0 0 auto;
    width: 94%;
    height: 100%;
    background-image: url("assets/carousel/election-editorial-hires-mobile.svg?v=20261026-hires-faceoff16");
    background-size: cover;
    background-position: 50% 47%;
    opacity: .235;
    filter: grayscale(.32) contrast(.98) brightness(1.04);
    /* A symmetric lateral fade preserves both faces; the photograph itself
       extends from the slide's top edge all the way to its bottom edge. */
    -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
    mask-image: linear-gradient(90deg, transparent 0%, #000 15%, #000 85%, transparent 100%);
  }
}
@media (prefers-reduced-transparency: reduce) {
  .selected-work-carousel .selected-work-art--election { opacity: .14; }
}

/* Added featured quantitative projects: reuse the exact Research-card photo sources.
   Keep the homepage's restrained monochrome editorial treatment and left-side fade. */
.selected-work-carousel .selected-work-art--welfare{
  width:min(70%,1100px);
  background-image:url("https://thumb.wikimedia.org/wikipedia/commons/thumb/2/2b/Urban_Public_Transportation_%28Unsplash%29.jpg/960px-Urban_Public_Transportation_%28Unsplash%29.jpg");
  background-size:cover;
  background-position:60% 52%;
  opacity:.48;
  filter:grayscale(.85) contrast(1.12) brightness(1.01);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.25) 18%,#000 50%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.25) 18%,#000 50%);
}
.selected-work-carousel .selected-work-art--inequality{
  width:min(70%,1100px);
  background-image:none;
  opacity:.50;
  filter:grayscale(.88) contrast(1.12) brightness(1.01);
  -webkit-mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 20%,#000 55%);
  mask-image:linear-gradient(90deg,transparent 0%,rgba(0,0,0,.22) 20%,#000 55%);
}
/* Each half uses cover independently, preserving the actual photo proportions. */
.selected-work-carousel .selected-work-art--inequality::before,
.selected-work-carousel .selected-work-art--inequality::after{
  content:"";
  position:absolute;
  top:0;
  bottom:0;
  width:50%;
  background-repeat:no-repeat;
  background-size:cover;
}
.selected-work-carousel .selected-work-art--inequality::before{
  left:0;
  background-image:linear-gradient(rgba(14,32,42,.30),rgba(14,32,42,.30)),
    url("https://images.unsplash.com/photo-1635230849907-663e10a10997?auto=format&fit=crop&w=1200&q=85");
  background-position:center,center;
}
.selected-work-carousel .selected-work-art--inequality::after{
  right:0;
  background-image:linear-gradient(rgba(14,32,42,.30),rgba(14,32,42,.30)),
    url("https://images.unsplash.com/photo-1645316935196-edf6a1362852?auto=format&fit=crop&w=1200&q=85");
  background-position:center,center;
}
@media(max-width:700px){
  .selected-work-carousel .selected-work-art--welfare{
    width:100%;opacity:.27;background-position:62% center;
  }
  .selected-work-carousel .selected-work-art--inequality{
    width:100%;opacity:.24;
  }
}
@media(prefers-reduced-transparency:reduce){
  .selected-work-carousel .selected-work-art--welfare,
  .selected-work-carousel .selected-work-art--inequality{opacity:.12}
}
