/* SHAREsim environments gallery. The model and teaching views use separate artwork. */
.env-card > .photo[data-gallery-card-image] {
  position: relative;
  overflow: hidden;
  background: #eaf0f6;
}

.catalogue-grid .env-card > .photo[data-gallery-card-image] {
  aspect-ratio: 16 / 9;
  height: auto;
  flex: none;
}

.catalogue-grid .env-card > .photo[data-gallery-card-image] > img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: cover;
}

.catalogue-grid .env-card > .photo[data-gallery-card-image="onshore-wind-turbine"] > img {
  object-position: center 20%;
}

.env-card > .photo[data-gallery-brand="overlay"]::after {
  content: "";
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: clamp(26px, 8%, 38px);
  aspect-ratio: 1;
  background: url("sim-hero-jigsaw.svg") center / contain no-repeat;
  opacity: .5;
  pointer-events: none;
}

.refinery-feature > .photo[data-gallery-brand="baked"]::after {
  content: none;
}

.refinery-feature > .photo[data-gallery-brand="baked"] > img {
  object-position: right bottom;
}

@media (min-width: 800px) {
  .catalogue-grid > .env-card:only-child:has(> .photo[data-gallery-card-image]) {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  }

  .catalogue-grid > .env-card:only-child > .photo[data-gallery-card-image] {
    min-height: 100%;
  }
}
