*{box-sizing:border-box}body{margin:0;background:#05090d;color:#f2f5f7;font:14px/1.55 Montserrat,Arial,sans-serif}a{color:inherit;text-decoration:none}.layout{display:grid;grid-template-columns:270px minmax(0,1fr);align-items:start}.gallery-main{padding:28px clamp(18px,3vw,42px);min-width:0;background:#05090d;background-image:none}.gallery-heading{padding:24px;background:radial-gradient(ellipse at 20% 20%,#142431,#080e14);border-bottom:2px solid #00a9e8}.gallery-heading span{color:#19c5f5;letter-spacing:3px;font-weight:800}.gallery-heading h1{font-size:38px;margin:4px 0}.gallery-heading p{color:#b8c3cb}.gallery-category{padding:22px 0;border-bottom:1px solid #263744;scroll-margin-top:15px}.gallery-category h2{font-size:25px;margin:0 0 12px;border-left:4px solid #19c5f5;padding-left:12px}.gallery-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.gallery-grid figure{margin:0;background:#0c151d;border:1px solid #263b4a}.gallery-grid img{display:block;width:100%;aspect-ratio:4/3;object-fit:cover}.gallery-grid figcaption{padding:9px 11px;color:#d8e1e7;font-size:11px}.topbar{padding-left:270px;display:flex;flex-wrap:wrap;background:#03070b}.top-item,.top-emergency{padding:10px;color:#fff;font-size:11px}.top-item small,.top-emergency small{display:block;color:#aeb9c2;font-size:9px}.top-emergency{margin-left:auto;color:#ff5360;border-left:2px solid #e21d2d}footer{border-top:1px solid #263640;background:#03070b;padding:22px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:20px}footer h3{font-size:13px}footer p,footer a{display:block;color:#aeb9c2;font-size:10px;margin:5px 0}.foot-bottom{grid-column:1/-1;border-top:1px solid #263640;padding-top:10px;color:#8997a1;font-size:10px}@media(max-width:700px){.layout{display:block}.sidebar{padding:8px 12px}.brand-small{display:none}.nav{display:grid;grid-template-columns:repeat(2,1fr)}.topbar{padding:7px;display:grid;grid-template-columns:1fr 1fr}.top-emergency{grid-column:1/-1;margin:0;text-align:center}.gallery-grid{grid-template-columns:1fr 1fr}.gallery-main{padding:14px}.gallery-heading h1{font-size:30px}footer{grid-template-columns:1fr 1fr}}
/* Refined MADDISON gallery layout */
.sidebar{position:sticky;top:0;align-self:start;height:100vh;min-height:100vh;overflow-y:auto;padding:18px 14px;background:#070c11;border-right:1px solid #25323c}
.brand-small{display:flex;justify-content:center;align-items:center;min-height:112px;padding:8px 8px 18px;margin-bottom:4px;border-bottom:1px solid #27333d}
.brand-small img{display:block;width:100%;max-width:190px;max-height:92px;height:auto;object-fit:contain;mix-blend-mode:normal}
.gallery-main{background-color:#05090d;background-image:none}
.gallery-heading{background:#080e14}
.gallery-category{background:transparent}
@media(max-width:700px){
  .sidebar{position:relative;top:auto;height:auto;min-height:0;overflow:visible;padding:10px 12px}
  .brand-small{display:flex;min-height:76px;padding:4px 4px 10px;margin-bottom:8px}
  .brand-small img{max-width:150px;max-height:66px}
}

/* Final gallery-page spacing and emergency header refinement */
.topbar{
  display:grid;
  grid-template-columns:minmax(145px,1fr) minmax(220px,1.45fr) minmax(150px,1fr) minmax(165px,1fr) minmax(245px,1.35fr);
  align-items:center;
  gap:0;
  padding:8px 18px 8px 288px;
  min-height:86px;
  background:#03070b;
  border-bottom:1px solid #263640;
}
.top-item{
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
  padding:8px 10px;
  border-right:1px solid #17232d;
  line-height:1.35;
}
.top-item .ico{font-size:17px;color:#19c5f5;flex:none}
.top-item strong{display:block;font-size:11px;line-height:1.3;overflow-wrap:anywhere}
.top-item small{display:block;font-size:8px;line-height:1.3;letter-spacing:.45px;margin-top:3px}
.top-emergency{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:9px;
  min-width:0;
  margin:0 0 0 10px;
  padding:9px 12px;
  border:1px solid #59303a;
  border-left:3px solid #c94b58;
  border-radius:4px;
  background:linear-gradient(90deg,#160d11,#100b0e);
  color:#e8a0a6;
  line-height:1.35;
}
.top-emergency>span{font-size:19px!important;color:#d66b75}
.top-emergency strong{display:block;font-size:10px;line-height:1.45;letter-spacing:.35px;color:#f0b0b5}
.top-emergency small{display:block;font-size:8px;line-height:1.4;color:#b9aeb2;margin-top:3px}
.sidebar{
  position:relative;
  top:auto;
  height:auto;
  min-height:100%;
  overflow:visible;
  padding:16px 14px 22px;
  gap:12px;
}
.nav{
  display:flex;
  flex-direction:column;
  align-items:stretch;
  gap:5px;
  width:100%;
}
.nav a{
  display:flex;
  align-items:center;
  width:100%;
  min-height:36px;
  padding:8px 9px;
  gap:10px;
  white-space:normal;
  line-height:1.25;
  border:1px solid transparent;
  border-radius:3px;
  font-size:10px;
  letter-spacing:.25px;
}
.nav a span:first-child{
  display:inline-flex;
  flex:0 0 20px;
  width:20px;
  align-items:center;
  justify-content:center;
  font-size:14px;
}
.side-emergency{
  margin-top:12px;
  border:1px solid #59303a;
  border-left:3px solid #c94b58;
  border-radius:4px;
  background:#100b0e;
  text-align:left;
  padding:11px 10px;
}
.side-emergency b{font-size:9px;letter-spacing:.6px}
.side-emergency strong{font-size:12px;line-height:1.5;margin:6px 0}
.side-emergency small{display:block;line-height:1.4}
@media(max-width:1100px) and (min-width:701px){
  .topbar{
    grid-template-columns:repeat(2,minmax(0,1fr));
    padding-left:288px;
  }
  .top-emergency{grid-column:1/-1;margin:5px 10px}
}
@media(max-width:700px){
  .topbar{padding:8px;grid-template-columns:1fr 1fr;min-height:0}
  .top-emergency{grid-column:1/-1;margin:7px 0 0}
  .sidebar{padding:10px 12px}
  .nav{display:flex;flex-direction:column;gap:3px}
  .nav a{min-height:34px;font-size:11px}
  .side-emergency{margin-top:8px}
}
