/* Align the eleven supplied Restrained rug photographs with their captions. */
.catalogue-gallery > .product[data-restrained-rug] > .product-link {
  justify-self:center;
}
.catalogue-gallery > .product[data-restrained-rug] > .catalogue-caption {
  box-sizing:border-box;
  width:var(--photo-display-width);
  max-width:100%;
  justify-self:center;
  align-self:stretch;
  display:flex;
  flex-direction:column;
}
.catalogue-gallery > .product[data-restrained-rug] > .catalogue-caption > .product-price {
  margin-top:auto;
  padding-top:8px;
}
@media(max-width:620px) {
  .catalogue-gallery > .product[data-restrained-rug] > .catalogue-caption {
    width:100%;
  }
}

/* Proportional correction limited to rug 27. Original photographs remain whole. */
.catalogue-gallery > .product[data-restrained-rug="27"] {
  --rug-corrected-width:75.860215%;
  --rug-bottom-space:-7.123026%;
  --rug-mobile-bottom-space:-8.691406%;
}
.catalogue-gallery > .product[data-restrained-rug="27"] > .product-link {
  width:var(--rug-corrected-width);
  margin-bottom:var(--rug-bottom-space);
}
.catalogue-gallery > .product[data-restrained-rug="27"] > .catalogue-caption {
  width:var(--rug-corrected-width);
  position:relative;
  z-index:1;
}
@media(max-width:620px) {
  .catalogue-gallery > .product[data-restrained-rug="27"] > .product-link {
    width:100%;
    margin-bottom:var(--rug-mobile-bottom-space);
  }
  .catalogue-gallery > .product[data-restrained-rug="27"] > .catalogue-caption {
    width:100%;
  }
}

/* Requested independent display dimensions: rug 6 taller only; rug 23 wider only. */
.catalogue-gallery > .product[data-restrained-rug="6"] {
  --rug-axis-width:66.666666667%;
  --rug-axis-ratio:0.487520410544;
  --rug-axis-bottom:-18.539299242%;
  --rug-axis-mobile-bottom:-27.808948864%;
}
.catalogue-gallery > .product[data-restrained-rug="23"] {
  --rug-axis-width:74.889157598%;
  --rug-axis-ratio:0.748891575977;
  --rug-axis-bottom:0%;
  --rug-axis-mobile-bottom:0%;
}
.catalogue-gallery > .product:is([data-restrained-rug="6"],[data-restrained-rug="23"]) > .product-link {
  width:var(--rug-axis-width);
  aspect-ratio:var(--rug-axis-ratio);
  margin-bottom:var(--rug-axis-bottom);
}
.catalogue-gallery > .product:is([data-restrained-rug="6"],[data-restrained-rug="23"]) > .product-link > img {
  width:100%;
  height:100%;
  object-fit:fill;
}
.catalogue-gallery > .product:is([data-restrained-rug="6"],[data-restrained-rug="23"]) > .catalogue-caption {
  width:var(--rug-axis-width);
  position:relative;
  z-index:1;
}
@media(max-width:620px) {
  .catalogue-gallery > .product:is([data-restrained-rug="6"],[data-restrained-rug="23"]) > .product-link {
    width:100%;
    margin-bottom:var(--rug-axis-mobile-bottom);
  }
  .catalogue-gallery > .product:is([data-restrained-rug="6"],[data-restrained-rug="23"]) > .catalogue-caption {
    width:100%;
  }
}
