/* Credits stay available without taking a row away from photos and titles. */
.photo-credits-ready .ev-credit,
.photo-credits-ready .ev-open-image,
.photo-credits-ready .city-banner figcaption,
.photo-credits-ready .hub-photo figcaption { display: none; }
.photo-credit-popup {
  position: fixed; inset: auto; margin: 0; width: max-content; z-index: 2147483647; box-sizing: border-box;
  max-width: min(380px, calc(100vw - 16px)); max-height: min(50vh, 320px);
  overflow: auto; padding: 10px 12px; border: 1px solid #777; border-radius: 6px;
  background: #fff; color: #171717; box-shadow: 0 3px 12px #0003;
  font: 13px/1.5 system-ui, sans-serif; overflow-wrap: anywhere;
}
.photo-credit-popup[hidden] { display: none; }
.photo-credit-popup a { color: #174a8b; text-decoration: underline; }
.photo-credit-popup .ev-credit { display: block; margin: 0; color: inherit; font: inherit; }
.photo-credit-popup .ev-open-image { display: inline-block; margin: 6px 12px 0 0; font: inherit; }
.photo-credit-popup a:focus-visible, [data-photo-credit-focus]:focus-visible { outline: 2px solid #245eac; outline-offset: 3px; }
:root[data-theme="dark"] .photo-credit-popup { background: #181818; color: #fff; }
:root[data-theme="dark"] .photo-credit-popup a { color: #a6ccff; }
.photo-credit-popup.is-banner { background: #171717f2; color: #fff; font-size: 11px; padding: 6px 8px; }
.photo-credit-popup.is-banner a { color: #fff; }
.photo-credits-ready .event-photo-credit .ev-credit,
.photo-credits-ready .map-pop > .ev-credit,
.photo-credits-ready .event-sheet-media > .ev-credit { display: block; }
.photo-credits-ready .event-photo-credit .ev-open-image,
.photo-credits-ready .map-pop > .ev-open-image,
.photo-credits-ready .event-sheet-media > .ev-open-image { display: inline-block; }
.photo-credits-ready .event-sheet-media .ev-failed + .ev-credit,
.photo-credits-ready .event-sheet-media.ev-media-failed > .ev-credit,
.photo-credits-ready .event-sheet-media.ev-media-failed > .ev-open-image { display: none; }
.event-photo-credit { margin-top: .2rem; font-size: .72rem; }
.photo-credits-ready .event-tooltip { pointer-events: auto; max-height: calc(100vh - 16px); overflow: auto; }
.event-photo-credit .ev-credit, .event-photo-credit .ev-open-image { color: inherit; }
.event-photo-credit a { color: inherit; text-decoration: underline; }
.event-photo-credit a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.photo-credits-ready .event-tooltip .tt-hint { opacity: .7; }
