/* Design v2's parts (AD-62; S07.7.1b.3), from FoundationsComponents.html
   and Main.html. Every color, shadow, radius and type value comes from
   tokens.css; sizes the tokens do not name are in rem. Hover lifts and
   photo zooms run only for readers who have not asked for less motion. */

/* Photos fill their frame from their focal point. */
.photo,
.photo img {
  display: block;
  inline-size: 100%;
  block-size: 100%;
}

.photo img {
  object-fit: cover;
}

/* Buttons beyond the frame's gold and line. */
.button-ring {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  box-sizing: border-box;
  min-block-size: max(var(--v2-button-height-large), var(--touch-target));
  padding-inline: var(--space-7);
  border: var(--v2-ring-width) solid transparent;
  border-radius: var(--v2-radius-pill);
  background:
    linear-gradient(var(--color-paper), var(--color-gold100)) padding-box,
    linear-gradient(90deg, var(--color-gold300), var(--color-gold-large) 50%, var(--color-gold300)) border-box;
  box-shadow: var(--v2-shadow-arrow-circle);
  color: var(--color-ink);
  text-decoration: none;
  cursor: pointer;
  font-family: var(--v2-type-ring-button-family);
  font-weight: var(--v2-type-ring-button-weight);
  font-size: var(--v2-type-ring-button-size);
  font-style: var(--v2-type-ring-button-style);
  line-height: var(--v2-type-ring-button-line-height, normal);
  letter-spacing: var(--v2-type-ring-button-tracking, normal);
  text-transform: var(--v2-type-ring-button-transform);
  font-variant-caps: var(--v2-type-ring-button-caps);
}

.button-ring::-webkit-details-marker {
  display: none;
}

.button-plain {
  text-transform: none;
  letter-spacing: 0.02em;
  min-block-size: var(--touch-target);
  padding-inline: var(--space-5);
}

/* Coins and arrow circles. */
.coin {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: 3rem;
  block-size: 3rem;
  border-radius: 50%;
  color: var(--gold-button-label);
  background: var(--gold-button);
  box-shadow: var(--v2-shadow-gold-button);
  font-family: var(--v2-type-coin-family);
  font-weight: var(--v2-type-coin-weight);
  font-size: var(--v2-type-coin-size);
  font-style: var(--v2-type-coin-style);
  line-height: var(--v2-type-coin-line-height, normal);
  letter-spacing: var(--v2-type-coin-tracking, normal);
  text-transform: var(--v2-type-coin-transform);
  font-variant-caps: var(--v2-type-coin-caps);
}

.arrow-circle {
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  inline-size: var(--touch-target);
  block-size: var(--touch-target);
  border-radius: 50%;
  background: var(--color-white);
  border: var(--v2-field-border);
  border-color: var(--color-gold300);
  box-shadow: var(--v2-shadow-arrow-circle);
  color: var(--color-ink);
}

.arrow-circle:hover,
.door:hover .arrow-circle {
  border-color: var(--color-gold-large);
  background: var(--color-gold100);
}

/* 06 DescriptorChip. */
.descriptor {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-block-size: 1.625rem;
  padding-inline: var(--space-2) var(--space-3);
  border-radius: var(--v2-radius-pill);
  background: var(--color-paper);
  border: var(--hairline-width) solid var(--color-line2);
  color: var(--color-ink2);
  font-family: var(--v2-type-chip-family);
  font-weight: var(--v2-type-chip-weight);
  font-size: var(--v2-type-chip-size);
  font-style: var(--v2-type-chip-style);
  line-height: var(--v2-type-chip-line-height, normal);
  letter-spacing: var(--v2-type-chip-tracking, normal);
  text-transform: var(--v2-type-chip-transform);
  font-variant-caps: var(--v2-type-chip-caps);
}

.descriptor.on-photo {
  background: var(--v2-shade-strong);
  border-color: transparent;
  color: var(--color-white);
  backdrop-filter: var(--v2-chip-blur);
}

.descriptor .icon {
  inline-size: 0.9375rem;
  block-size: 0.9375rem;
}

/* 06 SearchSuggest's list. */
.suggestions {
  display: flex;
  flex-direction: column;
  padding: var(--space-2);
  background: var(--color-paper);
  border: var(--hairline-width) solid var(--color-line);
  border-radius: var(--v2-radius-feature);
  box-shadow: var(--v2-shadow-menu);
}

