section.controls {
  position: relative;
  z-index: 95;
}
@container main (min-width: 48.0625rem) {
  section.controls {
    padding-block: calc(var(--block-padding) * 2);
    background: var(--secondary);
  }
}
@media (max-width: 48rem) {
  section.controls .search {
    padding-bottom: 1.25rem;
    border-bottom: 1px solid var(--text-secondary-50);
  }
}
section.controls .search #searchbox {
  width: 100%;
}
section.controls .search form {
  background: transparent;
  display: -ms-grid;
  display: grid;
  -webkit-box-align: center;
      -ms-flex-align: center;
          align-items: center;
  -ms-flex-line-pack: center;
      align-content: center;
  height: auto;
}
section.controls .search form::before {
  width: 1.6875rem;
  height: 1.6875rem;
  background-image: url("/wp-content/themes/grieg-kunstsamling-live/assets/icon-search.svg") !important;
  background-size: contain;
  left: 0;
  margin: 0;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
}
@media (max-width: 48rem) {
  section.controls .search form::before {
    height: 1.125rem;
    width: 1.125rem;
  }
}
section.controls .search input {
  background: transparent;
  color: var(--text-primary);
  font: var(--body-font);
  padding: 0.625rem 0.9375rem;
  border: 0;
  width: 100%;
  -webkit-box-shadow: none;
          box-shadow: none;
  padding: 0;
  padding-left: 4.25rem;
  caret-color: var(--text-secondary);
}
section.controls .search input::-webkit-input-placeholder {
  color: var(--text-secondary);
}
section.controls .search input::-moz-placeholder {
  color: var(--text-secondary);
}
section.controls .search input:-ms-input-placeholder {
  color: var(--text-secondary);
}
section.controls .search input::-ms-input-placeholder {
  color: var(--text-secondary);
}
section.controls .search input::placeholder {
  color: var(--text-secondary);
}
@media (max-width: 48rem) {
  section.controls .search input {
    padding-left: 2rem;
    font-size: 1rem;
  }
}
section.controls .search .ais-SearchBox-reset path {
  fill: var(--highlight);
}
section.controls .search .ais-SearchBox-loadingIndicator,
section.controls .search .ais-SearchBox-reset {
  right: 0;
}
section.controls .filter [class*=icon-] {
  -webkit-transition: scale var(--bezier);
  transition: scale var(--bezier);
  width: 1.125rem;
  height: 1.125rem;
}
section.controls .filter .ais-ClearRefinements-button {
  display: none;
  background: none;
  border: 0;
  color: var(--text-secondary);
  font: var(--body-font);
  border: 0 !important;
  -webkit-box-shadow: none !important;
          box-shadow: none !important;
  outline: none !important;
  -webkit-appearance: none !important;
     -moz-appearance: none !important;
          appearance: none !important;
  -webkit-transition: color var(--bezier);
  transition: color var(--bezier);
}
section.controls .filter .ais-ClearRefinements-button:hover {
  color: var(--text-primary);
}
section.controls .filter:has(.ais-ClearRefinements-button:not([disabled])) .ais-ClearRefinements-button {
  display: block;
}
section.controls .filter .filter-toggle #stats {
  display: none;
  background-color: var(--highlight);
  padding: 0.625rem 1.5625rem;
  border-radius: 0.25rem;
  -webkit-transition: background-color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transition: background-color 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
section.controls .filter .filter-toggle #stats:hover {
  background-color: var(--highlight-hover);
}
section.controls .filter .filter-toggle [class*=icon] {
  -webkit-transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
section.controls .filter .filter-toggle:hover .icon-chevron-down {
  margin-top: 0.3125rem;
}
section.controls .filter .filter-toggle.active #stats {
  display: block;
}
section.controls .filter .filter-toggle.active .text {
  display: none;
  font: var(--body-title-font);
}
section.controls .filter .filter-toggle.active [class*=icon-] {
  margin: 0 !important;
}
section.controls .filter .filter-toggle.active [class*=icon-]:hover {
  scale: 1.15;
}
section.controls .filter .filter-toggle.active [class*=icon-]::after {
  -webkit-mask-image: url("/wp-content/themes/grieg-kunstsamling-live/assets/icon-close.svg");
          mask-image: url("/wp-content/themes/grieg-kunstsamling-live/assets/icon-close.svg");
}

