/* Mobile first. Paleta Woodmart de la marca: sage + Poppins/Lato. Sin look de agencia/burger. */

html.lenis,
html.lenis body {
  height: auto;
}

.erm-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  background: rgb(255 255 255 / 0.72);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.erm-overlay.is-on {
  opacity: 1;
  pointer-events: auto;
}

.erm-page .page-title,
.erm-page .wd-page-title,
.erm-page h1.entry-title,
.erm-page .entry-header .entry-title {
  display: none;
}

.erm-page {
  --erm-sage: rgb(103, 159, 154);
  --erm-sage-hover: rgb(76, 128, 123);
  --erm-gold: rgb(233, 196, 106);
  --erm-ink: #242424;
  --erm-muted: #777;
  --erm-line: rgba(0, 0, 0, 0.08);
  --erm-radius: 8px;
  --erm-space: 20px;
  --erm-chrome: 148px;
  --erm-copy: 38rem;
  padding-inline: 16px;
  padding-bottom: 96px;
  overflow-x: hidden;
}

body.erm-snap {
  --erm-header: 72px;
  --erm-footerbar: 55px;
  --erm-max: 1400px;
  --erm-copy: 38rem;
  padding-inline: 0;
  padding-bottom: 0;
  overscroll-behavior-y: none;
}

body.erm-snap .whb-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 400;
  background: #fff;
}

body.erm-snap .whb-clone {
  display: none !important;
}

body.erm-snap .erm-services .erm-service,
body.erm-snap .erm-shop,
body.erm-snap .erm-carousel {
  opacity: 1;
  transform: none;
}

