/* Christmas homepage banners: mixed section sizes, baked-in text stays left, stack on small screens. */
.sf-slide__imglink img { object-position: left center; max-width: 100%; }
.yv-hero .sf-slide--img img,
.yv-hero .sf-slide__imglink img { object-position: left center; }

.sf-dsec--xmas { max-width: 100%; }
.sf-dsec--xmas .sf-dsec__banner { display: block; margin: 0 0 14px; border-radius: 14px; overflow: hidden; }
.sf-dsec--xmas .sf-dsec__banner img,
.sf-dsec--xmas .sf-dsec__pair img,
.sf-dsec--xmas .sf-dsec__tiles img {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  object-fit: cover;
  object-position: left center;
}
.sf-dsec--xmas .sf-grid { max-width: 100%; }
.sf-dsec--xmas .sf-grid > * { min-width: 0; }

/* US: section 1 full-width tall ~1600x450 */
.yv-home .sf-dsec--xmas-1 .sf-dsec__banner img { aspect-ratio: 32 / 9; }

/* US: section 2 two half banners ~800x400 */
.yv-home .sf-dsec__pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; margin: 0 0 14px; }
.yv-home .sf-dsec__pair .sf-dsec__banner { margin: 0; }
.yv-home .sf-dsec__pair img { aspect-ratio: 2 / 1; }

/* US: section 3 slim strip ~1600x200 */
.yv-home .sf-dsec--xmas-3 .sf-dsec__banner img { aspect-ratio: 8 / 1; }

/* AE: section 1 three tiles ~520x360 */
.sf-main:not(.yv-home) .sf-dsec__tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin: 0 0 14px; }
.sf-main:not(.yv-home) .sf-dsec__tiles .sf-dsec__banner { margin: 0; }
.sf-main:not(.yv-home) .sf-dsec__tiles img { aspect-ratio: 13 / 9; }

/* AE: section 2 full-width ~1600x400 */
.sf-main:not(.yv-home) .sf-dsec--xmas-2 .sf-dsec__banner img { aspect-ratio: 4 / 1; }

/* AE: section 3 split — banner beside products */
.sf-main:not(.yv-home) .sf-dsec__split {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 16px;
  align-items: start;
}
.sf-main:not(.yv-home) .sf-dsec__split .sf-dsec__banner { margin: 0; }
.sf-main:not(.yv-home) .sf-dsec__split .sf-dsec__banner img { aspect-ratio: 20 / 13; }
.sf-main:not(.yv-home) .sf-dsec__split .sf-grid--6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 1100px) {
  .sf-main:not(.yv-home) .sf-dsec__split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .sf-main:not(.yv-home) .sf-dsec__split .sf-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .yv-home .sf-dsec--xmas-1 .sf-dsec__banner img { aspect-ratio: 8 / 3; }
  .sf-main:not(.yv-home) .sf-dsec--xmas-2 .sf-dsec__banner img { aspect-ratio: 16 / 5; }
}

@media (max-width: 639px) {
  .yv-home .sf-dsec__pair,
  .sf-main:not(.yv-home) .sf-dsec__tiles,
  .sf-main:not(.yv-home) .sf-dsec__split { grid-template-columns: 1fr; }
  .yv-home .sf-dsec__pair img,
  .sf-main:not(.yv-home) .sf-dsec__tiles img,
  .yv-home .sf-dsec--xmas-1 .sf-dsec__banner img,
  .sf-main:not(.yv-home) .sf-dsec--xmas-2 .sf-dsec__banner img { aspect-ratio: 15 / 8; }
  .yv-home .sf-dsec--xmas-3 .sf-dsec__banner img { aspect-ratio: 3 / 1; }
  .sf-main:not(.yv-home) .sf-dsec__split .sf-grid--6 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
