/* The camera explorer (explorer.js): a dark stage in a box the page sizes, its controls along the bottom */
.ex { position: relative; overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #1a191b, #0b0b0c 70%); border-radius: 16px; border: 1px solid rgba(255, 255, 255, 0.08); isolation: isolate; }
.ex:focus { outline: none; }
.ex:focus-visible { box-shadow: 0 0 0 2px rgba(255, 215, 0, 0.5); }
.ex-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: grab; }
.ex-canvas:active { cursor: grabbing; }
.ex-labels { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.ex-load { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 3;
  font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 12px; letter-spacing: 0.06em; color: #b9b2a6; transition: opacity 0.5s ease; }
.ex-load.done { opacity: 0; pointer-events: none; }
.ex-spin { width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 215, 0, 0.18); border-top-color: #ffd700; animation: ex-spin 0.9s linear infinite; }
@keyframes ex-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .ex-spin { animation: none; } }
.ex-hint { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); margin: 0; z-index: 2; pointer-events: none;
  font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; letter-spacing: 0.08em; color: #8a8478; transition: opacity 0.6s ease; opacity: 0; }
.ex.ready .ex-hint { opacity: 1; }
.ex.ready .ex-hint.gone { opacity: 0; }
.ex-bar { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); z-index: 4; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  max-width: calc(100% - 24px); padding: 6px; border-radius: 14px; background: rgba(12, 11, 10, 0.82); border: 1px solid rgba(255, 255, 255, 0.1); backdrop-filter: blur(10px); }
.ex-btn, .ex-lens select { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 12px; letter-spacing: 0.04em; color: #f2efe9; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: 9px; padding: 8px 12px; min-height: 36px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
  transition: border-color 0.15s ease, background 0.15s ease; }
.ex-btn:hover, .ex-lens select:hover { border-color: rgba(255, 215, 0, 0.45); }
.ex-btn:focus-visible, .ex-lens select:focus-visible { outline: 2px solid #ffd700; outline-offset: 1px; }
.ex-btn[aria-pressed="true"] { border-color: rgba(255, 215, 0, 0.7); background: rgba(255, 215, 0, 0.16); color: #ffe27a; }
.ex-btn:disabled, .ex-lens select:disabled { opacity: 0.45; cursor: default; }
.ex-btn svg { width: 15px; height: 15px; }
.ex-fire { background: linear-gradient(180deg, #ffe9a6, #ffd700); color: #000; border-color: transparent; font-weight: 700; }
.ex-fire:hover { border-color: transparent; box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25); }
.ex-bar.busy .ex-btn, .ex-bar.busy select { pointer-events: none; opacity: 0.7; }
.ex-lens { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; color: #8a8478; }
.ex-lens select { appearance: none; -webkit-appearance: none; padding-right: 26px; max-width: 220px;
  background-image: linear-gradient(45deg, transparent 50%, #b9b2a6 50%), linear-gradient(135deg, #b9b2a6 50%, transparent 50%);
  background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; }
.ex-lens select option { color: #111; }
/* the exploded camera's part names (the camera models make .part-label and .part-dot) */
.ex .part-label { position: absolute; transform: translate(-50%, -100%); font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; font-weight: 700; color: #f2efe9;
  background: rgba(10, 9, 8, 0.85); border: 1px solid rgba(255, 215, 0, 0.35); padding: 4px 8px; border-radius: 6px; white-space: nowrap; opacity: 0; transition: opacity 0.3s ease; }
.ex .part-label small { display: block; font-weight: 500; color: #b9b2a6; font-size: 10px; }
.ex .part-label.on { opacity: 1; }
.ex .part-label::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 14px; background: rgba(255, 215, 0, 0.5); }
.ex .part-dot { position: absolute; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #ffd700; box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25); opacity: 0; transition: opacity 0.3s ease; }
.ex .part-dot.on { opacity: 0.9; }
@media (max-width: 640px) {
  .ex-bar { left: 8px; right: 8px; bottom: 8px; transform: none; max-width: none; flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; }
  .ex-bar::-webkit-scrollbar { display: none; }
  .ex-btn, .ex-lens { flex: none; }
  .ex-btn, .ex-lens select { font-size: 11px; padding: 7px 9px; }
  .ex-lens > span { display: none; }
  .ex-lens select { max-width: 150px; }
}
/* the exploded view's part names, as the AE-1, K1000, F3, OM-1 and 2.8F models write them (.cam-label: <b>name</b>
   <span>what it does</span>, .is-focus on the part under the pointer): a dot on each part, the name of the one in focus */
.ex .cam-label { position: absolute; width: 0; height: 0; pointer-events: none; z-index: 3; }
.ex .cam-label::before { content: ""; position: absolute; left: -4.5px; top: -4.5px; width: 9px; height: 9px; border-radius: 50%; background: #ffd700; box-shadow: 0 0 0 3px rgba(255, 215, 0, 0.25); opacity: 0.9; }
.ex .cam-label > b, .cam-label > span { display: none; }
.ex .cam-label.is-focus { width: max-content; max-width: 280px; height: auto; transform: translate(-50%, calc(-100% - 16px)); padding: 5px 9px; border-radius: 6px;
  background: rgba(10, 9, 8, 0.86); border: 1px solid rgba(255, 215, 0, 0.35); font-family: var(--mono, ui-monospace, Menlo, monospace); z-index: 4; }
.ex .cam-label.is-focus::before { left: calc(50% - 4.5px); top: calc(100% + 11.5px); }
.ex .cam-label.is-focus::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 12px; background: rgba(255, 215, 0, 0.5); }
.ex .cam-label.is-focus > b { display: block; font-size: 11px; font-weight: 700; color: #f2efe9; }
.ex .cam-label.is-focus > span { display: block; font-size: 10px; color: #b9b2a6; white-space: normal; }