body.erm-snap .wd-page-wrapper,
body.erm-snap .website-wrapper,
body.erm-snap .wd-page-content,
body.erm-snap .wd-content-layout,
body.erm-snap #main-content,
body.erm-snap .wd-content-area,
body.erm-snap .entry-content,
body.erm-snap article.hentry {
  max-width: none !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.erm-snap .wd-content-area,
body.erm-snap .entry-content {
  margin: 0;
  padding: 0;
}

body.erm-snap .entry-content > *,
body.erm-snap .is-layout-flow > .erm-band,
body.erm-snap .is-layout-constrained > .erm-band {
  margin-block: 0 !important;
}

.erm-page .wp-block-cover,
.erm-page .wp-block-group,
.erm-page .wp-block-columns,
.erm-page .wp-block-heading {
  scroll-margin-top: 72px;
}

.erm-reveal {
  opacity: 0;
  transform: translate3d(0, 16px, 0);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.erm-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  .erm-reveal,
  .erm-overlay {
    transition: none;
    transform: none;
    opacity: 1;
  }
}

/* Covers (Woodmart a menudo no carga wp-block-library) */
.erm-page .wp-block-cover {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-sizing: border-box;
}

.erm-page .wp-block-cover .wp-block-cover__image-background,
.erm-page .wp-block-cover .wp-block-cover__video-background,
.erm-page .wp-block-cover video,
.erm-page .wp-block-cover picture.wp-block-cover__image-background,
.erm-page .wp-block-cover picture.wp-block-cover__image-background img {
  position: absolute !important;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  z-index: 0;
}

.erm-page .wp-block-cover .wp-block-cover__background {
  position: absolute !important;
  inset: 0;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}

.erm-page .wp-block-cover .wp-block-cover__inner-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

/* Bandas de Inicio: misma altura útil de viewport */
.erm-page .erm-band,
.erm-band.is-layout-constrained,
.erm-band.is-layout-flow,
.erm-band.is-layout-flex {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  min-height: calc(100svh - var(--erm-chrome));
  padding-block: 20px 28px;
}

.erm-band > .erm-section-title,
.erm-band > .erm-intro,
.erm-band > .erm-section-cta {
  flex: 0 0 auto;
}

.erm-band-hero {
  justify-content: stretch;
  padding-block: 0 16px;
  margin-inline: -16px;
  width: calc(100% + 32px);
}

/* Inicio: un panel = una pantalla. Contenido a 1400px; el vídeo del hero sigue a 100vw. */
body.erm-snap .erm-band,
body.erm-snap .erm-band.is-layout-constrained,
body.erm-snap .erm-band.is-layout-flow,
body.erm-snap .erm-band.is-layout-flex {
  height: 100svh;
  min-height: 100svh;
  max-height: 100svh;
  margin: 0 !important;
  overflow: hidden;
  justify-content: space-between;
  gap: 12px !important;
  padding-block: calc(var(--erm-header) + 16px) calc(var(--erm-footerbar) + 16px);
  padding-inline: max(16px, calc((100% - var(--erm-max)) / 2));
  background: #fff;
  isolation: isolate;
  touch-action: none;
}

body.erm-snap .erm-band > * {
  max-width: var(--erm-max);
  width: 100%;
  margin-inline: auto;
}

body.erm-snap .erm-band > .erm-section-title,
body.erm-snap .erm-band > .erm-intro,
body.erm-snap .erm-band > p,
body.erm-snap .erm-band > .erm-section-cta {
  flex: 0 0 auto;
  margin-block: 0;
  text-align: center;
}

body.erm-snap .erm-band > .erm-section-title,
body.erm-snap .erm-band > .erm-intro,
body.erm-snap .erm-band > p {
  max-width: var(--erm-copy);
}

body.erm-snap .erm-section-cta.wp-block-buttons,
.erm-page .erm-section-cta.wp-block-buttons {
  display: flex !important;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center !important;
  align-items: center;
  align-self: stretch;
  width: 100% !important;
  max-width: var(--erm-max, 1400px);
  margin-inline: auto !important;
  text-align: center;
}

body.erm-snap .erm-section-cta .wp-block-button,
.erm-page .erm-section-cta .wp-block-button {
  width: auto !important;
  flex: 0 0 auto;
  margin-inline: 0;
}

body.erm-snap .erm-section-cta .wp-block-button .wp-block-button__link,
.erm-page .erm-section-cta .wp-block-button .wp-block-button__link {
  width: auto !important;
  min-width: 180px;
  max-width: 280px;
}

body.erm-snap .erm-band-hero.erm-band,
.erm-band-hero {
  justify-content: stretch;
  gap: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  width: 100%;
  max-width: none;
  position: relative;
  background: #fff;
}

body.erm-snap .erm-band-hero > * {
  max-width: none;
}

.erm-hero {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: inherit;
  overflow: hidden;
}

body.erm-snap .erm-hero {
  position: absolute;
  inset: 0;
  min-height: 0;
}

.erm-hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.erm-hero-veil {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0.55;
  z-index: 1;
}

.erm-hero-inner {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--erm-max, 1400px);
  height: 100%;
  margin-inline: auto;
  padding: 24px 16px;
  text-align: center;
}

.erm-hero-mark {
  width: min(28vw, 120px);
  height: auto;
  margin: 0 0 8px;
  filter: drop-shadow(0 1px 1px rgb(36 36 36 / 0.15));
}

.erm-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 20px 0 0;
}

.erm-hero-actions a {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 180px;
  border-radius: 4px;
  padding: 0.9em 1.2em;
  font-family: var(--wd-header-el-font, Lato, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-decoration: none;
}

.erm-hero-actions .erm-cta-link {
  background: var(--erm-sage);
  color: #fff;
}

.erm-hero-actions .erm-cta-link:hover,
.erm-hero-actions .erm-cta-link:focus-visible {
  background: var(--erm-sage-hover);
  color: #fff;
}

.erm-hero-actions a.is-outline {
  background: #fff;
  color: var(--erm-ink);
  border: 1px solid rgb(103 159 154 / 0.45);
}

.erm-hero-actions a.is-outline:hover,
.erm-hero-actions a.is-outline:focus-visible {
  background: var(--erm-sage);
  color: #fff;
  border-color: var(--erm-sage);
}

.erm-service-link {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  overflow: hidden;
  border-radius: var(--erm-radius);
  text-decoration: none;
}

.erm-service-link img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.erm-service-link span {
  position: relative;
  z-index: 1;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.45);
}

