/* Packo-only additions. The Hero artwork and universal header rules remain in Candidate 082's styles. */
.packo-hero .hero-categories .packo-category {
 grid-template-columns:30px minmax(0,1fr) 20px;text-decoration:none;
}
.packo-hero .packo-category > span:last-child {justify-self:end;font-size:22px;}
.packo-hero .packo-category:hover > span:nth-child(2),.packo-hero .packo-explore:hover {text-decoration:underline;text-underline-offset:4px;}
.packo-hero .packo-explore {
 left:var(--edge);bottom:24px;gap:8px;min-height:44px;color:var(--ink);text-decoration:none;
}
.packo-hero a:focus-visible,.packo-gallery :focus-visible {outline:2px solid #526a98;outline-offset:3px;}
/* Allow room for the new controls on tablet without moving the original photo or copy. */
@media(min-width:601px) and (max-width:1024px){
 .packo-hero {height:616px;min-height:616px;}
 .packo-hero .scene-canvas {height:540px;}
 .packo-hero .packo-explore {bottom:10px;}
}
@media(max-width:600px){
 .packo-hero .hero-categories .packo-category {grid-template-columns:25px minmax(0,1fr) 20px;}
 .packo-hero .packo-category > span:last-child {font-size:20px;}
 .packo-hero .packo-explore {position:relative;inset:auto;display:inline-flex;margin:12px 24px 0;font-size:16px;}
}
html.locale-restoring body {visibility:hidden;}
.packo-gallery {
 --gallery-offset:104px;
 padding:clamp(42px,5.4vw,84px) 0 clamp(65px,8vw,120px);
 background:var(--pearl);color:var(--ink);
 scroll-margin-top:calc(var(--header) + 12px);
}
.packo-grid {width:min(calc(100% - 64px),1440px);margin:auto;display:grid;grid-template-columns:minmax(0,3fr) minmax(0,7fr);align-items:start;}
.packo-gallery .category-intro {
 display:flex;flex-direction:column;min-width:0;position:sticky;top:var(--gallery-offset);
 max-height:calc(100svh - var(--gallery-offset) - 24px);padding:0 clamp(24px,3vw,48px) 0 0;
}
.packo-gallery .packo-kicker {flex:none;color:var(--sapphire);font-size:12px;letter-spacing:.14em;margin:0 0 16px;}
.packo-gallery .category-intro h1,.packo-gallery .exhibit-heading h2 {
 flex:none;margin:0;font-size:clamp(32px,3vw,50px);line-height:1.14;font-weight:600;letter-spacing:-.035em;
}
html[lang=th] .packo-gallery :is(.category-intro h1,.exhibit-heading h2){line-height:1.3;letter-spacing:normal;}
.packo-gallery .category-summary {flex:none;margin:28px 0 22px;font-size:clamp(16px,1.3vw,20px);line-height:1.65;}
.packo-controls {min-height:0;overflow-y:auto;scroll-padding-block:8px;overscroll-behavior:contain;padding-inline:4px;margin-inline:-4px;}
.packo-controls:focus-visible {outline-offset:-2px;}
.packo-gallery .product-families h2 {font-size:15px;font-weight:500;color:#526371;margin:0 0 8px;}
.packo-gallery .product-families a {
 display:flex;align-items:center;gap:16px;width:190px;max-width:100%;min-height:44px;
 border-block:1px solid #172c3d25;color:var(--ink);font-size:16px;font-weight:400;text-decoration:none;
}
.packo-gallery .product-families a[aria-current] {font-weight:600;color:#435984;}
.packo-gallery .product-families a>span:first-child {font-size:13px;font-weight:400;}
.packo-gallery .product-families a>span:last-child {flex:0 0 16px;margin-left:auto;}
.packo-gallery .sales-contacts {margin-top:26px;}
.packo-gallery .sales-contacts h2 {font-size:18px;font-weight:600;line-height:1.5;margin:0 0 10px;}
.packo-gallery .sales-person {padding:12px 0;border-top:1px solid #172c3d1a;font-size:16px;}
.packo-gallery .sales-person h3 {font-size:inherit;font-weight:500;margin:0 0 5px;}
.packo-gallery .sales-person a,.packo-gallery .category-back-top {color:#29466c;text-underline-offset:3px;}
.packo-gallery .sales-email {display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere;}
.packo-gallery .sales-phone {display:flex;align-items:center;flex-wrap:wrap;gap:0 12px;margin:0;}
.packo-gallery .sales-phone a {display:inline-flex;align-items:center;gap:5px;min-height:44px;white-space:nowrap;}
.packo-gallery .sales-extension {color:#526371;}
.packo-gallery .category-back-top-row {margin-top:16px;padding-top:12px;border-top:1px solid #172c3d1a;}
.packo-gallery .category-back-top,.packo-gallery .manufacturer-link {
 display:inline-flex;align-items:center;gap:8px;min-height:44px;font-weight:500;text-decoration:none;
}
.packo-gallery .category-back-top>span:last-child,.packo-gallery .manufacturer-link>span:first-child {text-decoration:underline;text-underline-offset:3px;}
.packo-gallery .packo-exhibits {min-width:0;}
.packo-gallery .family-exhibit {scroll-margin-top:var(--gallery-offset);}
.packo-gallery .product-photo {margin:0;}
.packo-gallery .product-photo img {width:100%;height:auto;display:block;object-fit:contain;}
.packo-gallery .exhibit-heading {padding:clamp(22px,3vw,38px) 0 18px;}
.packo-gallery .exhibit-information {
 border-top:1px solid #172c3d25;display:grid;grid-template-columns:minmax(0,.30fr) minmax(0,.70fr);gap:32px;padding-top:24px;
}
.packo-gallery .exhibit-number {font-size:12px;color:var(--sapphire);padding-top:6px;}
.packo-gallery .exhibit-copy {min-width:0;font-size:18px;line-height:1.8;}
.packo-gallery .description {margin:0;}
.packo-gallery .manufacturer-link {margin-top:26px;color:#29466c;font-size:17px;line-height:1.6;}
@media(min-width:601px) and (max-width:1024px){
 .packo-gallery {--gallery-offset:92px;}
 .packo-grid {width:calc(100% - 44px);}
 .packo-gallery .category-intro {padding-right:22px;}
 .packo-gallery .exhibit-information {grid-template-columns:28px minmax(0,1fr);gap:20px;}
 .packo-gallery .exhibit-copy {font-size:17px;}
}
@media(max-width:600px){
 .packo-gallery {--gallery-offset:12px;}
 .packo-grid {width:calc(100% - 48px);grid-template-columns:minmax(0,1fr);gap:28px;}
 .packo-gallery .category-intro {position:static;max-height:none;padding:0;}
 .packo-controls {overflow:visible;}
 .packo-gallery .exhibit-information {grid-template-columns:24px minmax(0,1fr);gap:16px;padding-top:22px;}
 .packo-gallery .exhibit-copy,.packo-gallery .manufacturer-link {font-size:16px;}
}
html[data-back-top-scroll="smooth"] {scroll-behavior:smooth;}
html[data-back-top-scroll="instant"] {scroll-behavior:auto;}

/* Use the measured Flygt heading sizes at each breakpoint. */
@media(min-width:1025px){
 .packo-gallery .category-intro h1,.packo-gallery .exhibit-heading h2 {font-size:48px;}
}
@media(min-width:601px) and (max-width:1024px){
 .packo-gallery .category-intro h1 {font-size:34px;}
 .packo-gallery .exhibit-heading h2 {font-size:36px;}
}
@media(max-width:600px){
 .packo-gallery .category-intro h1 {font-size:38px;}
 .packo-gallery .exhibit-heading h2 {font-size:36px;}
}

@media(min-width:1025px) and (max-height:740px){
 .packo-gallery .category-intro h1 {font-size:46px;}
 .packo-gallery .category-summary {margin-top:18px;}
}
@media(max-width:600px){
 .packo-gallery .category-summary {margin-top:22px;}
 .packo-gallery .product-photo {margin-inline:-24px;}
 .packo-gallery .exhibit-copy {font-size:17px;}
}

.packo-gallery .packo-brand-word {white-space:nowrap;}

/* The same exhibit component repeats in one continuous gallery. */
.packo-gallery .family-exhibit + .family-exhibit {margin-top:clamp(64px,7vw,112px);}
.packo-gallery .product-families a + a {border-top:0;}

@media(min-width:601px){
 .packo-gallery .category-intro {max-height:min(calc(100svh - var(--gallery-offset) - 24px),var(--packo-sidebar-bound,100svh));}
}

/* 2026-11-24: Give telephone number and extension enough space at tablet widths. */
@media (min-width:601px) and (max-width:900px) {
 .packo-grid { grid-template-columns:minmax(285px,38%) minmax(0,1fr); }
}
