html.ginko-gallery-cms-route body #root .portfolio-gallery-grid > :not([data-ginko-cms-gallery-card]):not([data-ginko-cms-empty]) {
  display: none !important;
}

html.ginko-gallery-cms-route body #root .portfolio-filter-row--single:not([data-ginko-cms-ready="true"]) {
  min-height: 48px;
}

html.ginko-gallery-cms-route body #root .portfolio-filter-row--single:not([data-ginko-cms-ready="true"]) > * {
  visibility: hidden !important;
}

html body #root .portfolio-gallery-card[data-ginko-cms-gallery-card] {
  position: relative;
}

html body #root .portfolio-gallery-card[data-ginko-cms-gallery-card] .portfolio-gallery-visual {
  width: 100% !important;
  aspect-ratio: 1 / 1 !important;
  min-height: 0 !important;
  overflow: hidden !important;
}

html body #root .portfolio-gallery-card[data-ginko-cms-gallery-card] .portfolio-gallery-visual img,
html body #root .portfolio-gallery-card[data-ginko-cms-gallery-card] .portfolio-gallery-visual video {
  width: 100% !important;
  height: 100% !important;
  max-width: none !important;
  object-fit: cover !important;
  object-position: center center !important;
}

html body #root .portfolio-gallery-empty[data-ginko-cms-empty] {
  display: grid;
  min-height: 280px;
  place-items: center;
  border: 3px solid #050505;
  border-radius: 22px;
  background: #202123;
  box-shadow: 0 6px 0 #050505;
  color: #fff;
  text-align: center;
}

html body #root .portfolio-gallery-empty[data-ginko-cms-empty] h2 {
  font-family: var(--ginko-font-display, Poppins, sans-serif);
  font-size: clamp(2rem, 5vw, 4rem);
  font-weight: 950;
  line-height: 1;
  text-shadow: 3px 3px 0 #050505;
}

html body #root .portfolio-gallery-empty[data-ginko-cms-empty] p {
  margin-top: 12px;
  color: #b9c1cf;
  font-weight: 800;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-frame {
  position: relative !important;
  display: grid !important;
  place-items: center !important;
  width: min(1120px, calc(100vw - 48px)) !important;
  max-width: none !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-stage {
  position: relative;
  display: grid;
  width: min(720px, calc(100vw - 92px), calc(100dvh - 156px));
  aspect-ratio: 1 / 1;
  place-items: center;
  overflow: hidden;
  border: 4px solid #fedf40;
  border-radius: 18px;
  background: transparent;
  box-shadow: 0 5px 0 #050505;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-stage img,
html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-stage video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  background: transparent;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-close {
  position: absolute !important;
  top: -18px !important;
  right: calc(50% - min(360px, calc((100vw - 92px) / 2), calc((100dvh - 156px) / 2)) - 18px) !important;
  z-index: 8 !important;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-nav {
  position: fixed;
  top: 50%;
  z-index: 7;
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  transform: translateY(-50%);
  border: 3px solid #050505;
  border-radius: 12px;
  background: #fedf40;
  color: #050505;
  box-shadow: 0 4px 0 #050505;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-nav.is-prev {
  left: 24px;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-nav.is-next {
  right: 24px;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-count {
  position: absolute;
  left: 50%;
  bottom: -58px;
  display: grid;
  min-width: 56px;
  height: 44px;
  place-items: center;
  transform: translateX(-50%);
  border: 3px solid #050505;
  border-radius: 12px;
  background: #fedf40;
  color: #050505;
  font-weight: 950;
  box-shadow: 0 3px 0 #050505;
}

html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 3.2;
}

@media (max-width: 760px) {
  html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-nav.is-prev {
    left: 12px;
  }

  html body .portfolio-gallery-modal[data-ginko-cms-gallery-modal] .portfolio-gallery-modal-nav.is-next {
    right: 12px;
  }
}
