/* Mobile parity with live site (breakpoints 1024 / 749). Loaded after section CSS. */

/* --- shared stacking grids --- */
.tpc-panels { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.heritage-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.mf-grid { display: grid; grid-template-columns: 28% 18% 28% 26%; gap: 20px; }

@media screen and (max-width: 1024px) {
  .mf-grid { grid-template-columns: 1fr 1fr; }
  .heritage-grid { grid-template-columns: 1fr 1fr; }
}

/* --- hero slider: live sizing + smooth horizontal slide (per-slide transform) --- */
.museum-hero__overlay { display: none !important; }
.museum-hero__viewport { height: var(--museum-hero-height, 640px) !important; min-height: var(--museum-hero-height, 640px) !important; overflow: hidden; }
.museum-hero__slides { position: relative !important; height: 100% !important; width: 100% !important; overflow: hidden !important; }
.museum-hero__slide {
  position: absolute !important; inset: 0 !important;
  width: 100% !important; height: 100% !important;
  opacity: 1 !important; visibility: visible !important;
  transition: transform 700ms cubic-bezier(0.33, 0, 0.2, 1) !important;
  will-change: transform;
  pointer-events: none;
}
.museum-hero__slide.is-active { pointer-events: auto; z-index: 2; }
.museum-hero .museum-hero__image { height: 100% !important; width: 100% !important; object-fit: cover; object-position: var(--museum-object-position, center center) !important; }

/* --- mobile header: hamburger before logo + right-side drawer --- */
.mobile-burger {
  display: none;
  width: 42px; height: 38px; padding: 8px;
  border: 1px solid #B57C32; border-radius: 6px; background: #B57C32;
  cursor: pointer; align-items: center; justify-content: center; flex-direction: column; gap: 5px;
}
.mobile-burger span { width: 22px; height: 2px; display: block; background: #fff; }
.drawer-scrim { position: fixed; inset: 0; background: rgba(0,0,0,0.45); z-index: 2147483646; }
.mobile-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw); background: #FFFDF8; z-index: 2147483647;
  transform: translateX(105%); transition: transform 0.28s ease;
  display: flex; flex-direction: column; box-shadow: -8px 0 30px rgba(0,0,0,0.2);
  visibility: hidden;
}
.mobile-drawer.open { transform: none; visibility: visible; }
.mobile-drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px; border-bottom: 1.5px solid rgba(181,124,50,0.2); min-height: 56px; }
.mobile-drawer__close { width: 36px; height: 36px; border: 1px solid #B57C32; border-radius: 6px; background: #B57C32; color: #fff; font-size: 16px; cursor: pointer; }
.mobile-drawer__actions { display: flex; gap: 8px; padding: 12px 16px; border-bottom: 1px solid rgba(181,124,50,0.16); }
.mobile-drawer__actions a { flex: 1; text-align: center; padding: 8px 4px; border-radius: 6px; background: rgba(181,124,50,0.08); color: #B57C32; font-size: 13px; font-weight: 600; text-decoration: none; }
.mobile-drawer__nav { overflow-y: auto; padding-bottom: 40px; }
.mobile-drawer__item { border-top: 1px solid rgba(181,124,50,0.16); padding: 0 16px; }
.mobile-drawer__item:last-child { border-bottom: 1px solid rgba(181,124,50,0.16); }
.mobile-drawer__row { display: flex; align-items: center; justify-content: space-between; }
.mobile-drawer__row a, .mobile-drawer__item > a { display: block; padding: 12px 0; font-size: 15px; font-weight: 700; color: #111; text-decoration: none; }
.mobile-drawer__row button { background: none; border: none; font-size: 18px; color: #B57C32; cursor: pointer; padding: 12px; }
.mobile-drawer__sub { padding: 0 0 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.mobile-drawer__sub a { display: block; padding: 8px 10px; font-size: 13px; color: #2D241E; text-decoration: none; background: rgba(181,124,50,0.07); border-radius: 6px; }

@media screen and (max-width: 1024px) {
  .mobile-burger { display: flex; }
  .header-live { grid-template-areas: 'burger heading icons' !important; grid-template-columns: auto 1fr auto !important; }
  .header-live-wrap { padding: 0; }
  .header-live { padding: 6px 14px !important; min-height: 54px !important; column-gap: 10px !important; }
  .mobile-burger { width: 38px !important; height: 34px !important; padding: 7px !important; gap: 4px !important; }
  .mobile-burger span { width: 20px !important; }
  .header-live__heading img { width: 132px !important; height: auto !important; }
  .header-live__icons { gap: 0 !important; }
  .header-live__icons a, .header-live__icons button { padding: 0.5rem !important; }
  .header-live__icons svg { width: 19px !important; height: 19px !important; }
  .cart-count-bubble { min-width: 15px; height: 15px; font-size: 10px; }
}

@media screen and (max-width: 749px) {
  .header-live { padding: 5px 12px !important; min-height: 50px !important; }
  .header-live__heading img { width: 118px !important; }
  .mobile-burger { width: 36px !important; height: 32px !important; }
  .announce-item, .announce { font-size: 1.2rem !important; }
  .announce-marquee { padding: 0.7rem 0 !important; }
  .announce-sep { margin: 0 1.6rem; }
}

@media screen and (max-width: 749px) {
  .page-width { padding: 0 1.6rem; }

  /* hero — exact live mobile rules (749px) */
  html body .museum-hero .museum-hero__viewport { height: var(--museum-hero-height, 260px) !important; min-height: var(--museum-hero-height, 260px) !important; max-height: none !important; overflow: hidden; }
  /* hero — exact live mobile content box */
  html body .museum-hero .museum-hero__content {
    display: flex !important;
    flex-direction: column !important;
    padding-top: var(--museum-padding-top-mobile, 40px) !important;
    padding-bottom: var(--museum-padding-bottom-mobile, 24px) !important;
    padding-left: var(--museum-padding-x, 24px) !important;
    padding-right: var(--museum-padding-x, 24px) !important;
    box-sizing: border-box !important;
  }
  html body .museum-hero .museum-hero__content--mobile-bottom-left { justify-content: flex-end !important; align-items: flex-start !important; }
  html body .museum-hero .museum-hero__content-inner { max-width: var(--museum-content-width-mobile, min(100%, 340px)) !important; width: 100%; padding-right: 0.8rem !important; margin-top: 0 !important; }
  html body .museum-hero .museum-hero__eyebrow { font-size: 10px !important; letter-spacing: 1.2px !important; line-height: 1.2 !important; margin: 0 0 0.3rem !important; font-weight: 700; }
  html body .museum-hero .museum-hero__heading,
  html body .museum-hero .museum-hero__heading--large { font-size: 16px !important; line-height: 1.25 !important; letter-spacing: -0.2px !important; margin: 0 0 0.3rem !important; word-break: normal; overflow-wrap: normal; max-width: 100%; }
  html body .museum-hero .museum-hero__description,
  html body .museum-hero .museum-hero__description p { font-size: 10px !important; line-height: 1.5 !important; margin-top: 0.1rem !important; margin-bottom: 0.3rem !important; }
  .museum-hero__buttons { margin-top: 0.5rem !important; gap: 0.5rem; flex-wrap: wrap; align-items: flex-start; }
  .museum-hero .museum-hero__button { min-height: 3.6rem !important; padding: 0.8rem 1.6rem !important; font-size: 1.2rem !important; line-height: 1.2 !important; width: auto !important; box-shadow: 0 2px 6px #0003 !important; }
  .museum-hero__arrows { padding: 0 0.4rem !important; top: 50% !important; }
  .museum-hero__control { width: 4.4rem; height: 4.4rem; min-width: 4.4rem; min-height: 4.4rem; padding: 0.6rem; opacity: 0.85; }
  .museum-hero__arrow-icon { width: 2.2rem; height: 2.2rem; }
  .museum-hero__controls { bottom: 1.4rem; left: 0; right: 0; justify-content: center; }

  /* announcements */
  .museum-announcement__container { flex-direction: column; }
  .museum-announcement__left-panel { width: 100%; }
  .museum-announcement__slide-heading { font-size: 1.4rem; }

  /* welcome showcase */
  .museum-showcase__grid { grid-template-columns: 1fr !important; }
  .museum-showcase__heading { font-size: 2.4rem !important; }
  .museum-showcase__stats-row { flex-wrap: wrap; }

  /* media gallery */
  .museum-media-gallery__inner { flex-direction: column; }
  .museum-media-gallery__card { min-width: 78vw !important; }
  .museum-media-gallery__heading { font-size: 2.4rem !important; }

  /* product sliders */
  .product-slider__item { min-width: 62vw !important; }
  .product-slider-section__heading { font-size: 2.4rem !important; }

  /* journey */
  .museum-feature-grid__featured-content { padding: 2rem !important; }
  .museum-feature-grid__heading { font-size: 2.6rem !important; }

  /* collections */
  .museum-collections__grid { display: flex !important; overflow-x: auto; }
  .museum-collections__item { min-width: 135px; flex: 0 0 auto; }

  /* two panel / heritage / bookstore / footer */
  .tpc-panels { grid-template-columns: 1fr !important; }
  .heritage-grid { grid-template-columns: 1fr !important; }
  .mf-grid { grid-template-columns: 1fr !important; }
  .museum-bookstore-hero__heading { font-size: 2.4rem !important; }
  .museum-footer__sub-inner { flex-direction: column; gap: 0.6rem; }
  .floating-social { display: none; }

  /* shop grids */
  .grid--3, .grid--5, .grid--6 { grid-template-columns: repeat(2, 1fr) !important; }
  .card__title { font-size: 1.3rem; }
  h1 { font-size: 2.6rem; }
  h2 { font-size: 2.2rem; }
}

@media screen and (max-width: 480px) {
  .museum-hero__viewport { height: 190px !important; min-height: 190px !important; }
  .museum-hero__content {
    padding-top: 10px !important;
    padding-bottom: 10px !important;
    padding-left: 10px !important;
    padding-right: 10px !important;
  }
  .museum-hero__controls { bottom: 0.7rem; }
}
