.photo-story-page {
  background: #e4f5f1;
  color: #161616;
  padding-bottom: 4rem;
}

.photo-story-page ::selection {
  background-color: #6f8f45;
  color: #ffffff;
}

.photo-story-breadcrumb {
  max-width: 1200px;
  margin: 0 auto;
  padding: 1.5rem 2rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  color: #6b6b66;
}

.photo-story-breadcrumb .breadcrumb-link,
.photo-story-breadcrumb .breadcrumb-separator,
.photo-story-breadcrumb .breadcrumb-current {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #6b6b66 !important;
  text-decoration: none;
}

.photo-story-breadcrumb a[href="/"],
.photo-story-breadcrumb a.breadcrumb-link[href="/"] {
  font-family: 'IBM Plex Sans', sans-serif !important;
  font-size: 14px !important;
  font-weight: 400 !important;
  color: #6b6b66 !important;
  text-decoration: none !important;
}

.photo-story-breadcrumb a:hover {
  text-decoration: underline;
}

.photo-story-breadcrumb .breadcrumb-current {
  text-decoration: none !important;
}

.photo-story-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

.photo-story-header {
  max-width: 980px;
  margin-bottom: 2.5rem;
}

.photo-story-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.photo-story-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.photo-story-badge-story {
  background: #f2cf63;
  color: #161616;
}

.photo-story-badge-event {
  background: #58733a;
  color: #f7f8f2;
  gap: 0.45rem;
}

.photo-story-badge-earth {
  display: block;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  border-radius: 50%;
}

.photo-story-badge-series {
  background: #f8f5ec;
  border: 1px solid #d8d1bf;
  color: #2d2a26;
  gap: 0;
}

.photo-story-badge-series .badge-icon {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}

.photo-story-title {
  margin: 0 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.03em;
}

.photo-story-byline {
  margin: 0;
  font-family: 'Inter', sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  color: #504b43;
}

.photo-story-byline a {
  color: #161616;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.photo-story-byline a:hover {
  color: #375f28;
}

.photo-story-meta-separator {
  color: #6b6b66;
}

.photo-story-standfirst {
  max-width: 860px;
  margin: 2rem 0 2.5rem;
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 28px;
  color: #2d2a26;
}

.photo-story-standfirst p {
  margin: 0 0 1.2rem;
}

.photo-story-standfirst a,
.photo-story-content a {
  color: #305f8d;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.16em;
}

.photo-story-featured,
.photo-story-content figure {
  margin: 0 0 2.75rem;
}

.photo-story-featured {
  max-width: 860px;
}

.photo-story-frame,
.photo-story-content .story-grid,
.photo-story-content .story-single {
  background: #ffffff;
  padding: 1rem;
  border: none;
  box-shadow: 0 18px 36px rgba(70, 63, 48, 0.08);
}

.photo-story-frame img,
.photo-story-content img {
  display: block;
  width: 100%;
  height: auto;
}

.photo-story-caption,
.photo-story-content figcaption {
  position: relative;
  margin-top: 0.95rem;
  padding-left: 2rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #2d2a26;
}

.photo-story-caption::before,
.photo-story-content figcaption::before {
  content: "";
  position: absolute;
  left: 0.65rem;
  top: 0.1rem;
  bottom: 0.1rem;
  width: 1px;
  background: #2d2a26;
}

.photo-story-content {
  max-width: 860px;
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 28px;
  color: #1f1c18;
}

.photo-story-content > *:first-child {
  margin-top: 0;
}

.photo-story-content p {
  margin: 0 0 1.35rem;
}

