/* Compact, consistent layouts for the master-class catalogue and products. */

body.og-brand-design .og-master-page {
  padding-top: 52px;
  padding-bottom: 88px;
}

body.og-brand-design .og-master-page .og-page-intro {
  max-width: 820px;
  margin-bottom: 44px;
}

body.og-brand-design .og-master-page .og-page-intro h1 {
  max-width: 760px;
  font-size: clamp(38px, 3.4vw, 48px);
  line-height: 1.06;
}

body.og-brand-design .og-master-page .og-page-intro > p:last-child {
  max-width: 720px;
  margin-top: 16px;
  font-size: 16px;
  line-height: 1.6;
}

body.og-brand-design .og-master-page .og-section-heading {
  margin-bottom: 26px;
}

body.og-brand-design .og-master-page .og-section-heading h2 {
  font-size: clamp(30px, 2.8vw, 38px);
  line-height: 1.1;
}

body.og-brand-design .og-master-catalog {
  padding-bottom: 0;
}

body.og-brand-design .og-master-catalog .og-product-grid {
  grid-template-columns: repeat(auto-fit, minmax(280px, 360px));
  gap: 28px;
  justify-content: start;
}

body.og-brand-design .og-master-catalog .og-product-card,
body.og-brand-design .og-master-catalog .og-product-media,
body.og-brand-design .og-master-catalog .og-product-info {
  width: 100%;
}

body.og-brand-design .og-master-standard.og-section {
  padding-top: 64px;
  padding-bottom: 56px;
}

body.og-brand-design .og-master-standard .og-process-grid article {
  min-height: 220px;
  padding-top: 28px;
  padding-bottom: 30px;
}

body.og-brand-design .og-master-standard .og-process-grid h3 {
  margin-top: 32px;
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.15;
}

body.term-master-klassy.og-brand-design .og-seo-suite.og-section {
  margin-top: 72px;
  margin-bottom: 72px;
  padding-top: 64px;
  padding-bottom: 64px;
}

body.term-master-klassy.og-brand-design .og-seo-suite h2 {
  font-size: clamp(30px, 2.8vw, 38px);
  line-height: 1.12;
}

body.term-master-klassy.og-brand-design .og-seo-suite h3,
body.term-master-klassy.og-brand-design .og-faq-list summary {
  font-size: 21px;
  line-height: 1.25;
}

body.og-masterclass-product .og-single-product {
  padding-top: 24px;
}

body.og-masterclass-product .og-product-breadcrumb {
  padding-top: 10px;
  padding-bottom: 26px;
}

body.og-masterclass-product .og-single-grid {
  grid-template-columns: minmax(0, .9fr) minmax(390px, 1fr);
  gap: clamp(38px, 5vw, 64px);
}

body.og-masterclass-product .og-gallery-stage,
body.og-masterclass-product .og-gallery-stage .og-single-image {
  height: auto;
  aspect-ratio: 3 / 4;
}

body.og-masterclass-product .og-gallery-stage .og-single-image picture,
body.og-masterclass-product .og-gallery-stage .og-single-image img {
  object-fit: contain;
}

body.og-masterclass-product .og-single-summary {
  top: 104px;
  padding-top: 4px;
}

body.og-brand-design.og-masterclass-product .og-single-summary h1 {
  max-width: 560px;
  font-size: clamp(32px, 3vw, 40px) !important;
  line-height: 1.08;
}

body.og-masterclass-product .og-single-price {
  margin-top: 14px;
  font-size: 23px;
}

body.og-masterclass-product .og-single-intro {
  margin-top: 14px;
  margin-bottom: 18px;
  font-size: 15px;
  line-height: 1.6;
}

body.og-masterclass-product .og-master-cart {
  display: block;
}

body.og-masterclass-product .og-master-cart .single_add_to_cart_button {
  width: 100%;
  min-height: 52px;
}

body.og-masterclass-product .og-product-question {
  margin-top: 12px;
}

body.og-masterclass-product .og-single-main .og-product-details {
  margin-top: 36px;
}

body.og-masterclass-product .og-product-details summary {
  padding-top: 17px;
  padding-bottom: 17px;
  font-size: 22px;
}

body.og-masterclass-product .og-detail-body h2 {
  font-size: 24px;
}

@media (max-width: 820px) {
  body.og-brand-design .og-master-page {
    padding-top: 36px;
    padding-bottom: 64px;
  }

  body.og-brand-design .og-master-page .og-page-intro {
    margin-bottom: 34px;
  }

  body.og-brand-design .og-master-page .og-page-intro h1 {
    font-size: 36px;
  }

  body.og-brand-design .og-master-catalog .og-product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px 18px;
  }

  body.og-brand-design .og-master-standard .og-process-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.og-brand-design .og-master-standard .og-process-grid article {
    min-height: 180px;
    padding: 24px 22px 26px 0;
  }

  body.og-brand-design .og-master-standard .og-process-grid article:nth-child(even) {
    padding-left: 22px;
    border-left: 1px solid var(--og-line);
  }

  body.og-brand-design .og-master-standard .og-process-grid article:nth-child(n + 3) {
    border-top: 1px solid var(--og-line);
  }

  body.og-masterclass-product .og-single-grid {
    display: flex;
    min-width: 0;
    flex-direction: column;
    grid-template-columns: none;
    gap: 28px;
  }

  body.og-masterclass-product .og-single-main {
    display: contents;
  }

  body.og-masterclass-product .og-single-summary {
    width: 100%;
    min-width: 0;
    order: 1;
  }

  body.og-masterclass-product .og-single-gallery {
    width: 100%;
    min-width: 0;
    order: 2;
  }

  body.og-masterclass-product .og-product-details {
    min-width: 0;
    margin-top: 12px;
    order: 3;
  }

  body.og-masterclass-product .og-gallery-stage,
  body.og-masterclass-product .og-gallery-stage .og-single-image {
    aspect-ratio: 3 / 4;
  }
}

@media (max-width: 560px) {
  body.og-brand-design .og-master-page .og-page-intro h1 {
    font-size: 32px;
    overflow-wrap: break-word;
  }

  body.og-brand-design .og-master-page .og-page-intro > p:last-child {
    font-size: 15px;
  }

  body.og-brand-design .og-master-catalog .og-product-grid,
  body.og-brand-design .og-master-standard .og-process-grid {
    grid-template-columns: 1fr;
  }

  body.og-brand-design .og-master-standard.og-section {
    padding-top: 52px;
    padding-bottom: 44px;
  }

  body.og-brand-design .og-master-standard .og-process-grid article,
  body.og-brand-design .og-master-standard .og-process-grid article:nth-child(even) {
    min-height: 0;
    padding: 22px 0 24px;
    border-left: 0;
    border-top: 1px solid var(--og-line);
  }

  body.og-brand-design .og-master-standard .og-process-grid article:first-child {
    border-top: 0;
  }

  body.og-brand-design .og-master-standard .og-process-grid h3 {
    margin-top: 18px;
  }

  body.term-master-klassy.og-brand-design .og-seo-suite.og-section {
    margin-top: 48px;
    margin-bottom: 48px;
    padding-top: 48px;
    padding-bottom: 48px;
  }

  body.og-brand-design.og-masterclass-product .og-single-summary h1 {
    font-size: 29px !important;
    overflow-wrap: anywhere;
  }

  body.og-masterclass-product .og-product-breadcrumb {
    padding-bottom: 18px;
  }
}
