#pageWrapper {
  width: min(1600px, calc(100vw - 290px)) !important;
  max-width: none !important;
}

.collection-type-gallery #galleryWrapper,
.collection-type-gallery #slideshowWrapper,
.collection-type-gallery #slideshow {
  width: 100% !important;
}

.collection-type-gallery #galleryWrapper .gallery-controls .slide-count {
  font-size: 13px !important;
}

@media (max-width: 1000px) {
  #pageWrapper {
    width: calc(100vw - 40px) !important;
  }
}
