.legacy-photo-page { max-width: 1180px; padding-top: 34px; padding-bottom: 64px; color: #222; }
.legacy-photo-breadcrumb { display: flex; gap: 8px; overflow-x: auto; align-items: center; color: #777; font-size: 12px; white-space: nowrap; }
.legacy-photo-breadcrumb a { color: #555; }
.legacy-photo-breadcrumb a:hover { color: #b69400; }
.legacy-photo-context { padding: 26px 0 18px; }
.legacy-photo-context .legacy-photo-kicker { margin: 0 0 4px; color: #9a7e00; font-size: 11px; font-weight: 800; letter-spacing: .16em; }
.legacy-photo-context h1 { margin: 0 0 7px; color: #111; font-size: clamp(25px, 3vw, 40px); line-height: 1.1; }
.legacy-photo-context p { margin: 3px 0; color: #555; font-size: 14px; }
.legacy-photo-context strong { display: block; margin-top: 5px; color: #333; font-size: 13px; }
.legacy-main-photo { position: relative; overflow: hidden; margin: 0; border: 1px solid #ddd; background: #111; box-shadow: 0 16px 45px rgba(0,0,0,.12); }
.legacy-main-photo-trigger { position: relative; display: flex; min-height: 220px; align-items: center; justify-content: center; cursor: zoom-in; }
.legacy-main-photo img { display: block; width: auto; max-width: 100%; height: auto; max-height: min(58dvh, 680px); margin: 0 auto; object-fit: contain; }
.legacy-main-photo-zoom { position: absolute; top: 50%; left: 50%; display: grid; width: 42px; height: 42px; border: 1px solid rgba(255,255,255,.6); border-radius: 50%; background: rgba(0,0,0,.5); place-items: center; color: #fff; opacity: 0; transform: translate(-50%,-50%) scale(.9); transition: opacity .18s ease, transform .18s ease; }
.legacy-main-photo-trigger:hover .legacy-main-photo-zoom, .legacy-main-photo-trigger:focus-visible .legacy-main-photo-zoom { opacity: 1; transform: translate(-50%,-50%) scale(1); }
.legacy-main-photo figcaption { padding: 10px 14px; border-top: 1px solid #333; color: #ddd; font-size: 12px; }
.legacy-photo-arrow { position: absolute; top: 50%; display: grid; width: 46px; height: 62px; place-items: center; background: rgba(0,0,0,.55); color: #fff !important; font-size: 40px; line-height: 1; text-decoration: none; transform: translateY(-50%); }
.legacy-photo-arrow:hover { background: rgba(254,251,0,.86); color: #111 !important; }
.legacy-photo-arrow--prev { left: 10px; }
.legacy-photo-arrow--next { right: 10px; }
.legacy-photo-tools, .legacy-photo-tools .g2-share { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; }
.legacy-photo-tools { margin: 20px 0; }
.legacy-photo-tools .g2-button { border: 1px solid #222; border-radius: 2px; background: #222; padding: 10px 15px; color: #fff !important; font-size: 12px; font-weight: 700; cursor: pointer; }
.legacy-photo-tools .g2-button--secondary { background: #fff; color: #222 !important; }
.legacy-photo-tools .g2-button--channel { border-color: #ddd; background: #fff; color: #222 !important; }
.legacy-photo-tools .g2-button:hover { border-color: #d5cf00; background: #fefb00; color: #111 !important; }
.legacy-photo-tools svg { width: 14px; height: 14px; vertical-align: -2px; }
.legacy-photo-tools .g2-share { position: relative; }
.legacy-photo-tools .g2-share-menu { position: absolute; z-index: 5; top: calc(100% + 7px); left: 0; min-width: 170px; border: 1px solid #ddd; background: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.16); }
.legacy-photo-tools .g2-share-menu a { display: block; padding: 9px 12px; color: #222; font-size: 12px; }
.legacy-photo-tools .g2-share-status { color: #666; font-size: 12px; }
.legacy-back-gallery { display: block; width: fit-content; margin: -8px auto 30px; color: #555; font-size: 13px; font-weight: 700; }
.legacy-back-gallery:hover { color: #9a7e00; }
.legacy-photo-page .h2-real-ad { margin: 36px 0; text-align: center; }
.legacy-photo-page .h2-real-ad small { display: block; margin-bottom: 5px; color: #888; font-size: 9px; letter-spacing: .12em; }
.legacy-related { margin-top: 48px; }
.legacy-related-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 14px; }
.legacy-related-heading small { color: #9a7e00; font-weight: 800; letter-spacing: .12em; }
.legacy-related-heading h2 { margin: 3px 0 0; color: #111; font-size: clamp(23px, 3vw, 34px); }
.legacy-related-heading > a { color: #555; font-weight: 700; white-space: nowrap; }
.legacy-related-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.legacy-related-grid a { overflow: hidden; aspect-ratio: 3 / 2; border: 1px solid #ddd; }
.legacy-related-grid img { width: 100%; height: 100%; object-fit: cover; transition: transform .2s ease; }
.legacy-related-grid a:hover img { transform: scale(1.04); }
@media (max-width: 767px) {
  .legacy-photo-page { padding-top: 22px; }
  .legacy-main-photo { margin-inline: -12px; }
  .legacy-photo-arrow { width: 44px; height: 54px; }
  .legacy-photo-tools, .legacy-photo-tools .g2-share { align-items: stretch; width: 100%; }
  .legacy-photo-tools .g2-button { flex: 1 1 auto; }
  .legacy-related-heading { align-items: start; flex-direction: column; }
  .legacy-related-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-height: 850px) and (min-width: 768px) {
  .legacy-main-photo img { max-height: 55dvh; }
  .legacy-photo-context { padding-block: 18px 12px; }
}
