/* AMTaro Gutenberg, self-contained presentation rules, v1.1.0.
   The rules are scoped to the editable page; unrelated WooCommerce pages stay untouched.
   This stylesheet is intentionally NOT dependent on the legacy shortcode style.css. */

/* Full-bleed Astra page without disturbing other pages or the block editor UI. */
body.amtaro-design-page .site-content > .ast-container,
body:has(.amtaro-gutenberg-page) .site-content > .ast-container,
body:has(.amtaro-gutenberg-page) #primary,
body:has(.amtaro-gutenberg-page) #main,
body:has(.amtaro-gutenberg-page) article,
body:has(.amtaro-gutenberg-page) .entry-content {
  width:100%!important;max-width:none!important;min-width:0!important;
  padding:0!important;margin:0!important;
}
body:has(.amtaro-gutenberg-page) .entry-header,
body:has(.amtaro-gutenberg-page) .entry-title,
body:has(.amtaro-gutenberg-page) .ast-archive-description,
body:has(.amtaro-gutenberg-page) #colophon {display:none!important}

.amtaro-gutenberg-page.wp-block-group,
.amtaro-gutenberg-page{
  --amt-ink:#17271f;--amt-gold:#c9a35c;--amt-cream:#f7f3e9;
  display:block!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;overflow:clip;
  background:var(--amt-cream);color:var(--amt-ink);
  font-family:'DM Sans',Arial,sans-serif;font-size:16px;line-height:1.65;
}
.amtaro-gutenberg-page *, .amtaro-gutenberg-page *::before,.amtaro-gutenberg-page *::after{box-sizing:border-box}
.amtaro-gutenberg-page > .wp-block-group{
  width:100%!important;max-width:none!important;min-width:0!important;
  margin-block:0!important;margin-inline:0!important;
}
.amtaro-gutenberg-page .wp-block-group{min-width:0;}
.amtaro-gutenberg-page h2,.amtaro-gutenberg-page h3{
  font-family:'Cinzel',Georgia,serif;font-weight:500;line-height:1.23;letter-spacing:.015em;
  text-transform:none;
}
.amtaro-gutenberg-page h2{color:#17271f;font-size:clamp(29px,3.4vw,47px);margin:10px 0 23px}
.amtaro-gutenberg-page h3{font-size:clamp(23px,2.4vw,32px);margin:10px 0 16px}
.amtaro-gutenberg-page p{margin:0 0 20px;line-height:1.65}
.amtaro-gutenberg-page .amtaro-eyebrow,.amtaro-gutenberg-page .amtaro-kicker{
  font-family:'DM Sans',Arial,sans-serif;font-size:11px;font-weight:600;
  letter-spacing:.25em;text-transform:uppercase;
}
.amtaro-gutenberg-page .amtaro-kicker{color:#96783e}
.amtaro-gutenberg-page .amtaro-section-heading{text-align:center;margin:0 auto 33px;max-width:780px!important}
.amtaro-gutenberg-page .amtaro-section-heading > *{margin-left:auto;margin-right:auto}
.amtaro-gutenberg-page .amtaro-section-heading > p:not(.amtaro-kicker){color:#697269;max-width:600px}

/* Hero: full-width forest with contained emblem, no inherited image dimensions. */
.amtaro-gutenberg-page > .amtaro-hero.wp-block-group,
.amtaro-gutenberg-page .amtaro-hero{
  display:flex!important;justify-content:center!important;align-items:center!important;
  position:relative;isolation:isolate;text-align:center;
  width:100%!important;max-width:none!important;
  min-height:720px;margin:0!important;padding:138px 26px 92px!important;
  background-color:#132419;
  background-image:linear-gradient(90deg,rgba(9,19,13,.79),rgba(9,19,13,.35),rgba(9,19,13,.77)),var(--amtaro-photo,linear-gradient(#1d3225,#0d1810));
  background-size:cover;background-position:center;background-repeat:no-repeat;
}
.amtaro-gutenberg-page .amtaro-hero .amtaro-hero-inner{
  width:100%!important;max-width:780px!important;margin:auto!important;
  text-align:center;color:#f9efdd;
}
.amtaro-gutenberg-page figure.amtaro-hero-logo,
.amtaro-gutenberg-page .amtaro-hero-logo.wp-block-image{
  display:block!important;position:relative!important;
  width:190px!important;max-width:190px!important;height:auto!important;
  margin:12px auto 23px!important;padding:0!important;
}
.amtaro-gutenberg-page figure.amtaro-hero-logo img,
.amtaro-gutenberg-page .amtaro-hero-logo img{
  display:block!important;width:190px!important;max-width:100%!important;height:auto!important;
  object-fit:contain!important;
}
.amtaro-gutenberg-page .amtaro-hero .amtaro-eyebrow{color:#f5e7c9!important;margin:0 auto 15px}
.amtaro-gutenberg-page .amtaro-hero .amtaro-mantra{color:#ecd09c!important;font-family:'Cinzel',Georgia,serif;font-size:clamp(13px,1.5vw,20px);letter-spacing:.11em;margin:13px auto 22px!important}
.amtaro-gutenberg-page .amtaro-hero .amtaro-hero-copy{color:#f1ede5!important;font-size:clamp(14px,1.5vw,18px);max-width:580px;margin:0 auto 28px!important}

/* Buttons are Gutenberg blocks (not legacy .amtaro-btn anchors). */
.amtaro-gutenberg-page .wp-block-buttons{display:flex!important;justify-content:center!important;gap:12px;margin:20px 0 0!important}
.amtaro-gutenberg-page .wp-block-button{margin:0}
.amtaro-gutenberg-page .wp-block-button__link,
.amtaro-gutenberg-page .wp-element-button.wp-block-button__link{
  border-radius:0!important;background:var(--amt-gold)!important;color:#15231b!important;
  padding:14px 27px!important;border:1px solid var(--amt-gold)!important;
  font-family:'DM Sans',Arial,sans-serif;font-size:11px!important;font-weight:600;
  line-height:1.45!important;letter-spacing:.15em;text-transform:uppercase;text-decoration:none;
}
.amtaro-gutenberg-page .amtaro-btn-outline .wp-block-button__link{
  background:transparent!important;border-color:#17271f!important;color:#17271f!important;
}
.amtaro-gutenberg-page .amtaro-story .amtaro-btn-outline .wp-block-button__link{
  border-color:#d5b878!important;color:#ead5a4!important;
}
.amtaro-gutenberg-page .amtaro-category .wp-block-button__link{
  padding:0!important;border:0!important;background:transparent!important;
  color:#fff2d6!important;font-size:11px!important;
}

/* Intro, collections, gallery: inner content width controlled here. */
.amtaro-gutenberg-page .amtaro-intro,
.amtaro-gutenberg-page .amtaro-collections,
.amtaro-gutenberg-page .amtaro-products{
  width:100%!important;max-width:1240px!important;margin:0 auto!important;
  padding:66px 30px 38px!important;
}
.amtaro-gutenberg-page .amtaro-intro{max-width:810px!important;text-align:center;padding-bottom:18px!important}
.amtaro-gutenberg-page .amtaro-intro > p:last-child{color:#666e65;font-size:17px}
.amtaro-gutenberg-page .amtaro-collections{padding-top:28px!important;padding-bottom:55px!important}
.amtaro-gutenberg-page .amtaro-products{padding-top:24px!important;padding-bottom:75px!important}
.amtaro-gutenberg-page .amtaro-category-grid.wp-block-group{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  gap:24px!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;
}
.amtaro-gutenberg-page .amtaro-category-grid > .amtaro-category.wp-block-group{
  position:relative;isolation:isolate;overflow:hidden;
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;
  justify-content:flex-end!important;min-height:390px;
  padding:30px!important;margin:0!important;width:100%!important;max-width:none!important;
  background:#1d3225;color:#fff4dc;
}
.amtaro-gutenberg-page figure.amtaro-card-image{
  position:absolute!important;z-index:-1;inset:0;width:100%!important;height:100%!important;
  margin:0!important;max-width:none!important;opacity:1;
}
.amtaro-gutenberg-page figure.amtaro-card-image::after{
  content:'';position:absolute;inset:0;
  background:linear-gradient(0deg,rgba(7,16,11,.9),rgba(7,16,11,.13) 75%);
}
.amtaro-gutenberg-page figure.amtaro-card-image img{width:100%!important;height:100%!important;object-fit:cover!important}
.amtaro-gutenberg-page .amtaro-category h3{position:relative;color:#f8e6c7!important;max-width:320px}
.amtaro-gutenberg-page .amtaro-category .wp-block-buttons{justify-content:flex-start!important;margin:0!important}
.amtaro-gutenberg-page .amtaro-featured-gallery.wp-block-group{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:20px!important;max-width:none!important;width:100%!important;margin:30px 0!important;
}
.amtaro-gutenberg-page figure.amtaro-gallery-card{
  aspect-ratio:4/5;overflow:hidden;margin:0!important;width:100%!important;max-width:none!important;
  background:#e9e0d0;
}
.amtaro-gutenberg-page figure.amtaro-gallery-card img{
  display:block;width:100%!important;height:100%!important;object-fit:cover!important;
}

/* About section stays intentionally full bleed and responsive. */
.amtaro-gutenberg-page .amtaro-story.wp-block-group{
  display:grid!important;grid-template-columns:1fr 1fr!important;
  width:100%!important;max-width:none!important;margin:0!important;
  background:#1b2a21;
}
.amtaro-gutenberg-page .amtaro-story-symbol.wp-block-group{
  display:grid!important;place-items:center!important;min-height:440px;
  margin:0!important;padding:35px!important;
  background:radial-gradient(circle,#35402c,#111f18);
}
.amtaro-gutenberg-page .amtaro-story-symbol figure{margin:0 auto!important;width:min(220px,55%)!important;max-width:220px!important;}
.amtaro-gutenberg-page .amtaro-story-symbol img{display:block;width:100%!important;height:auto!important}
.amtaro-gutenberg-page .amtaro-story-copy.wp-block-group{
  align-self:center;margin:0!important;padding:65px clamp(25px,5vw,95px)!important;
  color:#f6eddc;
}
.amtaro-gutenberg-page .amtaro-story-copy h2{color:#ead6aa!important}
.amtaro-gutenberg-page .amtaro-story-copy p:not(.amtaro-kicker){color:#e4ddd0!important}

/* Consultation offerings: responsive 3/2/1 columns regardless of WP flow CSS. */
.amtaro-gutenberg-page .amtaro-consultations.wp-block-group{
  display:block!important;padding:76px clamp(20px,4vw,76px) 80px!important;
  margin:0!important;width:100%!important;max-width:none!important;background:#eae3d3;color:#17271f;
}
.amtaro-gutenberg-page .amtaro-consultations > .amtaro-consultation-grid.wp-block-group{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:22px!important;align-items:stretch!important;
  width:100%!important;max-width:1240px!important;min-width:0!important;
  margin:0 auto!important;padding:0!important;
}
.amtaro-gutenberg-page .amtaro-consultation-grid > .amtaro-consultation-card.wp-block-group{
  display:flex!important;flex-direction:column!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:310px;margin:0!important;padding:30px 28px!important;
  background:#f7f3e9;color:#17271f;border:1px solid #dcd7ca;
}
.amtaro-gutenberg-page .amtaro-consultation-card h3{color:#17271f!important;font-size:clamp(21px,2vw,28px);margin:21px 0 14px!important}
.amtaro-gutenberg-page .amtaro-consultation-card p{color:#516053!important;font-size:14px;line-height:1.65;margin:0 0 18px!important}
.amtaro-gutenberg-page .amtaro-consultation-card p.amtaro-consultation-label{
  font-size:10px!important;letter-spacing:.15em;text-transform:uppercase;color:#876c43!important;
}
.amtaro-gutenberg-page .amtaro-consultation-card p.amtaro-consultation-bottom{
  margin-top:auto!important;padding-top:18px;border-top:1px solid #d6cbb7;
  font-weight:600;color:#99753f!important;
}
.amtaro-gutenberg-page .amtaro-consultation-grid > .amtaro-consultation-card-dark.wp-block-group{
  background:#1b2a21!important;border-color:#1b2a21!important;color:#f5ead6!important;
}
.amtaro-gutenberg-page .amtaro-consultation-card-dark h3{color:#ead4a5!important}
.amtaro-gutenberg-page .amtaro-consultation-card-dark p{color:#e0dccf!important}
.amtaro-gutenberg-page .amtaro-consultation-card-dark p.amtaro-consultation-label{color:#d3b777!important}
.amtaro-gutenberg-page .amtaro-consultation-card-dark p.amtaro-consultation-bottom{border-color:#4b5d4d;color:#d3b777!important}
.amtaro-gutenberg-page .amtaro-booking-form.wp-block-group{
  width:100%!important;max-width:840px!important;margin:42px auto 0!important;
  padding:30px clamp(18px,4vw,45px)!important;background:#f7f3e9;color:#17271f;
}
.amtaro-gutenberg-page .amtaro-booking-form h3{color:#17271f!important;margin-bottom:22px!important}
.amtaro-gutenberg-page .amtaro-booking-form input,
.amtaro-gutenberg-page .amtaro-booking-form select,
.amtaro-gutenberg-page .amtaro-booking-form textarea{max-width:100%}
.amtaro-gutenberg-page .amtaro-consultation-note{
  text-align:center;margin:20px auto 0!important;max-width:700px;color:#646d61;
  font-size:13px;
}
.amtaro-gutenberg-page .amtaro-ending.wp-block-group{
  width:100%!important;max-width:none!important;
  margin:0!important;padding:80px 22px 86px!important;text-align:center;background:#ede6d6;
}

/* Match the established AMTaro hero treatment on this page only. */
body:has(.amtaro-gutenberg-page) #masthead {
  position:absolute!important;top:0;left:0;right:0;z-index:30;
  background:transparent!important;border:0!important;box-shadow:none!important;
}
body.admin-bar:has(.amtaro-gutenberg-page) #masthead {top:32px}
body:has(.amtaro-gutenberg-page) #masthead .ast-primary-header-bar,
body:has(.amtaro-gutenberg-page) #masthead .main-header-bar,
body:has(.amtaro-gutenberg-page) #masthead .ast-builder-grid-row-container {
  background:transparent!important;border:0!important;box-shadow:none!important;
}
body:has(.amtaro-gutenberg-page) #masthead .site-branding,
body:has(.amtaro-gutenberg-page) #masthead .ast-site-identity {display:none!important}
body:has(.amtaro-gutenberg-page) #masthead .main-header-menu .menu-link,
body:has(.amtaro-gutenberg-page) #masthead .ast-menu-toggle,
body:has(.amtaro-gutenberg-page) #masthead .ast-addon-cart-wrap {color:#f7f0e4!important}
body:has(.amtaro-gutenberg-page) #masthead .main-header-menu .menu-link:hover {color:#d9b679!important}
body:has(.amtaro-gutenberg-page) #masthead .ast-icon svg {fill:#f7f0e4!important}
@media(max-width:782px){body.admin-bar:has(.amtaro-gutenberg-page) #masthead{top:46px}}

/* Editor canvas uses the same block CSS; avoid a narrow Gutenberg writing column. */
.editor-styles-wrapper:has(.amtaro-gutenberg-page) .is-root-container,
.editor-styles-wrapper:has(.amtaro-gutenberg-page) .block-editor-block-list__layout{
  max-width:none!important;
}

@media (max-width:1100px){
  .amtaro-gutenberg-page .amtaro-consultations > .amtaro-consultation-grid.wp-block-group{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}
@media (max-width:700px){
  .amtaro-gutenberg-page .amtaro-hero{min-height:630px;padding:112px 17px 68px!important}
  .amtaro-gutenberg-page figure.amtaro-hero-logo{width:160px!important;max-width:160px!important}
  .amtaro-gutenberg-page figure.amtaro-hero-logo img{width:160px!important}
  .amtaro-gutenberg-page .amtaro-intro,.amtaro-gutenberg-page .amtaro-collections,.amtaro-gutenberg-page .amtaro-products{padding-inline:18px!important}
  .amtaro-gutenberg-page .amtaro-category-grid.wp-block-group,
  .amtaro-gutenberg-page .amtaro-story.wp-block-group,
  .amtaro-gutenberg-page .amtaro-consultations > .amtaro-consultation-grid.wp-block-group{grid-template-columns:minmax(0,1fr)!important}
  .amtaro-gutenberg-page .amtaro-category-grid > .amtaro-category.wp-block-group{min-height:310px;padding:25px!important}
  .amtaro-gutenberg-page .amtaro-featured-gallery.wp-block-group{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:12px!important}
  .amtaro-gutenberg-page .amtaro-story-symbol.wp-block-group{min-height:260px}
  .amtaro-gutenberg-page .amtaro-story-copy.wp-block-group{padding:42px 28px!important}
  .amtaro-gutenberg-page .amtaro-consultations.wp-block-group{padding:60px 18px!important}
  .amtaro-gutenberg-page .amtaro-booking-form.wp-block-group{padding:24px 16px!important}
  .amtaro-gutenberg-page .amtaro-ending.wp-block-group{padding:62px 18px!important}
}


/* Resilience when Gutenberg retains the outer .amtaro-wrap Group but strips
   its second custom class while saving. This is only for a page containing
   AMTaro's own marker, and does not modify generic WooCommerce layouts. */
body:has(.amtaro-wrap) .site-content > .ast-container,
body:has(.amtaro-wrap) .entry-content,
body:has(.amtaro-wrap) #primary,
body:has(.amtaro-wrap) #main,
body:has(.amtaro-wrap) article {
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}
body .wp-block-group.amtaro-wrap {
  display: block !important;
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: #f7f3e9 !important;
  color: #17271f !important;
}

/* v1.2.0: resilient, standalone Gutenberg section layout.
   Some edited WP pages no longer preserve the original outer group wrapper,
   so category and gallery styling must not rely on .amtaro-gutenberg-page.
   All following selectors use AMTaro-specific classes to avoid touching Shop. */

/* Remove Gutenberg theme flow constraints on these sections, regardless of
   which parent Group Gutenberg produced after a save. */
body .wp-block-group.amtaro-collections,
body .wp-block-group.amtaro-products,
.editor-styles-wrapper .wp-block-group.amtaro-collections,
.editor-styles-wrapper .wp-block-group.amtaro-products {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  max-width: 1280px !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  padding: 48px 30px 64px !important;
  background-color: #f7f3e9 !important;
  color: #17271f !important;
}
body .wp-block-group.amtaro-category-grid,
.editor-styles-wrapper .wp-block-group.amtaro-category-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0,1fr)) !important;
  grid-auto-flow: row !important;
  align-items: stretch !important;
  gap: 24px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 22px 0 0 !important;
  padding: 0 !important;
}
body .wp-block-group.amtaro-category-grid > .wp-block-group.amtaro-category,
.editor-styles-wrapper .wp-block-group.amtaro-category-grid > .wp-block-group.amtaro-category {
  box-sizing: border-box !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: flex-end !important;
  align-items: flex-start !important;
  min-height: 390px !important;
  min-width: 0 !important;
  width: 100% !important;
  max-width: none !important;
  padding: 30px !important;
  margin: 0 !important;
  background: #192e21 !important;
  color: #f9edd6 !important;
}
body .wp-block-group.amtaro-category > figure.wp-block-image.amtaro-card-image,
.editor-styles-wrapper .wp-block-group.amtaro-category > figure.wp-block-image.amtaro-card-image {
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important; /* never negative: image must stay ABOVE card background */
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 1 !important;
}
body .wp-block-group.amtaro-category > figure.amtaro-card-image img,
.editor-styles-wrapper .wp-block-group.amtaro-category > figure.amtaro-card-image img {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  object-fit: cover !important;
}
body .wp-block-group.amtaro-category::after,
.editor-styles-wrapper .wp-block-group.amtaro-category::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(0deg,rgba(6,17,11,.88),rgba(6,17,11,.12) 80%);
}
body .wp-block-group.amtaro-category > h3,
body .wp-block-group.amtaro-category > .wp-block-buttons,
.editor-styles-wrapper .wp-block-group.amtaro-category > h3,
.editor-styles-wrapper .wp-block-group.amtaro-category > .wp-block-buttons {
  position: relative !important;
  z-index: 2 !important;
  color: #fae9cb !important;
}
body .wp-block-group.amtaro-category .wp-block-button__link,
.editor-styles-wrapper .wp-block-group.amtaro-category .wp-block-button__link {
  background: transparent !important;
  color: #fae9cb !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 5px 0 !important;
  font-size: 11px !important;
  letter-spacing: .12em !important;
}
body .wp-block-group.amtaro-featured-gallery,
.editor-styles-wrapper .wp-block-group.amtaro-featured-gallery {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  grid-auto-flow: row !important;
  gap: 19px !important;
  align-items: stretch !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: none !important;
  margin: 30px auto !important;
  padding: 0 !important;
}
body .wp-block-group.amtaro-featured-gallery > figure.wp-block-image.amtaro-gallery-card,
.editor-styles-wrapper .wp-block-group.amtaro-featured-gallery > figure.wp-block-image.amtaro-gallery-card {
  box-sizing: border-box !important;
  display: block !important;
  float: none !important;
  clear: none !important;
  grid-column: auto !important;
  grid-row: auto !important;
  position: relative !important;
  aspect-ratio: 4/5 !important;
  width: 100% !important;
  min-width: 0 !important;
  height: auto !important;
  max-width: none !important;
  margin: 0 !important;
  overflow: hidden !important;
  background: #e3dbc9 !important;
}
body .wp-block-group.amtaro-featured-gallery > figure.amtaro-gallery-card img,
.editor-styles-wrapper .wp-block-group.amtaro-featured-gallery > figure.amtaro-gallery-card img {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
}
/* Preserve section alignment regardless of the block theme's nested flow rules. */
body .wp-block-group.amtaro-products .amtaro-section-heading,
body .wp-block-group.amtaro-collections .amtaro-section-heading {
  text-align: center !important;
  max-width: 780px !important;
  margin: 0 auto 36px !important;
}
@media (max-width: 760px) {
  body .wp-block-group.amtaro-collections,
  body .wp-block-group.amtaro-products,
  .editor-styles-wrapper .wp-block-group.amtaro-collections,
  .editor-styles-wrapper .wp-block-group.amtaro-products {
    padding: 40px 18px 55px !important;
  }
  body .wp-block-group.amtaro-category-grid,
  .editor-styles-wrapper .wp-block-group.amtaro-category-grid {
    grid-template-columns: minmax(0,1fr) !important;
    gap: 16px !important;
  }
  body .wp-block-group.amtaro-category-grid > .wp-block-group.amtaro-category,
  .editor-styles-wrapper .wp-block-group.amtaro-category-grid > .wp-block-group.amtaro-category {
    min-height: 320px !important;
  }
  body .wp-block-group.amtaro-featured-gallery,
  .editor-styles-wrapper .wp-block-group.amtaro-featured-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
    gap: 12px !important;
  }
}
@media (max-width: 430px){
  body .wp-block-group.amtaro-featured-gallery,
  .editor-styles-wrapper .wp-block-group.amtaro-featured-gallery {
    grid-template-columns: repeat(2,minmax(0,1fr)) !important;
  }
}


/* WordPress's editor may change the outer Group. Remaining AMTaro sections
   must therefore be styled using their own unique classes as well. */
body .wp-block-group.amtaro-intro,
.editor-styles-wrapper .wp-block-group.amtaro-intro{
  display:block!important;width:100%!important;max-width:810px!important;
  margin:0 auto!important;padding:65px 28px 15px!important;
  background:#f7f3e9!important;text-align:center!important;
  color:#17271f!important;
}
body .wp-block-group.amtaro-story,
.editor-styles-wrapper .wp-block-group.amtaro-story{
  display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
  min-width:0!important;max-width:none!important;width:100%!important;
  margin:0!important;padding:0!important;background:#1b2a21!important;
}
body .wp-block-group.amtaro-story-symbol,
.editor-styles-wrapper .wp-block-group.amtaro-story-symbol{
  display:grid!important;place-items:center!important;min-height:440px!important;
  margin:0!important;padding:40px!important;
  background:radial-gradient(circle,#35402c,#111f18)!important;
}
body .wp-block-group.amtaro-story-symbol figure,
.editor-styles-wrapper .wp-block-group.amtaro-story-symbol figure{
  display:block!important;width:min(215px,55%)!important;max-width:215px!important;
  margin:0 auto!important;
}
body .wp-block-group.amtaro-story-symbol img,
.editor-styles-wrapper .wp-block-group.amtaro-story-symbol img{
  display:block!important;width:100%!important;height:auto!important;
}
body .wp-block-group.amtaro-story-copy,
.editor-styles-wrapper .wp-block-group.amtaro-story-copy{
  align-self:center!important;width:100%!important;margin:0!important;
  padding:65px clamp(25px,5vw,95px)!important;color:#f6eddc!important;
}
body .wp-block-group.amtaro-story-copy h2,
.editor-styles-wrapper .wp-block-group.amtaro-story-copy h2{color:#ead6aa!important}
body .wp-block-group.amtaro-story-copy p,
.editor-styles-wrapper .wp-block-group.amtaro-story-copy p{color:#e4ddd0!important}
body .wp-block-group.amtaro-consultations,
.editor-styles-wrapper .wp-block-group.amtaro-consultations{
  display:block!important;width:100%!important;max-width:none!important;
  padding:76px clamp(20px,4vw,76px) 80px!important;
  margin:0!important;background:#eae3d3!important;color:#17271f!important;
}
body .wp-block-group.amtaro-consultation-grid,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-grid{
  display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;
  width:100%!important;min-width:0!important;max-width:1240px!important;
  align-items:stretch!important;gap:22px!important;margin:0 auto!important;padding:0!important;
}
body .wp-block-group.amtaro-consultation-grid > .wp-block-group.amtaro-consultation-card,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-grid > .wp-block-group.amtaro-consultation-card{
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  width:100%!important;min-width:0!important;max-width:none!important;
  min-height:300px!important;padding:30px 28px!important;margin:0!important;
  background:#f7f3e9!important;color:#17271f!important;border:1px solid #dcd7ca!important;
}
body .wp-block-group.amtaro-consultation-card h3,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-card h3{color:#17271f!important;font-size:clamp(21px,2vw,28px)!important}
body .wp-block-group.amtaro-consultation-card p,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-card p{color:#516053!important}
body .wp-block-group.amtaro-consultation-card .amtaro-consultation-bottom,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-card .amtaro-consultation-bottom{
  margin-top:auto!important;padding-top:18px!important;border-top:1px solid #d6cbb7!important;
  color:#99753f!important;font-weight:600!important;
}
body .wp-block-group.amtaro-consultation-grid > .wp-block-group.amtaro-consultation-card-dark,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-grid > .wp-block-group.amtaro-consultation-card-dark{
  background:#1b2a21!important;border-color:#1b2a21!important;color:#f5ead6!important;
}
body .wp-block-group.amtaro-consultation-card-dark h3,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-card-dark h3{color:#ead4a5!important}
body .wp-block-group.amtaro-consultation-card-dark p,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-card-dark p{color:#e0dccf!important}
body .wp-block-group.amtaro-consultation-card-dark .amtaro-consultation-bottom,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-card-dark .amtaro-consultation-bottom{
  color:#d3b777!important;border-color:#4b5d4d!important;
}
body .wp-block-group.amtaro-booking-form,
.editor-styles-wrapper .wp-block-group.amtaro-booking-form{
  display:block!important;width:100%!important;max-width:840px!important;
  margin:42px auto 0!important;padding:30px clamp(18px,4vw,45px)!important;
  background:#f7f3e9!important;color:#17271f!important;
}
body .wp-block-group.amtaro-ending,
.editor-styles-wrapper .wp-block-group.amtaro-ending{
  display:block!important;width:100%!important;max-width:none!important;
  margin:0!important;padding:80px 22px 86px!important;
  background:#ede6d6!important;text-align:center!important;
}
@media(max-width:1100px){
  body .wp-block-group.amtaro-consultation-grid,
  .editor-styles-wrapper .wp-block-group.amtaro-consultation-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}
@media(max-width:700px){
  body .wp-block-group.amtaro-story,
  .editor-styles-wrapper .wp-block-group.amtaro-story,
  body .wp-block-group.amtaro-consultation-grid,
  .editor-styles-wrapper .wp-block-group.amtaro-consultation-grid{
    grid-template-columns:minmax(0,1fr)!important;
  }
  body .wp-block-group.amtaro-story-symbol,
  .editor-styles-wrapper .wp-block-group.amtaro-story-symbol{
    min-height:260px!important;
  }
  body .wp-block-group.amtaro-story-copy,
  .editor-styles-wrapper .wp-block-group.amtaro-story-copy{
    padding:42px 28px!important;
  }
  body .wp-block-group.amtaro-consultations,
  .editor-styles-wrapper .wp-block-group.amtaro-consultations{
    padding:60px 18px!important;
  }
  body .wp-block-group.amtaro-booking-form,
  .editor-styles-wrapper .wp-block-group.amtaro-booking-form{
    padding:24px 16px!important;
  }
}


/* v1.3.0 — actual live WordPress markup has a __inner-container child inside
 * EACH group. Without this, CSS grid lays out that single wrapper instead
 * of the intended cards/images. Do not alter the Gutenberg block content. */
body .wp-block-group.amtaro-category-grid > .wp-block-group__inner-container,
body .wp-block-group.amtaro-featured-gallery > .wp-block-group__inner-container,
body .wp-block-group.amtaro-consultation-grid > .wp-block-group__inner-container,
body .wp-block-group.amtaro-story > .wp-block-group__inner-container,
.editor-styles-wrapper .wp-block-group.amtaro-category-grid > .wp-block-group__inner-container,
.editor-styles-wrapper .wp-block-group.amtaro-featured-gallery > .wp-block-group__inner-container,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-grid > .wp-block-group__inner-container,
.editor-styles-wrapper .wp-block-group.amtaro-story > .wp-block-group__inner-container {
  display: contents !important;
}
/* Card inner wrapper should not trap its image, title or CTA; otherwise
 * z-index and 100%-height image rules target the wrong DOM level. */
body .wp-block-group.amtaro-category > .wp-block-group__inner-container,
.editor-styles-wrapper .wp-block-group.amtaro-category > .wp-block-group__inner-container {
  display: contents !important;
}
/* These cards can appear as direct grid children or as flattened
 * descendants of a Gutenberg inner-container, depending on WP version. */
body .wp-block-group.amtaro-category-grid .wp-block-group.amtaro-category,
.editor-styles-wrapper .wp-block-group.amtaro-category-grid .wp-block-group.amtaro-category {
  position:relative!important;isolation:isolate!important;overflow:hidden!important;
  display:flex!important;flex-direction:column!important;justify-content:flex-end!important;
  align-items:flex-start!important;min-width:0!important;width:100%!important;max-width:none!important;
  min-height:390px!important;padding:30px!important;margin:0!important;
  background-color:#192e21!important;opacity:1!important;filter:none!important;
}
body .wp-block-group.amtaro-category figure.amtaro-card-image,
.editor-styles-wrapper .wp-block-group.amtaro-category figure.amtaro-card-image {
  position:absolute!important;inset:0!important;z-index:0!important;
  width:100%!important;height:100%!important;max-width:none!important;
  margin:0!important;padding:0!important;opacity:1!important;
}
body .wp-block-group.amtaro-category figure.amtaro-card-image img,
.editor-styles-wrapper .wp-block-group.amtaro-category figure.amtaro-card-image img {
  width:100%!important;height:100%!important;object-fit:cover!important;
}
/* Exactly one localized overlay per card, never a page-wide scrim. */
body .wp-block-group.amtaro-category::after,
.editor-styles-wrapper .wp-block-group.amtaro-category::after {
  position:absolute!important;inset:0!important;z-index:1!important;
  content:''!important;pointer-events:none!important;
  background:linear-gradient(0deg,rgba(6,17,11,.55),rgba(6,17,11,.05) 74%)!important;
}
body .wp-block-group.amtaro-category > h3,
body .wp-block-group.amtaro-category > .wp-block-buttons,
.editor-styles-wrapper .wp-block-group.amtaro-category > h3,
.editor-styles-wrapper .wp-block-group.amtaro-category > .wp-block-buttons {
  z-index:2!important;position:relative!important;margin-left:0!important;
}
/* Standalone gallery figures: the grid has twelve grid ITEMS, not one wrapper. */
body .wp-block-group.amtaro-featured-gallery figure.amtaro-gallery-card,
.editor-styles-wrapper .wp-block-group.amtaro-featured-gallery figure.amtaro-gallery-card {
  display:block!important;position:relative!important;float:none!important;
  grid-column:auto!important;grid-row:auto!important;
  width:100%!important;max-width:none!important;min-width:0!important;
  aspect-ratio:4/5!important;height:auto!important;overflow:hidden!important;
  margin:0!important;padding:0!important;opacity:1!important;filter:none!important;
}
body .wp-block-group.amtaro-featured-gallery figure.amtaro-gallery-card img,
.editor-styles-wrapper .wp-block-group.amtaro-featured-gallery figure.amtaro-gallery-card img {
  display:block!important;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;
}
/* Matching WP wrapper structure on consultations. */
body .wp-block-group.amtaro-consultation-grid .wp-block-group.amtaro-consultation-card,
.editor-styles-wrapper .wp-block-group.amtaro-consultation-grid .wp-block-group.amtaro-consultation-card {
  display:flex!important;flex-direction:column!important;justify-content:flex-start!important;
  min-width:0!important;max-width:none!important;width:100%!important;
  min-height:300px!important;margin:0!important;padding:30px 28px!important;
  opacity:1!important;filter:none!important;
}
/* Scroll-fade guard for the editable content, but preserve deliberate dark
 * backgrounds in the forest hero, category cards and brand story. */
body .wp-block-group.amtaro-wrap,
body .wp-block-group.amtaro-intro,
body .wp-block-group.amtaro-collections,
body .wp-block-group.amtaro-products,
body .wp-block-group.amtaro-consultations,
body .wp-block-group.amtaro-ending {
  opacity:1!important;filter:none!important;mix-blend-mode:normal!important;
}
body .wp-block-group.amtaro-wrap::before,
body .wp-block-group.amtaro-wrap::after,
body .wp-block-group.amtaro-collections::before,
body .wp-block-group.amtaro-collections::after,
body .wp-block-group.amtaro-products::before,
body .wp-block-group.amtaro-products::after,
body .wp-block-group.amtaro-consultations::before,
body .wp-block-group.amtaro-consultations::after {
  content:none!important;
}
/* Backgrounds outside photo sections must stay light even with theme styles. */
body .wp-block-group.amtaro-intro,
body .wp-block-group.amtaro-collections,
body .wp-block-group.amtaro-products{background:#f7f3e9!important;}
body .wp-block-group.amtaro-consultations{background:#eae3d3!important;}
body .wp-block-group.amtaro-ending{background:#ede6d6!important;}
@media(max-width:760px){
  body .wp-block-group.amtaro-category-grid .wp-block-group.amtaro-category,
  .editor-styles-wrapper .wp-block-group.amtaro-category-grid .wp-block-group.amtaro-category {
    min-height:320px!important;padding:25px!important;
  }
}

/* v1.3.1: Astra/WP intermediary wrappers kept the card headline UNDER
 * its after-overlay (computed z-index:auto). Lift all card text above it. */
body .wp-block-group.amtaro-category h3,
body .wp-block-group.amtaro-category .wp-block-buttons,
.editor-styles-wrapper .wp-block-group.amtaro-category h3,
.editor-styles-wrapper .wp-block-group.amtaro-category .wp-block-buttons{
  position:relative!important;z-index:3!important;color:#ffedc9!important;
}
body .wp-block-group.amtaro-category a.wp-block-button__link,
.editor-styles-wrapper .wp-block-group.amtaro-category a.wp-block-button__link{
  color:#ffedc9!important;opacity:1!important;
}
