/* Homepage media and editorial panels. */
/* Keep both supplied crops intact and place the copy inside the banner. */
.px-source-home .px-hero-sharp {
  display: grid;
  max-width: var(--px-max-width);
  min-height: 0;
  grid-template-columns: minmax(0, 1fr);
  margin-inline: auto;
  background: #084d96;
  color: #fff;
}

.px-source-home .px-hero-sharp :is(.px-hero-art, .px-hero-copy) { grid-area: 1 / 1; }

.px-source-home .px-hero-sharp .px-hero-art {
  display: block;
  position: relative;
  min-height: 0;
  min-width: 0;
  padding: 0;
}

.px-source-home .px-hero-sharp .px-hero-art::after {
  position: absolute;
  inset: auto 0 0;
  height: clamp(158px, 43vw, 235px);
  background: linear-gradient(0deg, #031c39ed, #031c3980 53%, transparent);
  content: '';
  pointer-events: none;
}

.px-source-home .px-hero-sharp .px-hero-art > img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1320 / 2211;
  object-fit: contain;
  mix-blend-mode: normal;
}

.px-source-home .px-hero-sharp .px-hero-copy {
  align-self: end;
  width: auto;
  padding: 8px 16px clamp(16px, 4.2vw, 26px);
  text-align: center;
}

.px-source-home .px-hero-sharp h1 {
  max-width: none;
  margin: 0 0 6px;
  color: inherit;
  font-size: clamp(24px, 6.7vw, 36px);
}

.px-source-home .px-hero-sharp p {
  margin: 0 auto 10px;
  font-size: clamp(14px, 3.75vw, 18px);
  line-height: 1.35;
}

.px-source-home .px-hero-sharp .px-btn {
  border-color: #fff;
  background: #fff;
  color: #063c78;
}

.px-source-home .px-hero-sharp .px-btn:hover {
  background: #eaf4ff;
  color: #063c78;
}

.px-source-home .px-hero-sharp .px-btn:focus-visible { outline-color: #fff; }

@media (min-width: 768px) {
  .px-source-home .px-hero-sharp .px-hero-art > img { aspect-ratio: 16 / 9; }

  .px-source-home .px-hero-sharp .px-hero-art::after {
    inset: 0;
    height: auto;
    background: linear-gradient(90deg, #031c397a, #031c3933 34%, transparent 54%);
  }

  .px-source-home .px-hero-sharp .px-hero-copy {
    align-self: start;
    justify-self: start;
    width: 36%;
    margin: clamp(26px, 5.5vw, 78px) 0 0 clamp(24px, 4.8vw, 70px);
    padding: 0;
    text-align: left;
  }

  .px-source-home .px-hero-sharp h1 {
    margin-bottom: 10px;
    font-size: clamp(32px, 4.3vw, 62px);
  }

  .px-source-home .px-hero-sharp p {
    margin: 0 0 17px;
    font-size: clamp(16px, 1.55vw, 22px);
  }

  .px-source-home .px-hero-sharp .px-btn { padding-inline: clamp(14px, 1.8vw, 21px); }
}

.px-source-home #px-popular-rail {
  grid-auto-columns: min(210px, 57vw);
  gap: 24px;
}

.px-source-home .px-popular-art {
  aspect-ratio: 4 / 5;
  margin-bottom: clamp(16px, 5vw, 24px);
  padding: 0;
  border-radius: 22px;
  background: #f5f6f7;
}

.px-source-home .px-popular-art .px-badge {
  inset: 16px auto auto 16px;
  padding: 4px 9px;
  background: #d3e3fd;
  color: #124995;
  font-size: 12px;
}

.px-source-home .px-popular-card h3 {
  min-height: 0;
  margin-bottom: 7px;
  font-size: clamp(15px, 1.5vw, 19px);
  font-weight: var(--px-semibold);
}

.px-source-home .px-popular-card .px-price {
  margin: 0 0 8px;
  font-size: clamp(14px, 1.3vw, 17px);
}

.px-source-home .px-popular-card .px-link {
  min-height: 44px;
  font-size: clamp(14px, 1.3vw, 17px);
}

.px-source-home .px-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
}

.px-source-home .px-feature-copy .px-card-links { justify-content: center; }

.px-source-home .px-feature-copy .px-card-links .px-link {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  background: #fff;
}

.px-source-home :is(.px-popular-art, .px-feature-art, .px-category-art) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  mix-blend-mode: normal;
}

.px-source-home .px-popular-art > img {
  position: absolute;
  inset: 0;
}

.px-source-home .px-category-art { position: relative; }
.px-source-home .px-hero-sharp h1 { text-wrap: balance; }

.px-source-home :is(.px-popular-art, .px-feature-art, .px-category-art) picture {
  display: block;
  width: 100%;
  height: 100%;
}

.px-source-home .px-story {
  display: grid;
  width: calc(100% - 2 * var(--px-page-gutter));
  max-width: calc(var(--px-max-width) - 2 * var(--px-page-gutter));
  margin-block-start: clamp(45px, 5vw, 65px);
  padding: 0;
  overflow: hidden;
  border-radius: var(--px-radius);
  background: #f1f3f5;
}

.px-source-home .px-story-media,
.px-source-home .px-editorial-art {
  display: block;
  overflow: hidden;
  background: #e9edf2;
}

