/* Shared frame for Anna's first portrait and the Haley and Judge photos. */
:root{--featured-profile-width:22rem;--featured-profile-ratio:4 / 5;--featured-profile-credit-gap:.45rem}
@media(max-width:760px){:root{--featured-profile-width:17rem}}
body main #anna-beginnings .anna-profile-photos,
body #haley [data-haley="media"] > #haley-georgia-gazette{
  margin-block-start:16px
}
body main .anna-profile-photos > .anna-profile-carousel > [data-carousel-slide]:first-child > a,
body main .judge-person-card .judge-portrait > a,
body #haley #haley-georgia-gazette .anna-profile-carousel > [data-carousel-slide] > [data-featured-photo-next]{
  display:block;box-sizing:border-box;width:100%;max-width:var(--featured-profile-width);
  height:auto!important;aspect-ratio:var(--featured-profile-ratio);margin-inline:auto;
  padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
body main .judge-person-card .judge-portrait{
  width:100%;max-width:var(--featured-profile-width)
}
body main .judge-person-card .judge-portrait > a > img,
body #haley #haley-georgia-gazette .anna-profile-carousel > [data-carousel-slide] > [data-featured-photo-next] > img{
  display:block;width:100%!important;height:100%!important;min-height:0;max-height:none;
  aspect-ratio:auto;object-fit:cover!important;object-position:var(--profile-crop-position,50% 40%);
  padding:0;border:0;border-radius:0;background:transparent;box-shadow:none
}
body main .judge-portrait figcaption.judge-portrait-links,
body #haley #haley-georgia-gazette .anna-profile-carousel > [data-carousel-slide] > .haley-photo-credit{
  min-height:0;height:auto;margin:0;padding:var(--featured-profile-credit-gap) 0 0;
  font:500 calc(.875rem * var(--text-scale,1))/1.35 system-ui,sans-serif;
  justify-content:center;text-align:center;text-align-last:center;background:transparent
}
/* Overlap the slides so the longest credit reserves its space through the whole rotation. */
#haley #haley-georgia-gazette > .anna-profile-carousel{
  --featured-profile-ratio:6 / 5;--profile-crop-position:center;
  display:grid;grid-template-columns:minmax(0,1fr)
}
#haley #haley-georgia-gazette .anna-profile-carousel > [data-carousel-slide]{
  grid-area:1 / 1;display:flex;flex-direction:column;align-items:stretch;min-width:0;margin:0
}
#haley #haley-georgia-gazette .anna-profile-carousel > [data-carousel-slide][hidden]{
  display:flex!important;visibility:hidden;pointer-events:none
}
#haley #haley-georgia-gazette [data-carousel-slide] > [data-featured-photo-next]{
  position:relative;flex:none;overflow:hidden;line-height:0;appearance:none
}
#haley #haley-georgia-gazette [data-featured-photo-next] > img{
  position:absolute;inset:0
}
body #haley #haley-georgia-gazette .anna-profile-carousel > [data-carousel-slide] > .haley-photo-credit{
  display:flex;flex-direction:column;justify-content:flex-start;gap:0;box-sizing:border-box;overflow-wrap:anywhere
}
body #haley #haley-georgia-gazette #haley-portrait-window [data-featured-photo-next] > img{
  object-position:50% 40%;object-view-box:inset(.8% 0 0)
}
body #haley #haley-georgia-gazette #haley-and-dad-making-faces [data-featured-photo-next] > img{
  object-position:18% center
}

/* Match Anna's badge, anchored to the image rather than the caption or carousel. */
body #haley #haley-georgia-gazette .anna-profile-carousel .haley-photo-count-badge{
  position:absolute;z-index:1;right:.5rem;bottom:.5rem;margin:0;padding:.12rem .45rem;
  border-radius:.3rem;background:#241d22d9;color:#fff;
  font:600 .75rem/1.5 system-ui,sans-serif;pointer-events:none
}
body #haley #haley-georgia-gazette .anna-profile-carousel>[data-carousel-count]{
  position:absolute;inset:0 auto auto 0;width:1px;height:1px;min-width:0;min-height:0;
  overflow:hidden;clip-path:inset(50%);padding:0;margin:0;white-space:nowrap
}
