/* Bucket v0.4 — preview only. Existing scanner, thumbnails and lightbox unchanged. */
.bucket-v04{box-sizing:border-box;max-width:1320px;margin:0 auto;padding:35px clamp(18px,4vw,60px) 70px;float:none!important;width:100%!important}
.bucket-v04 h1{font-size:clamp(28px,3vw,40px);font-weight:400;color:#444;margin:0 0 15px}
.bucket-v04__grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,230px),1fr));gap:28px;margin:35px 0}
.bucket-v04__card{text-decoration:none;color:#333;display:block;min-width:0;text-align:center}
.bucket-v04__cover{display:flex;align-items:center;justify-content:center;aspect-ratio:4/3;background:#f4f4f4}
.bucket-v04__cover img{display:block;max-width:100%;max-height:100%;width:auto;height:auto;object-fit:contain}
.bucket-v04__name{display:block;font-size:18px;margin-top:12px;font-weight:600}
.bucket-v04__count{display:block;color:#666;font-size:13px;margin-top:5px}
.bucket-v04__card:hover .bucket-v04__name,.bucket-v04__card:focus-visible .bucket-v04__name{text-decoration:underline}
.bucket-v04__pages{display:flex;gap:20px;align-items:center;justify-content:center;margin-top:30px}
.bucket-v04__photos{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,240px),1fr));gap:16px;margin-top:30px}
.bucket-v04__photos a{display:flex;align-items:center;justify-content:center;min-height:190px;background:#f4f4f4}
.bucket-v04__photos img{display:block;width:auto;height:auto;max-width:100%;max-height:240px;object-fit:contain}
.bucket-v04__story{white-space:normal;line-height:1.7;overflow-wrap:anywhere;max-width:850px}

/* v0.4c: standard centered Corbin shell, without the decorative sidebar. */
body.bucket-gallery-page { background-image: url('/backpattern.jpg'); }
.bucket-gallery-page #wrapper {
  width: 645px; max-width: 100%; margin: 0 auto;
  background: #fff !important; background-image: none !important;
  box-sizing: border-box;
}
.bucket-gallery-page #header {
  position: static; width: 100%; float: left;
  box-sizing: border-box;
}
.bucket-gallery-page #rightcolumn.bucket-v04 {
  clear: both; float: none !important;
  width: 100% !important; max-width: none !important;
  padding: 24px 22px 55px !important; margin: 0 !important;
  background: #fff; box-sizing: border-box;
}
.bucket-gallery-page #footer {
  clear: both; float: none; width: 100%; box-sizing: border-box;
}
.bucket-gallery-page .bucket-v04__grid {
  display: grid; grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 32px 18px; margin: 30px 0 42px;
}
.bucket-gallery-page .bucket-v04__cover {
  aspect-ratio: auto; min-height: 150px; background: transparent;
}
.bucket-gallery-page .bucket-v04__cover img {
  max-width: 100%; max-height: 210px; width: auto; height: auto; object-fit: contain;
}
.bucket-gallery-page .bucket-v04__photos a { background: transparent; }
.bucket-gallery-page .bucket-v04__story {
  margin: 20px auto 30px; max-width: 850px;
  text-align: left !important; line-height: 1.7;
}
.bucket-gallery-page .bucket-v04 h1.landing-page__heading {
  font-size: 1.1rem; font-weight: bold; line-height: 1.2;
  color: #494949; margin: 0 0 6px;
}
.bucket-gallery-page .bucket-v04 .landing-page__subtitle {
  font-size: .9rem; font-weight: bold; color: #666;
  text-align: center; margin: 0 0 24px;
}
@media (min-width: 950px) {
  .bucket-gallery-page #wrapper { width: 1050px; }
}
@media (max-width: 949px) {
  .bucket-gallery-page .bucket-v04__grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 520px) {
  .bucket-gallery-page #rightcolumn.bucket-v04 { padding: 22px 12px 45px !important; }
  .bucket-gallery-page .bucket-v04__grid { gap: 26px 12px; }
}
