[hidden] { display: none !important; }

.photo-access {
  min-height: 100svh;
  display: grid;
  place-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: #fff;
  color: #111;
  font-family: Arial, sans-serif;
}
.photo-access form { width: min(320px, calc(100vw - 48px)); text-align: left; }
.photo-access h1 { display: block; margin: 0 0 24px; font-size: 24px; }
.photo-access label { display: block; margin-bottom: 8px; }
.photo-access input {
  width: 100%;
  box-sizing: border-box;
  padding: 12px;
  font-size: 16px;
  border: 1px solid #777;
  border-radius: 6px;
}
.photo-access button { margin: 16px 0; padding: 10px 20px; font-size: 16px; cursor: pointer; }
.photo-access a { color: #333; }
.photo-access-error { min-height: 1.5em; color: #a40000; }

/* Restrict ordinary save gestures to photos, keeping text selection/navigation usable. */
[data-protected-photo], [data-protected-photo] img,
.gallery a, .gallery img, .lightbox-image-container, .lightbox img {
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-user-drag: none;
}
@media print {
  [data-protected-photo], .gallery, .lightbox { display: none !important; }
}
