/* Keep image and video corners consistent across the portfolio. */
#main :is(img, video),
.art-viewer img {
  border-radius: 8px;
}

/* Standalone replacements for the original theme and plugin interactions. */
body[data-panel="in"] {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

.art-viewer {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  border: 0;
  padding: 3rem;
  background: transparent;
  color: white;
}

.art-viewer[open] {
  display: grid;
  place-items: center;
}

.art-viewer::backdrop {
  background: rgb(0 0 0 / 88%);
}

.art-viewer img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.art-viewer button {
  position: absolute;
  padding: 0;
  min-width: 2.5rem;
  min-height: 2.5rem;
  background: rgb(0 0 0 / 70%);
  color: white;
  border: 0;
  border-radius: 4px;
  font-size: 1.75rem;
}

.viewer-close { top: .5rem; right: .5rem; }
.viewer-prev { top: 50%; left: .5rem; }
.viewer-next { top: 50%; right: .5rem; }
