/* =============================
   IMAGES - Base Styles
   ============================= */

picture {
  display: block;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* =============================
   IMAGE UTILITY CLASSES
   ============================= */

.img-rounded {
  border-radius: var(--radius-lg);
}

.img-rounded-sm {
  border-radius: var(--radius-sm);
}

.img-rounded-md {
  border-radius: var(--radius-md);
}

.img-shadow {
  box-shadow: var(--shadow-lg);
}

.img-shadow-sm {
  box-shadow: var(--shadow-sm);
}

.img-shadow-md {
  box-shadow: var(--shadow-md);
}

.img-cover {
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.img-contain {
  object-fit: contain;
}

.img-center {
  margin-left: auto;
  margin-right: auto;
}

/* =============================
   HERO IMAGE
   ============================= */

.hero-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-image picture {
  width: 100%;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.hero-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  display: block;
}

/* =============================
   SPLIT LAYOUT IMAGES
   ============================= */

.split-image {
  display: flex;
  align-items: center;
  justify-content: center;
}

.split-image picture,
.split-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.split-image picture img {
  border-radius: 0;
  box-shadow: none;
}

/* =============================
   PROGRAM DETAIL IMAGES
   ============================= */

.program-detail-image {
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.program-detail-image picture,
.program-detail-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.program-detail-image picture img {
  border-radius: 0;
  box-shadow: none;
}

/* Aspect ratio container for consistent image sizing */
.program-detail-image picture,
.program-detail-image > img {
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

/* =============================
   ABOUT PAGE IMAGES
   ============================= */

.about-location .split-image picture,
.about-location .split-image img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

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

.content-image {
  margin: var(--space-md) auto;
  max-width: 600px;
}

.content-image img {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* =============================
   RESPONSIVE ADJUSTMENTS
   ============================= */

@media (max-width: 768px) {
  .hero-image picture,
  .hero-image img,
  .split-image picture,
  .split-image img,
  .program-detail-image picture,
  .program-detail-image img {
    border-radius: var(--radius-md);
  }
}
