@media (max-width: 900px) {
  body.gallery-more-page .gallery-more-rebuild {
    width: calc(100vw - 24px) !important;
    padding: 6px 0 44px !important;
    display: block !important;
  }

  body.gallery-more-page .gallery-more-rebuild__grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 16px !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  body.gallery-more-page .gallery-more-rebuild__cell {
    min-width: 0 !important;
    grid-column: span 1 !important;
  }

  body.gallery-more-page .gallery-more-rebuild__tile {
    position: relative !important;
    width: 100% !important;
    margin: 0 !important;
    overflow: hidden !important;
    border-radius: 14px !important;
    background: rgba(245,239,230,.9) !important;
    border: 1px solid rgba(20,20,20,.08) !important;
    box-shadow:
      0 10px 24px rgba(20,20,20,.06),
      inset 0 1px 0 rgba(255,255,255,.55) !important;
  }

  body.gallery-more-page .gallery-more-rebuild__tile::before {
    content: "" !important;
    display: block !important;
    padding-top: 100% !important;
  }

  body.gallery-more-page .gallery-more-rebuild__visual {
    position: absolute !important;
    inset: 0 !important;
    border-radius: 14px !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
  }

  body.gallery-more-page .gallery-more-rebuild__tile .gallery-tile__image {
    display: none !important;
  }

  body.gallery-more-page .gallery-more-rebuild__tile .gallery-tile__hit {
    position: absolute !important;
    inset: 0 !important;
    z-index: 2 !important;
  }
}

@media (max-width: 560px) {
  body.gallery-more-page .gallery-more-rebuild {
    width: calc(100vw - 20px) !important;
    padding-bottom: 38px !important;
  }

  body.gallery-more-page .gallery-more-rebuild__grid {
    gap: 12px !important;
  }

  body.gallery-more-page .gallery-more-rebuild__tile,
  body.gallery-more-page .gallery-more-rebuild__visual {
    border-radius: 12px !important;
  }
}
