/* Shared styles for alfredsteiner.com artwork pages */
html, body { margin: 0; height: 100%; overflow: hidden; }
picture, picture img { display: block; }

/* Name / Linktree link */
.name { position: fixed; z-index: 2;
  top: max(clamp(16px, 3vw, 40px), env(safe-area-inset-top));
  left: max(clamp(16px, 3vw, 40px), env(safe-area-inset-left));
  font: 400 clamp(15px, 1.4vw, 22px)/1.2 "Helvetica Neue", Helvetica, Arial, sans-serif;
  letter-spacing: 0.02em; color: #222; text-decoration: none;
  transition: color 0.2s ease; }
.name:hover, .name:focus-visible { color: #666; }

/* Previous / next arrows */
.nav { position: fixed; z-index: 2; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center;
  width: 64px; height: 120px; color: #222; transition: color 0.2s ease;
  -webkit-tap-highlight-color: transparent; }
.nav:hover, .nav:focus-visible { color: #666; }
.nav svg { width: clamp(16px, 1.6vw, 24px); height: auto; overflow: visible; }
.nav.next { right: max(clamp(4px, 1.5vw, 24px), env(safe-area-inset-right)); }
.nav.prev { left: max(clamp(4px, 1.5vw, 24px), env(safe-area-inset-left)); }
.nav[hidden] { display: none; }
/* Portrait screens (phones): arrows move to the bottom corners, clear of the artwork */
@media (max-aspect-ratio: 1/1) {
  .nav { top: auto; transform: none; height: 88px;
    bottom: max(16px, env(safe-area-inset-bottom)); }
}

/* Invisible hover/tap area over the artwork, and the caption */
#work { position: absolute; z-index: 1; cursor: default; -webkit-tap-highlight-color: transparent; }
#tip { position: fixed; z-index: 3; left: 0; top: 0; max-width: min(340px, calc(100vw - 32px));
  padding: 10px 12px; background: rgba(250,250,250,0.94); color: #222;
  font: 400 13px/1.45 "Helvetica Neue", Helvetica, Arial, sans-serif; letter-spacing: 0.01em;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12); pointer-events: none;
  opacity: 0; transition: opacity 0.15s ease; }
#tip.on { opacity: 1; }
