.tc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(var(--tc-gallery-columns, 4), minmax(0, 1fr));
}
.tc-gallery-grid > .thumb { padding: 0 15px; max-width: none; width: auto; min-width: 0; }
@media (max-width: 991px) {
  .tc-gallery-grid { grid-template-columns: repeat(min(var(--tc-gallery-columns, 4), 3), minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .tc-gallery-grid { grid-template-columns: minmax(0, 1fr); }
}
.tc-lightbox {
  padding: 1rem;
  border: 0;
  color: white;
  background: #171717;
  max-width: 95vw;
  max-height: 95vh;
}
.tc-lightbox::backdrop { background: rgb(0 0 0 / 85%); }
.tc-lightbox img { display: block; max-width: 85vw; max-height: 75vh; object-fit: contain; margin: auto; }
.tc-lightbox p { margin: .5rem 0; text-align: center; }
.tc-lightbox-controls { display: flex; gap: 1rem; justify-content: center; }
.tc-lightbox button { background: transparent; color: inherit; border: 1px solid #aaa; padding: .3rem .8rem; cursor: pointer; }
.tc-lightbox button:focus-visible { outline: 3px solid #AB8708; outline-offset: 2px; }