.photo-story-content h2 {
  margin: 3.5rem 0 1rem;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.65rem, 2.2vw, 2.4rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

.photo-story-content .story-grid {
  display: grid;
  gap: 1rem;
}

.photo-story-content .story-grid-two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-story-content .story-grid-featured-third {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-story-content .story-grid-featured-third img:nth-child(3) {
  grid-column: 1 / -1;
}

.photo-story-content .story-grid-three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.photo-story-content .story-grid-welcome {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.photo-story-content .story-grid-welcome img:nth-child(3) {
  grid-column: 1 / -1;
}

.photo-story-content .story-grid-stack {
  grid-template-columns: 1fr;
}

.photo-story-content .story-grid img {
  aspect-ratio: auto;
  object-fit: contain;
  background: #ffffff;
  align-self: start;
}

.photo-story-pullquote,
.photo-story-final-callout {
  margin: 2.25rem 0 2.5rem;
  padding: 1.45rem 1.7rem 1.5rem;
  border-left: 4px solid #58733a;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 18px 36px rgba(70, 63, 48, 0.08);
}

.photo-story-pullquote p,
.photo-story-final-callout p {
  margin: 0;
  color: #1f1c18;
}

.photo-story-pullquote p {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  font-style: italic;
  line-height: 1.35;
}

.photo-story-pullquote cite {
  display: block;
  margin-top: 0.9rem;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-style: normal;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #504b43;
}

.photo-story-pullquote cite::before {
  content: "- ";
}

.photo-story-final-callout p {
  font-family: 'Inter', sans-serif;
  font-size: 19px;
  line-height: 1.6;
}

.photo-story-signoff {
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(22, 22, 22, 0.14);
  color: #504b43;
}

.photo-story-credit-line {
  margin-top: 1.25rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 14px;
  font-weight: 400;
  line-height: 20px;
  color: #504b43;
}

.photo-story-credit-line strong {
  font-weight: 700;
}

.photo-story-content .photo-story-table-wrap {
  margin: 2rem 0 2.5rem;
  overflow-x: auto;
}

.photo-story-content .photo-story-prize-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(70, 63, 48, 0.08);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  line-height: 1.45;
}

.photo-story-content .photo-story-prize-table caption {
  margin-bottom: 0.75rem;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  text-align: left;
  color: #504b43;
}

.photo-story-content .photo-story-prize-table th,
.photo-story-content .photo-story-prize-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(22, 22, 22, 0.12);
  vertical-align: top;
  text-align: left;
}

.photo-story-content .photo-story-prize-table thead th {
  background: #f8f5ec;
  color: #1f1c18;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.photo-story-content .photo-story-prize-table tbody tr:last-child td {
  border-bottom: none;
}

.photo-story-content .photo-story-prize-table strong {
  font-weight: 700;
}

@media (max-width: 900px) {
  .photo-story-content .story-grid-three {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .photo-story-breadcrumb,
  .photo-story-shell {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .photo-story-meta {
    gap: 0.55rem;
  }

  .photo-story-standfirst,
  .photo-story-content {
    font-size: 17px;
    line-height: 27px;
  }

  .photo-story-frame,
  .photo-story-content .story-grid,
  .photo-story-content .story-single {
    padding: 0.7rem;
  }

  .photo-story-content .story-grid-two,
  .photo-story-content .story-grid-three,
  .photo-story-content .story-grid-featured-third,
  .photo-story-content .story-grid-welcome {
    grid-template-columns: 1fr;
  }

  .photo-story-content .story-grid-featured-third img:nth-child(3) {
    grid-column: auto;
  }

  .photo-story-content .story-grid-welcome img:nth-child(3) {
    grid-column: auto;
  }

  .photo-story-caption,
  .photo-story-content figcaption {
    padding-left: 1.65rem;
  }

  .photo-story-caption::before,
  .photo-story-content figcaption::before {
    left: 0.45rem;
  }
}

.photo-story-content .pollinator-matchup {
  --pm-accent: #58733a;
  --pm-accent-dark: #41582a;
  --pm-ink: #1f1c18;
  --pm-muted: #504b43;
  --pm-paper: #fbf9f2;
  --pm-paper-soft: #f3efe3;
  --pm-shadow: 0 22px 44px rgba(70, 63, 48, 0.14);
  --pm-card-radius: 14px;
  position: relative;
  margin: 3rem 0 3.25rem;
  padding: 1.75rem clamp(1rem, 3vw, 2rem) 1.85rem;
  background: linear-gradient(180deg, #faf7ee 0%, #f3efe2 100%);
  border: 1px solid rgba(45, 42, 38, 0.12);
  border-radius: 18px;
  box-shadow: 0 24px 48px rgba(70, 63, 48, 0.1);
  --pm-left-extra: clamp(0px, calc(50vw - 500px), 60px);
  --pm-right-extra: clamp(0px, calc(50vw - 460px), 200px);
  width: calc(100% + var(--pm-left-extra) + var(--pm-right-extra));
  margin-left: calc(-1 * var(--pm-left-extra));
  margin-right: calc(-1 * var(--pm-right-extra));
  overflow: hidden;
}

.photo-story-content .pollinator-matchup::before {
  content: '';
  position: absolute;
  inset: 10px;
  border: 1px dashed rgba(88, 115, 58, 0.28);
  border-radius: 12px;
  pointer-events: none;
}

.photo-story-content .pollinator-matchup > * {
  position: relative;
}

.photo-story-content .pollinator-matchup > *:last-child {
  margin-bottom: 0;
}

.photo-story-content .pollinator-matchup-note {
  margin: 0 0 1.25rem;
  font-size: 15px;
  line-height: 1.55;
  color: var(--pm-muted);
  text-align: center;
}

.photo-story-content .pollinator-matchup-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: clamp(1rem, 2.5vw, 2rem);
  align-items: stretch;
  margin: 0 0 1.25rem;
}

.photo-story-content .pollinator-matchup-column {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  min-width: 0;
}

.photo-story-content .pollinator-matchup-label {
  margin: 0;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--pm-accent-dark);
  text-align: center;
  padding: 0.45rem 0.75rem;
  background: rgba(88, 115, 58, 0.12);
  border-radius: 999px;
  align-self: center;
}

.photo-story-content .pollinator-matchup-card {
  position: relative;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  perspective: 1800px;
  aspect-ratio: 419 / 298;
}

.photo-story-content .pollinator-matchup-card:focus-visible,
.photo-story-content .pollinator-matchup-trigger:focus-visible {
  outline: 3px solid #305f8d;
  outline-offset: 4px;
}

.photo-story-content .pollinator-matchup-card-inner {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.72s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform;
}

.photo-story-content .pollinator-matchup-face {
  display: block;
}

.photo-story-content .pollinator-matchup-card.is-flipped .pollinator-matchup-card-inner {
  transform: rotateY(180deg);
}

.photo-story-content .pollinator-matchup-card.is-shuffling .pollinator-matchup-card-inner {
  transition: none;
  animation: pollinator-card-shuffle 0.38s ease-in-out infinite;
}

.photo-story-content .pollinator-matchup-card.is-locked .pollinator-matchup-card-inner {
  animation: pollinator-card-lock 0.55s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.photo-story-content .pollinator-matchup-face {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  background: #ffffff;
  border-radius: var(--pm-card-radius);
  box-shadow: var(--pm-shadow);
  backface-visibility: hidden;
  overflow: hidden;
}

.photo-story-content .pollinator-matchup-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #ffffff;
  display: block;
}

.photo-story-content .pollinator-matchup-face-back {
  transform: rotateY(180deg);
  background: var(--pm-paper);
}

.photo-story-content .pollinator-matchup-face-back img {
  object-fit: contain;
  background: var(--pm-paper);
}

.photo-story-content .pollinator-matchup-current {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  text-align: center;
  min-height: 3rem;
}

.photo-story-content .pollinator-matchup-current strong {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 17px;
  line-height: 1.2;
  color: var(--pm-ink);
}

.photo-story-content .pollinator-matchup-current span {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 1.4;
  color: var(--pm-muted);
}

.photo-story-content .pollinator-matchup-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.9rem;
  text-align: center;
  padding: 0 0.25rem;
}

.photo-story-content .pollinator-matchup-trigger {
  width: 112px;
  height: 112px;
  border: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #6d8b48 0%, var(--pm-accent) 45%, var(--pm-accent-dark) 100%);
  color: #f7f8f2;
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  box-shadow: 0 16px 30px rgba(88, 115, 58, 0.28), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.photo-story-content .pollinator-matchup-trigger:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 34px rgba(88, 115, 58, 0.32), inset 0 -4px 0 rgba(0, 0, 0, 0.1);
  filter: brightness(1.05);
}

.photo-story-content .pollinator-matchup-trigger:active {
  transform: translateY(0);
}

.photo-story-content .pollinator-matchup-trigger:disabled {
  cursor: wait;
  transform: none;
  opacity: 0.85;
  animation: pollinator-trigger-pulse 0.9s ease-in-out infinite;
}

.photo-story-content .pollinator-matchup-helper,
.photo-story-content .pollinator-matchup-status,
.photo-story-content .pollinator-matchup-resource {
  margin: 0;
}

.photo-story-content .pollinator-matchup-helper {
  font-family: 'IBM Plex Sans', sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--pm-muted);
  max-width: 180px;
}

