/* Keep each feature row aligned; make the card front the main visual. */
#brandcraft-home .gift-card-preview.gift-card-pair-preview {
  height: 250px;
  flex-basis: 250px;
}
#brandcraft-home .gift-card-pair-display {
  display: grid;
  grid-template-columns: minmax(0,1.5fr) minmax(0,1fr);
  grid-template-rows: minmax(0,1fr);
  gap: 16px;
  align-items: end;
  height: 100%;
  padding: 16px 18px;
}
#brandcraft-home .gift-card-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 0;
  margin: 0;
}
#brandcraft-home .gift-card-face-front { width: 100%; max-width: 300px; justify-self: end; }
#brandcraft-home .gift-card-face-back { width: 100%; max-width: 200px; justify-self: start; }
#brandcraft-home .gift-card-face > img {
  display: block;
  position: static;
  width: 100%;
  height: auto;
  max-width: none;
  max-height: 180px;
  padding: 0;
  object-fit: contain;
  transform: none;
  box-shadow: 0 5px 12px rgba(16,47,56,.10);
}
#brandcraft-home .gift-card-face figcaption {
  color: var(--deep);
  font: 650 18px/1.5 var(--sans);
  text-align: center;
}
/* A closer view of the existing catalog photos, with their original logos. */
#brandcraft-home .gift-merch-preview > img {
  padding: 0;
  transform: scale(1.22);
  transform-origin: 50% 52%;
}
#brandcraft-home .gift-merch-preview > img[src$="patricia-company-tee.jpg"] {
  transform: scale(1.32);
  transform-origin: 50% 42%;
}
@media(max-width:800px) {
  #brandcraft-home .gift-card-preview.gift-card-pair-preview {
    height: 260px;
    flex-basis: 260px;
  }
  #brandcraft-home .gift-card-face > img { max-height: 190px; }
}
@media(max-width:600px) {
  #brandcraft-home .gift-card-preview.gift-card-pair-preview {
    height: auto;
    flex-basis: auto;
  }
  #brandcraft-home .gift-card-pair-display {
    grid-template-columns: minmax(0,1fr);
    grid-template-rows: auto auto;
    justify-items: center;
    gap: 18px;
    height: auto;
    padding: 22px;
  }
  #brandcraft-home .gift-card-face-front { width: 100%; max-width: 340px; justify-self: center; }
  #brandcraft-home .gift-card-face-back { width: 68%; max-width: 230px; justify-self: center; }
  #brandcraft-home .gift-card-face > img { max-height: none; }
}

/* Fill the browser frame with the actual company page. */
#brandcraft-home .gift-website-preview { padding: 8px; }
#brandcraft-home .gift-website-preview .gift-browser-bar { flex: 0 0 36px; }
#brandcraft-home .gift-website-preview svg { flex: 1 1 0; min-height: 0; height: 0; width: 100%; }
/* Give the printed story and carton a shared center and similar height. */
#brandcraft-home #companies .company-package-stage {
  --company-image-height: 550px;
  display: grid;
  grid-template-columns: minmax(0,.9fr) minmax(0,1.1fr);
  align-items: center;
  justify-items: center;
  gap: 14px;
  padding: 28px;
}
#brandcraft-home #companies .company-story-surface { width: 100%; max-width: none; margin: 0; }
#brandcraft-home #companies .company-story-surface img { width: 100%; height: var(--company-image-height); object-fit: contain; padding: 0; }
#brandcraft-home #companies .company-front-companion {
  position: static;
  width: 100%;
  height: calc(var(--company-image-height) + 51px);
  max-width: none;
  padding: 0;
  object-fit: contain;
  object-position: center;
  transform: none;
}
@media(max-width:900px) {
  #brandcraft-home #companies .company-package-stage { --company-image-height: 510px; min-height: 620px; padding: 28px; }
}
@media(max-width:600px) {
  #brandcraft-home #companies .company-package-stage { --company-image-height: clamp(250px,65vw,355px); min-height: 390px; gap: 10px; padding: 18px; }
}

@media(min-width:901px) and (max-width:1100px) {
  #brandcraft-home #companies .company-package-stage { --company-image-height: clamp(360px,42vw,460px); }
}
