/* One unit for the entire composition, including typography and controls. */
#products .product-composition { --product-unit: 1px; }
#products .pgrid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  height: calc(700 * var(--product-unit));
  gap: calc(20 * var(--product-unit)) !important;
}
#products .pgrid-in {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: calc(20 * var(--product-unit)) !important;
  min-width: 0;
  min-height: 0;
}
#products .pgrid > div:first-child,
#products .pgrid-in > div {
  min-width: 0;
  min-height: 0 !important;
  border-radius: calc(32 * var(--product-unit)) !important;
}
#products .pgrid > div:first-child {
  padding: calc(40 * var(--product-unit)) !important;
  gap: calc(16 * var(--product-unit)) !important;
}
#products .pgrid-in > div {
  padding: calc(28 * var(--product-unit)) !important;
  gap: calc(10 * var(--product-unit)) !important;
}
#products h2 { font-size: calc(52 * var(--product-unit)) !important; }
#products h3 { font-size: calc(28 * var(--product-unit)) !important; }
#products .pgrid > div:first-child > p { font-size: calc(18 * var(--product-unit)) !important; }
#products .pgrid-in > div > p { font-size: calc(15 * var(--product-unit)) !important; }
#products .pgrid a {
  flex-shrink: 0;
  height: calc(54 * var(--product-unit)) !important;
  padding: 0 calc(30 * var(--product-unit)) !important;
  font-size: calc(12 * var(--product-unit)) !important;
}
@media (min-width: 720px) and (max-width: 999px) {
  #products .pgrid {
    grid-template-columns: minmax(0, 1fr) !important;
    height: auto;
  }
  #products .pgrid > div:first-child { height: calc(540 * var(--product-unit)); }
  #products .pgrid-in { grid-template-rows: repeat(2, calc(340 * var(--product-unit))); }
  #products h2 { font-size: calc(42 * var(--product-unit)) !important; }
  #products .pgrid > div:first-child img { width: 68% !important; right: -4% !important; }
}
@media (max-width: 719px) {
  #products .pgrid, #products .pgrid-in {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: calc(16 * var(--product-unit)) !important;
    height: auto;
  }
  #products .pgrid > div:first-child { height: calc(540 * var(--product-unit)); }
  #products .pgrid-in { grid-template-rows: repeat(4, calc(360 * var(--product-unit))); }
  #products .pgrid > div:first-child, #products .pgrid-in > div {
    padding: calc(24 * var(--product-unit)) !important;
    border-radius: calc(28 * var(--product-unit)) !important;
  }
  #products h2 { font-size: calc(34 * var(--product-unit)) !important; }
  #products .pgrid > div:first-child > p { font-size: calc(16 * var(--product-unit)) !important; }
}