.photo-story-content .pollinator-matchup-status {
  margin: 1.25rem auto 0;
  padding: 1rem 1.25rem;
  max-width: 780px;
  background: rgba(255, 255, 255, 0.72);
  border-left: 4px solid var(--pm-accent);
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--pm-ink);
  text-align: left;
  transition: background 0.4s ease, border-color 0.4s ease;
}

.photo-story-content .pollinator-matchup-status.is-searching {
  background: rgba(255, 255, 255, 0.5);
  border-left-color: rgba(88, 115, 58, 0.45);
  font-style: italic;
  color: var(--pm-muted);
}

.photo-story-content .pollinator-matchup-status.is-matched {
  animation: pollinator-status-flash 0.6s ease;
}

.photo-story-content .pollinator-matchup-resource {
  margin-top: 1rem;
  font-size: 14px;
  color: var(--pm-muted);
  text-align: center;
}

@keyframes pollinator-card-shuffle {
  0%   { transform: rotateY(0deg) translateY(0) scale(1); }
  25%  { transform: rotateY(12deg) translateY(-4px) scale(1.01); }
  50%  { transform: rotateY(0deg) translateY(2px) scale(0.99); }
  75%  { transform: rotateY(-12deg) translateY(-4px) scale(1.01); }
  100% { transform: rotateY(0deg) translateY(0) scale(1); }
}

