/* Shared image styling (matches original custom.css behavior)
 *
 * Purpose:
 * - Keep image presentation consistent across themes
 * - Prevent theme CSS from accidentally changing image sizing/borders
 */

/* Project images */
.project-image {
  max-width: 1100px;
  /* keeps it from going full ultrawide */
  margin: 2rem auto;
  /* centers it */
  padding: 0 1rem;
  /* breathing room on mobile */
}

.project-image img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  /* optional, but very cyberpunk-polished */
  border: none;
  box-shadow: none;
}

/* Card thumbnails */
.card img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 180px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 102, 0.3);
  border-radius: 2px;
  box-shadow: 0 0 8px rgba(0, 255, 102, 0.2);
}

/* About page images */
.about-visual img {
  display: block;
  width: 100%;
  max-width: 280px;
  height: auto;
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 3px;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.22);
}

@media (max-width: 820px) {
  .about-visual img {
    max-width: 100%;
  }
}

/* Profile photo */
.profile-photo {
  width: 140px;
  height: 140px;
  border-radius: 999px;
  object-fit: cover;
  border: 1px solid rgba(0, 255, 102, 0.5);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.3);
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .profile-photo {
    width: 120px;
    height: 120px;
  }
}

/* Home hero image */
.hero-shot img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 255, 102, 0.35);
  border-radius: 2px;
  box-shadow: 0 0 10px rgba(0, 255, 102, 0.25);
}

.hero-shot--secondary img {
  box-shadow: 0 0 18px rgba(0, 255, 100, 0.12);
}

/* ========== IMAGE GALLERIES ========== */

/* Two-column image gallery for related images in posts/projects */
.image-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0;
  max-width: 1100px;
}

@media (max-width: 768px) {
  .image-gallery {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
}

/* Figure wrapper for images with captions */
.image-gallery figure {
  margin: 0;
  background: rgba(0, 255, 102, 0.03);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 4px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.image-gallery figure:hover {
  border-color: rgba(0, 255, 102, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.15);
}

.image-gallery img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.image-gallery figcaption {
  opacity: 0.8;
  font-size: 0.9em;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
  text-align: center;
}

/* ========== CONTENT IMAGES ========== */

/* Single images within post/project content */
.content-image {
  margin: 2rem auto;
  max-width: 900px;
  background: rgba(0, 255, 102, 0.03);
  border: 1px solid rgba(0, 255, 102, 0.25);
  border-radius: 4px;
  padding: 0.5rem;
  transition: all 0.3s ease;
}

.content-image:hover {
  border-color: rgba(0, 255, 102, 0.4);
  box-shadow: 0 0 12px rgba(0, 255, 102, 0.15);
}

.content-image img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 2px;
}

.content-image figcaption {
  opacity: 0.8;
  font-size: 0.9em;
  margin-top: 0.5rem;
  padding: 0 0.25rem;
  text-align: center;
}

/* Wide content images for diagrams and schematics */
.content-image--wide {
  max-width: 1100px;
}

/* Compact content images for smaller screenshots */
.content-image--compact {
  max-width: 600px;
}