/* The middle column follows the rendered photo width, including when height is limiting. */
@media (min-width: 601px) and (hover: hover) and (pointer: fine) {
  .ch-gallery .ch-g-viewer[open] {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    grid-template-rows: minmax(0, 1fr);
  }
  .ch-gallery .ch-g-viewer .ch-g-vimage {
    grid-area: 1 / 2;
    max-width: calc(100vw - 152px);
  }
  .ch-gallery .ch-g-viewer .ch-g-prev,
  .ch-gallery .ch-g-viewer .ch-g-next {
    position: static;
    transform: none;
    width: 100%;
    height: 100%;
    min-width: 0;
    margin: 0;
    font-size: 76px;
    line-height: .68;
    padding-bottom: 8px;
  }
  .ch-gallery .ch-g-viewer .ch-g-prev { grid-area: 1 / 1; justify-items: end; padding-right: 15px; }
  .ch-gallery .ch-g-viewer .ch-g-next { grid-area: 1 / 3; justify-items: start; padding-left: 15px; }
  .ch-gallery .ch-g-viewer .ch-g-close { z-index: 1; }
  .ch-gallery .ch-g-viewer button[hidden] { display: none; }
}