.px-source-home .px-story-media {
  aspect-ratio: 16 / 9;
}

.px-source-home .px-story-capture .px-story-media {
  aspect-ratio: 1;
}

.px-source-home :is(.px-story-media, .px-editorial-art) img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: var(--px-image-position, center);
}

.px-source-home .px-story-copy {
  align-self: center;
  padding: clamp(24px, 5vw, 64px);
}

.px-source-home :is(.px-story-copy h2, .px-editorial-copy h3) {
  margin: 0 0 10px;
  font-size: clamp(21px, 4.7vw, 32px);
  font-weight: var(--px-semibold);
}

.px-source-home :is(.px-story-copy, .px-editorial-copy) p {
  max-width: 55ch;
  margin: 0 0 14px;
  color: var(--px-muted);
  line-height: 1.55;
}

.px-source-home .px-editorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(12px, 2.4vw, 24px);
}

.px-source-home .px-editorial-grid > article {
  min-width: 0;
  overflow: hidden;
  border-radius: var(--px-radius);
  background: #f4f5f6;
}

.px-source-home .px-editorial-art {
  aspect-ratio: 16 / 9;
}

.px-source-home .px-editorial-copy {
  padding: clamp(18px, 3vw, 30px);
}

.px-source-home .px-editorial-copy h3 {
  font-size: clamp(18px, 3.3vw, 23px);
}

.px-source-home .px-category-grid {
  grid-template-columns: minmax(0, 1fr);
  gap: 40px 24px;
}

.px-source-home .px-category {
  background: transparent;
}

.px-source-home .px-category-art {
  min-height: 0;
  padding: 0;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 24px;
  background: #f5f6f7;
}

.px-source-home .px-category-art > img {
  position: absolute;
  inset: 0;
}

.px-source-home .px-category-name {
  padding: 24px 8px 0;
  font-size: clamp(16px, 1.5vw, 19px);
}

.px-source-home .px-feature-art {
  min-height: 0;
  padding: 0;
  aspect-ratio: 1;
}

.px-source-home [aria-labelledby='px-accessories-title'] .px-feature {
  position: relative;
  min-height: 0;
  background: #f5f6f8;
}

.px-source-home [aria-labelledby='px-accessories-title'] .px-feature-copy {
  position: absolute;
  inset: 0 0 auto;
  z-index: 1;
}

.px-source-home [aria-labelledby='px-accessories-title'] .px-feature-art {
  aspect-ratio: 894 / 1456;
}

.px-source-home .px-section-perks .px-perk > img {
  display: block;
  width: 34px;
  height: 34px;
  margin: 0 auto 12px;
  object-fit: contain;
}

.px-source-home > .px-section:last-child {
  padding-block-end: clamp(38px, 7vw, 84px);
}

@media (min-width: 680px) {
  .px-source-home .px-story {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }

  .px-source-home .px-story-media {
    min-height: 100%;
  }

  .px-source-home .px-story-capture .px-story-media {
    aspect-ratio: 401 / 320;
  }

  .px-source-home .px-editorial-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .px-source-home [aria-labelledby='px-accessories-title'] .px-feature-art {
    aspect-ratio: 894 / 1456;
  }
}

@media (min-width: 1024px) {
  .px-source-home #px-popular-rail {
    grid-auto-columns: calc((100% - 72px) / 4);
  }

  .px-source-home :is(.px-editorial-grid, .px-feature-grid) {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .px-source-home :is(.px-category-grid, .px-perks) {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.px-source-home #px-popular-title { scroll-margin-top: calc(var(--px-header-height) + 20px); }

.px-source-home .px-section.px-story {
  width: calc(100% - 2 * var(--px-page-gutter));
  margin: clamp(42px, 6vw, 72px) auto 0;
  padding: 0;
}

.px-source-home .px-story-capture {
  grid-template-columns: 1fr;
  text-align: center;
}

.px-source-home .px-story.px-story-capture { max-width: 1160px; }
.px-source-home .px-story-capture .px-story-copy p { margin-inline: auto; }
.px-source-home .px-story-capture .px-story-media { aspect-ratio: 2; }

.px-source-home .px-editorial-grid {
  grid-template-columns: none;
  grid-auto-columns: 82%;
  margin-bottom: 0;
}

.px-source-home .px-editorial-grid > article { scroll-snap-align: start; }

.px-source-home .px-news {
  padding-block: clamp(42px, 6vw, 76px);
  text-align: center;
}

.px-source-home .px-news img { width: 42px; height: 42px; margin: 0 auto 12px; }
.px-source-home .px-news h2 { margin: 0 0 12px; }
.px-source-home .px-story:has(#px-story-1) img { object-fit: contain; background: #f6f6f6; }
.px-source-home .px-section-phones [data-px-product='google-pixel-11'] .px-feature-art img { mix-blend-mode: multiply; }

@media (min-width: 600px) and (max-width: 1023.98px) {
  .px-source-home .px-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 680px) {
  .px-source-home .px-editorial-grid { grid-auto-columns: 47%; }
}

@media (min-width: 1024px) {
  .px-source-home .px-editorial-grid { grid-auto-columns: calc((100% - 48px) / 3); }
}


