/* Feature banner, design 1 - picture beside a coloured panel.
 * home-fashion-02.html:2200 `.s-banner-colection .banner-content.tf-grid-layout
 * .tf-col-2`: one box with the section's corners and the panel colour
 * (#f7f7f7, styles.css 17589-17595), split in two equal halves (1995) with no
 * gap; the picture fills its half edge to edge and keeps its own shape, the
 * panel holds the text in a box centred in its half (margin 0 auto), padding
 * 30 then 40/60 from 1200 (17605-17612, 21140), 42 between the words and the
 * button and 24 inside the words (20 and 8 at 991 and under, 21892-21898).
 * One column at 767 and under, the picture on top (22476-22484). Measured at
 * 1440/1024/768/390: the section 90/80/80/60 top and bottom (flat-spacing-6).
 */
.mt-section.dana-banner-feature--d1 { padding-block-start: var(--mt-space-top, 90px); padding-block-end: var(--mt-space-bottom, 90px); }
@media (max-width: 1024px) {
  .mt-section.dana-banner-feature--d1 { padding-block-start: var(--mt-space-top, 80px); padding-block-end: var(--mt-space-bottom, 80px); }
}
@media (max-width: 767px) {
  .mt-section.dana-banner-feature--d1 {
    padding-block-start: var(--mt-space-top-mobile, var(--mt-space-top, 60px));
    padding-block-end: var(--mt-space-bottom-mobile, var(--mt-space-bottom, 60px));
  }
}
.dana-banner-feature--d1 .dana-banner-feature__box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  overflow: hidden;
  border-radius: var(--dana-bf-radius, var(--dana-radius-card));
  background-color: var(--dbf-panel, #f7f7f7);
}
/* `panel_color_2`: the panel as home-electronic.html:1669's gradient
   (styles.css 17645-17648: 67.69deg from 11.66% to 82.77%), the first
   colour at the start; Arabic mirrors the angle. Both colours light or
   both dark (electronic's #eeefff to #ffeff6): words of one tone read on
   the whole sweep. */
