.tmn-photo-trigger { cursor: zoom-in; }
.tmn-photo-trigger:focus-visible { outline: 3px solid #0084c1; outline-offset: 3px; }
.tmn-photo-trigger[aria-busy="true"] { cursor: progress; }
html.tmn-gallery-open { overflow: hidden; overscroll-behavior: none; }
.pswp .tmn-photo-panel {
  z-index: 20;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  box-sizing: border-box;
  padding: 8px 12px max(8px, env(safe-area-inset-bottom));
  background: rgba(0, 0, 0, .8);
  color: white;
  font: 14px/1.4 Arial, sans-serif;
}
.pswp .tmn-photo-caption {
  max-height: 16vh;
  overflow: auto;
  text-align: center;
  white-space: pre-line;
  margin-bottom: 8px;
}
.pswp .tmn-photo-thumbnails {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  padding: 3px 0;
  scrollbar-width: thin;
}
.pswp .tmn-photo-thumbnails button {
  flex: 0 0 64px;
  height: 56px;
  padding: 2px;
  border: 2px solid transparent;
  border-radius: 3px;
  background: #333;
  cursor: pointer;
}
.pswp .tmn-photo-thumbnails button[aria-pressed="true"] { border-color: #66c9ff; }
.pswp .tmn-photo-thumbnails button:focus-visible { outline: 2px solid white; outline-offset: 1px; }
.pswp .tmn-photo-thumbnails img { display: block; width: 100%; height: 100%; object-fit: contain; }
@media (max-height: 450px) {
  .pswp .tmn-photo-caption { max-height: 12vh; }
  .pswp .tmn-photo-thumbnails button { height: 40px; flex-basis: 48px; }
}
