/* Image styling for the static site */

/* Basic responsive image */
.post-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 1.5rem 0;
}

/* Image with caption */
.image-with-caption {
  margin: 2rem 0;
}

.image-with-caption img {
  margin: 0;
}

.image-caption {
  font-size: 0.9rem;
  color: #666;
  text-align: center;
  padding: 0.5rem 0;
  font-style: italic;
}

/* Thumbnail styles */
.thumbnail {
  max-width: 300px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

.thumbnail-small {
  max-width: 150px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Float styles */
.float-left {
  float: left;
  margin-right: 1.5rem;
  margin-bottom: 1rem;
}

.float-right {
  float: right;
  margin-left: 1.5rem;
  margin-bottom: 1rem;
}

/* Clear floats */
.clearfix::after {
  content: "";
  clear: both;
  display: table;
}

/* Image gallery */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-gap: 1rem;
  margin: 2rem 0;
}

.image-gallery img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

/* Media queries for responsive behavior */
@media (max-width: 768px) {
  .float-left, .float-right {
    float: none;
    margin: 1rem 0;
    max-width: 100%;
  }
  
  .thumbnail, .thumbnail-small {
    max-width: 100%;
    margin-right: 0;
  }
}