.erm-service-link::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgb(0 0 0 / 0.45);
}

.erm-service-lists {
  display: grid;
  gap: 24px;
  margin-top: 32px;
}

.erm-service-list h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
}

.erm-service-list ul {
  margin: 0;
  padding: 0;
  list-style: none;
}

.erm-service-list li {
  border-bottom: 1px solid var(--erm-line);
}

.erm-service-list a {
  display: block;
  padding: 10px 0;
  color: var(--erm-ink);
  text-decoration: none;
}

@media (min-width: 900px) {
  .erm-service-lists {
    grid-template-columns: 1fr 1fr;
  }
}

body.erm-snap .erm-service.wp-block-cover {
  min-height: 0;
}

body.erm-snap .erm-services,
body.erm-snap .erm-shop,
body.erm-snap .erm-carousel,
body.erm-snap .erm-band-reviews .ti-widget,
body.erm-snap .erm-band-reviews [class*="trustindex"] {
  flex: 1 1 auto;
  min-height: 0;
}

body.erm-snap .erm-shop.wp-block-group {
  display: flex !important;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  max-width: var(--erm-max);
}

body.erm-snap .erm-shop .wd-products,
body.erm-snap .erm-shop ul.products {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(4, minmax(0, 1fr));
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
  align-content: stretch;
  gap: 10px 14px;
}

body.erm-snap .erm-shop .wd-product img,
body.erm-snap .erm-shop ul.products img {
  max-height: 10vh;
  object-fit: contain;
}

body.erm-snap .erm-shop .wd-product .product-element-top {
  max-height: 12vh;
  overflow: hidden;
}

body.erm-snap .erm-shop .wd-buttons,
body.erm-snap .erm-shop .hover-img,
body.erm-snap .erm-shop .wd-product-cats {
  display: none !important;
}

body.erm-snap .erm-shop .wd-entities-title,
body.erm-snap .erm-shop .woocommerce-loop-product__title {
  font-size: 0.85rem;
  line-height: 1.25;
  margin: 6px 0 0;
}

body.erm-snap .erm-carousel {
  max-width: var(--erm-max);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}

body.erm-snap .erm-carousel-viewport {
  flex: 1 1 auto;
  min-height: 0;
  height: auto;
}

body.erm-snap .erm-carousel-track {
  height: 100%;
}

body.erm-snap .erm-carousel-slide {
  flex: 0 0 100%;
  height: 100%;
}

body.erm-snap .erm-carousel-slide a {
  display: block;
  height: 100%;
}

body.erm-snap .erm-carousel-slide img {
  height: 100%;
  max-height: none;
  aspect-ratio: auto;
  object-fit: cover;
}

body.erm-snap .erm-band-reviews {
  justify-content: center;
}

body.erm-snap .erm-services {
  grid-template-columns: 1fr 1fr;
}

.erm-band-services .erm-services,
.erm-band-shop .erm-shop,
.erm-band-formacion .erm-gallery {
  flex: 1 1 auto;
}

.erm-band-hero .erm-hero.wp-block-cover {
  flex: 1 1 auto;
  min-height: 0 !important;
  height: auto;
  margin-inline: 0;
  width: 100%;
  max-width: none;
}

body.erm-snap .erm-band-hero .erm-hero.wp-block-cover {
  min-height: 100% !important;
  height: 100%;
  margin: 0;
}

/* Hero: vídeo + velo blanco 72% como el original Elementor */
.erm-hero.wp-block-cover {
  min-height: 38svh;
  margin-inline: -16px;
  width: calc(100% + 32px);
  max-width: none;
}

.erm-hero .wp-block-cover__background {
  background-color: #fff !important;
  opacity: 0.72 !important;
}

.erm-hero.wp-block-cover .wp-block-cover__inner-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: var(--erm-copy, 38rem);
  height: 100%;
  margin-inline: auto;
  padding: 24px 16px;
  text-align: center;
  color: var(--erm-ink);
}

