/* Theme 1.9.1 — unified heroes, compact footer and polished, accessible motion. */
.family-site .family-hero .hero-image {
  object-position: 50% 50% !important;
}

.family-site .page-hero > img {
  object-position: var(--hero-position-desktop, center) !important;
}

.family-site .lesya-band > img {
  object-position: 50% 50% !important;
}

html.plf-image-copy-motion .family-site .image-copy-animated > :not(.screen-reader-text) {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  filter: blur(2px);
  clip-path: inset(0 0 10% 0);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1),
    transform .82s cubic-bezier(.22, 1, .36, 1),
    filter .7s ease,
    clip-path .82s cubic-bezier(.22, 1, .36, 1);
  will-change: opacity, transform, filter, clip-path;
}

html.plf-image-copy-motion .family-site .image-copy-animated.is-visible > :not(.screen-reader-text) {
  opacity: 1;
  transform: translate3d(0, 0, 0);
  filter: blur(0);
  clip-path: inset(0 0 0 0);
}

/* Multi-line homepage heading must reveal as one complete text block. */
html.plf-image-copy-motion .family-site .family-hero .hero-content.image-copy-animated > .hero-lead {
  clip-path: none;
}

.family-site .hero-content .hero-kicker,
.family-site .page-hero-content .eyebrow,
.family-site .lesya-content > .eyebrow {
  transition-delay: .08s !important;
}

.family-site .hero-content .hero-lead,
.family-site .page-hero-content h1,
.family-site .lesya-content blockquote {
  transition-delay: .22s !important;
}

.family-site .hero-content .hero-copy,
.family-site .page-hero-content > p:last-child,
.family-site .lesya-content .lesya-note {
  transition-delay: .34s !important;
}

.family-site .hero-content .hero-actions {
  transition-delay: .46s !important;
}

html.plf-image-copy-motion .family-site .family-hero .hero-image,
html.plf-image-copy-motion .family-site .page-hero > img {
  animation: plf-hero-image-arrive .9s cubic-bezier(.22, 1, .36, 1) both;
  transform-origin: var(--hero-position-desktop, center);
}

html.plf-image-copy-motion .family-site .family-hero .hero-shade,
html.plf-image-copy-motion .family-site .page-hero .page-hero-shade {
  animation: plf-hero-shade-arrive .8s ease both;
}

html.plf-image-copy-motion .family-site .lesya-band > img {
  transform: scale(1.03);
  filter: saturate(.88) brightness(.94);
  transition: transform .9s cubic-bezier(.22, 1, .36, 1), filter .8s ease;
}

html.plf-image-copy-motion .family-site .lesya-band.is-scene-visible > img {
  transform: scale(1);
  filter: none;
}

@keyframes plf-hero-image-arrive {
  from { transform: scale(1.03); filter: saturate(.9) brightness(.96); }
  to { transform: scale(1); filter: none; }
}

@keyframes plf-hero-shade-arrive {
  from { opacity: .28; }
  to { opacity: 1; }
}

html.plf-site-scroll-motion .family-site [data-site-reveal] {
  opacity: 0;
  transform: translate3d(0, 20px, 0);
  transition:
    opacity .7s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms),
    transform .82s cubic-bezier(.22, 1, .36, 1) var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

html.plf-site-scroll-motion .family-site [data-site-reveal].is-revealed {
  opacity: 1;
  transform: translate3d(0, 0, 0);
}

.family-site .button {
  transition: background .25s ease, color .25s ease, border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}

.family-site .button:hover,
.family-site .button:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(61, 42, 28, .13);
}

.family-site .homepage-featured-grid .catalog-product-item,
.family-site .assortment-grid .assortment-item,
.family-site .news-grid .news-card {
  transition: transform .38s cubic-bezier(.22, 1, .36, 1), box-shadow .38s ease, border-color .38s ease;
}

.family-site .homepage-featured-grid .catalog-product-item:hover,
.family-site .assortment-grid .assortment-item:hover,
.family-site .news-grid .news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 38px rgba(61, 42, 28, .11);
  border-color: rgba(136, 92, 55, .22);
}

/* One compact footer system for every template and the Orders legal links. */
.family-site .site-footer {
  padding: 18px 0 16px !important;
}