.suggest-heading {
  padding: var(--space-2) var(--space-4) var(--space-1);
  color: var(--color-ink3);
  font-family: var(--v2-type-suggest-heading-family);
  font-weight: var(--v2-type-suggest-heading-weight);
  font-size: var(--v2-type-suggest-heading-size);
  font-style: var(--v2-type-suggest-heading-style);
  line-height: var(--v2-type-suggest-heading-line-height, normal);
  letter-spacing: var(--v2-type-suggest-heading-tracking, normal);
  text-transform: var(--v2-type-suggest-heading-transform);
  font-variant-caps: var(--v2-type-suggest-heading-caps);
}

.suggestion {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-block-size: var(--touch-target);
  padding-inline: var(--space-4);
  border-radius: var(--v2-radius-tile);
  color: var(--color-ink);
  text-decoration: none;
  font-size: var(--v2-type-interface-size);
}

.suggestion:hover,
.suggestion[aria-selected="true"] {
  background: var(--color-gold100);
}

.icon-suggest {
  color: var(--color-ink2);
  inline-size: 1.125rem;
  block-size: 1.125rem;
}

.icon-topics {
  color: var(--color-gold-large);
}

.suggest-words {
  flex: 1;
  min-inline-size: 0;
  overflow-wrap: anywhere;
}

.suggest-words b {
  font-weight: 600;
}

.suggest-beside {
  color: var(--color-ink3);
  font-size: var(--v2-type-meta-size);
}

.suggest-key {
  padding: 0.125rem var(--space-2);
  border: var(--hairline-width) solid var(--color-line2);
  border-radius: var(--space-2);
  color: var(--color-ink2);
  font-family: var(--v2-type-marker-family);
  font-weight: var(--v2-type-marker-weight);
  font-size: var(--v2-type-marker-size);
  font-style: var(--v2-type-marker-style);
  line-height: var(--v2-type-marker-line-height, normal);
  letter-spacing: var(--v2-type-marker-tracking, normal);
  text-transform: var(--v2-type-marker-transform);
  font-variant-caps: var(--v2-type-marker-caps);
}

/* 06 FeaturedCard: a photo with a warm shade from the start. */
.featured-card {
  position: relative;
  display: block;
  overflow: hidden;
  min-block-size: 10.5rem;
  border-radius: var(--v2-radius-feature);
  box-shadow: var(--v2-shadow-feature);
  color: var(--color-white);
  text-decoration: none;
}

.featured-card .photo {
  position: absolute;
  inset: 0;
}

.featured-shade {
  position: absolute;
  inset: 0;
  background: var(--v2-shade-featured);
}

:dir(rtl) .featured-shade {
  background: var(--v2-shade-featured-rtl);
}

.featured-descriptors {
  position: absolute;
  inset-block-start: var(--space-3);
  inset-inline-start: var(--space-3);
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.featured-words {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: var(--space-2);
  min-block-size: inherit;
  box-sizing: border-box;
  padding-block: var(--space-9) var(--space-4);
  padding-inline: var(--space-4) 18%;
}

.featured-title {
  text-shadow: var(--v2-text-shadow-photo);
  font-family: var(--v2-type-featured-title-family);
  font-weight: var(--v2-type-featured-title-weight);
  font-size: var(--v2-type-featured-title-size);
  font-style: var(--v2-type-featured-title-style);
  line-height: var(--v2-type-featured-title-line-height, normal);
  letter-spacing: var(--v2-type-featured-title-tracking, normal);
  text-transform: var(--v2-type-featured-title-transform);
  font-variant-caps: var(--v2-type-featured-title-caps);
}

.featured-byline {
  font-size: var(--v2-type-meta-size);
  color: var(--color-gold100);
}

/* 06 PhotoCard: a photo with a paper caption. */
.photo-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--v2-radius-photo-card);
  background: var(--color-paper);
  box-shadow: var(--v2-shadow-photo-card);
  color: var(--color-ink);
  text-decoration: none;
}

.photo-frame {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 10;
}

.photo-caption {
  padding: var(--space-3) var(--space-3) var(--space-3);
  text-align: center;
  overflow-wrap: anywhere;
  font-family: var(--v2-type-caption-family);
  font-weight: var(--v2-type-caption-weight);
  font-size: var(--v2-type-caption-size);
  font-style: var(--v2-type-caption-style);
  line-height: var(--v2-type-caption-line-height, normal);
  letter-spacing: var(--v2-type-caption-tracking, normal);
  text-transform: var(--v2-type-caption-transform);
  font-variant-caps: var(--v2-type-caption-caps);
}

