/* Mobile usability enhancements, scoped to inner content pages. */
/* Consistent two-column photo galleries across ByKris service pages. */
@media (max-width: 767px) {
  body.page-id-902 .bykris-russian-gallery, body.page-id-979 .bykris-french-gallery,
  body.page-id-1020 .bykris-design-gallery,
  body.page-id-902 .bykris-gallery, body.page-id-1043 .bykris-gallery,
  body.page-id-939 .bykris-gallery, body.page-id-940 .bykris-gallery,
  body.page-id-981 .bykris-gallery, body.page-id-979 .bykris-gallery,
  body.page-id-917 .bykris-combo-gallery, body.page-id-1020 .bykris-gallery,
  body.page-id-916 .bykris-pedicure-gallery,
  body.page-id-902 .wp-block-gallery, body.page-id-1043 .wp-block-gallery,
  body.page-id-939 .wp-block-gallery, body.page-id-940 .wp-block-gallery,
  body.page-id-981 .wp-block-gallery, body.page-id-979 .wp-block-gallery,
  body.page-id-917 .wp-block-gallery, body.page-id-1020 .wp-block-gallery {
    display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;
    gap:10px!important;align-items:start!important;
  }
  body.page-id-902 .bykris-russian-gallery figure,
  body.page-id-979 .bykris-french-gallery figure,
  body.page-id-1020 .bykris-design-gallery figure,
  body.page-id-917 .bykris-combo-gallery figure,
  body.page-id-916 .bykris-pedicure-gallery figure,
  body.page-id-902 .wp-block-gallery figure, body.page-id-1043 .wp-block-gallery figure,
  body.page-id-939 .wp-block-gallery figure, body.page-id-940 .wp-block-gallery figure,
  body.page-id-981 .wp-block-gallery figure, body.page-id-979 .wp-block-gallery figure,
  body.page-id-917 .wp-block-gallery figure, body.page-id-1020 .wp-block-gallery figure {
    min-width:0!important;width:100%!important;margin:0!important;
  }
  body.page-id-902 .bykris-russian-gallery img,
  body.page-id-979 .bykris-french-gallery img,
  body.page-id-1020 .bykris-design-gallery img,
  body.page-id-917 .bykris-combo-gallery img,
  body.page-id-916 .bykris-pedicure-gallery img,
  body.page-id-902 .wp-block-gallery img, body.page-id-1043 .wp-block-gallery img,
  body.page-id-939 .wp-block-gallery img, body.page-id-940 .wp-block-gallery img,
  body.page-id-981 .wp-block-gallery img, body.page-id-979 .wp-block-gallery img,
  body.page-id-917 .wp-block-gallery img, body.page-id-1020 .wp-block-gallery img {
    display:block!important;width:100%!important;height:auto!important;
    aspect-ratio:3/4!important;object-fit:cover!important;border-radius:8px!important;
  }
}
@media (max-width:359px) {
  body.page-id-917 .bykris-combo-gallery, body.page-id-916 .bykris-pedicure-gallery {grid-template-columns:1fr!important;}
}

/* Preserve the full composition of featured photos in Nail Care Guides. */
body.single-post .single-blog img.bykris-blog-featured-uncropped {
  display: block !important;
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  object-fit: contain !important;
  margin-left: auto;
  margin-right: auto;
}

/* Blog return link: align with the ByKris palette and avoid oversized pills. */
body.single-post .single-blog .item-footer a.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  padding: 12px 22px;
  border-radius: 28px;
  background: #a73d7b;
  color: #fff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  white-space: normal;
  text-align: center;
}
body.single-post .single-blog .item-footer a.back-link:hover,
body.single-post .single-blog .item-footer a.back-link:focus-visible {
  background: #873264;
  color: #fff;
}
body.single-post .single-blog .item-footer a.back-link:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}
@media (max-width: 767px) {
  body.single-post .single-blog .item-footer a.back-link { width: 100%; }
}
@media (max-width: 767px) {
  body:not(.home) .default-page.text-content a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
  body:not(.home) .default-page.text-content a.btn,
  body:not(.home) .default-page.text-content a.button,
  body:not(.home) .default-page.text-content a[class*="book"] { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
  body:not(.home) .default-page.text-content p { overflow-wrap: break-word; }
}
