/* Darius mobile image sizing final override v1.7.7.
   Loaded after theme/plugin CSS. This changes image display dimensions, not the source photographs. */
@media screen and (max-width: 760px) {
  html body .category-grid.family-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
  html body .category-grid.family-grid .category-card.family-card {
    min-width: 0 !important;
    padding: 10px !important;
    gap: 5px !important;
    overflow: hidden !important;
  }
  html body .category-grid.family-grid .category-card.family-card > img.family-photo {
    display: block !important;
    width: 100% !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 3px !important;
    margin: 3px 0 6px !important;
    box-sizing: border-box !important;
  }
  html body .darius-product-listing-card {
    grid-template-columns: 62px minmax(0,1fr) !important;
    align-items: start !important;
    gap: 8px !important;
    min-height: 0 !important;
    padding: 9px !important;
  }
  html body .darius-product-listing-card .darius-product-card-image-wrap {
    display: flex !important;
    flex: 0 0 62px !important;
    width: 62px !important;
    min-width: 62px !important;
    max-width: 62px !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
  }
  html body .darius-product-listing-card .darius-product-listing-image {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 2px !important;
    box-sizing: border-box !important;
  }
  html body .darius-bestsellers-section .bestseller-slide {
    grid-template-columns: minmax(0,1fr) !important;
    min-height: 0 !important;
  }
  html body .darius-bestsellers-section .bestseller-image-wrap {
    display: flex !important;
    width: 100% !important;
    height: 132px !important;
    min-height: 132px !important;
    max-height: 132px !important;
    align-items: center !important;
    justify-content: center !important;
    padding: 6px !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
  }
  html body .darius-bestsellers-section .bestseller-image-wrap .slide-photo {
    display: block !important;
    width: 100% !important;
    height: 116px !important;
    max-height: 116px !important;
    object-fit: contain !important;
    object-position: center center !important;
    padding: 2px !important;
  }
  html body .darius-product-refresh .product-detail-image {
    max-height: 190px !important;
    overflow: hidden !important;
  }
  html body .darius-product-refresh .product-detail-image .product-large-image {
    display: block !important;
    width: 100% !important;
    max-height: 180px !important;
    min-height: 0 !important;
    object-fit: contain !important;
  }
}
@media screen and (max-width: 390px) {
  html body .category-grid.family-grid .category-card.family-card > img.family-photo {
    height: 64px !important;
    min-height: 64px !important;
    max-height: 64px !important;
  }
  html body .darius-product-listing-card {
    grid-template-columns: 56px minmax(0,1fr) !important;
    gap: 7px !important;
  }
  html body .darius-product-listing-card .darius-product-card-image-wrap {
    flex-basis: 56px !important;
    width: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    height: 56px !important;
    min-height: 56px !important;
    max-height: 56px !important;
  }
  html body .darius-bestsellers-section .bestseller-image-wrap {
    height: 120px !important;
    min-height: 120px !important;
    max-height: 120px !important;
  }
  html body .darius-bestsellers-section .bestseller-image-wrap .slide-photo {
    height: 104px !important;
    max-height: 104px !important;
  }
}