.topic-card {
  border-radius: var(--v2-radius-tile);
}

.topic-card .photo-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  min-block-size: 2.875rem;
  padding-block: var(--space-1);
  font-style: normal;
  font-size: var(--v2-type-interface-size);
}

/* 06 ExpressionTile. */
.expression-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  color: var(--color-ink);
  text-decoration: none;
}

.tile-photo {
  display: block;
  inline-size: 4.375rem;
  block-size: 4.375rem;
  overflow: hidden;
  border-radius: var(--v2-radius-tile);
  box-shadow: var(--v2-shadow-tile);
}

.tile-name {
  font-family: var(--v2-type-tile-name-family);
  font-weight: var(--v2-type-tile-name-weight);
  font-size: var(--v2-type-tile-name-size);
  font-style: var(--v2-type-tile-name-style);
  line-height: var(--v2-type-tile-name-line-height, normal);
  letter-spacing: var(--v2-type-tile-name-tracking, normal);
  text-transform: var(--v2-type-tile-name-transform);
  font-variant-caps: var(--v2-type-tile-name-caps);
}

/* 06 TopicTile: a topic's name over its photo. */
.topic-tile {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: hidden;
  inline-size: 8.75rem;
  min-block-size: 9.375rem;
  border-radius: var(--v2-radius-photo-card);
  box-shadow: var(--v2-shadow-feature);
  color: var(--color-white);
  text-decoration: none;
}

.topic-tile .photo {
  position: absolute;
  inset: 0;
}

.topic-shade {
  position: absolute;
  inset: 0;
  background: var(--v2-shade-topic);
}

.topic-name {
  position: relative;
  padding: var(--space-2) var(--space-2) var(--space-3);
  text-align: center;
  overflow-wrap: anywhere;
  font-family: var(--v2-type-topic-name-family);
  font-weight: var(--v2-type-topic-name-weight);
  font-size: var(--v2-type-topic-name-size);
  font-style: var(--v2-type-topic-name-style);
  line-height: var(--v2-type-topic-name-line-height, normal);
  letter-spacing: var(--v2-type-topic-name-tracking, normal);
  text-transform: var(--v2-type-topic-name-transform);
  font-variant-caps: var(--v2-type-topic-name-caps);
}

/* 06 SurpriseMe: a gold ring, a sparkle and one line. */
.surprise {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 12.5rem;
  max-inline-size: 100%;
  aspect-ratio: 1;
  border: var(--v2-surprise-ring-width) solid transparent;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 30%, var(--color-white), var(--color-paper) 58%, var(--color-gold100)) padding-box,
    linear-gradient(160deg, var(--color-gold300), var(--color-gold-large) 45%, var(--color-gold300) 78%, var(--color-gold-text)) border-box;
  box-shadow: var(--v2-shadow-surprise);
  color: var(--color-ink);
  text-decoration: none;
}

.surprise-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-2);
  text-align: center;
}

.icon-sparkle {
  color: var(--color-gold-large);
  inline-size: 2.125rem;
  block-size: 2.125rem;
  stroke-width: 1.5;
}

.surprise-words {
  font-family: var(--v2-type-surprise-words-family);
  font-weight: var(--v2-type-surprise-words-weight);
  font-size: var(--v2-type-surprise-words-size);
  font-style: var(--v2-type-surprise-words-style);
  line-height: var(--v2-type-surprise-words-line-height, normal);
  letter-spacing: var(--v2-type-surprise-words-tracking, normal);
  text-transform: var(--v2-type-surprise-words-transform);
  font-variant-caps: var(--v2-type-surprise-words-caps);
}

.surprise-line {
  color: var(--color-ink2);
  font-family: var(--v2-type-surprise-line-family);
  font-weight: var(--v2-type-surprise-line-weight);
  font-size: var(--v2-type-surprise-line-size);
  font-style: var(--v2-type-surprise-line-style);
  line-height: var(--v2-type-surprise-line-line-height, normal);
  letter-spacing: var(--v2-type-surprise-line-tracking, normal);
  text-transform: var(--v2-type-surprise-line-transform);
  font-variant-caps: var(--v2-type-surprise-line-caps);
}

.surprise .icon-arrow {
  inline-size: 1.75rem;
  block-size: 1.75rem;
}

/* A section's heading: an eyebrow between gold rules, the title, its line. */
.section-heading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-3);
  text-align: center;
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: var(--space-5);
  max-inline-size: 100%;
}

