/* Referencer (Om SINUZ) — filter + projektgrid (ikke muligt i gratis Elementor) */

body.sinuz-el-site.sinuz-page-referencer main#content .page-content {
  padding: 0;
  margin: 0;
}

.sinuz-filter-bar.e-con {
  overflow: visible;
  position: sticky;
  top: var(--page-top);
  z-index: 99;
  width: 100% !important;
  max-width: none !important;
  background-color: var(--sand-dark) !important;
  border-bottom: 0.5px solid rgba(138, 136, 130, 0.3) !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  align-content: flex-start !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  row-gap: 8px !important;
  column-gap: 8px !important;
}

.sinuz-filter-bar .sinuz-filter-btn.elementor-widget {
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
}

.sinuz-filter-btn .elementor-button {
  white-space: nowrap;
}

.sinuz-referencer-search-widget.elementor-widget {
  flex: 1 1 220px !important;
  max-width: 320px !important;
  width: auto !important;
  margin-left: auto !important;
}

.sinuz-referencer-search-widget .elementor-widget-container,
.sinuz-referencer-search-widget .elementor-shortcode {
  padding: 0 !important;
  margin: 0 !important;
  width: 100% !important;
}

.sinuz-referencer-search-wrap {
  flex: 1 1 220px;
  max-width: 320px;
  margin-left: auto;
  display: flex;
  align-items: center;
  width: 100%;
}

.sinuz-referencer-search-wrap .sinuz-referencer-search,
input[type='search'].sinuz-referencer-search {
  width: 100%;
  box-sizing: border-box;
  margin: 0;
  height: 27px;
  min-height: 27px;
  max-height: 27px;
  padding: 0 16px;
  border: 0.5px solid #fafaf8 !important;
  border-radius: 3px;
  font-family: var(--e-global-typography-accent-font-family), 'DM Sans', sans-serif;
  font-size: 13px;
  line-height: 26px;
  letter-spacing: 0.02em;
  color: var(--sand-light);
  background: transparent;
  box-shadow: none;
  -webkit-appearance: none;
  appearance: none;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.sinuz-referencer-search-wrap .sinuz-referencer-search::-webkit-search-decoration,
.sinuz-referencer-search-wrap .sinuz-referencer-search::-webkit-search-cancel-button,
.sinuz-referencer-search-wrap .sinuz-referencer-search::-webkit-search-results-button,
.sinuz-referencer-search-wrap .sinuz-referencer-search::-webkit-search-results-decoration {
  -webkit-appearance: none;
  appearance: none;
}

.sinuz-referencer-search-wrap .sinuz-referencer-search::placeholder {
  color: var(--sand-light);
  opacity: 0.85;
}

.sinuz-referencer-search-wrap .sinuz-referencer-search:hover,
.sinuz-referencer-search-wrap .sinuz-referencer-search:focus {
  outline: none;
  background-color: #2c2c2a;
  color: var(--white);
  border-color: #2c2c2a !important;
}

.sinuz-referencer-search-empty {
  margin: 0;
  padding: 2rem var(--gutter);
  font-family: var(--e-global-typography-accent-font-family), 'DM Sans', sans-serif;
  font-size: 13px;
  color: var(--gray-mid);
  background: var(--sand-dark);
  text-align: center;
}

.sinuz-filter-btn.is-active .elementor-button {
  background-color: var(--near-black) !important;
  color: var(--white) !important;
  border-color: var(--near-black) !important;
}

.sinuz-project-grid-wrap .elementor-widget-container,
.sinuz-project-grid-wrap .elementor-shortcode {
  padding: 0 !important;
  margin: 0 !important;
}

.sinuz-project-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--sand-dark);
  width: 100%;
}

.sinuz-project-card {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  cursor: pointer;
  background: var(--near-black);
  text-decoration: none;
  color: inherit;
  border: none;
  outline: none;
  box-shadow: none;
}

.sinuz-project-card.is-hidden {
  display: none;
}

.sinuz-project-card-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  transform: scale(1);
  transition: transform 0.5s ease !important;
  will-change: transform;
}

.sinuz-project-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(to top, rgba(44, 44, 42, 0.8) 0%, rgba(44, 44, 42, 0) 60%);
  opacity: 1;
  transition: opacity 0.3s ease !important;
  pointer-events: none;
}

.sinuz-project-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 3;
  padding: 1.25rem;
  transform: translateY(0);
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.3s ease !important;
  pointer-events: none;
}

.sinuz-project-card:hover .sinuz-project-card-bg,
.sinuz-project-card.is-hovered .sinuz-project-card-bg {
  transform: scale(1.04) !important;
}


.sinuz-project-info .sinuz-project-cat,
.sinuz-project-info p.sinuz-project-cat {
  margin: 0 0 4px !important;
  font-family: var(--e-global-typography-accent-font-family), sans-serif !important;
  font-size: 10px !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: rgba(255, 255, 255, 0.55) !important;
}

.sinuz-project-info .sinuz-project-name,
.sinuz-project-info p.sinuz-project-name {
  margin: 0 !important;
  font-family: var(--e-global-typography-text-font-family), sans-serif !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  color: #FAFAF8 !important;
}

.sinuz-project-tag-pill {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  font-family: var(--e-global-typography-accent-font-family), sans-serif;
  font-size: 10px;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(44, 44, 42, 0.6);
  padding: 4px 10px;
  border-radius: 2px;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
}

@media screen and (max-width: 1024px) {
  .sinuz-project-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media screen and (max-width: 640px) {
  .sinuz-project-grid {
    grid-template-columns: 1fr;
  }

  .sinuz-project-card {
    aspect-ratio: 16 / 10;
  }

  .sinuz-project-overlay,
  .sinuz-project-info {
    opacity: 1 !important;
    transform: none !important;
  }

  .sinuz-project-card:hover .sinuz-project-card-bg,
  .sinuz-project-card.is-hovered .sinuz-project-card-bg {
    transform: none !important;
  }
}
