/* Mobile Performance Optimizations - Child Theme */

/* Ensure icons display at small sizes (91x91) instead of full 512x512 */
.wp-image-8872,
.wp-image-8873 {
  max-width: 91px !important;
  height: auto !important;
  width: 91px !important;
}

/* LCP image: ensure responsive and no layout shift */
.wp-image-9208 {
  max-width: 100% !important;
  height: auto !important;
  display: block;
}

/* Reduce CLS: set aspect ratio for images */
img[width][height] {
  aspect-ratio: attr(width) / attr(height);
}

/* Prefer WebP if available and system supports it */
@supports (image-rendering: crisp-edges) {
  img[srcset*=".webp"] {
    content: "";
  }
}

/* Optimize font loading to prevent invisible text during load */
@font-face {
  font-display: swap;
}

/* Improve mobile spacing for touch targets */
@media (max-width: 768px) {
  a {
    min-height: 48px;
    min-width: 48px;
    display: inline-block;
  }
}