.eyebrow-rule {
  flex: 1 1 3rem;
  max-inline-size: 26rem;
  block-size: var(--hairline-width);
  background: linear-gradient(90deg, transparent, var(--color-gold-large));
}

.eyebrow-rule:last-child {
  background: linear-gradient(270deg, transparent, var(--color-gold-large));
}

.eyebrow-words {
  flex: 0 1 auto;
  color: var(--color-ink2);
  overflow-wrap: break-word;
  font-family: var(--v2-type-label-family);
  font-weight: var(--v2-type-label-weight);
  font-size: var(--v2-type-label-size);
  font-style: var(--v2-type-label-style);
  line-height: var(--v2-type-label-line-height, normal);
  letter-spacing: var(--v2-type-label-tracking, normal);
  text-transform: var(--v2-type-label-transform);
  font-variant-caps: var(--v2-type-label-caps);
}

.section-heading h2 {
  margin: 0;
  overflow-wrap: break-word;
  font-family: var(--v2-type-section-title-family);
  font-weight: var(--v2-type-section-title-weight);
  /* Large type follows the screen's width on a phone, so a word is never
     broken at 200 percent text. */
  font-size: min(var(--v2-type-section-title-size), 11vw);
  font-style: var(--v2-type-section-title-style);
  line-height: var(--v2-type-section-title-line-height, normal);
  letter-spacing: var(--v2-type-section-title-tracking, normal);
  text-transform: var(--v2-type-section-title-transform);
}

.section-line {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--v2-type-tagline-family);
  font-weight: var(--v2-type-tagline-weight);
  font-size: var(--v2-type-tagline-size);
  font-style: var(--v2-type-tagline-style);
  line-height: var(--v2-type-tagline-line-height, normal);
  letter-spacing: var(--v2-type-tagline-tracking, normal);
  text-transform: var(--v2-type-tagline-transform);
  font-variant-caps: var(--v2-type-tagline-caps);
}

/* 06 GalleryRow. */
.gallery-row {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-4) var(--space-6);
  border-radius: var(--v2-radius-card);
  background: var(--color-paper);
  border: var(--hairline-width) solid var(--color-line);
  box-shadow: var(--v2-shadow-card);
}

.gallery-intro {
  flex: 0 1 12.5rem;
  min-inline-size: 0;
  overflow-wrap: break-word;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.gallery-name {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.gallery-name h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--v2-type-gallery-name-family);
  font-weight: var(--v2-type-gallery-name-weight);
  font-size: var(--v2-type-gallery-name-size);
  font-style: var(--v2-type-gallery-name-style);
  line-height: var(--v2-type-gallery-name-line-height, normal);
  letter-spacing: var(--v2-type-gallery-name-tracking, normal);
  text-transform: var(--v2-type-gallery-name-transform);
  font-variant-caps: var(--v2-type-gallery-name-caps);
}

.icon-gallery {
  color: var(--color-gold-large);
  inline-size: 2.125rem;
  block-size: 2.125rem;
  stroke-width: 1.5;
}

.gallery-line {
  margin: 0;
  font-size: var(--v2-type-interface-size);
}

.gallery-intro .button-plain {
  align-self: flex-start;
}

.gallery-rule,
.group-rule {
  flex: none;
  align-self: stretch;
  inline-size: var(--v2-rule-width);
  background: var(--color-gold-large);
}

.gallery-cards {
  flex: 1 1 30rem;
  min-inline-size: 0;
  display: grid;
  /* Five in view on a desktop; the rest of the ten scroll in with snap
     (S07.7.2b). */
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 4 * var(--v2-card-gap)) / 5);
  gap: var(--v2-card-gap);
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  margin: 0;
  /* Room for a card's focus ring and shadow inside the scroller. */
  padding: var(--space-2);
  scroll-padding-inline: var(--space-2);
  list-style: none;
}

.gallery-cards > li {
  scroll-snap-align: start;
}

/* Below a desktop the cards scroll sideways, with snap. */
@media (max-width: 1023.98px) {
  .gallery-cards {
    grid-auto-columns: minmax(min(10rem, 85%), 45%);
  }

  .gallery-rule {
    display: none;
  }

  .gallery-cards,
  .gallery-intro {
    flex-basis: 100%;
  }
}

.gallery-more {
  flex: none;
}