.family-site .footer-inner {
  width: min(calc(100% - 64px), 1480px);
  grid-template-columns: 190px minmax(0, 1fr);
  gap: 36px;
  align-items: center;
}

.family-site .footer-identity,
.family-site .footer-links {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.family-site .footer-identity {
  gap: 6px;
}

.family-site .footer-brand {
  width: 178px;
  padding: 2px 6px;
  border-radius: 10px;
  background: #fbf7ef;
}

.family-site .footer-brand img {
  width: 166px !important;
  height: auto !important;
  filter: none !important;
}

.family-site .footer-identity > p {
  margin: 0;
  color: rgba(255,255,255,.5);
  font-size: 11px;
  line-height: 1.5;
}

.family-site .footer-links {
  justify-content: center;
  gap: 12px;
}

.family-site .footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 20px;
}

.family-site .footer-legal-nav {
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,.12);
}

.family-site .footer-legal-nav a {
  color: rgba(255,255,255,.62);
  font-size: 11px;
  font-weight: 500;
}

@media (min-width: 901px) {
  .family-site .family-hero .hero-shade {
    background: linear-gradient(90deg, rgba(255, 250, 242, .72) 0%, rgba(255, 250, 242, .46) 21%, rgba(255, 250, 242, .12) 40%, rgba(255, 250, 242, .01) 57%) !important;
  }

  .family-site .family-hero::before,
  .family-site .family-hero::after {
    width: 6%;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
  }

  .family-site .page-hero-shade {
    background: linear-gradient(90deg, rgba(251,247,239,.78) 0%, rgba(251,247,239,.5) 23%, rgba(251,247,239,.13) 43%, rgba(251,247,239,.01) 61%) !important;
  }

  .family-site .homepage-featured {
    padding-top: 68px !important;
    padding-bottom: 56px !important;
  }

  .family-site .assortment {
    padding-top: 64px !important;
    padding-bottom: 48px !important;
  }

  .family-site .assortment .section-action {
    margin-top: 28px !important;
  }

  .family-site .gallery-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .family-site .news-section {
    padding-top: 64px !important;
    padding-bottom: 56px !important;
  }
}