.erm-hero-logo img {
  width: min(42vw, 110px);
  height: auto;
  margin-inline: auto;
  margin-bottom: 8px;
  filter: drop-shadow(0 1px 1px rgb(36 36 36 / 0.15));
}

.erm-hero-title {
  font-family: var(--wd-title-font, Poppins, sans-serif);
  font-weight: 600;
  font-size: 1.65rem;
  line-height: 1.2;
  color: var(--erm-ink);
  letter-spacing: 0.02em;
  margin: 0 0 8px;
}

.erm-hero-lead {
  font-family: var(--wd-text-font, Lato, sans-serif);
  font-size: 1.05rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 22em;
  margin: 0 auto;
  color: var(--erm-ink);
  text-shadow: 0 1px 10px rgb(255 255 255 / 0.85);
}

.erm-hero-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 20px 0 0;
  padding: 0;
}

.erm-page .wp-block-buttons {
  gap: 10px;
}

.erm-page .wp-block-button {
  width: 100%;
}

.erm-page .wp-block-button .wp-block-button__link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 4px;
  padding: 0.9em 1.2em;
  font-family: var(--wd-header-el-font, Lato, sans-serif);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.erm-cta .wp-block-button__link,
.erm-page .wp-block-button:not(.is-style-outline) .wp-block-button__link {
  background: var(--erm-sage);
  color: #fff;
  border: 0;
}

.erm-page .wp-block-button.is-style-outline .wp-block-button__link {
  background: #fff;
  color: var(--erm-ink);
  border: 1px solid rgb(103 159 154 / 0.45);
}

.erm-cta .wp-block-button__link:hover,
.erm-cta .wp-block-button__link:focus-visible,
.erm-page .wp-block-button:not(.is-style-outline) .wp-block-button__link:hover,
.erm-page .wp-block-button:not(.is-style-outline) .wp-block-button__link:focus-visible {
  background: var(--erm-sage-hover);
  color: #fff;
}

.erm-page .wp-block-button.is-style-outline .wp-block-button__link:hover,
.erm-page .wp-block-button.is-style-outline .wp-block-button__link:focus-visible {
  background: var(--erm-sage);
  color: #fff;
  border-color: var(--erm-sage);
}

.erm-intro,
.erm-page .erm-band > p,
.erm-page .erm-section-title {
  max-width: var(--erm-copy, 38rem);
  margin-inline: auto;
}

.erm-intro {
  margin-block: 0 16px;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--erm-muted);
  text-align: center;
}

.erm-page-title,
.erm-section-title {
  font-family: var(--wd-title-font, Poppins, sans-serif);
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--erm-ink);
  text-align: center;
  line-height: 1.25;
  letter-spacing: 0.02em;
  margin: 12px auto 16px;
  max-width: var(--erm-copy, 38rem);
}

.erm-section-cta.wp-block-buttons {
  display: flex;
  justify-content: center;
  margin: 20px 0 0;
}

.erm-band + .erm-band .erm-section-title {
  margin-top: 0;
}

