/* ========================================
   Overlay navigation controls
   ======================================== */

#detail-overlay .detail-navigation {
  position: fixed;
  inset: 0;
  z-index: 901;
  pointer-events: none;
}

#detail-overlay .nav-button {
  width: 48px;
  height: 48px;
  padding: 0;
  border: 0;
  background: transparent;
  color: currentColor;
  opacity: 0.72;
  cursor: pointer;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  z-index: 902;
}

#detail-overlay .nav-button:hover {
  opacity: 0.98;
}

#detail-overlay .nav-button:focus {
  outline: none;
}

#detail-overlay .nav-button::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  background: rgba(255,255,255,0.01);
  -webkit-backdrop-filter: invert(1);
  backdrop-filter: invert(1);
  background-clip: padding-box;
  pointer-events: none;
}

#detail-overlay #prev-work {
  left: 0;
  justify-content: flex-start;
  padding-left: 12px;
}

#detail-overlay #next-work {
  right: 0;
  justify-content: flex-end;
  padding-right: 12px;
}

#detail-overlay #prev-work::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 5.5L8.5 12L15 18.5' fill='none' stroke='black' stroke-width='1.35' stroke-linecap='butt' stroke-linejoin='miter'/></svg>") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M15 5.5L8.5 12L15 18.5' fill='none' stroke='black' stroke-width='1.35' stroke-linecap='butt' stroke-linejoin='miter'/></svg>") center / 16px 16px no-repeat;
}

#detail-overlay #next-work::before {
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 5.5L15.5 12L9 18.5' fill='none' stroke='black' stroke-width='1.35' stroke-linecap='butt' stroke-linejoin='miter'/></svg>") center / 16px 16px no-repeat;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M9 5.5L15.5 12L9 18.5' fill='none' stroke='black' stroke-width='1.35' stroke-linecap='butt' stroke-linejoin='miter'/></svg>") center / 16px 16px no-repeat;
}

#detail-overlay #close-detail {
  display: none;
  position: fixed;
  top: calc(var(--header-h, 60px) + 10px);
  left: 1px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  opacity: 0.72;
  cursor: pointer;
  z-index: 903;
  transform: none;
  align-items: center;
  justify-content: center;
}

#detail-overlay #close-detail::before {
  content: none;
}

#detail-overlay #close-detail:hover {
  opacity: 1;
}

body.detail-open #detail-overlay #close-detail {
  display: inline-flex;
}

#detail-overlay .nav-button svg {
  width: 22px;
  height: 22px;
  display: block;
  fill: none;
  pointer-events: none;
  overflow: visible;
  opacity: 1;
  filter: none;
}

#detail-overlay .nav-button::before {
  content: none;
}
