/* Current square product photographs use their own sizing, without legacy artwork zoom. */
.yx-packshot--photo{background:#fff}
.yx-packshot--photo img{position:static;display:block;max-width:100%!important;width:100%!important;height:100%!important;transform:none!important;object-fit:contain;object-position:center}
.yx-hero-products--photos .yx-product-pair{inset:125px 28px 65px;gap:16px;align-items:stretch}
.yx-hero-products--photos .yx-product-pair>a{flex:1;min-width:0}
.yx-hero-products--photos .yx-product-pair>a .yx-packshot{height:100%;margin:0;border:1px solid var(--yx-line);border-radius:5px}
.yx-hero-products--photos .yx-product-pair img{object-fit:cover}
.yx-product-card>.yx-packshot--photo{background:#fff;margin:24px 18px;border-radius:4px}
.yx-product-detail-visual--photo{background:#fff;padding:0 0 18px;border:1px solid var(--yx-line);border-radius:5px}
.yx-product-detail-visual--photo .yx-packshot{width:100%;max-width:480px;height:auto;aspect-ratio:1;margin:auto}
.yx-product-detail-visual--photo figcaption{padding-inline:16px}
.wp-block-post-featured-image.yx-archive-product-image{margin:0 0 26px;background:#fff;border:1px solid var(--yx-line);border-radius:4px;overflow:hidden}
.yx-archive-product-image img{display:block;object-fit:contain}
.yx-product-gallery{margin:-12px 0 40px}
.yx-gallery-intro{display:flex;justify-content:space-between;align-items:baseline;gap:12px;margin:0 0 14px;font-size:15px}
.yx-gallery-intro span{font-size:12px;color:var(--yx-muted)}
.yx-gallery-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:14px}
.yx-gallery-grid figure{margin:0;min-width:0}
.yx-gallery-grid a{display:block;background:#fff;border:1px solid var(--yx-line);border-radius:4px;overflow:hidden;transition:border-color .2s ease}
.yx-gallery-grid a:hover{border-color:var(--yx-green)}
.yx-gallery-grid img{display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain}
.yx-gallery-grid figcaption{font-size:12px;line-height:1.6;text-align:center;margin-top:8px;color:var(--yx-muted)}
@media(max-width:680px){.yx-hero-products--photos .yx-product-pair{inset:100px 16px 48px;gap:10px}.yx-product-card>.yx-packshot--photo{margin:18px 18px 0}.yx-gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.yx-product-detail-visual--photo .yx-packshot{height:auto}.yx-gallery-intro{font-size:14px}.yx-gallery-intro span{font-size:11px}}
@media(max-width:680px){.yx-gallery-grid>figure:last-child:nth-child(odd){grid-column:1/-1;width:calc((100% - 16px)/2);justify-self:center}}
