/* Iron Elite — Field Evidence image wall (isolated, ie-gallery-* only) */

#ie-gallery-mount {
  width: 100%;
}

/* Beat scroll-reveal — wall must stay visible */
.field-evidence #ie-gallery-mount,
.field-evidence #ie-gallery-mount .ie-gallery-wall,
.field-evidence #ie-gallery-mount .ie-gallery-wall * {
  opacity: 1 !important;
  visibility: visible !important;
  filter: none !important;
}

.ie-gallery-wall {
  margin-top: 48px;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 26px;
  align-items: stretch;
}

.ie-gallery-feature,
.ie-gallery-thumb {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  margin: 0;
  padding: 0;
  transition:
    border-color 0.35s ease,
    box-shadow 0.35s ease;
}

.ie-gallery-thumb {
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.ie-gallery-feature,
.ie-gallery-thumb {
  background: radial-gradient(circle at center, rgba(20, 25, 35, 0.95), rgba(5, 8, 12, 1));
}

.ie-gallery-card--logo {
  background: radial-gradient(circle at center, rgba(18, 26, 38, 0.95), rgba(3, 6, 10, 1));
}

.ie-gallery-visual {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.ie-gallery-image--logo {
  object-fit: contain !important;
  object-position: center center !important;
  padding: clamp(14px, 3vw, 28px) !important;
}

.ie-gallery-thumb .ie-gallery-image--logo {
  padding: 10px !important;
}

.ie-gallery-feature {
  aspect-ratio: 1 / 1.18;
  border: 1px solid rgba(82, 160, 220, 0.35);
  display: block;
  width: 100%;
}

.ie-gallery-thumbs {
  display: grid;
  grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
  height: 100%;
}

.ie-gallery-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 24px;
  min-height: 0;
  height: 100%;
  align-items: stretch;
}

.ie-gallery-thumb {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(82, 160, 220, 0.25);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  font: inherit;
  color: inherit;
  text-align: left;
}

.ie-gallery-feature::before,
.ie-gallery-thumb::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.72) 0%, rgba(0, 0, 0, 0.2) 42%, transparent 68%);
  opacity: 0.88;
  transition: opacity 0.35s ease;
}

.ie-gallery-feature:hover {
  border-color: rgba(125, 190, 245, 0.55);
  box-shadow: 0 0 28px rgba(59, 130, 246, 0.18);
}

.ie-gallery-thumb:hover {
  border-color: rgba(125, 190, 245, 0.45);
  box-shadow: 0 0 18px rgba(59, 130, 246, 0.12);
}

.ie-gallery-feature:hover::before,
.ie-gallery-thumb:hover::before {
  opacity: 1;
}

.ie-gallery-image,
.ie-gallery-wall img,
.ie-gallery-thumb > img,
.ie-gallery-visual > img {
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center center;
  opacity: 1 !important;
  visibility: visible !important;
  z-index: 1 !important;
  box-sizing: border-box;
  transition: transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.home-flow--compact #ie-gallery-mount .ie-gallery-feature:hover img:not(.ie-gallery-image--logo) {
  transform: scale(1.02) !important;
}

.ie-gallery-thumb:hover img {
  transform: none !important;
}

.ie-gallery-caption {
  position: absolute !important;
  left: 16px;
  right: 16px;
  bottom: 14px;
  z-index: 3;
  margin: 0;
  font-family: "Barlow Condensed", sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  line-height: 1.25;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.85);
  pointer-events: none;
  transition: color 0.35s ease, text-shadow 0.35s ease;
}

.ie-gallery-feature:hover .ie-gallery-caption,
.ie-gallery-thumb:hover .ie-gallery-caption {
  color: #fff;
  text-shadow: 0 1px 12px rgba(0, 0, 0, 0.95);
}

@media (max-width: 1024px) {
  .ie-gallery-wall {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ie-gallery-feature {
    aspect-ratio: 1 / 1.18;
    min-height: clamp(280px, 52vw, 420px);
  }

  .ie-gallery-thumbs {
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
    min-height: clamp(320px, 48vw, 440px);
  }

  .ie-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    min-height: 0;
  }

  .ie-gallery-thumb {
    min-height: clamp(112px, 26vw, 156px);
  }
}

@media (max-width: 520px) {
  .ie-gallery-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .ie-gallery-thumb {
    min-height: clamp(100px, 30vw, 132px);
  }

  .ie-gallery-caption {
    font-size: 10px;
    left: 12px;
    right: 12px;
    bottom: 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ie-gallery-feature,
  .ie-gallery-thumb,
  .ie-gallery-wall img {
    transition: none;
  }

  .ie-gallery-feature:hover,
  .ie-gallery-thumb:hover {
    box-shadow: none;
  }

  .ie-gallery-feature:hover img {
    transform: none !important;
  }
}