.erm-page .wp-block-columns {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Servicios: 1 col → 2 → 3, celdas iguales */
.erm-services {
  display: grid;
  grid-template-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.erm-service.wp-block-cover {
  min-height: 180px;
  height: 100%;
  border-radius: var(--erm-radius);
  overflow: hidden;
}

.erm-service .wp-block-cover__background {
  background-color: #000;
  opacity: 0.5;
}

.erm-service .wp-block-cover__inner-container {
  text-align: center;
}

.erm-service h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.erm-service a {
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 10px rgb(0 0 0 / 0.45);
}

/* Tienda */
.erm-shop {
  max-width: none;
}

.erm-shop .wd-products,
.erm-shop ul.products {
  display: grid !important;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 0;
}

.erm-shop .wd-product,
.erm-shop ul.products li.product {
  width: auto !important;
  margin: 0 !important;
  float: none !important;
}

.erm-gallery {
  --wp--style--unstable-gallery-gap: 8px;
  display: grid;
  gap: 8px;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
}

.erm-gallery.wp-block-gallery.has-nested-images {
  display: grid;
}

.erm-gallery.wp-block-gallery.has-nested-images > .wp-block-image,
.erm-page .wp-block-gallery.has-nested-images > .wp-block-image {
  margin: 0;
  width: 100%;
}

.erm-page .wp-block-gallery.has-nested-images img {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 42svh;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}

.erm-carousel,
.erm-carousel.wp-block-gallery.has-nested-images,
.is-style-erm-carrusel.wp-block-gallery.has-nested-images {
  position: relative;
  display: block;
  width: 100%;
  max-width: 920px;
  margin: 8px auto 0;
  touch-action: pan-x;
}

.erm-carousel-viewport {
  touch-action: pan-x;
}

.erm-carousel.wp-block-gallery.has-nested-images > .wp-block-image:not(:first-child) {
  display: none;
}

.erm-carousel .erm-carousel-track > .wp-block-image,
.erm-carousel .erm-carousel-track > .erm-carousel-slide {
  display: block;
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.erm-carousel .erm-carousel-track img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  max-height: 52svh;
}

.erm-carousel.is-portrait .erm-carousel-track img {
  aspect-ratio: 3 / 4;
  max-height: 62svh;
}

.erm-carousel-viewport {
  overflow: hidden;
  border-radius: var(--erm-radius);
}

.erm-carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.erm-carousel-track::-webkit-scrollbar {
  display: none;
}

.erm-carousel-slide {
  flex: 0 0 100%;
  margin: 0;
  scroll-snap-align: start;
}

.erm-carousel-slide a,
.erm-carousel-slide img {
  display: block;
  width: 100%;
}

.erm-carousel-slide img {
  aspect-ratio: 16 / 10;
  object-fit: cover;
  max-height: 52svh;
}

.erm-carousel.is-portrait .erm-carousel-slide img {
  aspect-ratio: 3 / 4;
  max-height: 62svh;
  object-fit: cover;
}

.erm-carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 40px;
  height: 40px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgb(103 159 154 / 0.92);
  color: #fff;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  transform: translateY(-50%);
}

.erm-carousel-btn.is-prev {
  left: 10px;
}

.erm-carousel-btn.is-next {
  right: 10px;
}

.erm-carousel-btn:hover,
.erm-carousel-btn:focus-visible {
  background: var(--erm-sage-hover);
}

.erm-band-formacion .erm-carousel {
  flex: 1 1 auto;
}

.erm-page .erm-split,
.erm-split.is-layout-constrained,
.erm-split.is-layout-flow {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 20px;
  align-items: center !important;
  min-height: 0;
  padding-top: 12px;
}

.erm-split-copy {
  max-width: 36rem;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  align-self: center;
}

.erm-split-photo {
  margin: 0;
  text-align: center;
  align-self: center;
}

.erm-split-photo img {
  display: block;
  width: auto;
  max-width: min(100%, 420px);
  max-height: min(52svh, 480px);
  height: auto;
  margin-inline: auto;
  object-fit: contain;
}

.erm-page .erm-courses,
.erm-courses.is-layout-constrained,
.erm-courses.is-layout-flow {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: stretch;
}

.erm-page .erm-course,
.erm-course.is-layout-constrained,
.erm-course.is-layout-flow {
  display: flex !important;
  flex-direction: column;
  border: 1px solid var(--erm-line);
  border-radius: var(--erm-radius);
  overflow: hidden;
  min-width: 0;
  height: 100%;
  padding: 12px 12px 16px;
  background: #fff;
}

.erm-course .wp-block-image {
  margin: 0 0 10px;
}

.erm-course img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  max-height: 280px;
  object-fit: cover;
  border-radius: 4px;
}

