
.gallery-intro{max-width:880px;margin:0 auto 18px;}
.gallery-note{font-size:14px;color:#5f6570;margin:0 0 24px;}
.gallery-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:24px;align-items:start;}
.gallery-photo{display:none;cursor:zoom-in;border:1px solid #ddd7cd;border-radius:18px;padding:16px;background:#f7f4ee;text-align:left;overflow:hidden;box-shadow:0 10px 28px rgba(22,32,47,.06);transition:transform .22s ease,box-shadow .22s ease;}
.gallery-photo.is-loaded{display:flex;flex-direction:column;}
.gallery-photo:hover{transform:translateY(-3px);box-shadow:0 14px 36px rgba(22,32,47,.1);}
.gallery-photo img{width:100%;height:auto;max-height:380px;object-fit:contain;display:block;margin:0 auto;border-radius:12px;background:#ece7de;transition:transform .2s;}
.gallery-photo:hover img{transform:scale(1.01);}
.gallery-empty{border:1px solid #dad5cc;background:#f5f2eb;padding:35px 25px;text-align:center;color:#4b5260;border-radius:18px;}
.gallery-empty code{color:#19283a;word-break:break-word;}
.gallery-back{display:inline-block;margin:0 0 23px;text-decoration:none;color:#3d536e;}
.photo-modal[hidden]{display:none;}
.photo-modal{position:fixed;inset:0;background:rgba(13,21,31,.94);z-index:10000;display:flex;align-items:center;justify-content:center;padding:38px;}
.photo-modal img{max-width:95vw;max-height:88vh;object-fit:contain;}
.photo-modal button{position:absolute;right:18px;top:12px;background:transparent;color:#fff;border:1px solid #fff;font-size:28px;cursor:pointer;padding:4px 15px;}
@media(max-width:850px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;}}
@media(max-width:560px){.gallery-grid{grid-template-columns:1fr;}.photo-modal{padding:12px;}.gallery-photo{padding:12px;}}

/* Product catalogue details */
.product-detail-intro{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(25px,5vw,75px);align-items:start;margin:14px 0 65px;}
.product-detail-cover{background:#f8f5ef;border:1px solid #e0dbd2;border-radius:22px;padding:18px;box-shadow:0 12px 34px rgba(22,32,47,.06);}
.product-detail-cover img{width:100%;height:auto;max-height:560px;object-fit:contain;margin:0 auto;}
.product-detail-copy h2,.product-gallery-heading h2{font:400 clamp(30px,4vw,58px)/1.1 var(--display);margin:0 0 20px;}
.product-detail-copy p{color:var(--muted);line-height:1.7;}
.product-detail-copy .scope-note{font-size:13px;margin:23px 0 25px;}
.product-gallery-heading{margin:0 0 30px;}
.product-gallery-heading p{font-size:15px;color:var(--muted);}
@media(max-width:760px){.product-detail-intro{grid-template-columns:1fr}.product-detail-cover img{max-height:420px;}}

.brochure-photo{aspect-ratio:auto;background:#f7f4ee;}
.brochure-photo img{height:auto;max-height:420px;object-fit:contain;background:#ece7de;}
.photo-caption{display:block;padding:14px 4px 2px;font:500 14px/1.45 var(--body, sans-serif);color:#263548;}

/* Premium product photography: preserve source proportions and avoid needless enlargement. */
.product-detail-intro{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);align-items:center;gap:clamp(28px,4vw,64px);margin-bottom:48px}
.product-detail-cover{display:flex;align-items:center;justify-content:center;padding:12px;background:#f2efe9;border-radius:8px}
.product-detail-cover img{width:auto;max-width:100%;height:auto;max-height:620px;border-radius:4px}
.gallery-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:stretch}
.gallery-photo.is-loaded{padding:0;border-radius:8px;align-items:center;justify-content:space-between;background:#f7f4ee;overflow:hidden}
.gallery-photo img,.brochure-photo img{width:auto;max-width:100%;height:auto;max-height:340px;margin:auto;object-fit:contain;border-radius:0;background:transparent}
.gallery-photo.portrait img{max-height:340px}
.gallery-photo .photo-caption{width:100%;padding:13px 16px;border-top:1px solid #e2dcd1;background:#f7f4ee;font-size:14px;letter-spacing:.01em}
.gallery-photo:hover img{transform:none}
.product-gallery-heading{margin-top:36px;margin-bottom:24px}
.photo-modal img{width:auto;height:auto;max-width:95vw;max-height:88vh}
@media(min-width:1000px){.gallery-grid:has(>button:only-child){grid-template-columns:minmax(0,560px)}}
@media(max-width:850px){.gallery-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:760px){.product-detail-intro{grid-template-columns:1fr}.product-detail-cover img{max-height:460px}}
@media(max-width:520px){.gallery-grid{grid-template-columns:1fr}.gallery-photo img{max-height:400px}}
