/* rd-sun-v21: hero subject, centered title, readable button, spaces rhythm, style controls, collapsed footer */

@media (max-width: 1023px) {
  #f-theme.rd-ref-site #f-slider-rd-ref-hero,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .container-full,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero f-slideshow,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .swiper-container,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .swiper-wrapper,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .swiper-slide,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide {
    width: 100% !important;
    height: 62vw !important;
    min-height: 220px !important;
    max-height: 280px !important;
    aspect-ratio: auto !important;
    margin: 0 !important;
    overflow: hidden !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide {
    background-color: #efe4d4 !important;
    background-image: url("https://www.ratedecor.com/media/diy/365/image/2026/11/02/a74cdd55206bdfbd52399d3ef675d78e.jpg") !important;
    background-repeat: no-repeat !important;
    background-size: cover !important;
    background-position: center 48% !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__wrapper {
    left: 12px !important;
    right: 12px !important;
    bottom: 10px !important;
    justify-content: center !important;
    align-items: flex-end !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__content {
    width: 100% !important;
    max-width: none !important;
    padding: 10px 12px 12px !important;
    text-align: center !important;
    background: rgba(251, 247, 241, 0.94) !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__title,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__title *,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__description,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__description * {
    text-align: center !important;
    color: #3a2e24 !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__title {
    font-size: 26px !important;
    line-height: 1.12 !important;
    margin: 0 0 4px !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__description {
    font-size: 13px !important;
    margin: 0 0 8px !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-richtext__button,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__button {
    justify-content: center !important;
    width: 100% !important;
    gap: 8px !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__button-first,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__button-first:hover,
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__button-first:focus-visible {
    background: #6e4939 !important;
    border-color: #6e4939 !important;
    color: #fffbf6 !important;
  }
  #f-theme.rd-ref-site #f-slider-rd-ref-hero .f-slide__button-second {
    background: transparent !important;
    border: 1px solid #6e4939 !important;
    color: #3a2e24 !important;
  }

  #f-theme.rd-ref-site #f-collection-list-rd-ref-spaces {
    margin-top: 12px !important;
    margin-bottom: 0 !important;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-spaces .f-section-py,
  #f-theme.rd-ref-site #f-collection-list-rd-ref-spaces .f-collection-list__container {
    padding-top: 28px !important;
    padding-bottom: 28px !important;
  }
  #f-theme.rd-ref-site #f-section-rd-ref-materials,
  #f-theme.rd-ref-site #f-section-rd-ref-materials .f-section-py,
  #f-theme.rd-ref-site #f-section-rd-ref-materials .container-fluid {
    margin-top: 0 !important;
    padding-top: 0 !important;
  }

  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit {
    overflow: hidden !important;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .f-mixed-layout,
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .f-mixed-layout__wrapper {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .f-mixed-layout__inner {
    display: flex !important;
    flex-wrap: nowrap !important;
    grid-template-columns: none !important;
    width: max-content !important;
    max-width: none !important;
    gap: 12px !important;
    transform: none !important;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .f-mixed-layout__inner > .m\:column {
    flex: 0 0 78vw !important;
    width: 78vw !important;
    max-width: 78vw !important;
    scroll-snap-align: start;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .rd-edit-nav {
    display: flex !important;
    align-items: center;
    gap: 10px;
    margin: 14px 15px 0;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .rd-edit-nav button {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border: 1px solid #6e4939;
    background: #fffbf6;
    color: #3a2e24;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .rd-edit-bar {
    flex: 1 1 auto;
    height: 3px;
    background: #e4d8cc;
    border-radius: 99px;
    overflow: hidden;
  }
  #f-theme.rd-ref-site #f-collection-list-rd-ref-edit .rd-edit-bar > span {
    display: block;
    height: 100%;
    width: 20%;
    background: #6e4939;
    border-radius: 99px;
  }

  /* Footer accordion uses the theme toggle. rd-sun-v35 */
}
