/* v3 section: photo_banner. Figma desktop 12191:28655 (1440x660, full-bleed), mobile 12194:33270 (430x744). */
.v3-section.v3-photo {
  padding-block: 0;
  overflow: hidden;
  background: var(--v3-dark);
}

/* desktop: the stage keeps the photo aspect (1440x660), everything is placed in % of it */
.v3-photo__stage {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 1440 / 660;
  color: var(--v3-white);
}
.v3-photo__media {
  position: absolute;
  inset: 0;
  --sx: 74%;
  --sy: 72.3%;
}
.v3-photo__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.v3-photo__media::after,
.v3-photo__lines {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.v3-photo__media::after {                /* two multiply shades on the left (830 + 752 of 1440) */
  mix-blend-mode: multiply;
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0)) 0 0 / 57.6% 100% no-repeat,
    linear-gradient(90deg, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0)) 0 0 / 52.2% 100% no-repeat;
}
.v3-photo__lines {                       /* 5 dashed guide lines across the container (0, 25.2, 50, 74.7, 100 %) */
  --dash: repeating-linear-gradient(180deg, var(--v3-white-15) 0 3px, transparent 3px 5px);
  left: calc(var(--v3-gutter) - 12px);
  right: calc(var(--v3-gutter) - 12px);
  background:
    var(--dash) 0 0 / 1px 100% no-repeat,
    var(--dash) 25.2% 0 / 1px 100% no-repeat,
    var(--dash) 50% 0 / 1px 100% no-repeat,
    var(--dash) 74.7% 0 / 1px 100% no-repeat,
    var(--dash) 100% 0 / 1px 100% no-repeat;
}

.v3-photo__inner {
  position: relative;
  height: 100%;
}
.v3-photo__title {
  position: absolute;
  top: 14.5%;
  left: var(--v3-gutter);
  width: 522px;
  max-width: 45%;
  margin: 0;
  color: var(--v3-gray-50);
  font-size: clamp(28px, 3.056cqw, 56px);
  line-height: 1.16;
  text-wrap: balance;
}
.v3-photo__accent { color: var(--v3-icon-yellow); }

.v3-photo__card {
  position: absolute;
  top: 58.8%;
  left: var(--v3-gutter);
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 320px;
  padding: 24px;
  border: 1px solid var(--v3-white-15);
  border-radius: var(--v3-radius-md);
  background: var(--v3-white-10);
  backdrop-filter: blur(10px);
}
.v3-photo__value {
  margin: 0;
  color: var(--v3-icon-yellow);
  font-size: var(--v3-fs-price-lg);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: var(--v3-ls-display);
}
.v3-photo__text {
  margin: 0;
  font-size: var(--v3-fs-body-m);
  font-weight: 500;
  line-height: var(--v3-lh-body-m);
}
.v3-photo__text strong { font-weight: 700; }

/* "Torba 0 zł" sticker over the bag (font sizes scale with the stage) */
.v3-photo__sticker {
  --f: 2.299cqw;
  position: absolute;
  left: var(--sx);
  top: var(--sy);
  z-index: 1;
  display: flex;
  align-items: baseline;
  padding: 0.55em 0.56em 0.42em;
  border-radius: 0.384em;
  background: var(--v3-icon-yellow);
  box-shadow: 0 4px 3.35px rgba(181, 155, 51, 0.6), inset 0 4px 4px rgba(0, 0, 0, 0.25);
  color: var(--v3-dark);
  font-size: var(--f);
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  transform: translate(-50%, -50%) rotate(-12.85deg);
  pointer-events: none;
}
.v3-photo__sticker b { padding-inline: 0.02em; font-size: 2.06em; font-weight: 700; line-height: 1; }

/* tablet + mobile: fixed 745px tall portrait stage, the photo is a 990x745 box shifted so that the bag stays in view */
@media (max-width: 1024px) {
  .v3-photo__stage {
    aspect-ratio: auto;
    height: 745px;
    container-type: normal;
  }
  .v3-photo__media {
    inset: 0 auto 0 min(0px, (100% - 990px) * 0.655);   /* always covers the stage */
    width: max(990px, 100%);
    --sx: 67.5%;
    --sy: 60.5%;
  }
  .v3-photo__media::after {              /* dark fade at the top, under the title */
    bottom: auto;
    height: 356px;
    background: linear-gradient(180deg, rgba(5, 5, 5, 0.5), rgba(5, 5, 5, 0));
  }
  .v3-photo__title {
    top: 48px;
    width: auto;
    right: var(--v3-gutter);
    max-width: 390px;
    font-size: var(--v3-fs-h2);
    line-height: 1.2;
  }
  .v3-photo__card {
    top: auto;
    bottom: 49px;
    right: var(--v3-gutter);
    width: auto;
    max-width: 390px;
  }
  .v3-photo__sticker { --f: 28px; padding: 0.55em 0.66em 0.42em; }
  .v3-photo__lines { display: none; }
  .v3-photo--m-custom .v3-photo__sticker { display: none; }   /* positioned for the bundled mobile photo only */
}
