.cpg { width:100%; margin:28px 0; color:#09283f; }
.cpg *, .cpg *::before, .cpg *::after { box-sizing:border-box; }
.cpg .cpgin { width:100%; max-width:1600px; margin:0 auto; padding:0 20px; }
.cpg .cpggr { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.cpg .cpglk { display:block; min-width:0; overflow:hidden; border:1px solid #a6e5f1; border-radius:11px; background:#f5fbfd; box-shadow:0 8px 24px #09283f08; cursor:zoom-in; transition:border-color .2s,box-shadow .2s; }
.cpg .cpglk img { display:block; width:100%; height:auto; object-fit:contain; }
.cpg .cpglk:hover { border-color:#19bed5; box-shadow:0 8px 24px #09283f18; }
.cpg .cpglk:focus-visible,.cpg .cpgbt:focus-visible { outline:3px solid #22d1e7; outline-offset:4px; }
.cpg .cpgmd { width:min(1280px,calc(100% - 32px)); max-width:none; max-height:calc(100dvh - 32px); padding:14px; border:1px solid #497285; border-radius:20px; color:#fff; background:#061f32; overflow:auto; }
.cpg .cpgmd:not([open]) { display:none; }
.cpg .cpgmd::backdrop { background:rgba(2,15,26,.84); }
.cpg .cpgtp { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:10px; }
.cpg .cpgct { padding-left:10px; font-size:14px; color:#b9eaf3; }
.cpg .cpgbt { display:flex; align-items:center; justify-content:center; flex:none; width:48px; height:48px; padding:11px; border:1px solid #6bdeee; border-radius:50%; color:#09283f; background:#a6edf7; cursor:pointer; transition:background .2s,transform .2s; }
.cpg .cpgbt:hover { background:#43d9ed; transform:scale(1.06); }
.cpg .cpgbt svg { width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:2; stroke-linecap:round; stroke-linejoin:round; }
.cpg .cpgbt[hidden] { display:none; }
.cpg .cpgvw { position:relative; display:flex; align-items:center; justify-content:center; gap:12px; }
.cpg .cpgim { display:block; min-width:0; width:calc(100% - 120px); max-height:calc(100dvh - 180px); object-fit:contain; }
.cpg .cpgcp { margin:12px 50px 2px; text-align:center; font-size:15px; overflow-wrap:anywhere; }
.cpg .cpgcp:empty { display:none; }
@media(max-width:1000px) { .cpg .cpggr { grid-template-columns:repeat(2,minmax(0,1fr)); } }
@media(max-width:600px) {
 .cpg .cpgin { padding:0 16px; }
 .cpg .cpggr { grid-template-columns:minmax(0,1fr); }
 .cpg .cpgmd { width:calc(100% - 16px); padding:10px; border-radius:14px; }
 .cpg .cpgvw { padding-bottom:58px; }
 .cpg .cpgim { width:100%; max-height:calc(100dvh - 230px); }
 .cpg .cpgpr,.cpg .cpgnx { position:absolute; bottom:0; }
 .cpg .cpgpr { left:calc(50% - 58px); }
 .cpg .cpgnx { right:calc(50% - 58px); }
 .cpg .cpgcp { margin:10px 0 0; }
}
@media(prefers-reduced-motion:reduce) { .cpg .cpglk,.cpg .cpgbt { transition:none; } }
