/* A2 project browsing controls — PC1 local review only.
   Controls are DOM children of the native project <dialog> so they remain
   in the modal top layer, but use fixed positioning in the side gutters.
   No global overrides, no footer/header changes, and no forced overflow clipping. */
#a2-root .a2-side-project-nav {
  height: 0;
  padding: 0;
  margin: 0;
}
#a2-root .a2-side-project-btn {
  display: none;
}
@media (min-width: 1360px) and (min-height: 650px) {
  /* Preserve the 1440px large-screen dialog. At narrower desktop widths,
     reserve 92px on either side for intentional project navigation. */
  #a2-root dialog#a2-space {
    width: min(1440px, calc(100vw - 184px));
  }
  #a2-root .a2-side-project-btn {
    position: fixed;
    top: 50%;
    z-index: 20;
    display: grid;
    place-items: center;
    width: 62px;
    min-width: 62px;
    height: 62px;
    min-height: 62px;
    padding: 0;
    margin: 0;
    border-radius: 50%;
    border: 1px solid rgba(229, 220, 203, .47);
    background: rgba(23, 30, 27, .70);
    color: #f7f6f0;
    box-shadow: 0 14px 36px rgba(0,0,0,.26), inset 0 1px rgba(255,255,255,.13);
    -webkit-backdrop-filter: blur(16px) saturate(125%);
    backdrop-filter: blur(16px) saturate(125%);
    cursor: pointer;
    transform: translateY(-50%);
    transition: color .2s ease, background .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
    -webkit-tap-highlight-color: transparent;
  }
  #a2-root .a2-side-project-btn--prev {
    left: calc(50% - min(720px, 50vw - 92px) - 80px);
  }
  #a2-root .a2-side-project-btn--next {
    right: calc(50% - min(720px, 50vw - 92px) - 80px);
  }
  #a2-root .a2-side-project-btn svg {
    width: 25px;
    height: 25px;
    display: block;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.75;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform .2s ease;
    pointer-events: none;
  }
  #a2-root .a2-side-project-word {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    color: rgba(247,247,239,.72);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    line-height: 1.2;
    text-shadow: 0 1px 8px rgba(0,0,0,.4);
    pointer-events: none;
    transition: color .2s ease;
  }
  #a2-root .a2-side-project-btn:hover {
    color: #1c261e;
    background: #d9b365;
    border-color: #efca7d;
    box-shadow: 0 15px 43px rgba(0,0,0,.28), 0 0 0 5px rgba(217,179,101,.10);
    transform: translateY(-50%) scale(1.045);
  }
  #a2-root .a2-side-project-btn:hover .a2-side-project-word { color: #f1cc7c; }
  #a2-root .a2-side-project-btn--prev:hover svg { transform: translateX(-3px); }
  #a2-root .a2-side-project-btn--next:hover svg { transform: translateX(3px); }
  #a2-root .a2-side-project-btn:focus-visible {
    outline: 3px solid #f1cc7c;
    outline-offset: 5px;
  }
  #a2-root .a2-space[aria-busy="true"] .a2-side-project-btn {
    opacity: .55;
    pointer-events: none;
  }
  /* The image lightbox already supplies its own left/right image arrows.
     Hide project arrows while viewing an individual image. */
  #a2-root .a2-space:has(.a2-lightbox:not([hidden])) .a2-side-project-btn {
    visibility: hidden;
    pointer-events: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  #a2-root .a2-side-project-btn,
  #a2-root .a2-side-project-btn svg,
  #a2-root .a2-side-project-word {
    transition: none;
  }
}