/* 06 TopicGroup. */
.topic-group {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.group-name {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.group-name h3 {
  margin: 0;
  overflow-wrap: anywhere;
  font-family: var(--v2-type-label-family);
  font-weight: var(--v2-type-label-weight);
  font-size: var(--v2-type-label-size);
  font-style: var(--v2-type-label-style);
  line-height: var(--v2-type-label-line-height, normal);
  letter-spacing: var(--v2-type-label-tracking, normal);
  text-transform: var(--v2-type-label-transform);
  font-variant-caps: var(--v2-type-label-caps);
}

.group-rule {
  align-self: auto;
  block-size: 1.75rem;
}

.icon-group {
  color: var(--color-gold-large);
  inline-size: 2.25rem;
  block-size: 2.25rem;
  stroke-width: 1.4;
}

.group-topics {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(9rem, 100%), 1fr));
  gap: var(--space-4);
  margin: 0;
  padding: 0;
  list-style: none;
}

.group-more {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-4);
}

.group-more > summary {
  list-style: none;
  align-self: center;
}

/* On a desktop the eyebrow keeps to one line between its rules. */
@media (min-width: 1024px) {
  .eyebrow-words {
    flex: none;
    white-space: nowrap;
  }
}

/* Six topics across on a desktop, as the board sets them. */
@media (min-width: 1024px) {
  .group-topics {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }
}

/* 06 ShelfDoors. */
.shelf ul {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-5);
  margin: 0;
  padding: var(--space-5) var(--space-7);
  list-style: none;
  border-radius: var(--v2-radius-card);
  background: var(--color-paper);
  border: var(--hairline-width) solid var(--color-line);
  box-shadow: var(--v2-shadow-card);
}

.shelf li {
  flex: 1 1 16rem;
  display: flex;
}

.shelf li + li {
  border-inline-start: var(--v2-rule-width) solid var(--color-gold-large);
  padding-inline-start: var(--space-5);
}

.door {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--space-5);
  padding: var(--space-2);
  border-radius: var(--v2-radius-feature);
  color: var(--color-ink);
  text-decoration: none;
}

.icon-door {
  color: var(--color-gold-large);
  inline-size: 2.875rem;
  block-size: 2.875rem;
  stroke-width: 1.6;
}

.door-words {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
}

.door-name {
  font-family: var(--v2-type-door-name-family);
  font-weight: var(--v2-type-door-name-weight);
  font-size: var(--v2-type-door-name-size);
  font-style: var(--v2-type-door-name-style);
  line-height: var(--v2-type-door-name-line-height, normal);
  letter-spacing: var(--v2-type-door-name-tracking, normal);
  text-transform: var(--v2-type-door-name-transform);
  font-variant-caps: var(--v2-type-door-name-caps);
}

.door-line {
  font-family: var(--v2-type-door-line-family);
  font-weight: var(--v2-type-door-line-weight);
  font-size: var(--v2-type-door-line-size);
  font-style: var(--v2-type-door-line-style);
  line-height: var(--v2-type-door-line-line-height, normal);
  letter-spacing: var(--v2-type-door-line-tracking, normal);
  text-transform: var(--v2-type-door-line-transform);
  font-variant-caps: var(--v2-type-door-line-caps);
}

/* Below a desktop the doors stack, with a rule between them. */
@media (max-width: 1023.98px) {
  .shelf ul {
    padding: var(--space-4);
  }

  .shelf li {
    flex-basis: 100%;
    min-inline-size: 0;
  }

  .shelf li + li {
    border-inline-start: 0;
    padding-inline-start: 0;
    border-block-start: var(--v2-rule-width) solid var(--color-gold-large);
    padding-block-start: var(--space-4);
  }

  .button-ring {
    max-inline-size: 100%;
  }

  .door {
    gap: var(--space-3);
    min-inline-size: 0;
    overflow-wrap: anywhere;
  }
}

/* 06 ShareBand. */
.share-band {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 35fr) minmax(0, 65fr);
  align-items: center;
  overflow: hidden;
  min-block-size: 29rem;
  background: var(--v2-share-ground);
}

.share-photo {
  align-self: stretch;
  mask-image: linear-gradient(90deg, black 62%, transparent);
}

:dir(rtl) .share-photo {
  mask-image: linear-gradient(270deg, black 62%, transparent);
}

.ribbon {
  position: absolute;
  inset-inline: 0;
  inset-block-end: -2.875rem;
  inline-size: 100%;
  block-size: 10rem;
  opacity: 0.45;
  pointer-events: none;
}

