/* v7.5 — one consistent image panel for all four DRYVE feature cards.
   Presentation only: original phone screenshots and image files are unchanged. */

/* Equal frame, shared background, padding and glow. */
.features .feature-grid > .feature .feature-media {
  box-sizing: border-box;
  width: min(100%, 260px);
  max-width: 260px;
  aspect-ratio: 4 / 5;
  height: auto;
  min-height: 0;
  min-width: 0;
  justify-self: center;
  margin-inline: auto;
  padding: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: 22px;
  border: 1px solid rgba(99, 217, 200, .19);
  background:
    radial-gradient(ellipse 90% 78% at 52% 49%, rgba(27, 139, 124, .19), rgba(9, 42, 42, .22) 50%, transparent 78%),
    linear-gradient(145deg, #0b2a2a 0%, #0b2426 56%, #092023 100%);
  box-shadow: inset 0 1px 0 rgba(136, 231, 216, .06), 0 16px 38px rgba(0, 0, 0, .11);
}

/* Replace old per-card halo with the exact same glow in every media frame. */
.features .feature-grid > .feature .feature-media::before {
  content: "";
  display: block;
  position: absolute;
  inset: 12%;
  width: auto;
  height: auto;
  left: 12%;
  top: 12%;
  border-radius: 50%;
  z-index: -1;
  background: rgba(56, 205, 187, .18);
  filter: blur(34px);
  pointer-events: none;
}

/* Phones remain uncropped, unretouched, and at natural proportions. */
.features .feature-grid > .feature .feature-media img {
  display: block;
  position: relative;
  flex: 0 1 auto;
  box-sizing: border-box;
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: 100%;
  min-width: 0;
  object-fit: contain;
  object-position: center center;
  border: 0;
  border-radius: 0 !important;
  background: transparent;
  box-shadow: none !important;
  filter: none;
  transform: none;
  -webkit-mask-image: none;
  mask-image: none;
}

/* Outer framing stays uniform. No card-specific image treatments. */
.features .feature-grid > .feature .feature-media::after {
  content: "";
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(104, 220, 200, .035);
  pointer-events: none;
}

@media (max-width: 900px) {
  .features .feature-grid > .feature .feature-media {
    width: min(100%, 250px);
    max-width: 250px;
  }
}
@media (max-width: 580px) {
  .features .feature-grid > .feature .feature-media {
    width: min(100%, 270px);
    max-width: 270px;
    padding: 13px;
    border-radius: 20px;
  }
}
@media (max-width: 350px) {
  .features .feature-grid > .feature .feature-media {
    width: min(100%, 230px);
    max-width: 230px;
    padding: 10px;
  }
}