@keyframes pollinator-card-lock {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.04); box-shadow: 0 0 0 6px rgba(88, 115, 58, 0.18); }
  100% { transform: scale(1); }
}

@keyframes pollinator-trigger-pulse {
  0%, 100% { box-shadow: 0 16px 30px rgba(88, 115, 58, 0.28), inset 0 -4px 0 rgba(0, 0, 0, 0.1); }
  50%      { box-shadow: 0 16px 30px rgba(88, 115, 58, 0.45), inset 0 -4px 0 rgba(0, 0, 0, 0.1); }
}

@keyframes pollinator-status-flash {
  0%   { background: rgba(181, 213, 128, 0.55); }
  100% { background: rgba(255, 255, 255, 0.72); }
}

@media (prefers-reduced-motion: reduce) {
  .photo-story-content .pollinator-matchup-card-inner,
  .photo-story-content .pollinator-matchup-trigger {
    transition: none;
  }
  .photo-story-content .pollinator-matchup-card.is-shuffling .pollinator-matchup-card-inner,
  .photo-story-content .pollinator-matchup-card.is-locked .pollinator-matchup-card-inner,
  .photo-story-content .pollinator-matchup-trigger:disabled,
  .photo-story-content .pollinator-matchup-status.is-matched {
    animation: none;
  }
}

@media (max-width: 900px) {
  .photo-story-content .pollinator-matchup {
    padding: 1.35rem 1rem 1.5rem;
    --pm-extra: 0px;
  }

  .photo-story-content .pollinator-matchup-board {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .photo-story-content .pollinator-matchup-controls {
    order: 2;
  }

  .photo-story-content .pollinator-matchup-column:first-of-type { order: 1; }
  .photo-story-content .pollinator-matchup-column:last-of-type { order: 3; }

  .photo-story-content .pollinator-matchup-helper {
    max-width: 100%;
  }
}

@media (max-width: 520px) {
  .photo-story-content .pollinator-matchup {
    padding: 1rem 0.75rem 1.2rem;
    border-radius: 14px;
  }

  .photo-story-content .pollinator-matchup::before {
    inset: 6px;
  }

  .photo-story-content .pollinator-matchup-trigger {
    width: 96px;
    height: 96px;
    font-size: 13px;
  }

  .photo-story-content .pollinator-matchup-current strong {
    font-size: 16px;
  }

  .photo-story-content .pollinator-matchup-status {
    font-size: 15px;
    padding: 0.85rem 1rem;
  }
}
