

#page-header{
  position: fixed; top: 0; left: 0; width: 100%;
  background: #fff; z-index: 10000; border-bottom: 1px solid #ccc;
}
#content{ padding-top: 100px; }
#content [id]{ scroll-margin-top: 100px; }
html{ scroll-padding-top: 100px; }

/* ---- Lightbox ---- */
.lightbox{
  display: none;
  position: fixed; inset: 0;
  background: rgba(0,0,0,.88);
  z-index: 9999; padding: 24px;
  place-items: center;
}
.lightbox.open{ display: grid; }

.lightbox-inner{ max-width: min(1200px, 96vw); width: 100%; color: #fff; }
.lightbox-img{
  width: 100%; height: auto; max-height: 86vh;
  object-fit: contain; background: #111; border-radius: 6px;
}
.lightbox-caption{
  font-size: 14px; margin-top: 10px; color: #eaeaea;
  background: rgba(0,0,0,.4); padding: 10px 12px; border-radius: 6px;
}

.lightbox-close{
  position: absolute; top: 10px; right: 16px;
  color: #fff; font-size: 24px; background: transparent; border: none; cursor: pointer;
}
.lightbox-prev, .lightbox-next{
  position: absolute; top: 50%; transform: translateY(-50%);
  border: none; background: rgba(0,0,0,.6); color: #fff; font-size: 16px; line-height: 1;
  padding: 14px 16px; border-radius: 6px; cursor: pointer; user-select: none; box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.lightbox-prev{ left: 12px; }
.lightbox-next{ right: 12px; }
.lightbox-close:focus, .lightbox-prev:focus, .lightbox-next:focus{
  outline: 2px solid #66afe9; outline-offset: 2px;
}

@media (max-width: 640px){
  .lightbox-prev, .lightbox-next{ padding: 16px 18px; font-size: 15px; }
  .lightbox-close{ font-size: 26px; padding: 8px 10px; }
}

@media print{
  body{ background:#fff; }
  .page{ box-shadow:none; margin:0; padding:0; }
  .lightbox{ display:none !important; }
  section.work{ break-after: page; }
  .back-top{ display:none; }
}


.lightbox2-prev,
.lightbox2-next{
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,.6);
  color: #fff;
  font-size: 16px;
  line-height: 1;
  padding: 14px 16px;
  border-radius: 6px;
  cursor: pointer;
  user-select: none;
  box-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.lightbox2-prev{ left: 12px; }
.lightbox2-next{ right: 12px; }

.lightbox2-prev:focus,
.lightbox2-next:focus,
.lightbox2-close:focus{
  outline: 2px solid #66afe9;
  outline-offset: 2px;
}

@media (max-width: 640px){
  .lightbox2-prev, .lightbox2-next{ padding: 16px 18px; font-size: 15px; }
  .lightbox2-close{ font-size: 26px; padding: 8px 10px; }
}

@media print{
  .lightbox2{ display:none !important; }
}

