/* ── Masonry Grid ── */
.masonry-with-columns {
  columns: 5 200px;
  column-gap: 1.5rem;
}

.exhibit-item {
  break-inside: avoid;
  margin-bottom: 1.5rem;
}

/* ── Card ── */
.exhibit-item .card {
  border: 1px solid #dedede;
  border-radius: 4px;
  overflow: hidden;
  background: #fff;
}

.exhibit-item .card-img-top {
  width: 100%;
  height: auto;
  display: block;
}

.exhibit-item .card-body {
  padding: 0.75rem 1rem;
}

.exhibit-item .card-title {
  font-size: 1rem;
  margin: 0;
}

.exhibit-item .card-title a {
  color: #920b0b;
  text-decoration: none;
}

.exhibit-item .card-title a:hover {
  color: #ed1616;
}

/* ── Filter Button Bar ── */
.toggle-exhibits {
  text-align: center;
  margin: 2rem 0;
}

.toggle-exhibits .btn-check {
  display: none; /* hide the actual radio inputs */
}

.toggle-exhibits .btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  margin: 0.25rem;
  border: 2px solid #920b0b;
  border-radius: 3px;
  color: #920b0b;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  transition: background 0.2s, color 0.2s;
}

.toggle-exhibits .btn-check:checked + .btn,
.toggle-exhibits .btn:hover {
  background: #920b0b;
  color: #fff;
}

/* ── Utility ── */
.px-5 {
  padding-left: 2rem;
  padding-right: 2rem;
}

.my-5 {
  margin-top: 2rem;
  margin-bottom: 2rem;
}



/* Remove rounded corners from images */
#main-content img:not(.leaflet-marker-icon) {
  border-radius: 0;
}

/* Remove the dashed decoration border */
.decoration::after {
  border: none;
  border-radius: 0;
}

/* Also flatten card images specifically */
.exhibit-item .card-img-top {
  border-radius: 0;
}



.faceted-browse-page #section-content table tbody {
  display: grid !important;
  grid-template-columns: repeat(2, 1fr) !important;
  gap: 1.5rem !important;
}

.faceted-browse-page #section-content table thead {
  display: none !important;
}

.faceted-browse-page #section-content table tr {
  display: contents !important;
}

.faceted-browse-page #section-content table td {
  display: flex !important;
  flex-direction: column !important;
  border: 1px solid #dedede !important;
  border-radius: 4px !important;
  overflow: hidden !important;
  background: #fff !important;
  padding: 0 !important;
}

.faceted-browse-page #section-content table a.resource-link {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
}

.faceted-browse-page #section-content table a.resource-link img {
  width: 100% !important;
  height: auto !important;
  max-height: none !important;
  display: block !important;
  margin: 0 !important;
}

.faceted-browse-page #section-content table a.resource-link .resource-name {
  padding: 0.6rem 0.75rem !important;
  text-align: center !important;
  display: block !important;
  width: 100% !important;
}