/* Global image sizing fixes for picture elements with higher specificity */
.article-hero picture img,
.article-hero[data-astro-cid-4dqtj3le] picture img {
    width: 100% !important;
    height: 400px !important;
    object-fit: cover !important;
    border-radius: 0.5rem;
}

/* Fix for gradient text visibility issues */
.gradient-text {
    color: #8b5cf6 !important;
    font-weight: 700 !important;
    background: none !important;
    -webkit-text-fill-color: unset !important;
    -webkit-background-clip: unset !important;
}

.post-image picture img,
.post-image[data-astro-cid-j7pv25f6] picture img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

.related-image picture img,
.related-image[data-astro-cid-j7pv25f6] picture img {
    width: 100% !important;
    height: 150px !important;
    object-fit: cover !important;
    transition: transform 0.3s ease;
}

.article-image picture img {
    width: 100% !important;
    height: 200px !important;
    object-fit: cover !important;
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    .article-hero picture img {
        height: 250px;
    }
    
    .related-image picture img {
        height: 120px;
    }
}

/* Enhanced mobile UI improvements */
@media (max-width: 768px) {
  body {
    font-size: 1.05rem;
    padding: 0 0.5rem;
  }
  h1, .hero-title, .section-title {
    font-size: 2rem !important;
    line-height: 1.25 !important;
    margin-bottom: 1rem !important;
  }
  h2, h3 {
    font-size: 1.2rem !important;
    margin-bottom: 0.75rem !important;
  }
  .btn, button, .btn-primary, .btn-secondary {
    font-size: 1rem !important;
    padding: 1rem 1.5rem !important;
    min-width: 44px;
    min-height: 44px;
  }
  .container {
    padding: 0 0.25rem !important;
  }
  img, picture img {
    max-width: 100vw !important;
    height: auto !important;
    border-radius: 0.5rem !important;
  }
  .post-image picture img, .article-image picture img {
    height: 160px !important;
  }
  .footer, .header {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }
  nav, .nav {
    flex-direction: column !important;
    gap: 0.5rem !important;
    align-items: flex-start !important;
  }
  .hero-actions {
    flex-direction: column !important;
    gap: 0.75rem !important;
    align-items: stretch !important;
  }
}