.erm-course h3 {
  margin: 0 0 12px;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.3;
  min-height: 2.6em;
  flex: 1 1 auto;
  text-transform: none;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

.erm-course .wp-block-buttons {
  margin-top: auto;
  width: 100%;
}

.erm-service-card {
  border: 1px solid var(--erm-line);
  border-radius: var(--erm-radius);
  overflow: hidden;
  height: 100%;
  padding: 0 0 12px;
  background: #fff;
}

.erm-service-card .wp-block-post-featured-image {
  margin: 0 0 10px;
}

.erm-service-card .wp-block-post-featured-image a,
.erm-service-card .wp-block-post-featured-image img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.erm-service-card .wp-block-post-title {
  margin: 0 12px 4px;
  font-size: 1.05rem;
  line-height: 1.3;
}

.erm-service-card .wp-block-post-excerpt {
  margin: 0 12px;
  font-size: 0.9rem;
  color: var(--erm-muted);
}

.wp-block-query .wp-block-post-template {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.wp-block-query .wp-block-post-template > li {
  list-style: none;
  margin: 0;
}

.erm-shop .wd-product img,
.erm-shop ul.products img {
  aspect-ratio: 1;
  object-fit: cover;
  width: 100%;
  max-height: 22svh;
}

@media (min-width: 640px) {
  .erm-page {
    --erm-space: 28px;
    padding-inline: 24px;
  }

  .erm-band-hero {
    margin-inline: -24px;
    width: calc(100% + 48px);
  }

  .erm-page .wp-block-columns {
    flex-direction: row;
  }

  .erm-page-title,
  .erm-section-title {
    font-size: 2.1rem;
  }

  .erm-hero.wp-block-cover {
    margin-inline: 0;
    width: 100%;
  }

  .erm-hero-title {
    font-size: 2.15rem;
  }

  .erm-page .wp-block-buttons {
    flex-direction: row;
    justify-content: center;
  }

  .erm-page .wp-block-button {
    width: auto;
  }

  .erm-page .wp-block-button .wp-block-button__link {
    width: auto;
    min-width: 180px;
  }

  .erm-services {
    grid-template-columns: 1fr 1fr;
  }

  .erm-page .erm-courses,
  .erm-courses.is-layout-constrained,
  .erm-courses.is-layout-flow {
    grid-template-columns: 1fr 1fr;
  }

  .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr 1fr;
  }

  .erm-gallery.wp-block-gallery.has-nested-images {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 900px) {
  .erm-page .erm-split,
  .erm-split.is-layout-constrained,
  .erm-split.is-layout-flow {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 32px;
    align-items: center;
  }

  .erm-gallery.wp-block-gallery.columns-3.has-nested-images {
    grid-template-columns: 1fr 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .erm-page {
    --erm-chrome: 96px;
  }

  .erm-band-hero {
    margin-inline: 0;
    width: 100%;
  }

  .erm-hero.wp-block-cover {
    min-height: 0 !important;
    margin-inline: 0;
    width: 100%;
  }

  .erm-hero-actions {
    flex-direction: row;
    justify-content: center;
    margin: 20px 0 8px;
  }

  .erm-hero-logo img {
    width: min(18vw, 180px);
  }

  .erm-hero-title {
    font-size: 2.6rem;
  }

  .erm-page-title,
  .erm-section-title {
    font-size: 2rem;
  }

  .erm-services,
  body.erm-snap .erm-services {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
  }

  .erm-page .erm-courses,
  .erm-courses.is-layout-constrained,
  .erm-courses.is-layout-flow {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .erm-shop .wd-products,
  .erm-shop ul.products,
  body.erm-snap .erm-shop .wd-products,
  body.erm-snap .erm-shop ul.products {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
  }

  .wp-block-query .wp-block-post-template {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .erm-gallery.wp-block-gallery.columns-3.has-nested-images {
    grid-template-columns: 1fr 1fr 1fr;
  }

  .erm-gallery.wp-block-gallery.columns-2.has-nested-images {
    grid-template-columns: 1fr 1fr;
  }
}

@media (hover: hover) {
  .erm-service:hover {
    transform: scale(1.01);
    transition: transform 0.2s ease;
  }
}
