/* Mobile page layouts only. Keep the existing desktop art direction intact. */
@media (max-width: 820px) {
  /* WooCommerce inserts this paragraph directly before the site wrapper.
     Keep its native hidden/dismissed state; only remove the fixed overlay. */
  body > .woocommerce-store-notice.demo_store {
    position: static !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-height: 0 !important;
    height: auto !important;
    box-sizing: border-box;
    margin: 0 !important;
    padding: 10px 16px !important;
    transform: none !important;
    background: var(--cky-guard-background, #4b1626) !important;
    color: var(--cky-guard-text, #fff7ed) !important;
    font-size: 13px !important;
    line-height: 1.5 !important;
    text-align: left !important;
    overflow-wrap: anywhere;
    box-shadow: none !important;
  }
  body > .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link {
    position: static !important;
    inset: auto !important;
    display: inline-flex !important;
    align-items: center;
    min-height: 36px;
    width: auto !important;
    min-width: 72px;
    max-width: 100%;
    margin: 2px 0 0 8px !important;
    padding: 6px 10px !important;
    float: none !important;
    transform: none !important;
    color: var(--cky-guard-link, #e7d2a8) !important;
    font-size: 13px !important;
    line-height: 1.3 !important;
    white-space: nowrap;
    text-decoration: underline;
    text-underline-offset: 3px;
  }
  body > .woocommerce-store-notice.demo_store .woocommerce-store-notice__dismiss-link::after {
    display: none;
  }
  /* An auto minimum on a one-column grid can grow to its longest child. */
  .cky-exp .cky-exp-hero__grid,
  .cky-exp .cky-exp-service__grid,
  .cky-exp .cky-exp-service.is-reverse .cky-exp-service__grid,
  .cky-exp .cky-exp-faq__grid,
  .cky-exp .cky-exp-form-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .cky-exp .cky-exp-shell,
  .cky-exp .cky-exp-hero__grid > *,
  .cky-exp .cky-exp-service__grid > *,
  .cky-exp .cky-exp-faq__grid > *,
  .cky-exp .cky-exp-form-layout > *,
  .cky-exp .cky-exp-service__details > * {
    min-width: 0;
  }
  .cky-exp .cky-exp-hero {
    padding-block: 42px 48px;
  }
  .cky-exp .cky-exp-hero h1 {
    max-width: 100%;
    font-size: clamp(36px, 10.5vw, 64px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }
  .cky-exp .cky-exp-hero__lead {
    max-width: 100%;
    font-size: clamp(16px, 2.4vw, 18px) !important;
    line-height: 1.65 !important;
    overflow-wrap: anywhere;
  }
  .cky-exp .cky-exp-eyebrow {
    overflow-wrap: anywhere;
  }
  .cky-exp .cky-exp-eyebrow::before {
    flex: 0 0 24px;
  }
  .cky-exp .cky-exp-btn {
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal !important;
    overflow-wrap: anywhere;
    text-align: center;
    line-height: 1.45 !important;
  }
  .cky-exp .cky-exp-hero__notes li {
    min-width: 0;
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .cky-exp .cky-exp-hero__visual {
    min-height: 0;
    padding: 0;
    width: 100%;
    max-width: 460px;
    margin-inline: auto;
  }
  .cky-exp .cky-exp-hero__visual .cky-exp-image-frame {
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    margin: 0;
  }
  .cky-exp .cky-exp-hero__note {
    position: relative;
    inset: auto;
    width: 100%;
    margin-top: 20px;
  }
  /* WebP rewriting adds picture wrappers. Give them the frame's dimensions;
     image settings remain inherited, with zoom applied once to the image. */
  .cky-exp .cky-exp-image-frame > picture,
  .cky-exp .cky-exp-need-card__media > picture,
  .cky-exp .cky-exp-report-image > picture {
    display: block;
    width: 100%;
    height: 100%;
    transform: none !important;
  }
  .cky-exp .cky-exp-hero__visual .cky-exp-image-frame > picture {
    position: absolute;
    inset: 0;
  }
  .cky-exp .cky-exp-section-head h2,
  .cky-exp .cky-exp-service h2,
  .cky-exp .cky-exp-final h2 {
    font-size: clamp(30px, 8.5vw, 46px) !important;
    line-height: 1.12 !important;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 760px) {
  .cky-page .cky-grid > *,
  .cky-page .cky-gallery > *,
  .cky-home .cky-home-hero-grid > *,
  .cky-home .cky-home-section-head > *,
  .cky-home .cky-home-journal-grid > * {
    min-width: 0;
  }
  .cky-page .cky-button,
  .cky-home .cky-home-btn {
    min-width: 0;
    max-width: 100%;
    height: auto;
    white-space: normal !important;
    overflow-wrap: anywhere;
    line-height: 1.45 !important;
  }
  .cky-home .cky-home-btn {
    padding-block: 14px !important;
  }
  .cky-page .cky-hero-media > picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .cky-page .cky-portrait > picture,
  .cky-page .cky-gallery picture {
    display: block;
    width: 100%;
    max-width: 100%;
  }
  .cky-home .cky-home-hero-grid,
  .cky-home .cky-home-actions,
  .cky-home .cky-home-journal-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .cky-home .cky-home-hero h1 {
    font-size: clamp(36px, 10.5vw, 50px) !important;
    line-height: 1.08 !important;
    overflow-wrap: anywhere;
  }
  .cky-home .cky-home-hero-text {
    max-width: 100%;
    overflow-wrap: anywhere;
  }
  .cky-home .cky-home-hero-media {
    max-width: 100%;
  }
  .cky-home .cky-home-hero-media > picture,
  .cky-home .cky-home-bespoke-photo > picture,
  .cky-home .cky-home-service-photo > picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .cky-home .cky-home-hero-media > picture.cky-home-hero-gem {
    transform: none !important;
  }
  /* Event artwork already contains lettering. Keep the article title on its
     own opaque panel instead of layering a second title over the poster. */
  .cky-home .cky-home-article-card,
  .cky-home .cky-home-article-card:first-child {
    display: flex;
    flex-direction: column;
    min-height: 0;
    height: auto;
  }
  .cky-home .cky-home-article-card::after {
    display: none;
  }
  .cky-home .cky-home-article-card > picture {
    display: block;
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: var(--cky-home-cream-2, #f1e7d8);
  }
  .cky-home .cky-home-article-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
  }
  .cky-home .cky-home-article-card > img {
    position: relative;
    height: auto;
    aspect-ratio: 4 / 3;
  }
  .cky-home .cky-home-article-card > div {
    position: relative;
    inset: auto;
    padding: 22px;
    background: var(--cky-home-burgundy, #682238);
    color: #fff7ed;
  }
  .cky-home .cky-home-article-card h3,
  .cky-home .cky-home-article-card:first-child h3 {
    font-size: clamp(25px, 7.3vw, 32px) !important;
    line-height: 1.16 !important;
    color: #fff7ed !important;
    overflow-wrap: anywhere;
  }
  .cky-home .cky-home-article-card small {
    color: #e5d0a5;
  }
  .cky-home .cky-home-article-card > div > span {
    color: #fff7ed;
  }
}
