/* Dv282: readable gallery prompt on every project gallery. */
html body.project-page #r-main .gallery-card .gallery-caption span[data-i18n="click"] {
  font-size: 16px !important;
  letter-spacing: normal !important;
  text-transform: none !important;
  line-height: 1.5 !important;
}

/* Dv284: unify the whole ship photo viewer GUI with the same hover/tab panel color. */
html body.project-page #galleryModal {
  --viewer-gui-bg: rgba(30, 30, 30, 0.72);
  --viewer-gui-border: rgba(255,255,255,0.16);
}

html body.project-page #galleryModal .modal-shell {
  background: var(--viewer-gui-bg) !important;
  border: 1px solid var(--viewer-gui-border) !important;
  border-radius: 18px !important;
  backdrop-filter: blur(24px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(24px) saturate(120%) !important;
  box-shadow: 0 20px 60px rgba(0,0,0,.24) !important;
  overflow: hidden !important;
}

html body.project-page #galleryModal .modal-top,
html body.project-page #galleryModal .modal-bottom,
html body.project-page #galleryModal .modal-stage {
  background: transparent !important;
}

html body.project-page #galleryModal .modal-pan::before,
html body.project-page #galleryModal .modal-pan::after,
html body.project-page #galleryModal .modal::before,
html body.project-page #galleryModal .modal-stage::before {
  content: none !important;
  display: none !important;
}

html body.project-page #galleryModal .modal-arrow,
html body.project-page #galleryModal .modal-close,
html body.project-page #galleryModal .zoom-controls button {
  background: var(--viewer-gui-bg) !important;
  border: 1px solid var(--viewer-gui-border) !important;
  color: #f2f4f5 !important;
  backdrop-filter: blur(18px) saturate(120%) !important;
  -webkit-backdrop-filter: blur(18px) saturate(120%) !important;
  box-shadow: none !important;
}

html body.project-page #galleryModal .modal-top,
html body.project-page #galleryModal .modal-bottom {
  border-color: transparent !important;
}

html body.project-page #galleryModal .modal-arrow:hover,
html body.project-page #galleryModal .modal-arrow:focus-visible,
html body.project-page #galleryModal .modal-close:hover,
html body.project-page #galleryModal .modal-close:focus-visible,
html body.project-page #galleryModal .zoom-controls button:hover,
html body.project-page #galleryModal .zoom-controls button:focus-visible {
  background: rgba(42, 42, 42, 0.86) !important;
  border-color: rgba(255,255,255,0.22) !important;
  color: #ffffff !important;
  outline: none !important;
}

html body.project-page #galleryModal #zoomValue,
html body.project-page #galleryModal #modalCounter,
html body.project-page #galleryModal .modal-hint,
html body.project-page #galleryModal #modalTitle {
  color: #f2f4f5 !important;
}

@media (max-width: 900px) {
  html body.project-page #galleryModal .modal-shell {
    border-radius: 14px !important;
  }
}