.share-words {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-5);
  padding-block: var(--space-8);
  padding-inline: 0 var(--space-8);
}

.share-words h2 {
  font-family: var(--v2-type-share-title-family);
  font-weight: var(--v2-type-share-title-weight);
  font-size: min(var(--v2-type-share-title-size), 13vw);
  font-style: var(--v2-type-share-title-style);
  line-height: var(--v2-type-share-title-line-height, normal);
  letter-spacing: var(--v2-type-share-title-tracking, normal);
  text-transform: var(--v2-type-share-title-transform);
  font-variant-caps: var(--v2-type-share-title-caps);
}

.share-words .section-line {
  max-inline-size: 54rem;
  text-transform: none;
  font-family: var(--v2-type-share-line-family);
  font-weight: var(--v2-type-share-line-weight);
  font-size: var(--v2-type-share-line-size);
  font-style: var(--v2-type-share-line-style);
  line-height: var(--v2-type-share-line-line-height, normal);
  letter-spacing: var(--v2-type-share-line-tracking, normal);
  text-transform: var(--v2-type-share-line-transform);
  font-variant-caps: var(--v2-type-share-line-caps);
}

@media (max-width: 1023.98px) {
  .share-band {
    grid-template-columns: minmax(0, 1fr);
  }

  .share-photo {
    block-size: 14rem;
    mask-image: linear-gradient(180deg, black 62%, transparent);
  }

  .share-words {
    padding: var(--space-6) var(--gutter-inline-end) var(--space-8) var(--gutter-inline-start);
  }
}

/* Depth on hover: a lift and a slow zoom of the photo, never under reduced
   motion. */
@media (prefers-reduced-motion: no-preference) {
  .featured-card,
  .photo-card,
  .tile-photo,
  .topic-tile,
  .surprise,
  .button-ring {
    transition:
      transform var(--v2-duration-long) ease,
      box-shadow var(--v2-duration-long) ease;
  }

  .photo img {
    transition: transform 0.5s ease;
  }

  .featured-card:hover,
  .photo-card:hover,
  .topic-tile:hover,
  .expression-tile:hover .tile-photo {
    transform: translateY(var(--v2-lift-large));
  }

  .button-ring:hover {
    transform: translateY(var(--v2-lift-small));
  }

  .featured-card:hover {
    box-shadow: var(--v2-shadow-feature-hover);
  }

  .photo-card:hover {
    box-shadow: var(--v2-shadow-photo-card-hover);
  }

  .featured-card:hover .photo img,
  .photo-card:hover .photo img,
  .topic-tile:hover .photo img {
    transform: scale(var(--v2-photo-zoom));
  }
}

/* The ring button keeps to one line on a desktop; below it, its words may
   wrap like every button's. */
@media (min-width: 1024px) {
  .button-ring {
    white-space: nowrap;
  }
}

/* Below a desktop: room inside the gallery, and a door's icon and arrow
   above its words. */
@media (max-width: 1023.98px) {
  .gallery-row {
    padding-inline: var(--space-4);
  }

  .button-plain {
    padding-inline: var(--space-4);
  }

  .door {
    flex-wrap: wrap;
  }

  .door .arrow-circle {
    margin-inline-start: auto;
  }

  .door-words {
    order: 2;
    flex-basis: 100%;
  }
}

/* Load more says Show fewer once open, and stays where it is. */
.group-more[open] .more-open,
.group-more:not([open]) .more-closed {
  display: inline;
}

.group-more .more-open,
.group-more .more-closed {
  display: none;
}

/* Right to left: the rules, the share band's ground and every arrow
   mirror. */
:dir(rtl) .eyebrow-rule {
  background: linear-gradient(270deg, transparent, var(--color-gold-large));
}

:dir(rtl) .eyebrow-rule:last-child {
  background: linear-gradient(90deg, transparent, var(--color-gold-large));
}

:dir(rtl) .share-band {
  background: var(--v2-share-ground-rtl);
}

:dir(rtl) .icon-arrow {
  transform: scaleX(-1);
}

/* A story or a place with no photo shows the plain sand ground in its
   frame (S07.7.2b.2). */
.photo-none {
  display: block;
  inline-size: 100%;
  block-size: 100%;
  background: var(--color-sand);
}

/* With no photo, a featured card's or a topic tile's white words sit on
   ink, so they keep their contrast however they wrap (WCAG 1.4.3). */
.featured-card .photo-none,
.topic-tile .photo-none {
  background: var(--color-ink);
}
