.br-gallery-card { margin-bottom: 0; }
.br-gallery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.br-gallery-header .card-header-left {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}
.br-gallery-post-email {
  font-size: 11px;
  font-weight: 600;
  color: #4a90e2;
  text-decoration: none;
  word-break: break-all;
}
.br-gallery-post-email:hover { text-decoration: underline; }
.br-gallery-empty {
  margin: 0;
  padding: 12px 14px 14px;
  font-size: 12px;
  color: #8a96b0;
}
.br-gallery-month-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.br-gallery-month-btn {
  width: 28px;
  height: 28px;
  padding: 0;
  border: 1px solid #d8dce8;
  border-radius: 6px;
  background: #fff;
  color: #1a2744;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
}
.br-gallery-month-btn:hover { background: #eef4ff; border-color: #4a90e2; color: #1a5490; }
.br-gallery-month-label {
  min-width: 5.5em;
  text-align: center;
  font-size: 12px;
  font-weight: 700;
  color: #4a5070;
  letter-spacing: 0.02em;
}
.br-gallery-grid {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  padding: 12px 14px 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.br-gallery-item {
  display: block;
  flex: 0 0 88px;
  width: 88px;
  height: 88px;
  padding: 0;
  border: 1px solid #e4e7ef;
  border-radius: 8px;
  overflow: hidden;
  background: #f0f2f6;
  cursor: pointer;
  font: inherit;
}
.br-gallery-item[hidden] { display: none !important; }
.br-gallery-item:hover { border-color: #4a90e2; box-shadow: 0 0 0 2px rgba(74,144,226,.2); }
.br-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.br-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 12000;
  background: rgba(12, 16, 28, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}
.br-gallery-lightbox[hidden] { display: none !important; }
.br-gallery-lightbox-figure {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: 100%;
  text-align: center;
}
.br-gallery-lightbox-figure img {
  max-width: 100%;
  max-height: calc(100vh - 100px);
  object-fit: contain;
  border-radius: 6px;
  background: #111;
}
.br-gallery-lightbox-figure figcaption {
  margin-top: 12px;
  color: #e8ecf4;
  font-size: 14px;
  letter-spacing: 0.02em;
}
.br-gallery-lightbox-close {
  position: absolute;
  top: 12px;
  right: 16px;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: #fff;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}
.br-gallery-lightbox-close:hover { background: rgba(255,255,255,.22); }
@media (max-width: 640px) {
  .br-gallery-item { flex-basis: 72px; width: 72px; height: 72px; }
  .br-gallery-month-label { min-width: 4.5em; font-size: 11px; }
  .br-gallery-post-email { font-size: 10px; }
}
