/* Plain article photos. Movement is shared with Year’s Best; artwork is separate. */
.acbnr-photo-carousel {
  --top10-gutter: 0px;
  min-width: 0;
}
.acbnr-photo-carousel .acbnr-top10-carousel__track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 24px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0;
  overflow-anchor: none;
  scroll-padding-inline: 0;
}
.acbnr-photo-carousel .acbnr-top10-carousel__track > .wp-block-image {
  box-sizing: border-box;
  flex: 0 0 100%;
  width: 100%;
  min-width: 0;
  max-width: none;
  margin: 0;
  scroll-snap-align: start;
}
.acbnr-photo-carousel .wp-block-image img {
  display: block;
  max-width: 100%;
}
.acbnr-photo-carousel__footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}
.acbnr-photo-carousel__footer:not(:has(button:not([hidden]))) {
  display: none;
}
.acbnr-photo-carousel .acbnr-top10-carousel__controls {
  padding: 0;
  border-radius: 0;
  background: transparent;
}
/* Retain arrows on small screens as well as native touch swiping. */
.acbnr-photo-carousel .acbnr-top10-carousel__controls button:not([hidden]) {
  display: grid;
}
.acbnr-photo-carousel :is(button, [tabindex]):focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 3px;
}
/* Show every photo for easy selection, caption editing and reordering. */
.editor-styles-wrapper .acbnr-photo-carousel .acbnr-top10-carousel__track {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr));
  overflow: visible;
}
