:root { color-scheme: light !important; }
html, body, #__next, .a, .b { background: #eee9eb !important; color: #171316 !important; }
html, body { scrollbar-width: none !important; overscroll-behavior: none; }
html::-webkit-scrollbar, body::-webkit-scrollbar { display: none !important; }

/* Keep the supplied journal interaction layer; replace only its site chrome. */
.cW, .ea, .cE { display: none !important; }

.effy-journal-nav {
  position: fixed;
  z-index: 120;
  top: 14px;
  left: 16px;
  display: flex;
  gap: 8px;
  font-family: Arial, sans-serif;
}
.effy-journal-nav button {
  min-height: 40px;
  padding: 0 14px;
  border: 1px solid rgba(23, 19, 22, .12);
  border-radius: 0;
  background: rgba(255, 255, 255, .84);
  color: #171316;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 8px 28px rgba(23, 19, 22, .045);
  backdrop-filter: blur(10px);
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}
.effy-journal-nav button:hover { transform: translateY(-1px); background: #fff; }
.effy-journal-nav button.is-active { border-color: #171316; background: #171316; color: #fff; }
.effy-journal-nav button.is-active::before { content: ""; display: inline-block; width: 5px; height: 5px; margin-right: 8px; vertical-align: 2px; background: #efafc1; }

.effy-journal-hint {
  position: fixed;
  z-index: 120;
  top: 16px;
  right: 18px;
  display: flex;
  gap: 8px;
  font: 700 10px/1 "Courier New", monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.effy-journal-hint span { padding: 12px 13px; border: 1px solid rgba(23, 19, 22, .12); background: rgba(255,255,255,.84); backdrop-filter: blur(10px); }

/* Hide download button and info button from the viewer controls */
.z .A, .z .E { display: none !important; }

/* Keep the supplied secondary info controls hidden; artwork flip text remains data-driven. */
.fP, .fN, .fO.is-open { display: none !important; }

/* A quieter, portfolio-style treatment for the supplied three-image viewer controls. */
.z { gap: 6px !important; padding: 6px !important; border: 1px solid rgba(23,19,22,.12) !important; border-radius: 999px !important; background: rgba(255,255,255,.86) !important; box-shadow: 0 14px 44px rgba(23,19,22,.1) !important; backdrop-filter: blur(14px); }
.z .B, .z .W, .z .E, .z .A, .z .gi { border: 1px solid rgba(23,19,22,.11) !important; border-radius: 999px !important; background-color: #fff !important; color: #171316 !important; }
.z .B, .z .W { background-color: #171316 !important; color: #fff !important; }
.z .gh { min-width: min(280px, 31vw); }
.z .gi { width: 100%; }
.z .E .bW, .z .A .bW { filter: invert(1); }
.z .effy-enlarge-button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(23,19,22,.11);
  border-radius: 999px;
  background: #fff;
  color: #171316;
  cursor: pointer;
  font-size: 12px;
  transition: background-color 160ms ease, color 160ms ease;
}
.z .effy-enlarge-button:hover { background: #efafc1; }
.z .effy-enlarge-button:focus-visible { outline: 2px solid #171316; outline-offset: 3px; }

.effy-carousel-cover {
  position: fixed;
  z-index: 115;
  left: 50%;
  top: 50%;
  width: min(600px, 41.67vw);
  height: 80vh;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
  transform-origin: center;
  transition: opacity 180ms ease, transform 120ms ease;
}
.effy-carousel-cover.is-visible { opacity: 1; }

.effy-enlarge-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 54px;
  background: rgba(23,19,22,.82);
  backdrop-filter: blur(12px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 180ms ease, visibility 180ms ease;
  overscroll-behavior: contain;
}
.effy-enlarge-overlay.is-open { opacity: 1; visibility: visible; pointer-events: auto; }
.effy-enlarge-overlay img { max-width: 92vw; max-height: 84vh; object-fit: contain; box-shadow: 0 34px 100px rgba(0,0,0,.45); }
.effy-enlarge-overlay p { position: fixed; left: 24px; bottom: 20px; margin: 0; color: #fff; font: 700 11px/1 "Courier New", monospace; letter-spacing: .05em; text-transform: uppercase; }
.effy-enlarge-overlay button { position: fixed; top: 22px; right: 22px; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.45); border-radius: 50%; background: #fff; color: #171316; font-size: 24px; cursor: pointer; }
.effy-enlarge-overlay button:focus-visible { outline: 3px solid #efafc1; outline-offset: 4px; }

@media (max-width: 760px) {
  .effy-journal-nav { right: 12px; left: 12px; overflow-x: auto; scrollbar-width: none; }
  .effy-journal-nav::-webkit-scrollbar { display: none; }
  .effy-journal-nav button { flex: 0 0 auto; min-height: 36px; padding: 0 11px; font-size: 11px; }
  .effy-journal-hint { top: auto; right: 12px; bottom: 12px; }
  .effy-journal-hint span:first-child { display: none; }
  .z .effy-enlarge-button { min-height: 36px; padding: 0 12px; font-size: 10px; }
  .effy-enlarge-overlay { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .effy-carousel-cover, .effy-enlarge-overlay { transition: none; }
}