@media (max-width: 900px) {
  .family-site .family-hero .hero-image {
    object-position: 74% 30% !important;
  }

  .family-site .page-hero > img {
    object-position: var(--hero-position-mobile, var(--hero-position-desktop, center)) !important;
  }

  .family-site .lesya-band > img {
    object-position: 76% 50% !important;
  }

  .family-site .homepage-featured,
  .family-site .assortment,
  .family-site .news-section {
    padding-top: 40px !important;
    padding-bottom: 40px !important;
  }

  .family-site .gallery-section {
    margin-top: 0 !important;
    margin-bottom: 0 !important;
  }

  .family-site .site-footer {
    padding: 14px 0 calc(72px + env(safe-area-inset-bottom)) !important;
  }

  .family-site .footer-inner {
    width: calc(100% - 32px);
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .family-site .footer-identity {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
  }

  .family-site .footer-brand {
    width: 158px;
  }

  .family-site .footer-brand img {
    width: 146px !important;
  }

  .family-site .footer-inner nav {
    justify-content: flex-start;
    gap: 6px 14px;
  }

  .family-site .footer-links { gap: 8px; }

  .family-site .footer-legal-nav { padding-top: 8px; }

}

@media (max-width: 520px) {
  .family-site .footer-identity {
    align-items: center;
    flex-direction: row;
    gap: 8px;
  }

  .family-site .footer-brand {
    width: 118px;
    flex: 0 0 118px;
  }

  .family-site .footer-brand img {
    width: 106px !important;
  }

  .family-site .footer-identity > p {
    max-width: none;
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 9px;
    line-height: 1.2;
    text-align: right;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.plf-image-copy-motion .family-site .image-copy-animated > :not(.screen-reader-text) {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    clip-path: none !important;
    transition: none !important;
  }

  html.plf-image-copy-motion .family-site .family-hero .hero-image,
  html.plf-image-copy-motion .family-site .page-hero > img,
  html.plf-image-copy-motion .family-site .family-hero .hero-shade,
  html.plf-image-copy-motion .family-site .page-hero .page-hero-shade,
  html.plf-image-copy-motion .family-site .lesya-band > img {
    animation: none !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  html.plf-site-scroll-motion .family-site [data-site-reveal] {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
    transition: none !important;
  }

  .family-site .button:hover,
  .family-site .button:focus-visible,
  .family-site .homepage-featured-grid .catalog-product-item:hover,
  .family-site .assortment-grid .assortment-item:hover,
  .family-site .news-grid .news-card:hover {
    transform: none !important;
  }
}

.family-site .news-image picture,
.family-site .offer-card-image picture,
.family-site .gallery-photo picture {
  display: contents;
}

.family-site .catalog-subcategory-mobile-cue {
  display: none;
}

@media (max-width: 767px) {
  .family-site .homepage-featured,
  .family-site .assortment,
  .family-site .news-section {
    width: calc(100% - 24px) !important;
    padding-top: 32px !important;
    padding-bottom: 32px !important;
  }

  .family-site .homepage-featured .section-heading,
  .family-site .assortment .section-heading,
  .family-site .news-section .section-heading {
    gap: 12px !important;
    margin-bottom: 24px !important;
  }

  .family-site .homepage-featured .section-heading > p,
  .family-site .assortment .section-heading > p,
  .family-site .news-section .section-heading > p {
    margin-bottom: 0 !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .family-site .homepage-featured-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-item {
    display: grid !important;
    min-height: 0 !important;
    grid-template-columns: 104px minmax(0, 1fr) !important;
    gap: 0 !important;
    padding: 0 !important;
    border-radius: 14px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-image {
    width: 104px !important;
    height: 100% !important;
    min-height: 148px !important;
    padding: 10px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy {
    padding: 14px 14px 13px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-label {
    display: none !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy h4 {
    margin: 0 0 6px !important;
    font-size: 15px !important;
    line-height: 1.32 !important;
    -webkit-line-clamp: 2 !important;
  }

  .family-site .homepage-featured-grid .catalog-product-code {
    margin-bottom: 10px !important;
    font-size: 10px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy footer {
    align-items: flex-start !important;
    flex-direction: column !important;
    gap: 5px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy footer strong {
    font-size: 17px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy footer a {
    font-size: 10px !important;
    text-align: left !important;
  }

  .family-site .homepage-featured-action,
  .family-site .assortment .section-action,
  .family-site .news-footer {
    margin-top: 22px !important;
  }

  .family-site .lesya-band {
    min-height: 520px !important;
    padding: 46px 16px 38px !important;
  }

  .family-site .lesya-band > img {
    height: 56% !important;
  }

  .family-site .lesya-band blockquote p {
    font-size: 30px !important;
  }

  .family-site .assortment-grid .assortment-item {
    min-height: 190px !important;
    grid-template-rows: 108px auto !important;
    padding-bottom: 12px !important;
  }

  .family-site .assortment-grid .assortment-bg {
    height: 108px !important;
  }

  .family-site .assortment-grid .assortment-item h3 {
    margin: 11px 10px 0 !important;
    font-size: 16px !important;
  }

  .family-site .news-grid {
    gap: 12px !important;
    border: 0 !important;
  }

  .family-site .news-grid .news-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
  }

  .family-site .news-grid .news-card-featured {
    display: block;
  }

  .family-site .news-grid .news-card-featured .news-image {
    aspect-ratio: 16 / 10;
  }

  .family-site .news-grid .news-card:not(.news-card-featured) {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    min-height: 156px;
  }

  .family-site .news-grid .news-card:not(.news-card-featured) .news-image {
    height: 100%;
    min-height: 156px;
    aspect-ratio: auto;
  }

  .family-site .news-grid .news-body {
    padding: 16px;
  }

  .family-site .news-grid .news-body h3,
  .family-site .news-grid .news-card-featured .news-body h3 {
    margin: 8px 0 10px;
    font-size: 18px;
    line-height: 1.3;
  }

  .family-site .news-grid .news-card-featured .news-body p {
    display: -webkit-box;
    margin-bottom: 14px;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .family-site .news-grid .news-card:not(.news-card-featured) .news-body p {
    display: none;
  }

  .family-site .news-grid .news-card:not(.news-card-featured) .text-link {
    font-size: 10px;
  }

  .family-site .assortment-category-hero {
    min-height: 400px !important;
  }

  .family-site .assortment-category-hero .assortment-category-intro-inner {
    padding: 22px 16px 28px !important;
  }

  .family-site .assortment-category-hero h1 {
    font-size: clamp(34px, 10vw, 44px) !important;
  }

  .family-site .assortment-category-hero .assortment-category-lead {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px !important;
    line-height: 1.45 !important;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }

  .family-site .catalog-browser {
    padding-top: 36px !important;
    padding-bottom: 46px !important;
  }

  .family-site .catalog-browser-heading {
    margin-bottom: 18px !important;
  }

  .family-site .catalog-browser-heading h2 {
    margin: 8px 0 12px !important;
    font-size: 31px !important;
  }

  .family-site .catalog-browser-heading > p:last-child {
    font-size: 13px !important;
    line-height: 1.5 !important;
  }

  .family-site .catalog-subcategory-mobile-cue {
    margin: 0 0 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: var(--forest);
    font-size: 12px;
  }

  .family-site .catalog-subcategory-mobile-cue strong {
    font-size: 13px;
  }

  .family-site .catalog-subcategory-mobile-cue span {
    color: var(--muted);
  }

  .family-site .catalog-subcategory-mobile-cue b {
    color: var(--red);
    font-size: 16px;
  }

  .family-site .catalog-subcategory-grid {
    padding-bottom: 12px !important;
    scroll-padding-inline: 16px;
    scrollbar-width: thin !important;
    scrollbar-color: var(--forest) #e7ded1 !important;
  }

  .family-site .catalog-subcategory-grid::-webkit-scrollbar {
    display: block !important;
    height: 4px;
  }

  .family-site .catalog-subcategory-grid::-webkit-scrollbar-track {
    background: #e7ded1;
    border-radius: 999px;
  }

  .family-site .catalog-subcategory-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--forest);
  }

  .family-site .catalog-subcategory-card {
    position: relative;
    flex-basis: min(74vw, 272px) !important;
    border-radius: 12px !important;
  }

  .family-site .catalog-subcategory-card.is-active {
    border-color: var(--forest) !important;
    box-shadow: inset 0 0 0 2px var(--forest) !important;
  }

  .family-site .catalog-subcategory-card.is-active::after {
    position: absolute;
    top: 7px;
    right: 8px;
    content: "Обрано";
    padding: 3px 7px;
    border-radius: 999px;
    border: 1px solid rgba(47, 74, 60, .28);
    background: #f4eadc;
    color: var(--forest);
    font-size: 9px;
    font-weight: 800;
  }

  .family-site .catalog-products-panel {
    margin-top: 18px !important;
    padding-top: 22px !important;
  }

  .family-site .catalog-product-grid {
    gap: 10px !important;
  }

  .family-site .catalog-product-item {
    min-height: 0 !important;
    grid-template-columns: 84px minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 12px !important;
  }

  .family-site .catalog-product-image {
    width: 84px !important;
    height: 84px !important;
  }

  .family-site .catalog-product-copy footer a {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
}

/* 1.9.3 — compact swipeable homepage products and store gallery on phones. */
.family-site .homepage-featured-mobile-cue {
  display: none;
}

.family-site .gallery-title-mobile {
  display: none;
}

.family-site .gallery-button-mobile,
.family-site .lesya-quote-mobile {
  display: none;
}

.family-site .gallery-section .gallery-footer-actions .button > b {
  display: none;
}

@media (max-width: 767px) {
  .family-site .homepage-featured-mobile-cue {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: -8px 0 10px;
    color: var(--forest);
    font-size: 12px;
  }

  .family-site .homepage-featured-mobile-cue strong {
    font-size: 13px;
  }

  .family-site .homepage-featured-mobile-cue span {
    color: var(--muted);
  }

  .family-site .homepage-featured-mobile-cue b {
    color: var(--red);
    font-size: 16px;
  }

  .family-site .homepage-featured-grid {
    display: flex !important;
    grid-template-columns: none !important;
    gap: 12px !important;
    margin-inline: -12px !important;
    padding: 2px 12px 12px !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    overscroll-behavior-inline: contain;
    scroll-padding-inline: 12px;
    scroll-snap-type: x mandatory;
    scrollbar-width: thin;
    scrollbar-color: var(--forest) #e7ded1;
    -webkit-overflow-scrolling: touch;
  }

  .family-site .homepage-featured-grid:focus-visible {
    outline: 2px solid var(--forest);
    outline-offset: 3px;
  }

  .family-site .homepage-featured-grid::-webkit-scrollbar {
    display: block;
    height: 5px;
  }

  .family-site .homepage-featured-grid::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #e7ded1;
  }

  .family-site .homepage-featured-grid::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: var(--forest);
  }

  .family-site .homepage-featured-grid .catalog-product-item {
    box-sizing: border-box;
    display: flex !important;
    flex: 0 0 min(74vw, 272px) !important;
    flex-direction: column !important;
    min-height: 336px !important;
    gap: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border-radius: 16px !important;
    scroll-snap-align: start;
    scroll-snap-stop: always;
  }

  .family-site .homepage-featured-grid .catalog-product-image {
    box-sizing: border-box !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) !important;
    grid-template-rows: minmax(0, 1fr) !important;
    place-items: center !important;
    width: 100% !important;
    height: 148px !important;
    min-height: 148px !important;
    padding: 14px !important;
    overflow: hidden !important;
  }

  .family-site .homepage-featured-grid .catalog-product-image img {
    box-sizing: border-box !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    max-width: 100% !important;
    max-height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy {
    min-width: 0 !important;
    padding: 15px 16px 16px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy h4 {
    margin-bottom: 7px !important;
    font-size: 16px !important;
    line-height: 1.3 !important;
  }

  .family-site .homepage-featured-grid .catalog-product-code {
    margin-bottom: 9px !important;
  }

  .family-site .homepage-featured-grid .catalog-product-copy footer strong {
    font-size: 18px !important;
  }

  .family-site .gallery-section {
    left: auto !important;
    display: grid !important;
    grid-template-columns: 1fr !important;
    grid-template-rows: auto auto auto !important;
    width: calc(100% - 24px) !important;
    max-width: none !important;
    min-height: 0 !important;
    margin: 24px auto 32px !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid #dfd0bb !important;
    border-radius: 18px !important;
    background: #f4e8d5 !important;
    color: var(--ink) !important;
    box-shadow: 0 14px 34px rgba(66, 52, 37, .08) !important;
  }

  .family-site .gallery-section .gallery-grid {
    grid-column: 1 !important;
    grid-row: 1 !important;
    display: block !important;
    width: 100% !important;
    height: 210px !important;
    min-height: 210px !important;
    max-height: 210px !important;
    padding: 0 !important;
    overflow: hidden !important;
    background: #e8dac5 !important;
  }

  .family-site .gallery-section .gallery-grid .gallery-photo,
  .family-site .gallery-section .gallery-grid .gallery-photo-tall {
    display: none !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    border-radius: 0 !important;
  }

  .family-site .gallery-section .gallery-grid .gallery-photo:first-child {
    display: block !important;
  }

  .family-site .gallery-section .gallery-grid .gallery-photo img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 48% !important;
    filter: none !important;
  }

  .family-site .gallery-section .gallery-header {
    grid-column: 1 !important;
    grid-row: 2 !important;
    display: flex !important;
    min-height: 0 !important;
    justify-content: flex-start !important;
    margin: 0 !important;
    padding: 22px 20px 14px !important;
    background: #f4e8d5 !important;
    text-align: left !important;
  }

  .family-site .gallery-section .gallery-header .eyebrow {
    color: var(--red) !important;
  }

  .family-site .gallery-section .gallery-header h2 {
    max-width: 360px !important;
    color: var(--ink) !important;
    font-size: clamp(30px, 9vw, 40px) !important;
    line-height: 1.08 !important;
  }

  .family-site .gallery-section .gallery-header > p,
  .family-site .gallery-section .gallery-header p:not(.eyebrow) {
    max-width: 390px !important;
    margin: 12px 0 0 !important;
    color: #645a50 !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
  }

  .family-site .gallery-section .gallery-footer-actions {
    grid-column: 1 !important;
    grid-row: 3 !important;
    align-self: start !important;
    margin: 0 !important;
    padding: 0 20px 22px !important;
    background: #f4e8d5 !important;
    text-align: left !important;
  }

  .family-site .gallery-section .button,
  .family-site .gallery-section .button-outline-light {
    box-sizing: border-box;
    width: 100% !important;
    min-height: 44px !important;
    justify-content: center !important;
    margin: 0 !important;
    padding: 10px 16px !important;
    border-color: var(--forest) !important;
    background: var(--forest) !important;
    color: #fffaf2 !important;
  }

  .family-site .family-hero {
    height: 467px !important;
    min-height: 467px !important;
    max-height: 467px !important;
  }

  .family-site .family-hero .hero-content {
    height: 100% !important;
    min-height: 0 !important;
    padding-bottom: 24px !important;
  }

  .family-site .family-hero .hero-shade {
    background: linear-gradient(180deg, rgba(255, 250, 242, .12) 0%, rgba(255, 250, 242, .52) 38%, rgba(255, 250, 242, .9) 64%, rgba(255, 250, 242, .99) 100%) !important;
  }

  .family-site .family-hero .hero-lead {
    color: #221f1b !important;
  }

  .family-site .family-hero .hero-copy {
    color: #443c35 !important;
    font-weight: 500 !important;
  }
}

/* 1.9.4 — let the mobile homepage start with the hero and tighten its store-gallery caption. */
@media (max-width: 767px) {
  body.family-site.home .site-header {
    display: none !important;
  }

  body.family-site.home .family-hero {
    padding-top: 0 !important;
  }

  body.family-site.home .family-hero .hero-image,
  body.family-site.home .family-hero .hero-shade {
    inset: 0 !important;
    height: 100% !important;
  }

  .family-site .gallery-section .gallery-header {
    display: block !important;
    padding: 15px 20px 8px !important;
  }

  .family-site .gallery-section .gallery-header .eyebrow,
  .family-site .gallery-section .gallery-header > p {
    display: none !important;
  }

  .family-site .gallery-section .gallery-title-desktop {
    display: none !important;
  }

  .family-site .gallery-section .gallery-title-mobile {
    display: inline !important;
  }

  .family-site .gallery-section .gallery-header h2 {
    max-width: none !important;
    font-size: 25px !important;
    line-height: 1.2 !important;
  }

  .family-site .gallery-section .gallery-footer-actions {
    padding: 0 20px 17px !important;
  }
}

/* 1.9.5 — turn the mobile gallery and Lesya section into cohesive photo cards. */
@media (max-width: 767px) {
  .family-site .gallery-section {
    position: relative !important;
    display: block !important;
    width: calc(100% - 24px) !important;
    height: 240px !important;
    min-height: 240px !important;
    max-height: 240px !important;
    margin: 24px auto 32px !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 18px !important;
    background: #263d33 !important;
    box-shadow: 0 14px 34px rgba(50, 42, 33, .14) !important;
  }

  .family-site .gallery-section .gallery-header {
    display: none !important;
  }

  .family-site .gallery-section .gallery-grid {
    position: absolute !important;
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-height: none !important;
    border-radius: inherit !important;
  }

  .family-site .gallery-section .gallery-grid::after {
    content: "";
    position: absolute;
    z-index: 2;
    inset: auto 0 0;
    height: 46%;
    background: linear-gradient(180deg, rgba(24, 40, 33, 0), rgba(24, 40, 33, .72));
    pointer-events: none;
  }

  .family-site .gallery-section .gallery-footer-actions {
    position: absolute !important;
    z-index: 3 !important;
    inset: auto 14px 14px !important;
    display: block !important;
    margin: 0 !important;
    padding: 0 !important;
    background: transparent !important;
  }

  .family-site .gallery-section .button,
  .family-site .gallery-section .button-outline-light {
    min-height: 46px !important;
    gap: 10px !important;
    border: 1px solid rgba(255, 250, 242, .42) !important;
    border-radius: 12px !important;
    background: rgba(38, 61, 51, .92) !important;
    color: #fffaf2 !important;
    box-shadow: 0 8px 24px rgba(20, 31, 26, .18) !important;
    backdrop-filter: blur(8px);
  }

  .family-site .gallery-section .gallery-button-desktop {
    display: none !important;
  }

  .family-site .gallery-section .gallery-button-mobile {
    display: inline !important;
  }

  .family-site .gallery-section .button b {
    display: inline !important;
    font-size: 17px;
    line-height: 1;
  }

  .family-site .lesya-band {
    width: calc(100% - 24px) !important;
    height: 430px !important;
    min-height: 430px !important;
    max-height: 430px !important;
    margin: 24px auto 32px !important;
    padding: 0 !important;
    align-items: flex-end !important;
    overflow: hidden !important;
    border-radius: 18px !important;
    background: #26342d !important;
    color: #fffaf2 !important;
    box-shadow: 0 14px 36px rgba(50, 42, 33, .14) !important;
  }

  .family-site .lesya-band > img {
    inset: 0 !important;
    width: 100% !important;
    height: 100% !important;
    object-position: 68% center !important;
  }

  .family-site .lesya-band .lesya-overlay {
    background: linear-gradient(180deg, rgba(27, 34, 29, .02) 0%, rgba(27, 34, 29, .08) 38%, rgba(27, 34, 29, .66) 67%, rgba(27, 34, 29, .96) 100%) !important;
  }

  .family-site .lesya-band .lesya-content {
    width: 100% !important;
    max-width: none !important;
    padding: 0 20px 20px !important;
    color: #fffaf2 !important;
  }

  .family-site .lesya-band .eyebrow {
    display: none !important;
  }

  .family-site .lesya-band blockquote {
    margin: 0 !important;
    padding: 0 0 0 14px !important;
    border-left: 2px solid #d7a653 !important;
  }

  .family-site .lesya-band blockquote p {
    color: #fffaf2 !important;
    font-size: 24px !important;
    line-height: 1.24 !important;
  }

  .family-site .lesya-band .lesya-quote-desktop {
    display: none !important;
  }

  .family-site .lesya-band .lesya-quote-mobile {
    display: inline !important;
  }

  .family-site .lesya-band blockquote cite {
    margin-top: 9px !important;
    color: #f0d49a !important;
    font-size: 9px !important;
    letter-spacing: .04em !important;
  }

  .family-site .lesya-band .lesya-note {
    max-width: none !important;
    margin: 14px 0 0 !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(255, 250, 242, .24) !important;
    color: rgba(255, 250, 242, .84) !important;
    font-size: 13px !important;
    line-height: 1.45 !important;
  }
}

/* 1.9.6 — give the mobile homepage hero the same premium photo-card language as Lesya. */
@media (max-width: 767px) {
  body.family-site.home .family-hero .hero-shade {
    background: linear-gradient(180deg, rgba(24, 33, 28, .01) 0%, rgba(24, 33, 28, .06) 30%, rgba(24, 33, 28, .58) 55%, rgba(24, 33, 28, .96) 100%) !important;
  }

  body.family-site.home .family-hero .hero-content {
    width: calc(100% - 32px) !important;
    padding: 0 0 18px !important;
  }

  body.family-site.home .family-hero .hero-kicker {
    margin: 0 0 10px !important;
    color: #f0d49a !important;
    font-size: 10px !important;
    font-weight: 800 !important;
    letter-spacing: 1.8px !important;
    text-shadow: 0 1px 8px rgba(18, 25, 21, .28);
  }

  body.family-site.home .family-hero .hero-lead,
  body.family-site.home .family-hero .hero-copy {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding-left: 14px !important;
    border-left: 2px solid #d7a653 !important;
  }

  body.family-site.home .family-hero .hero-lead {
    color: #fffaf2 !important;
    font-size: 25px !important;
    line-height: 1.22 !important;
    text-shadow: 0 2px 16px rgba(16, 24, 20, .32);
  }

  body.family-site.home .family-hero .hero-copy {
    padding-top: 9px !important;
    color: rgba(255, 250, 242, .86) !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    line-height: 1.45 !important;
  }

  body.family-site.home .family-hero .hero-actions {
    width: 100% !important;
    margin-top: 14px !important;
    gap: 8px !important;
  }

  body.family-site.home .family-hero .hero-actions .button,
  body.family-site.home .family-hero .hero-actions .text-link {
    min-height: 46px !important;
    padding: 11px 16px !important;
    border-radius: 12px !important;
    color: #fffaf2 !important;
    box-shadow: 0 8px 24px rgba(17, 25, 21, .18) !important;
  }

  body.family-site.home .family-hero .hero-actions .button-primary {
    border: 1px solid rgba(255, 250, 242, .22) !important;
    background: rgba(168, 49, 58, .94) !important;
  }

  body.family-site.home .family-hero .hero-actions .text-link {
    border: 1px solid rgba(255, 250, 242, .38) !important;
    background: rgba(38, 61, 51, .86) !important;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
}