.gallery-range {
  -ms-grid-columns: auto 1fr auto;
  grid-template-columns: auto 1fr auto;
}
@media (max-width: 48rem) {
  .gallery-range {
    position: sticky;
    bottom: 1.25rem;
    background: var(--secondary);
    z-index: 90;
    width: calc(100% - var(--inline-padding) * 2);
    margin: 0 auto;
    padding: 0 1.25rem;
    border-radius: 100px;
    right: 0;
    left: 0;
  }
}
.gallery-range [class*=icon-] {
  width: 1.6875rem;
  height: 1.6875rem;
  cursor: pointer;
}
.gallery-range [class*=icon-]::after {
  background: var(--_text);
}
.gallery-range input {
  direction: rtl;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
       appearance: none;
  width: 100%;
  padding: 12px 0;
  background: transparent;
  cursor: -webkit-grab;
  cursor: grab;
}
@media (max-width: 48rem) {
  .gallery-range input {
    padding: 28px 0;
  }
}
.gallery-range input::-webkit-slider-runnable-track {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  -webkit-box-sizing: border-box;
          box-sizing: border-box;
  background: var(--_text);
  width: 100%;
  height: 2px;
  border-radius: 5px;
}
.gallery-range input::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  position: relative;
  left: initial;
  top: 50%;
  -webkit-transform: translateY(-50%);
          transform: translateY(-50%);
  background: var(--_text);
  width: 20px;
  height: 20px;
  border-radius: 100%;
  -webkit-transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), height 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transition: width 0.3s cubic-bezier(0.23, 1, 0.32, 1), height 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-range input::-webkit-slider-thumb:hover {
  width: 25px;
  height: 25px;
}
.gallery-range input::-moz-range-track {
  position: relative;
  box-sizing: border-box;
  background: var(--_text);
  width: 100%;
  height: 2px;
  border-radius: 5px;
}
.gallery-range input::-moz-range-thumb {
  position: relative;
  left: initial;
  top: 50%;
  background: var(--_text);
  width: 20px;
  height: 20px;
  border-radius: 100%;
  -moz-transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.gallery-range input::-moz-range-thumb:hover {
  width: 25px;
  height: 25px;
}

#gallery {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
      flex-wrap: wrap;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  gap: var(--gallery-gap);
  position: relative;
  padding-block: calc(var(--block-padding) * 4);
  -webkit-box-align: stretch;
      -ms-flex-align: stretch;
          align-items: stretch;
}
@container main (min-width: 48.0625rem) {
  #gallery {
    row-gap: 7.5rem;
  }
}
@container main (max-width: 48rem) {
  #gallery {
    padding-block: var(--block-padding) 0;
  }
}
#gallery a {
  -webkit-transition: -webkit-box-flex 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: -webkit-box-flex 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: flex 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: flex 0.5s cubic-bezier(0.23, 1, 0.32, 1), -webkit-box-flex 0.5s cubic-bezier(0.23, 1, 0.32, 1), -ms-flex 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  margin: 0;
  text-decoration: none;
  position: relative;
  cursor: auto;
}
@media (min-width: 48.0625rem) {
  #gallery a img:hover {
    scale: 1.05;
  }
}
#gallery a .img-wrapper {
  position: static;
  aspect-ratio: 1;
  height: 100%;
  width: 100%;
}
#gallery a .img-wrapper:not(.loaded)::before {
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
          transform: translate(-50%, -50%);
  position: absolute;
  content: "";
  display: block;
  height: 40px;
  width: 40px;
  background: url('data:image/svg+xml,<svg width="38" height="38" viewBox="0 0 42 42" xmlns="http://www.w3.org/2000/svg" stroke="%23FFF"> <g fill="none" fill-rule="evenodd"> <g transform="translate(2 2)" stroke-width="4"> <circle stroke-opacity=".5" cx="18" cy="18" r="18"/> <path d="M36 18c0-9.94-8.06-18-18-18"> <animateTransform attributeName="transform" type="rotate" from="0 18 18" to="360 18 18" dur="1s" repeatCount="indefinite"/> </path> </g> </g> </svg>');
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  z-index: -1;
}
#gallery a .metadata {
  margin-top: 2.1875rem;
}
#gallery a img {
  cursor: pointer;
  -webkit-transition: scale 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  transition: scale 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  height: 100%;
  -o-object-position: bottom;
     object-position: bottom;
}
#gallery a .producer {
  font: var(--body-title-font);
  text-align: center;
}
@container main (max-width: 48rem) {
  #gallery a .producer {
    font: var(--h4-font);
  }
}
@container main (min-width: 48.0625rem) {
  #gallery a .producer .name {
    font-weight: 700;
  }
}
@container main (max-width: 48rem) {
  #gallery a .producer .year {
    color: var(--text-secondary);
  }
}
#gallery a .title {
  font: var(--body-title-font);
  text-align: center;
}
@container main (min-width: 48.0625rem) {
  #gallery a .title .name {
    font-style: italic;
  }
}
#gallery a .meta {
  font: var(--body-font);
  text-align: center;
}
@container main (min-width: 48.0625rem) {
  #gallery a .meta {
    margin-top: 0.625rem;
  }
}
#gallery.flex-1 a, #gallery.flex-2 a {
  display: -ms-grid;
  display: grid;
  -webkit-box-align: end;
      -ms-flex-align: end;
          align-items: end;
  -ms-flex-line-pack: end;
      align-content: end;
  -ms-grid-rows: auto 1fr;
  grid-template-rows: auto 1fr;
}
@container main (min-width: 48.0625rem) {
  #gallery.flex-1 {
    row-gap: 7.5rem;
  }
}
@container main (max-width: 48rem) {
  #gallery.flex-1 {
    row-gap: 2.1875rem;
  }
}
#gallery.flex-1 > * {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 100%;
          flex: 0 0 100%;
}
@container main (min-width: 48.0625rem) {
  #gallery.flex-2 {
    row-gap: 7.5rem;
  }
}
#gallery.flex-2 > * {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(50% - var(--gallery-gap) / 2);
          flex: 0 0 calc(50% - var(--gallery-gap) / 2);
}
#gallery.flex-3 > * {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(33.3333333% - var(--gallery-gap) / 1.5);
          flex: 0 0 calc(33.3333333% - var(--gallery-gap) / 1.5);
}
#gallery.flex-4 > * {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(25% - var(--gallery-gap) / 1.33);
          flex: 0 0 calc(25% - var(--gallery-gap) / 1.33);
}
#gallery.flex-5 > * {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(20% - var(--gallery-gap) / 1.25);
          flex: 0 0 calc(20% - var(--gallery-gap) / 1.25);
}
#gallery.flex-6 > * {
  -webkit-box-flex: 0;
      -ms-flex: 0 0 calc(16.6666666667% - var(--gallery-gap) / 1.2);
          flex: 0 0 calc(16.6666666667% - var(--gallery-gap) / 1.2);
}
#gallery:not(.flex-1):not(.flex-2) .metadata {
  display: none;
}
@container main (max-width: 48rem) {
  #gallery:not(.flex-1) .metadata {
    display: none !important;
  }
}
#gallery .no-results {
  text-align: center;
  color: var(--text-secondary);
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  background: var(--primary);
  height: 100vh;
  width: 100vw;
  z-index: 98;
  padding-top: var(--header-height);
  overflow-y: auto;
  overflow-x: hidden;
}
.modal .site-footer {
  position: relative !important;
  margin-top: var(--block-padding-large);
}

@media (min-width: 48.0625rem) {
  body.filter-open .controls > div {
    -ms-grid-columns: auto 1fr auto;
    grid-template-columns: auto 1fr auto;
  }
}
body.filter-open .gallery-range {
  visibility: hidden;
  width: 100%;
}

body:not(.filter-open) .ais-ClearRefinements-button {
  display: none !important;
}

#pagination {
  padding-bottom: 7.5rem;
}
#pagination .ais-Pagination-link {
  background: transparent;
  color: var(--highlight);
  -webkit-box-shadow: none;
          box-shadow: none;
  border: 0;
  -webkit-transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  transition: 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
#pagination .ais-Pagination-link:hover {
  color: var(--text-primary);
}
#pagination:has(.ais-Pagination--noRefinement) {
  display: none;
}

@-webkit-keyframes blink {
  0% {
    opacity: 0;
  }
  33% {
    opacity: 1;
  }
  66% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

@keyframes blink {
  0% {
    opacity: 0;
  }
  33% {
    opacity: 1;
  }
  66% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}