.cpgal,
.cpgal *,
.cpgal *::before,
.cpgal *::after{box-sizing:border-box}
.cpgal{
  --primary:#0D2B52;--secondary:#1E4E79;--accent:#D4AF37;--bg:#F8FAFC;
  --text-soft:rgba(27,27,27,.62);--radius-m:20px;
  --font-head:'Playfair Display',serif;--font-body:'Inter',-apple-system,sans-serif;
  --font-mono:'JetBrains Mono',monospace;--ease:cubic-bezier(.16,.8,.24,1);
  display:block;position:relative;width:100vw;margin-left:calc(50% - 50vw);
  overflow:hidden;background:var(--bg);color:#1B1B1B;font-family:var(--font-body);line-height:1.65;
  -webkit-font-smoothing:antialiased;
}
.cpgal img,.cpgal svg{display:block;max-width:100%}
.cpgal h2{font-family:var(--font-head);font-weight:600;line-height:1.15;letter-spacing:-.01em;margin:0}
.cpgal p{margin:0}
.cpgal__container{max-width:1240px;margin:0 auto;padding:150px 40px}
.cpgal__head{max-width:640px;margin-bottom:56px}
.cpgal__eyebrow{font-family:var(--font-mono);font-size:.72rem;letter-spacing:.22em;text-transform:uppercase;color:var(--accent);display:inline-flex;align-items:center;gap:10px;margin-bottom:18px;font-weight:500}
.cpgal__eyebrow::before{content:'';width:26px;height:1px;background:var(--accent);display:inline-block}
.cpgal__head h2{font-size:clamp(2rem,4vw,2.9rem);color:var(--primary)}
.cpgal__head p{margin-top:18px;color:var(--text-soft);font-size:1.05rem;max-width:540px}
.cpgal__grid{display:grid;grid-template-columns:repeat(12,1fr);grid-template-rows:340px 340px;gap:14px}
.cpgal__item{border-radius:var(--radius-m);overflow:hidden;position:relative;background:linear-gradient(160deg,var(--secondary),var(--primary) 80%);display:block;box-shadow:0 20px 60px rgba(9,26,48,.1);transition:transform .5s var(--ease),box-shadow .5s var(--ease);cursor:pointer;outline:none}
.cpgal__item:nth-child(1){grid-column:span 5}.cpgal__item:nth-child(2){grid-column:span 4}.cpgal__item:nth-child(3){grid-column:span 3}.cpgal__item:nth-child(4){grid-column:span 4}.cpgal__item:nth-child(5){grid-column:span 5}.cpgal__item:nth-child(6){grid-column:span 3}
.cpgal__item:hover,.cpgal__item:focus-visible{transform:translateY(-6px);box-shadow:0 30px 80px rgba(9,26,48,.18)}
.cpgal__img{width:100%;height:100%;object-fit:cover;border-radius:var(--radius-m);transition:transform .7s var(--ease)}
.cpgal__item:hover .cpgal__img,.cpgal__item:focus-visible .cpgal__img{transform:scale(1.06)}
.cpgal__item::after{content:'';position:absolute;bottom:0;left:0;right:0;height:60%;background:linear-gradient(to top,rgba(9,26,48,.88) 0%,rgba(9,26,48,.25) 55%,transparent 100%);pointer-events:none;z-index:1;border-radius:0 0 var(--radius-m) var(--radius-m);transition:opacity .4s var(--ease)}
.cpgal__item:hover::after,.cpgal__item:focus-visible::after{opacity:.7}
.cpgal__view{position:absolute;top:16px;right:16px;z-index:3;width:40px;height:40px;border-radius:50%;background:rgba(212,175,55,.85);display:flex;align-items:center;justify-content:center;opacity:0;transform:scale(.7);transition:opacity .3s var(--ease),transform .3s var(--ease);pointer-events:none;box-shadow:0 4px 20px rgba(212,175,55,.4)}
.cpgal__item:hover .cpgal__view,.cpgal__item:focus-visible .cpgal__view{opacity:1;transform:scale(1)}
.cpgal__view svg{width:18px;height:18px;stroke:#091A30;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.cpgal__caption{position:absolute;bottom:0;left:0;right:0;z-index:2;padding:20px;display:flex;flex-direction:column;gap:6px}
.cpgal__caption b{font-family:var(--font-head);font-size:1.05rem;letter-spacing:.01em;color:#fff;font-weight:600}
.cpgal__caption span{font-family:var(--font-mono);font-size:.6rem;color:var(--accent);letter-spacing:.1em;text-transform:uppercase}
@media(prefers-reduced-motion:reduce){.cpgal *,.cpgal *::before,.cpgal *::after{animation-duration:.001ms!important;transition-duration:.001ms!important}}
@media(max-width:640px){.cpgal__container{padding-left:22px;padding-right:22px}}
@media(max-width:960px){.cpgal__grid{grid-template-columns:repeat(6,1fr);grid-template-rows:280px 280px 280px;gap:12px}.cpgal__item:nth-child(1){grid-column:span 4}.cpgal__item:nth-child(2){grid-column:span 2}.cpgal__item:nth-child(3){grid-column:span 3}.cpgal__item:nth-child(4){grid-column:span 3}.cpgal__item:nth-child(5){grid-column:span 3}.cpgal__item:nth-child(6){grid-column:span 3}}
@media(max-width:580px){.cpgal__container{padding-top:80px;padding-bottom:80px}.cpgal__grid{grid-template-columns:1fr 1fr;grid-auto-rows:240px;grid-template-rows:none;gap:10px}.cpgal__item:nth-child(1){grid-column:span 2;grid-row:span 1}.cpgal__item:nth-child(2){grid-column:span 1}.cpgal__item:nth-child(3){grid-column:span 1}.cpgal__item:nth-child(4){grid-column:span 2;grid-row:span 1}.cpgal__item:nth-child(5){grid-column:span 1}.cpgal__item:nth-child(6){grid-column:span 1}}

.cpgal__overlay{display:none;position:fixed;inset:0;z-index:99999;background:rgba(9,26,48,.55);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);align-items:center;justify-content:center}
.cpgal__overlay.is-open{display:flex}
.cpgal__lightbox-close{position:absolute;top:24px;right:24px;width:52px;height:52px;border-radius:50%;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.15);display:flex;align-items:center;justify-content:center;cursor:pointer;z-index:100000;transition:background .3s var(--ease),transform .3s var(--ease)}
.cpgal__lightbox-close:hover{background:rgba(212,175,55,.2);transform:rotate(90deg)}
.cpgal__lightbox-close svg{width:22px;height:22px;stroke:#fff;fill:none;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.cpgal__lightbox-img{max-width:82vw;max-height:85vh;object-fit:contain;border-radius:16px;box-shadow:0 50px 120px rgba(0,0,0,.5),0 0 0 1px rgba(255,255,255,.06)}
.cpgal__lightbox-caption{position:absolute;bottom:24px;left:50%;transform:translateX(-50%);font-family:var(--font-head);font-size:1.05rem;font-weight:600;color:#fff;text-align:center;background:rgba(9,26,48,.55);padding:10px 28px;border-radius:100px;backdrop-filter:blur(8px);white-space:nowrap;letter-spacing:.01em}
@media(max-width:640px){.cpgal__lightbox-img{max-width:88vw;max-height:76vh}.cpgal__lightbox-caption{max-width:calc(100vw - 32px);overflow:hidden;text-overflow:ellipsis}}
