/* Peter Morgan Contractors
   Brand colours are taken from the original logo: blue + yellow brush stripes, black script. */
:root {
  --blue: #0a62c9;
  --blue-dark: #074a99;
  --blue-ink: #0b2545;
  --yellow: #f9d208;
  --yellow-dark: #e0bc00;
  --ink: #141a24;
  --text: #3a4352;
  --muted: #6b7484;
  --line: #e4e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(16, 24, 40, .05), 0 8px 24px rgba(16, 24, 40, .08);
  --wrap: 1180px;
  --font-head: "Archivo", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--blue-dark); }
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--ink);
  line-height: 1.12;
  letter-spacing: -0.02em;
  margin: 0 0 .5em;
}
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.3rem; font-weight: 700; }
p { margin: 0 0 1em; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--soft { background: var(--bg-soft); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-head);
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 14px;
}
.eyebrow::before {
  content: ""; width: 28px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--blue) 0 60%, var(--yellow) 60% 100%);
}
.lead { font-size: 1.15rem; color: var(--text); max-width: 62ch; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head--center .eyebrow { justify-content: center; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: #fff; padding: 8px 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-weight: 700; font-size: 1rem;
  padding: 14px 24px; border-radius: 999px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .15s ease, background .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--yellow { background: var(--yellow); color: var(--ink); }
.btn--yellow:hover { background: var(--yellow-dark); color: var(--ink); }
.btn--blue { background: var(--blue); color: #fff; }
.btn--blue:hover { background: var(--blue-dark); color: #fff; }
.btn--ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn--ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn--ghost-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn--ghost-light:hover { border-color: #fff; color: #fff; }

/* Top bar + header */
.topbar { background: var(--blue-ink); color: #c9d4e5; font-size: .85rem; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 8px; padding-bottom: 8px; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar span + span::before { content: "·"; margin: 0 10px; color: #6f86a8; }

.header {
  position: sticky; top: 0; z-index: 50;
  background: #fff;
  border-bottom: 1px solid var(--line);
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 80px; }
.brand { display: flex; align-items: center; gap: 14px; text-decoration: none; flex: none; }
.brand img { height: 56px; width: auto; }
.brand-text { font-family: var(--font-head); font-size: .72rem; line-height: 1.3; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; border-left: 1px solid var(--line); padding-left: 14px; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: .98rem;
  color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 8px;
}
.nav a:hover { background: var(--bg-soft); color: var(--blue); }
.nav a:not(.btn)[aria-current="page"] { color: var(--blue); }
.nav a:not(.btn)[aria-current="page"]::after { content: ""; display: block; height: 3px; margin-top: 2px; border-radius: 2px; background: var(--yellow); }
.nav .btn { margin-left: 10px; padding: 11px 20px; color: #fff; }
.nav .btn:hover { background: var(--blue-dark); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; padding: 10px; margin-right: -10px; cursor: pointer; color: var(--ink); }
.nav-toggle svg { width: 28px; height: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 96px; background: linear-gradient(180deg, #fff 0%, var(--bg-soft) 100%); }
.hero .wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--blue); }
.hero .lead { margin-bottom: 32px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 32px 0 0; padding: 0; list-style: none; font-weight: 600; color: var(--ink); font-size: .95rem; }
.hero-points li { display: flex; align-items: center; gap: 8px; }
.hero-points svg { width: 20px; height: 20px; color: var(--blue); flex: none; }

.hero-visual { position: relative; min-height: 460px; }
.hero-visual::before {
  content: ""; position: absolute; inset: -40px -60px -40px 10%;
  background: url("images/stripes.svg") center / 100% 100% no-repeat;
  opacity: .95;
}
.hero-photo { position: absolute; border-radius: var(--radius); overflow: hidden; box-shadow: 0 20px 50px rgba(11,37,69,.25); border: 6px solid #fff; }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo--a { width: 72%; aspect-ratio: 4/3; top: 0; left: 0; }
.hero-photo--b { width: 54%; aspect-ratio: 4/3; bottom: 0; right: 0; }
.hero-badge {
  position: absolute; left: 6%; bottom: 8%; z-index: 2;
  background: var(--ink); color: #fff; border-radius: 12px; padding: 14px 18px;
  font-family: var(--font-head); box-shadow: var(--shadow);
}
.hero-badge strong { display: block; font-size: 1.6rem; color: var(--yellow); line-height: 1; }
.hero-badge span { font-size: .85rem; color: #c9d4e5; }

/* Stats strip */
.stats { background: var(--blue); color: #fff; }
.stats .wrap { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; border-left: 1px solid rgba(255,255,255,.18); }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat strong { display: block; font-family: var(--font-head); font-size: 1.5rem; font-weight: 800; color: var(--yellow); line-height: 1.2; }
.stat span { font-size: .95rem; color: #dbe7f8; }

/* Service cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; box-shadow: var(--shadow); transition: transform .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16,24,40,.06), 0 18px 40px rgba(16,24,40,.12); }
.card-img { aspect-ratio: 16/10; overflow: hidden; position: relative; }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-img::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: linear-gradient(90deg, var(--blue) 0 70%, var(--yellow) 70%); }
.card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; flex: 1; }
.card-body p { color: var(--text); }
.card-links { list-style: none; margin: 0 0 22px; padding: 0; }
.card-links li { padding: 8px 0; border-top: 1px solid var(--line); font-weight: 600; color: var(--ink); font-size: .95rem; }
.card-body .more { margin-top: auto; font-family: var(--font-head); font-weight: 700; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.card-body .more::after { content: "→"; transition: transform .15s; }
.card-body .more:hover::after { transform: translateX(4px); }

/* Split / feature */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split--top { align-items: start; }
.split-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); position: relative; }
.split-img img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }

.checks { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 24px; }
.checks--single { grid-template-columns: 1fr; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink); font-weight: 500; }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23F9D208' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Chips */
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 8px 16px; font-weight: 600; font-size: .95rem; color: var(--ink); }
.section--soft .chips li { background: #fff; }

/* Clients */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); background: #fff; border-top: 1px solid var(--line); border-left: 1px solid var(--line); overflow: hidden; list-style: none; margin: 0; padding: 0; }
.clients li { background: #fff; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 24px 18px; text-align: center; font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 1.02rem; display: flex; align-items: center; justify-content: center; min-height: 84px; }
.note { color: var(--muted); font-size: .95rem; margin-top: 18px; }

/* Gallery */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 14px; }
.gallery figure { margin: 0; border-radius: 12px; overflow: hidden; position: relative; background: var(--bg-soft); }
.gallery figure.wide { grid-column: span 2; grid-row: span 2; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery figure:hover img { transform: scale(1.04); }
.gallery figcaption { position: absolute; left: 12px; bottom: 12px; background: rgba(20,26,36,.82); color: #fff; font-size: .8rem; font-weight: 600; padding: 5px 10px; border-radius: 6px; }

/* CTA band */
.cta { position: relative; overflow: hidden; background: var(--blue-ink); color: #fff; padding: 80px 0; }
.cta::after { content: ""; position: absolute; right: -80px; top: -40px; bottom: -40px; width: 460px; background: url("images/stripes.svg") center / 100% 100% no-repeat; opacity: .9; }
.cta .wrap { position: relative; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta h2 { color: #fff; margin-bottom: 8px; }
.cta p { color: #c9d4e5; margin: 0; max-width: 56ch; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-right: 360px; }

/* Page header (sub pages) */
.page-head { position: relative; overflow: hidden; background: var(--blue-ink); color: #fff; padding: 72px 0 80px; }
.page-head::after { content: ""; position: absolute; right: -40px; top: -30px; bottom: -30px; width: 380px; background: url("images/stripes.svg") center / 100% 100% no-repeat; opacity: .9; }
.page-head .wrap { position: relative; z-index: 1; }
.page-head h1 { color: #fff; max-width: 18ch; }
.page-head .lead { color: #c9d4e5; margin: 0; max-width: 58ch; }
.crumbs { font-size: .88rem; color: #9fb3d1; margin-bottom: 18px; }
.crumbs a { color: #fff; text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* Sub nav (in-page anchors) */
.subnav { border-bottom: 1px solid var(--line); background: #fff; position: sticky; top: 80px; z-index: 40; }
.subnav .wrap { display: flex; gap: 8px; overflow-x: auto; padding-top: 10px; padding-bottom: 10px; scrollbar-width: none; }
.subnav a { flex: none; font-family: var(--font-head); font-weight: 600; font-size: .92rem; color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px; background: var(--bg-soft); }
.subnav a:hover { background: var(--blue); color: #fff; }

.block + .block { margin-top: 96px; }
.block { scroll-margin-top: 150px; }
.panel { background: var(--bg-soft); border-radius: var(--radius); padding: 32px; }
.panel h3 { margin-bottom: 18px; }
.section--soft .panel { background: #fff; border: 1px solid var(--line); }

/* Timeline */
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 47px; top: 8px; bottom: 8px; width: 3px; background: linear-gradient(var(--blue), var(--yellow)); border-radius: 2px; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 24px; padding: 0 0 32px; position: relative; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .year { font-family: var(--font-head); font-weight: 800; color: var(--blue); background: #fff; border: 3px solid var(--blue); border-radius: 999px; text-align: center; padding: 6px 0; position: relative; z-index: 1; height: fit-content; }
.timeline li:last-child .year { border-color: var(--yellow-dark); color: var(--ink); background: var(--yellow); }
.timeline h3 { margin-bottom: 6px; }
.timeline p { margin: 0; }

/* H&S grid */
.hs-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; list-style: none; margin: 0; padding: 0; }
.hs-grid li { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; font-weight: 600; color: var(--ink); line-height: 1.4; }
.hs-grid li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 3px; background: var(--yellow); box-shadow: 0 0 0 3px rgba(249,210,8,.25); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: start; }
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.contact-card .ico { flex: none; width: 46px; height: 46px; border-radius: 12px; background: var(--blue); color: var(--yellow); display: grid; place-items: center; }
.contact-card .ico svg { width: 22px; height: 22px; }
.contact-card h3 { font-size: 1.05rem; margin-bottom: 4px; }
.contact-card p { margin: 0; }
.contact-card a { font-weight: 700; text-decoration: none; font-size: 1.1rem; }
.map { border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16/10; }
.map iframe { width: 100%; height: 100%; border: 0; display: block; }

.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.form h2 { font-size: 1.7rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; color: var(--ink); font-size: .92rem; margin-bottom: 6px; }
.field label .req { color: var(--blue); }
.field input, .field textarea, .field select {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink);
  padding: 13px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff;
  transition: border-color .15s, box-shadow .15s;
}
.field textarea { min-height: 150px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(10,98,201,.12); }
.hp { position: absolute; left: -9999px; }
.form .btn { width: 100%; padding: 16px; font-size: 1.05rem; }
.form-status { margin-top: 16px; padding: 14px 16px; border-radius: 10px; font-weight: 600; display: none; }
.form-status.ok { display: block; background: #e8f5ec; color: #17603a; }
.form-status.err { display: block; background: #fdeceb; color: #9b1c1c; }
.form-small { font-size: .85rem; color: var(--muted); margin: 14px 0 0; }

/* Footer */
.footer { background: #0a1424; color: #9aa7bb; padding: 72px 0 0; font-size: .95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 16px; }
.footer ul { list-style: none; margin: 0; padding: 0; }
.footer li { margin-bottom: 9px; }
.footer a { color: #d6deea; text-decoration: none; }
.footer a:hover { color: var(--yellow); }
.footer-logo { background: #fff; border-radius: 12px; padding: 10px 14px; display: inline-block; margin-bottom: 18px; }
.footer-logo img { height: 52px; width: auto; }
.footer address { font-style: normal; line-height: 1.7; }
.footer-bottom { margin-top: 56px; border-top: 1px solid #1d2a3f; padding: 22px 0; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .85rem; color: #6f7d93; }
.footer-stripe { height: 6px; background: linear-gradient(90deg, var(--blue) 0 72%, var(--yellow) 72%); }

/* Mobile call bar */
.callbar { display: none; }

/* Reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .gallery img { transition: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .brand-text { display: none; }
  .nav a { padding: 10px 10px; }
  .cta-actions { margin-right: 0; }
  .cta::after { opacity: .25; }
}
@media (max-width: 960px) {
  .section { padding: 72px 0; }
  .hero { padding: 48px 0 72px; }
  .hero .wrap, .split, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { min-height: 380px; max-width: 560px; }
  .cards { grid-template-columns: 1fr 1fr; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .stat { border-top: 1px solid rgba(255,255,255,.18); }
  .stat:nth-child(-n+2) { border-top: 0; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 180px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hs-grid { grid-template-columns: 1fr 1fr; }
  .cta .wrap { flex-direction: column; align-items: flex-start; }
  .split-img { order: -1; }

  .nav-toggle { display: block; }
  .nav {
    position: fixed; top: 80px; left: 0; right: 0; bottom: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 16px 24px 32px; overflow-y: auto;
    transform: translateX(100%); transition: transform .25s ease; visibility: hidden;
  }
  .nav.open { transform: none; visibility: visible; }
  .nav a { padding: 16px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 1.15rem; }
  .nav a:not(.btn)[aria-current="page"]::after { display: none; }
  .nav .btn { margin: 20px 0 0; border-radius: 999px; border-bottom: 0; justify-content: center; }
  body.nav-open { overflow: hidden; }
}
@media (max-width: 640px) {
  body { font-size: 16px; padding-bottom: 68px; }
  .wrap { padding: 0 16px; }
  .section { padding: 56px 0; }
  .topbar { display: none; }
  .header .wrap { height: 68px; }
  .brand img { height: 44px; }
  .nav { top: 68px; }
  .subnav { top: 68px; }
  .cards, .checks, .hs-grid, .form-row, .footer-grid { grid-template-columns: 1fr; }
  .hero-visual { min-height: 280px; }
  .hero-visual::before { inset: -20px -30px -20px 10%; }
  .hero-badge { padding: 10px 14px; }
  .hero-badge strong { font-size: 1.3rem; }
  .hero-ctas .btn { flex: 1 1 100%; }
  .stats .wrap { grid-template-columns: 1fr 1fr; }
  .stat { padding: 20px 12px 20px 16px; }
  .stat strong { font-size: 1.2rem; }
  .gallery { grid-auto-rows: 140px; gap: 10px; }
  .gallery figure.wide { grid-column: span 2; grid-row: span 2; }
  .form { padding: 24px 18px; }
  .page-head { padding: 48px 0 56px; }
  .page-head::after { width: 220px; opacity: .25; }
  .cta::after { width: 260px; }
  .timeline::before { left: 35px; }
  .timeline li { grid-template-columns: 72px 1fr; gap: 16px; }
  .panel { padding: 22px; }
  .callbar {
    display: grid; grid-template-columns: 1fr 1fr; gap: 8px;
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(16,24,40,.08);
  }
  .callbar .btn { padding: 12px 10px; font-size: .95rem; }
}

/* Project photo galleries (service pages) */
.pg { margin-top: 64px; }
.pg-title { font-size: 1.1rem; margin-bottom: 16px; display: flex; align-items: center; gap: 10px; }
.pg-title::before { content: ""; width: 20px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) 0 60%, var(--yellow) 60%); }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.pg-item { display: block; border-radius: 10px; overflow: hidden; aspect-ratio: 4/3; background: var(--bg-soft); cursor: zoom-in; }
.pg-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.pg-item:hover img { transform: scale(1.05); }
@media (max-width: 640px) { .pg-grid { grid-template-columns: 1fr 1fr; gap: 8px; } .pg { margin-top: 40px; } }

/* Lightbox */
.lightbox { border: 0; padding: 0; background: transparent; max-width: 100vw; max-height: 100vh; width: 100vw; height: 100vh; }
.lightbox::backdrop { background: rgba(5,10,20,.88); }
.lightbox[open] { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.lightbox img { max-width: min(92vw, 900px); max-height: 78vh; width: auto; height: auto; border-radius: 10px; image-rendering: auto; }
.lb-cap { color: #e6ecf5; margin: 14px 16px 0; text-align: center; font-size: .95rem; }
.lightbox button { position: absolute; background: rgba(255,255,255,.12); color: #fff; border: 0; width: 48px; height: 48px; border-radius: 50%; font-size: 30px; line-height: 1; cursor: pointer; }
.lightbox button:hover { background: var(--yellow); color: var(--ink); }
.lb-close { top: 16px; right: 16px; }
.lb-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 16px; top: 50%; transform: translateY(-50%); }
