/* media.css */

/* Base media element */
.media-img,
.media-video {
  width: 100%;
  height: 100%;
  display: block;
}

/* Shared media wrapper base */
.content-body .media-full,
.content-body .media-half {
  width: 100%;
  min-height: 0;
  position: relative;
  overflow: hidden;
  justify-self: stretch;
}

/* =========================
   HALF MEDIA
   Framed, soft, child-friendly
   ========================= */
.content-body .media-half {
  height: 100%;
  border-radius: 14px;
  border: 1px solid rgba(215, 211, 255, 0.9);
  box-shadow: 0 14px 30px rgba(20, 35, 90, 0.1);
  background: rgba(255, 255, 255, 0.92);
}

.content-body .media-half > img,
.content-body .media-half > video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Top/bottom soft blend only for half media */
.media-half::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 56px;
  pointer-events: none;
  opacity: 0.92;
}

.media-top.media-half::after {
  bottom: 0;
  background: linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92)
  );
}

.media-bottom.media-half::after {
  top: 0;
  background: linear-gradient(
    to top,
    rgba(255, 255, 255, 0),
    rgba(255, 255, 255, 0.92)
  );
}

/* Bottom half media stays pinned nicely */
.content-body.body-bottom .media-bottom.media-half {
  align-self: end;
  justify-self: stretch;
  height: 100%;
  min-height: 0;
}

.content-body.body-bottom .media-bottom.media-half > img,
.content-body.body-bottom .media-bottom.media-half > video {
  object-position: bottom center;
}

/* =========================
   FULL MEDIA
   Edge-to-edge, no frame, no gap
   ========================= */
.content-body .media-full {
  height: 100%;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.content-body .media-full > img,
.content-body .media-full > video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: transparent;
}

/* No blend overlay on full media */
.media-full::after {
  content: none;
}

.content-body .media-full {
  height: 100%;
  min-height: 0;
  align-self: stretch;
  justify-self: stretch;
  border-radius: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.content-body .media-full > img,
.content-body .media-full > video {
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  background: transparent;
}
