.credits-button { white-space: nowrap; }
.tv-header-actions { display: flex; align-items: center; justify-content: flex-end; gap: 10px; }

.credits-dialog {
  width: min(1180px, 92vw);
  height: min(860px, 88vh);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 14px 14px 0 rgba(23,23,25,.55);
}
.credits-dialog::backdrop { background: rgba(23,23,25,.7); backdrop-filter: blur(7px); }
.credits-panel { height: 100%; display: grid; grid-template-rows: auto auto minmax(0,1fr) auto; }
.credits-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 26px; border-bottom: 2px solid var(--ink); background: var(--pink); }
.credits-header p { margin: 0 0 5px; font-size: 10px; font-weight: 700; letter-spacing: .14em; }
.credits-header h2 { margin: 0; font-size: clamp(30px,3.2vw,54px); line-height: .9; letter-spacing: -.07em; }
.credits-close { min-width: 116px; min-height: 48px; border: 2px solid var(--ink); background: var(--paper); font-weight: 700; cursor: pointer; }
.credits-intro { margin: 0; padding: 14px 26px; border-bottom: 1px solid rgba(23,23,25,.25); font-size: 12px; line-height: 1.45; }
.credits-list { min-height: 0; padding: 18px 26px 28px; overflow: auto; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; align-content: start; background: #ffd8bf; }
.credit-entry { min-width: 0; display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 12px; padding: 14px; border: 2px solid var(--ink); background: var(--paper); box-shadow: 4px 4px 0 rgba(23,23,25,.25); }
.credit-number { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--orange); font-size: 10px; font-weight: 700; }
.credit-entry h3 { margin: 1px 0 5px; font-size: 17px; line-height: 1; }
.credit-entry p { margin: 3px 0; overflow-wrap: anywhere; font-size: 10px; line-height: 1.35; }
.credit-work { opacity: .72; }
.credit-links { display: flex; flex-wrap: wrap; gap: 7px; padding-top: 5px; }
.credit-links a { padding: 5px 7px; border: 1px solid var(--ink); background: var(--white); color: inherit; font-size: 9px; font-weight: 700; text-decoration: none; }
.credit-links a:first-child { background: var(--pink); }
.credits-footer { margin: 0; padding: 10px 26px; border-top: 2px solid var(--ink); background: var(--ink); color: var(--white); font-size: 10px; }

.credits-page { min-height: 100%; overflow: auto; background: #ffd8bf; }
.credits-page-header { display: grid; grid-template-columns: 110px minmax(0,1fr) auto; align-items: center; gap: 24px; padding: 20px clamp(20px,4vw,68px); border-bottom: 2px solid var(--ink); background: var(--pink); }
.credits-page-header .exhibition-logo { width: 94px; }
.credits-page-header p { margin: 0 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .14em; }
.credits-page-header h1 { margin: 0; font-size: clamp(34px,4.5vw,76px); line-height: .88; letter-spacing: -.08em; }
.credits-back { padding: 11px 13px; border: 2px solid var(--ink); background: var(--paper); color: inherit; font-size: 11px; font-weight: 700; text-decoration: none; }
.credits-page-main { width: min(1240px,94vw); margin: 0 auto; padding: 28px 0 50px; }
.credits-page-main > p { max-width: 860px; margin: 0 0 22px; font-size: 13px; line-height: 1.5; }
.credits-page .credits-list { overflow: visible; padding: 0; background: transparent; }

.mobile-credits-link { display: inline-block; margin-top: 5px; color: inherit; font-size: 7px; font-weight: 700; letter-spacing: .08em; text-decoration: underline; text-underline-offset: 2px; }

.image-credit { position: absolute; z-index: 6; right: 10px; bottom: 10px; max-width: calc(100% - 20px); padding: 5px 7px; overflow: hidden; border: 1px solid rgba(255,255,255,.55); background: rgba(23,23,25,.76); color: #fff; font: 700 clamp(7px,.55vw,10px)/1.2 "Courier New",monospace; letter-spacing: .02em; text-align: right; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; white-space: nowrap; backdrop-filter: blur(3px); }
.image-credit[hidden] { display: none; }
.scenario-photo, .phone-scene, .destination-photo-wrap, .qr-scenery, .destination-preview { position: relative; }
.scenario-photo .image-credit { right: 6px; bottom: 6px; }
.phone-scene .image-credit, .qr-scenery .image-credit { right: 16px; bottom: 16px; }
.qr-scenery .image-credit { z-index: 3; }
.destination-preview .image-credit { z-index: 4; right: 8px; top: 8px; bottom: auto; max-width: calc(100% - 16px); }
.destination-preview .image-credit { padding: 4px 6px; font-size: 7px; }
.gallery-thumb .gallery-image-credit { position: absolute; z-index: 5; inset: 5px 5px auto auto; max-width: calc(100% - 10px); padding: 3px 4px; overflow: hidden; background: rgba(23,23,25,.78); color: #fff; font: 700 clamp(5px,.38vw,7px)/1.1 "Courier New",monospace; text-align: right; text-overflow: ellipsis; text-shadow: 0 1px 2px #000; white-space: nowrap; }

@media (max-width: 760px) {
  .image-credit { font-size: 7px; }
}

@media (max-width: 760px) {
  .credits-dialog { width: 94vw; height: 90vh; }
  .credits-header { padding: 16px; }
  .credits-header h2 { font-size: 27px; }
  .credits-close { min-width: 74px; }
  .credits-intro, .credits-footer { padding-left: 16px; padding-right: 16px; }
  .credits-list { grid-template-columns: 1fr; padding: 14px 16px 24px; }
  .credits-page-header { grid-template-columns: 66px 1fr; padding: 14px 16px; }
  .credits-page-header .exhibition-logo { width: 60px; }
  .credits-page-header h1 { font-size: 31px; }
  .credits-back { grid-column: 1 / -1; justify-self: start; }
}
