/* Mobile product galleries and spacing */
@media (max-width: 639px) {
  #allrecords [data-record-type="744"] .t744 .js-product-img {
    background-size: contain !important;
    background-position: center;
    background-repeat: no-repeat;
  }

  #allrecords [data-record-type="744"] .t744 .t744__col {
    box-sizing: border-box;
    padding-left: 20px;
    padding-right: 20px;
  }

  #allrecords [data-record-type="744"] .t744 .t744__col_first {
    margin-bottom: 24px;
  }
}

/* Collection descriptions and product spacing */
#allrecords > .t-rec[data-record-type="484"]:has(~ .t-rec[data-record-type="744"]) {
  padding-bottom: 0 !important;
}

#allrecords > .t-rec[data-record-type="484"] ~ .t-rec[data-record-type="744"] {
  padding-top: 64px !important;
  padding-bottom: 0 !important;
}

#allrecords > .t-rec[data-record-type="484"] ~ .t-rec[data-record-type="744"] ~ .t-rec[data-record-type="744"] {
  padding-top: 72px !important;
}

#allrecords > .t-rec[data-record-type="484"] ~ .t-rec[data-record-type="744"]:not(:has(~ .t-rec[data-record-type="744"])) {
  padding-bottom: 72px !important;
}

@media (max-width: 959px) {
  #allrecords > .t-rec[data-record-type="484"] ~ .t-rec[data-record-type="744"] {
    padding-top: 32px !important;
  }

  #allrecords > .t-rec[data-record-type="484"] ~ .t-rec[data-record-type="744"] ~ .t-rec[data-record-type="744"] {
    padding-top: 40px !important;
  }

  #allrecords > .t-rec[data-record-type="484"] ~ .t-rec[data-record-type="744"]:not(:has(~ .t-rec[data-record-type="744"])) {
    padding-bottom: 48px !important;
  }
}

@media (max-width: 639px) {
  #allrecords .t744 .t744__col.t744__col_first {
    margin-bottom: 24px !important;
  }
}
