/* Match Dark's texture opacity over photos and cover previews in both modes. */
:root[data-studio-theme="light"] .studio-shell::after { opacity: 1; }
@media (hover: none) and (pointer: coarse) {
  :root[data-studio-theme="light"] .studio-shell::after { opacity: .5; }
}

:root[data-studio-theme="light"] body.studio-glass :is(
  .gallery-more__menu [data-delete], .section-row__remove, .gallery-picker-error, .upload-errors,
  .editor-saved[data-error="true"]
) {
  color: #903e30 !important;
}

/* The photo viewer is in Studio. Its photos and gesture geometry keep their own styling. */
:root[data-studio-theme="light"] .photo-viewer :is(
  .photo-viewer__count, .photo-viewer__meta, .photo-viewer__caption[data-empty="true"], .photo-viewer__details label
) {
  color: var(--g-sub);
}
:root[data-studio-theme="light"] .photo-viewer :is(.photo-viewer__nav, .photo-viewer__actions button, .photo-viewer__done) {
  border-color: var(--g-line);
  background: var(--g-glass);
  color: var(--g-text);
}
:root[data-studio-theme="light"] .photo-viewer :is(
  .photo-viewer__icon:hover, .photo-viewer__nav:hover, .photo-viewer__actions button:hover,
  .photo-viewer__actions button[aria-pressed="true"]
) {
  border-color: var(--g-accent);
  background: var(--g-chip);
}
:root[data-studio-theme="light"] .photo-viewer .photo-viewer__remove { color: #903e30; }
:root[data-studio-theme="light"] .photo-viewer :focus-visible { outline-color: var(--g-accent); }
:root[data-studio-theme="light"] .photo-viewer__details :is(input, select):focus { border-color: var(--g-accent); }
