/* Frame the original box without the old specification panel in its top-left corner. */
.film-box-art img,
.protection-hero .ph-art--box img {
  -webkit-mask-image: linear-gradient(90deg, transparent 35%, #000 39%), linear-gradient(180deg, transparent 30%, #000 35%);
  mask-image: linear-gradient(90deg, transparent 35%, #000 39%), linear-gradient(180deg, transparent 30%, #000 35%);
}

.film-box-art {
  display: block;
  line-height: 0;
  background: #1c1e20;
}

.film-box-art img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
}

:is(.product-media, .market-product-media, .home-ppf-product__media):has(> .film-box-art) {
  background: #1c1e20;
}

:is(.product-media, .market-product-media, .home-ppf-product__media) > .film-box-art {
  display: grid;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-items: center;
  overflow: hidden;
}

body.integra-public :is(.product-media, .market-product-media, .home-ppf-product__media) > .film-box-art img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  object-fit: contain !important;
  transform: none !important;
}

.home-ppf-table-product .film-box-art {
  flex: 0 0 96px;
  width: 96px;
  border: 1px solid #3d372d;
  border-radius: 4px;
  overflow: hidden;
}

.home-ppf-table-product .film-box-art img {
  width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  object-fit: contain;
}

.home-ppf-recovery__products .film-box-art { flex: 0 0 46px; width: 46px; }
.home-ppf-recovery__products a .film-box-art img { width: 100%; height: auto; border: 0; object-fit: contain; }

.protection-hero .ph-art.ph-art--box {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  background: #050505;
}

.protection-hero .ph-art.ph-art--box img {
  position: static;
  width: min(60%, 820px);
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

@media (min-width: 1000px) {
  .protection-hero .ph-art.ph-art--box {
    -webkit-mask-image: linear-gradient(90deg, transparent 34%, #000 52%, #000 96%, transparent);
    mask-image: linear-gradient(90deg, transparent 34%, #000 52%, #000 96%, transparent);
  }
}

@media (max-width: 999px) {
  .protection-hero .ph-properties {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: minmax(0, 1fr);
  }
  .protection-hero .ph-art.ph-art--box { justify-content: center; overflow: hidden; }
  .protection-hero .ph-art.ph-art--box img { width: 92%; }
}

@media (max-width: 760px) {
  .protection-hero .ph-art.ph-art--box img { transform: translateY(-2%); }
  .home-ppf-table-product .film-box-art { flex-basis: 74px; width: 74px; }
}