.dana-banner-feature--d1.dana-banner-feature--gradient .dana-banner-feature__box { background-image: linear-gradient(67.69deg, var(--dbf-panel, #f7f7f7) 11.66%, var(--dbf-panel-2) 82.77%); }
[dir="rtl"] .dana-banner-feature--d1.dana-banner-feature--gradient .dana-banner-feature__box { background-image: linear-gradient(-67.69deg, var(--dbf-panel, #f7f7f7) 11.66%, var(--dbf-panel-2) 82.77%); }
/* One colour dark and the other light (--gradient-split): words toned for
   one of them cannot read on the other, and the 67.69deg sweep runs under
   them (white on white at 390, 1.17:1; a long title at 1440, 4.17:1). So the
   panel is the words' colour, --dbf-ground (the end colour beside a picture
   at the start, else the first), and the other fades into it in the
   padding between the picture and the words (30px, 60px from 1200): beside
   the picture from 768, above the words on phones (the picture stacks over
   them) and at the top with no picture. --dbf-seam points from the picture
   to the words. */
.dana-banner-feature--d1.dana-banner-feature--gradient-split { --dbf-seam: to right; --dbf-fade: 30px; }
@media (min-width: 1200px) {
  .dana-banner-feature--d1.dana-banner-feature--gradient-split { --dbf-fade: 60px; }
}
.dana-banner-feature--d1.dana-banner-feature--gradient-split.dana-banner-feature--img-end { --dbf-seam: to left; }
[dir="rtl"] .dana-banner-feature--d1.dana-banner-feature--gradient-split { --dbf-seam: to left; }
[dir="rtl"] .dana-banner-feature--d1.dana-banner-feature--gradient-split.dana-banner-feature--img-end { --dbf-seam: to right; }
.mt-section.dana-banner-feature--d1.dana-banner-feature--gradient.dana-banner-feature--gradient-split .dana-banner-feature__box {
  background-color: var(--dbf-ground);
  background-image: linear-gradient(var(--dbf-seam), var(--dbf-ground-other) 50%, var(--dbf-ground) calc(50% + var(--dbf-fade)));
}
.mt-section.dana-banner-feature--d1.dana-banner-feature--gradient.dana-banner-feature--gradient-split.dana-banner-feature--no-media .dana-banner-feature__box {
  background-image: linear-gradient(180deg, var(--dbf-ground-other), var(--dbf-ground) 30px);
}
@media (max-width: 767px) {
  .mt-section.dana-banner-feature--d1.dana-banner-feature--gradient.dana-banner-feature--gradient-split .dana-banner-feature__box { background-image: none; }
  .mt-section.dana-banner-feature--d1.dana-banner-feature--gradient-split .dana-banner-feature__body { background-image: linear-gradient(180deg, var(--dbf-ground-other), var(--dbf-ground) 30px); }
}
.dana-banner-feature--d1.dana-banner-feature--no-media .dana-banner-feature__box,
.dana-banner-feature--d1.dana-banner-feature--no-text .dana-banner-feature__box { grid-template-columns: minmax(0, 1fr); }
.dana-banner-feature--d1 .dana-banner-feature__media,
.dana-banner-feature--d1 .dana-banner-feature__tile,
.dana-banner-feature--d1 .dana-banner-feature__pic { block-size: 100%; }
.dana-banner-feature--d1 .dana-banner-feature__pic img { block-size: 100%; object-fit: cover; }
.dana-banner-feature--d1 .dana-banner-feature__body {
  gap: 42px;
  margin: 0 auto;
  padding: 30px;
}
.dana-banner-feature--d1 .dana-banner-feature__head { gap: 24px; }
/* The title: .display-md 36/44 with -0.02em (styles.css 635), 30/38 at 1024
   and under, 24/32 at 767 and under: core's h4 steps. The line: .text-lg
   18/28, 16/26 at 767 and under (688, 22660). */
.dana-banner-feature--d1 .dana-banner-feature__title { font-size: var(--dana-fs-h4); line-height: var(--dana-lh-h4); letter-spacing: var(--dana-ls-h4); }
.dana-banner-feature--d1 .dana-banner-feature__text { font-size: 18px; line-height: 28px; }
@media (min-width: 768px) {
  .dana-banner-feature--d1.dana-banner-feature--img-end .dana-banner-feature__media { order: 1; }
}
@media (min-width: 1200px) {
  .dana-banner-feature--d1 .dana-banner-feature__body { padding: 40px 60px; }
}
@media (max-width: 991px) {
  /* The template's <br> in these lines is hidden at 991 and under
     (styles.css 21898): the merchant's line breaks give way the same. */
  .dana-banner-feature--d1 :is(.dana-banner-feature__title, .dana-banner-feature__text) { white-space: normal; }
  .dana-banner-feature--d1 .dana-banner-feature__body { gap: 20px; }
  .dana-banner-feature--d1 .dana-banner-feature__head { gap: 8px; }
}
@media (max-width: 767px) {
  .dana-banner-feature--d1 .dana-banner-feature__box { grid-template-columns: minmax(0, 1fr); }
  .dana-banner-feature--d1 .dana-banner-feature__body { margin: 0; }
  .dana-banner-feature--d1 .dana-banner-feature__text { font-size: 16px; line-height: 26px; }
}
/* Full width: edge to edge with square corners (home-florist.html:1957
   `container-full px-0 rounded-0`; home-glasses.html:1147 has no container),
   unless the merchant chose the corners (image_radius). */
.dana-banner-feature--d1.mt-section--full > .mt-section__content { padding-inline: 0; }
.dana-banner-feature--d1.mt-section--full .dana-banner-feature__box { border-radius: var(--dana-bf-radius, 0); }

/* The whole banner is the hover target (the template's hover classes sit on
   .banner-content): the picture zooms or draws its curtains while the mouse
   is anywhere on it. */
@media (hover: hover) {
  .dana-banner-feature--d1.dana-banner-feature--hover-zoom .dana-banner-feature__box:hover img { transform: scale(1.06); }
  .dana-banner-feature--d1.dana-banner-feature--hover-zoom .dana-banner-feature__box:hover .dana-banner-feature__tile::after { block-size: 250%; background-color: transparent; transition: all .6s linear; }
  .dana-banner-feature--d1.dana-banner-feature--hover-curtain .dana-banner-feature__box:hover .dana-banner-feature__tile::before,
  .dana-banner-feature--d1.dana-banner-feature--hover-curtain .dana-banner-feature__box:hover .dana-banner-feature__tile::after { block-size: 100%; }
}

/* The floating decoration (home-baby.html:1483 `.banner-cls-baby .item`,
   styles.css 18460-18466, 20038-20041, 21415-21417): 217px wide over the
   banner's bottom end corner, 35px below it, drifting 20px each way over
   10s; shown from 1200px, where the box stops clipping it. From 1200 it
   ends at the box's end edge (right: 0), and only from 1600 does it stand
   69px past it: -69px from 1200 ran it 45px out of the window at 1280 and
   1440 (measured in next/baby/gap.json: the template's 1280 x 1039-1256 and
   1440 x 1199-1416). The section clips it at the window's edge so the page
   never scrolls sideways. The media keeps the box's corners (it inherits
   them, also image_radius and full width's square). */
.dana-banner-feature--d1 .dana-banner-feature__decor { display: none; }
@media (min-width: 1200px) {
  .mt-section.dana-banner-feature--d1.dana-banner-feature--decor { overflow-x: clip; }
  .dana-banner-feature--d1.dana-banner-feature--decor .dana-banner-feature__box { overflow: visible; }
  .dana-banner-feature--d1.dana-banner-feature--decor .dana-banner-feature__media { overflow: hidden; border-start-start-radius: inherit; border-end-start-radius: inherit; }
  .dana-banner-feature--d1.dana-banner-feature--decor.dana-banner-feature--img-end .dana-banner-feature__media { border-radius: 0; border-start-end-radius: inherit; border-end-end-radius: inherit; }
  .dana-banner-feature--d1 .dana-banner-feature__decor {
    display: block;
    position: absolute;
    z-index: 3;
    inset-inline-end: 0;
    inset-block-end: -35px;
    inline-size: 217px;
    max-inline-size: 217px;
    block-size: auto;
    pointer-events: none;
    animation: dana-bf-drift 10s linear infinite alternate;
  }
}
@media (min-width: 1600px) {
  .dana-banner-feature--d1 .dana-banner-feature__decor { inset-inline-end: -69px; }
  .dana-banner-feature--d1.mt-section--full .dana-banner-feature__decor { inset-inline-end: 0; }
}
@keyframes dana-bf-drift { from { transform: translateX(-20px); } to { transform: translateX(20px); } }
@media (prefers-reduced-motion: reduce) {
  .dana-banner-feature--d1 .dana-banner-feature__decor { animation: none; }
}
