/* Dual-mode fork of gallery_base.css — scoped under #gallery-mode. Used by index.php.
   Light theme aligned with Artist CV (#fafafa / #0066cc). */

/* No large background logotype watermark in portfolio view */

#gallery-mode {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: #fafafa;
  color: #1a1a1a;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

#gallery-mode .gallery-container,
#gallery-mode .gallery-grid {
  position: relative;
  z-index: 2;
}

#gallery-mode .gallery-container {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-top: 1.5rem;
  box-sizing: border-box;
  overflow: visible;
}

#gallery-mode .gallery-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  /* Hard cap; dual.css further limits to 70% of available width on wide screens */
  max-width: 1800px;
  min-width: 320px;
  width: 100%;
  margin: 0 auto;
  gap: 32px 0;
  overflow: visible;
}

#gallery-mode .cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 120px;
  height: 152px;
  position: relative;
  overflow: visible;
}

#gallery-mode .empty-cell {
  color: #bbb;
  font-size: 1.2em;
  font-family: monospace;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  user-select: none;
  opacity: 0.55;
}

#gallery-mode .thumb {
  width: 100px;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  background: #e8e8e8;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  transform: scale(1.5);
  transform-origin: center;
  z-index: 1;
}

#gallery-mode .thumb:hover {
  transform: scale(1.59);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
}

/* Overlay is appended to document.body, outside #gallery-mode */
.thumb-overlay {
  cursor: pointer;
  transition: width 0.18s cubic-bezier(.4,1.4,.6,1),
              height 0.18s cubic-bezier(.4,1.4,.6,1),
              opacity 0.18s cubic-bezier(.4,1.4,.6,1);
  opacity: 0;
  border: 0.25ex solid #1a1a1a;
  box-sizing: border-box;
}

.thumb-overlay.visible {
  opacity: 1;
}

#gallery-mode .thumb {
  border: 0.25ex solid #1a1a1a;
  box-sizing: border-box;
}

#gallery-mode .connector-svg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

#gallery-mode .footer {
  width: 100%;
  text-align: center;
  margin: 2.5rem 0 1.5rem;
  position: relative;
  z-index: 10;
}

#gallery-mode .footer-content {
  color: #555;
  font-size: 0.95em;
  font-style: italic;
  text-align: center;
  margin: 0 auto;
  letter-spacing: 0.01em;
}

#gallery-mode .footer-content a {
  color: #0066cc;
  text-decoration: none;
  font-style: normal;
}

#gallery-mode .footer-content a:hover {
  text-decoration: underline;
}

/* Inventory blurb under brand header — CV typography, not Cinzel/dark */
#gallery-mode .gallery-mode-inner > .site-header {
  text-align: center;
  color: #1a1a1a;
  line-height: 1.5;
  margin: 0 auto 0.5rem;
  padding: 1.5rem 0 0;
  max-width: 56rem;
  background: transparent;
  border: none;
}

#gallery-mode .gallery-mode-inner > .site-header h1 {
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: 1.35rem;
  margin: 0 0 0.75rem;
  color: #1a1a1a;
}

#gallery-mode .gallery-mode-inner > .site-header p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
  color: #444;
}

#gallery-mode .gallery-mode-inner > .site-header a {
  color: #0066cc;
}

#gallery-mode .gallery-mode-inner > .site-header hr {
  border: none;
  border-top: 1px solid #e0e0e0;
  margin: 0.75rem auto;
}
