.hubdb-gallery{
  scroll-margin-top:160px;
}
{#******* FILTERS *******#}
.hubdb__filters{
  display: flex; 
  justify-content: space-between;
  gap:20px;
}
.hubdb__filter-field{
  width:100%;
}
.hubdb__filter-field input,
.hubdb__filter-field select{
  padding: 10px;
  width:100%;
  border: 1px solid #B5B5B5;
}
.hubdb__filter-field select{
  height: 50px;
}
.hubdb__filter-field input:not([type="checkbox"], [type="radio"]){
  height: 50px;
}
.hubdb__filter-field input::placeholder,
.hubdb__filter-field select{
  color: #B5B5B5;
}
.hubdb__filter-field select:focus{
  color:revert;
}
.hubdb__filter-field input[type="checkbox"],
.hubdb__filter-field input[type="radio"]{
  display: block;
}

.hubdb__filter-field label{
  display: block;
}
.hubdb__filter-field--multiselect:not(.hubdb--SELECT),
.hubdb__filter-field--foreign_id:not(.hubdb--SELECT),
.hubdb__filter-field--select:not(.hubdb--SELECT){
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
}
.hubdb__filter--checkbox-subfield{
  text-align: center;
  margin: 0 10px;
}
.hubdb__filter--checkbox-subfield label{
  display: block;
}
.hubdb__filter-subfield{
  margin: 10px;
}
.hubdb__filter-field label::after{
  content: "*";
  padding-left:4px;
  color: #EB5D57;
}
.hubdb__not-found-results{
  color:var(--secondary)
}
.hubdb__information .hubdb__card-button.button {
  margin: unset;
  display: inline-block;
  text-transform:uppercase;
  margin-bottom:8px;
}
.hubdb-gallery .hubdb__load-more{
  margin: 0 auto;
  display: none;
}
.hubdb__load-more.button.button--active {
  display: flex;
  justify-content: center;
  margin: 64px auto 32px;
  width: fit-content;
}

{#******* PAGINATION *******#}
.hubdb__pagination{
  margin: 64px auto 32px;
  text-align: center;
  width: fit-content;
  position: relative;
  user-select: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}
.hubdb__pagination-container{
  padding: 0 16px;
  display: flex;
  justify-content: center;
  gap: 16px;
}
.hubdb__button-prev,
.hubdb__button-next{
  pointer-events: none;
  cursor: initial;
  width: 40px;
  height: 40px;
  position: absolute;
  top: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  transition: all .3s ease-in-out;
  opacity:0.6;
  text-decoration:none;
}
.hubdb__button-prev.button--active,
.hubdb__button-next.button--active{
  pointer-events: initial;
  cursor: pointer;
  opacity:0.95;
}
.hubdb__button-prev:hover,
.hubdb__button-next:hover{
  opacity:1;
}
.hubdb--pagination-hide .hubdb__button-prev,
.hubdb--pagination-hide .hubdb__button-next{
  display:none;
  transition: all .3s ease;
}
.hubdb__button-prev{
  left: -32px;
}
.hubdb__button-next{
  right: -32px;
}
.hubdb__button-page {
  width:40px;
  height: 40px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration:none;
  transition: all .3s ease;
}
.hubdb__button-page--active{
  pointer-events:none;
}
.hubdb__button-page:hover{
  text-decoration:none;
}
{#******* CARD *******#}
.hubdb__container{
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-wrap: wrap;
}
.photo-card {
  width: 100%;
  height: 250px;
}

.photo-card__media {
  background: #f4f1ed;
  overflow: hidden;
  position: relative;
  width: 100%;
  height: 100%;
}

.photo-card__image {
  display: block;
  height: 100%;
  object-fit: cover;
  transition: transform 250ms ease;
  width: 100%;
}

.photo-card__download {
  align-items: center;
  background: rgb(255 255 255 / 0.72);
  color: inherit;
  display: flex;
  inset: 0;
  justify-content: center;
  letter-spacing: 0.12em;
  opacity: 0;
  position: absolute;
  text-decoration: none;
  text-transform: uppercase;
  transition: opacity 200ms ease;
}

.photo-card__media:hover .photo-card__download,
.photo-card__media:focus-within .photo-card__download {
  opacity: 1;
}

.photo-card__media:hover .photo-card__image {
  transform: scale(1.025);
}

.photo-gallery-downloads {
  align-items: center;
  background: #f1ebe1;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.55rem;
  justify-content: center;
  margin-top: 2rem;
  padding: 1.1rem 1.5rem;
}

.photo-gallery-downloads__link {
  color: inherit;
  letter-spacing: 0.11em;
  text-decoration: none;
  text-transform: uppercase;
}

.photo-gallery-downloads__link + .photo-gallery-downloads__link::before {
  content: none;
  margin-right: 0.55rem;
}

.photo-gallery-downloads__link:hover,
.photo-gallery-downloads__link:focus-visible {
  text-decoration: underline;
}

@media (max-width: 767px) {
  .photo-gallery-downloads {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-gallery-downloads__link + .photo-gallery-downloads__link::before {
    display: none;
  }
}

.hubdb--hide{
  display:none;
}
{#*************** MEDIA QUERYS ***************#}
@media screen and (max-width: 992px){
  /* `.hubdb__card { height: fit-content }` below also matches the photo cards,
     which carry both classes, and it overrides `.photo-card { height: 250px }`.
     That let every card size itself to its own photo, so at 2 columns the cards
     came out at different heights. A ratio keeps them uniform and lets them
     scale with the wider column instead of staying at a squat 250px. */
  .hubdb__card.photo-card{
    aspect-ratio: 4 / 3;
    height: auto;
  }
  .hubdb__filters{
    flex-wrap: wrap;
    align-items: center;
  }
  .hubdb__filter-field{
    width:48%;
  }
  .hubdb__card{
    margin: 0 auto;
    height: fit-content;
    flex-direction: column;
    align-items: stretch;
    max-width: 818px;
    width: 100%;
  }
}
@media(max-width:765px){
  .hubdb__filter-field{
    width:100%;
  }
}

.gallery-category-toolbar {
  align-items: center;
  background: #f4efe6;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 24px;
  padding: 12px 20px;
}
.gallery-category-toolbar__categories {
  display: flex;
  flex-basis: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
/* .gallery-category-toolbar__* buttons are real <button> elements (for keyboard/screen-reader
   support), so the theme's global "button, .button, .hs-button" skin in css/_buttons.css also
   matches them. These resets neutralize that global chrome (its ::before/::after pseudo-elements
   in particular are `position: absolute`, which would otherwise pull our own "•" separator out of
   normal text flow and make it collapse against the previous button). */
.gallery-category-toolbar__category-button {
  background: transparent;
  border: 0;
  box-shadow: none;
  color: inherit;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  letter-spacing: .08em;
  padding: 0 8px;
  position: static;
  transform: none;
}
.gallery-category-toolbar__category-button::before,
.gallery-category-toolbar__category-button::after {
  content: none;
}
.gallery-category-toolbar__category-button + .gallery-category-toolbar__category-button::before {
  content: none;
  margin-right: 16px;
  position: static;
  text-decoration: none;
}
.gallery-category-toolbar__category-button[aria-pressed="true"] {
  border-bottom: 2px solid currentColor;
}
.gallery-category-toolbar__download-row {
  display: flex;
  flex-basis: 100%;
  justify-content: center;
  margin-top: 10px;
}

.gallery-category-toolbar__download-button {
  cursor: pointer;
  font-size: 12px;
}

.gallery-category-toolbar__download-button[disabled] { cursor: wait; opacity: .65; }