/* ==========================================================================
   Featured Image Standardization for Hugo Mainroad Theme
   ========================================================================== */

/* Post List - Thumbnail Images (on homepage/category pages) */
.post__thumbnail img {
  width: 100%;
  height: 200px; /* Adjust this value to make smaller/larger */
  object-fit: cover; /* Crops image to fill space without distortion */
  object-position: center; /* Centers the image */
}

/* Single Post - Featured Image at top of post */
.post__thumbnail--single img {
  width: 100%;
  max-height: 400px; /* Adjust this value for single post pages */
  object-fit: cover;
  object-position: center;
}

/* Optional: Make all post thumbnails even smaller on mobile */
@media screen and (max-width: 768px) {
  .post__thumbnail img {
    height: 150px;
  }
  
  .post__thumbnail--single img {
    max-height: 300px;
  }
}

/* Optional: Add subtle border/shadow to images */
.post__thumbnail img {
  border-radius: 4px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

/* Gallery Images - if you want to control those too */
.gallery img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  object-position: center;
  border-radius: 4px;
  margin-bottom: 1rem;
}

/* Make sure content images (in blog posts) aren't affected */
.post__content img:not(.post__thumbnail img) {
  width: 100%;
  height: auto !important;
  max-height: none !important;
  object-fit: contain;
}