/* The gallery inherits dark, light and premium theme colors. */
html.pm-gallery-open {overflow:hidden!important;}
.pm-gallery {position:fixed;inset:0;margin:0;width:100vw;max-width:none;height:100vh;height:100dvh;max-height:none;padding:0;border:1px solid var(--ln2);border-radius:16px;background:var(--bg1);color:var(--wh);overflow:hidden;box-shadow:var(--shadow);}
.pm-gallery[open] {display:grid;grid-template-rows:auto minmax(0,1fr) auto;}
.pm-gallery::backdrop {background:rgba(5,8,16,.8);}
.pm-gallery-header {display:flex;align-items:center;justify-content:space-between;gap:18px;padding:18px 24px;border-bottom:1px solid var(--ln2);background:var(--bg1);}
.pm-gallery-heading {min-width:0;}
.pm-gallery-eyebrow {display:block;font-size:10px;font-weight:700;letter-spacing:1.8px;color:var(--mid);margin-bottom:5px;}
.pm-gallery-heading h2 {display:inline;font:inherit;font-size:18px;font-weight:800;color:var(--wh);overflow-wrap:anywhere;}
.pm-gallery-counter {margin-left:12px;color:var(--bl2);font-size:11px;white-space:nowrap;}
.pm-gallery-tools {display:flex;align-items:center;gap:8px;flex-shrink:0;}
.pm-gallery-button {display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;gap:6px;padding:10px 12px;border:1px solid var(--ln2);border-radius:11px;background:var(--bg1);color:var(--wh);font:inherit;font-size:12px;cursor:pointer;text-decoration:none;flex-shrink:0;}
.pm-gallery-button svg {width:18px;height:18px;}
.pm-gallery-button:hover {background:var(--bg2);border-color:var(--bl2);}
.pm-gallery-button:disabled {opacity:.35;cursor:default;}
.pm-gallery-button:focus-visible,.pm-gallery-trigger:focus-visible {outline:2px solid var(--bl2);outline-offset:3px;}
.pm-gallery-stage {min-height:0;position:relative;background:var(--bg0);overflow:hidden;}
:root[data-pm-theme="light"] .pm-gallery-stage {background:#f4f5f8;}
.pm-gallery-canvas {position:absolute;inset:0;overflow:hidden;touch-action:none;user-select:none;}
.pm-gallery-canvas.is-zoomed {cursor:grab;}
.pm-gallery-canvas.is-dragging {cursor:grabbing;}
.pm-gallery-image {position:absolute;left:50%;top:50%;max-width:none!important;max-height:none!important;object-fit:contain;transform-origin:center;user-select:none;-webkit-user-drag:none;border-radius:2px;}
.pm-gallery-status {position:absolute;inset:0;display:grid;place-content:center;padding:40px 70px;font-size:14px;text-align:center;color:var(--mid);pointer-events:none;}
.pm-gallery-prev,.pm-gallery-next {position:absolute;top:50%;transform:translateY(-50%);width:44px;height:44px;border-radius:50%;box-shadow:0 6px 20px rgba(0,0,0,.15);z-index:2;}
.pm-gallery-prev {left:16px;}.pm-gallery-next {right:16px;}
.pm-gallery-footer {min-width:0;text-align:center;padding:14px 24px 16px;border-top:1px solid var(--ln2);background:var(--bg1);}
.pm-gallery-caption {color:var(--wh);font-size:12px;line-height:1.5;margin-bottom:12px;max-height:36px;overflow:auto;}
.pm-gallery-thumbs {display:flex;gap:8px;width:max-content;max-width:100%;margin:0 auto;overflow-x:auto;padding:4px;overscroll-behavior-x:contain;}
.pm-gallery-thumb {width:70px;height:50px;padding:2px;border-radius:8px;border:2px solid transparent;opacity:.5;background:var(--bg2);}
.pm-gallery-thumb img {display:block;width:100%;height:100%;object-fit:cover;border-radius:5px;}
.pm-gallery-thumb[aria-pressed="true"] {border-color:var(--bl);opacity:1;}.pm-gallery-thumb:hover{opacity:1;}
.pm-gallery-help {margin:12px 0 0;font-size:10px;line-height:1.5;color:var(--mid);}
.pm-gallery [hidden] {display:none!important;}
.pm-gallery-trigger {display:block;position:relative;width:100%;padding:0;border:0;background:transparent;cursor:zoom-in;color:inherit;font:inherit;}
.pm-gallery-trigger img {display:block;max-width:100%;}
[data-pm-gallery-item] {cursor:zoom-in;}
[data-pm-build-content] .pmx16__pg-hero .pm-gallery-trigger {height:100%;}
[data-pm-build-content] .pmx16__pg-hero .pm-gallery-trigger img {width:100%;height:100%;object-fit:cover;}
[data-pm-build-content] .pmx16__pg-hero-badge,[data-pm-build-content] .pmx16__pg-hero-foot {pointer-events:none;}
.pm-gallery-grid .pmx16__screen-item {border-radius:12px;box-shadow:0 3px 12px rgba(0,0,0,.1);}
.pm-gallery-grid .pmx16__screen-zoom {opacity:1;transform:none;background:var(--bl3);}
@media(max-width:1100px){
 .hdr-i{flex-wrap:wrap;height:auto;min-height:64px;padding-top:8px;padding-bottom:8px;row-gap:8px;}
 .hdr-r{margin-left:auto;max-width:100%;}
}
@media(max-width:600px){
 .pm-gallery {border-radius:0;border:0;}.pm-gallery-header{padding:12px;gap:12px;flex-wrap:wrap;}.pm-gallery-heading{width:100%;}.pm-gallery-heading h2{font-size:15px;}.pm-gallery-eyebrow{font-size:9px;}
 .pm-gallery-tools{width:100%;gap:7px;}.pm-gallery-tools>.pm-gallery-button:last-child{margin-left:auto;}.pm-gallery-button{height:40px;min-width:40px;}
 .pm-gallery-prev{left:8px;}.pm-gallery-next{right:8px;}.pm-gallery-prev,.pm-gallery-next{width:36px;min-width:36px;height:36px;padding:8px;}
 .pm-gallery-footer{padding:10px 10px max(10px,env(safe-area-inset-bottom));}.pm-gallery-thumb{width:58px;height:43px;}.pm-gallery-help{font-size:9px;margin-top:8px;}.pm-gallery-caption{font-size:11px;margin-bottom:7px;}
}
@media(max-height:500px) and (min-width:601px){.pm-gallery-header{padding:8px 16px;}.pm-gallery-footer{padding:6px 16px;}.pm-gallery-help{display:none;}.pm-gallery-caption{margin-bottom:4px;}.pm-gallery-thumb{height:36px;width:56px;}}
