.bp-photo {
  --photo-paper: #faf4e9;
  --photo-ink: #2b2119;
  --photo-quiet: #6a594c;
  --photo-line: #dbccba;
  --photo-rust: #835439;
  --photo-tint: #edddc8;
  min-width: 0;
}
.bp-photo button { font: inherit; cursor: pointer; }
.bp-photo button:focus-visible { outline-color: #c69458; }
.bp-photo__spaces { display: flex; flex-wrap: wrap; gap: .55rem; margin-bottom: .95rem; }
.bp-photo__spaces button {
  border: 1px solid #826b59; border-radius: 2rem; background: transparent; color: #fff1dc;
  min-height: 43px; padding: .52rem 1.14rem; font-size: .93rem; font-weight: 650;
}
.bp-photo__spaces button:hover { background: #453429; }
.bp-photo__spaces button[aria-pressed="true"] { background: #efd4b3; color: #39281c; border-color: #efd4b3; }
.bp-photo__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, 275px); gap: .8rem; align-items: stretch; }
.bp-photo__stage { position: relative; isolation: isolate; background: #4e4034; width: 100%; min-width: 0; aspect-ratio: 16 / 10; min-height: 390px; overflow: hidden; border-radius: .46rem; }
.bp-photo__stage canvas { display: block; position: absolute; inset: 0; width: 100%; height: 100%; cursor: grab; touch-action: none; outline-offset: -4px; }
.bp-photo__stage canvas:active { cursor: grabbing; }
.bp-photo__stage::after {
  content: ""; position: absolute; z-index: 1; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, #1f160e9c, transparent 27%, transparent 77%, #1f160eb8);
}
.bp-photo__notice {
  position: absolute; z-index: 3; top: 50%; left: 50%; transform: translate(-50%, -50%);
  max-width: 85%; min-width: 200px; color: var(--photo-ink); text-align: center; background: #fff4e7ef;
  padding: .7rem 1rem; border-radius: .45rem; pointer-events: none;
}
.bp-photo__view-label, .bp-photo__mode, .bp-photo__links, .bp-photo__pins { position: absolute; z-index: 2; }
.bp-photo__view-label { top: 1.2rem; left: 1.3rem; text-shadow: 0 1px 5px #211810; pointer-events: none; }
.bp-photo__view-label span, .bp-photo__view-label strong { display: block; }
.bp-photo__view-label span { color: #f6dfc6; font-size: .82rem; }
.bp-photo__view-label strong { color: #fff3e7; font: 400 clamp(1.62rem, 4vw, 2.5rem)/1.1 var(--display); }
.bp-photo__mode {
  right: 1rem; top: 1rem; border: 1px solid #fff6e569; border-radius: 3rem; color: #fff6e5;
  background: #2d241c9c; padding: .36rem .74rem; font-size: .79rem; pointer-events: none;
}
.bp-photo__links { left: .9rem; right: .9rem; bottom: .9rem; display: flex; gap: .4rem; flex-wrap: wrap; pointer-events: none; }
.bp-photo__links button, .bp-photo__pin {
  border: 1px solid #fff5deaa; border-radius: 2rem; color: #fff6e5; background: #292019d9;
  padding: .39rem .72rem; font-size: .82rem; min-height: 37px; pointer-events: auto;
}
.bp-photo__links button:hover, .bp-photo__pin:hover, .bp-photo__pin[aria-pressed="true"] { background: #fff1db; color: #442d20; }
.bp-photo__pins { inset: 0; pointer-events: none; }
.bp-photo__pin { position: absolute; transform: translate(-50%, -50%); box-shadow: 0 2px 8px #20160f55; white-space: nowrap; }
.bp-photo__pin::before { content: "+"; margin-right: .28em; color: #e6b580; }
.bp-photo__pin:hover::before, .bp-photo__pin[aria-pressed="true"]::before { color: #835439; }
.bp-photo__sidebar {
  background: var(--photo-paper); color: var(--photo-ink); border-radius: .46rem;
  padding: 1.02rem; min-width: 0; display: flex; flex-direction: column; justify-content: start;
}
.bp-photo__kicker { color: var(--photo-rust); font-size: .75rem; font-weight: 730; letter-spacing: .1em; text-transform: uppercase; }
.bp-photo__title { font: 400 clamp(1.57rem, 3.1vw, 2.22rem)/1.07 var(--display); margin: .37rem 0 .6rem; letter-spacing: -.041em; }
.bp-photo__description, .bp-photo__hint { color: var(--photo-quiet); font-size: .9rem; margin-bottom: .63rem; }
.bp-photo__stops, .bp-photo__choices { display: grid; gap: .38rem; }
.bp-photo__stops button, .bp-photo__choices button, .bp-photo__parts button, .bp-photo__camera button {
  min-height: 37px; background: #fffbf3; color: #3a2b20; border: 1px solid var(--photo-line);
  border-radius: .38rem; padding: .38rem .56rem; text-align: left; line-height: 1.25; font-size: .85rem;
}
.bp-photo__stops button:hover, .bp-photo__choices button:hover, .bp-photo__parts button:hover, .bp-photo__camera button:hover,
.bp-photo__stops button[aria-pressed="true"], .bp-photo__choices button[aria-pressed="true"], .bp-photo__parts button[aria-pressed="true"] {
  background: var(--photo-tint); border-color: #a87b58;
}
.bp-photo__camera, .bp-photo__parts { display: flex; gap: .3rem; flex-wrap: wrap; margin: .85rem 0 .48rem; }
.bp-photo__parts { margin-top: 0; }
.bp-photo__parts button { flex: 1; text-align: center; }
.bp-photo__camera button { flex: 1; padding-inline: .3rem; text-align: center; font-size: 1.1rem; }
.bp-photo__choices button { display: flex; align-items: center; gap: .55rem; }
.bp-photo__choices button span { width: 1.05rem; height: 1.05rem; border: 1px solid #60402d40; border-radius: 50%; flex: none; }
.bp-photo__finish-actions { display: flex; gap: .35rem .65rem; flex-wrap: wrap; margin-top: .23rem; }
.bp-photo__text-button {
  border: 0; background: transparent; padding: .22rem 0; text-align: left; color: var(--photo-rust);
  text-decoration: underline; text-underline-offset: .2em; min-height: 31px; font-size: .83rem;
}
.bp-photo__cta {
  min-height: 42px; border: 1px solid #4a3528; border-radius: .38rem; background: #493427;
  padding: .45rem .62rem; color: #fff7eb; text-align: center; font-size: .86rem; margin-top: auto;
}
.bp-photo__cta:hover { background: #694931; }
.bp-photo__caption, .bp-photo__credits { margin-top: .65rem; color: #e5cfb8; font-size: .9rem; }
.bp-photo__credits summary { cursor: pointer; width: fit-content; }
.bp-photo__credits ul { margin-block: .35rem 0; padding-left: 1.2rem; }
.bp-photo__credits a:hover { color: #fff0db; }
@media (max-width: 760px) {
  .bp-photo__grid { grid-template-columns: minmax(0, 1fr); gap: .55rem; }
  .bp-photo__stage { min-height: 230px; }
  .bp-photo__sidebar { padding: .8rem; }
  .bp-photo__stops { display: flex; flex-wrap: wrap; }
  .bp-photo__stops button { flex: 1; text-align: center; }
  .bp-photo__camera { width: min(100%, 16rem); }
  .bp-photo__spaces button { padding-inline: .86rem; }
  .bp-photo__view-label { top: .68rem; left: .76rem; }
  .bp-photo__view-label span { display: none; }
  .bp-photo__view-label strong { font-size: 1.43rem; }
  .bp-photo__mode { right: .62rem; top: .65rem; font-size: .72rem; }
  .bp-photo__links { left: .52rem; right: .52rem; bottom: .5rem; }
}
@media (max-width: 360px) {
  .bp-photo__stage { min-height: 210px; }
  .bp-photo__links button, .bp-photo__pin { font-size: .75rem; min-height: 34px; padding-inline: .51rem; }
}
