/* ============================================================
   zoom.css — About 內聯插圖 + 圖片放大層
   沿用 tokens 變數；實色 rgba，不用 backdrop-filter。
   ============================================================ */

/* ---------- About：文字間穿插的插圖（浮動環繞） ---------- */
.about_wave { position: relative; }
.about_wave::after { content: ""; display: block; clear: both; }
.about_wave .wave_p { margin: 0 0 1.1em; }
.about_wave .wave_p:last-child { margin-bottom: 0; }

.about_fig {
  position: relative;
  width: clamp(230px, 34%, 380px);
  margin: .5rem 0 .8rem 2.2rem;
  float: right;
  overflow: hidden;
  background: #0b0b0d;
  border: 1px solid var(--line);
  cursor: zoom-in;
}
.about_fig.is--left {
  float: left;
  margin: .5rem 2.2rem .8rem 0;
}
.about_fig img {
  display: block; width: 100%; height: auto;
  filter: saturate(.94) contrast(1.03);
  transform: scale(1);
  transition: transform .6s var(--ease-settle), filter .4s;
}
.about_fig:hover img, .about_fig:focus-visible img {
  transform: scale(1.045);
  filter: saturate(1.02) contrast(1.05);
}
.about_fig:focus-visible { outline: 1px solid var(--brand-500); outline-offset: 4px; }
/* 右下角「可放大」角標，與影像庫展開角標同語言 */
.about_fig_ico {
  position: absolute; right: .6rem; bottom: .6rem;
  width: 1.7rem; height: 1.7rem;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(0, 0, 0, .72);
  border: 1px solid var(--line);
  color: var(--brand-500);
  font-family: var(--font-mono); font-size: .85rem; line-height: 1;
  opacity: 0; transform: translateY(4px);
  transition: opacity .35s var(--ease-settle), transform .35s var(--ease-settle);
  pointer-events: none;
}
.about_fig_ico::before { content: "＋"; }
.about_fig:hover .about_fig_ico, .about_fig:focus-visible .about_fig_ico {
  opacity: 1; transform: translateY(0);
}

/* ---------- 放大檢視層 ---------- */
.zoomer {
  position: fixed; inset: 0; z-index: 860;
  background: rgba(0, 0, 0, .93);
  display: grid; place-items: center;
  opacity: 0;
  transition: opacity .35s ease-out;
}
.zoomer.is--open { opacity: 1; }
.zoomer_stage {
  margin: 0;
  transform: scale(.93);
  opacity: 0;
  transition: transform .5s var(--ease-settle), opacity .3s ease-out;
  will-change: transform, opacity;
}
.zoomer.is--open .zoomer_stage { transform: scale(1); opacity: 1; }
.zoomer_stage img {
  display: block;
  max-width: 92vw; max-height: 86vh;
  width: auto; height: auto;
  border: 1px solid var(--line);
  box-shadow: 0 40px 120px rgba(0, 0, 0, .7);
}
.zoomer_x {
  position: fixed; top: 1.4rem; right: 1.6rem;
  width: 40px; height: 40px; display: grid; place-items: center;
  background: transparent; border: 1px solid var(--line);
  border-radius: 50%; color: var(--muted); cursor: pointer;
  font-size: 14px; line-height: 1;
  transition: color .3s, border-color .3s, transform .3s var(--ease-settle);
}
.zoomer_x:hover { color: var(--brand-500); border-color: var(--brand-500); transform: rotate(90deg); }

@media (max-width: 760px) {
  .about_fig, .about_fig.is--left {
    float: none; width: 100%;
    margin: .4rem 0 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .about_fig img, .zoomer, .zoomer_stage, .about_fig_ico { transition: none; }
  .about_fig:hover img { transform: none; }
  .zoomer_stage { transform: none; }
}
