@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600&display=swap');

.apex-model-filter {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 70px;
  margin: 0 auto 34px auto;
  padding: 0 0 18px 0;
  border-bottom: 1px solid #e5e5e5;
  max-width: 980px;
}

.apex-filter-btn,
.apex-filter-btn:hover,
.apex-filter-btn:focus,
.apex-filter-btn:active {
  appearance: none !important;
  -webkit-appearance: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
  padding: 0 !important;
  margin: 0 !important;
  cursor: pointer;

  font-family: 'Inter', sans-serif !important;
  font-size: 13px !important;
  font-weight: 400 !important;
  letter-spacing: 2.6px !important;
  line-height: 1 !important;
  text-transform: uppercase !important;
  color: #666 !important;
  position: relative;
}

.apex-filter-btn:hover,
.apex-filter-btn.active {
  color: #111 !important;
}

.apex-filter-btn:focus-visible {
    outline: 2px solid #111 !important;
    outline-offset: 7px !important;
}

.apex-filter-btn.active::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -19px;
  width: 100%;
  height: 1px;
  background: #111;
}

/* ===== GRID ===== */
.apex-simple-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 34px 28px;
}

.apex-simple-card {
  display: flex;
  flex-direction: column;
  opacity: 1;
  transform: translateY(0) scale(1);
  transition: opacity .3s ease, transform .45s cubic-bezier(.22,1,.36,1);
}

.apex-simple-card.hidden {
  display: none;
}

.apex-simple-card.leaving {
  opacity: 0;
  transform: translateY(12px) scale(.98);
}

.apex-simple-card.entering {
  opacity: 0;
  transform: translateY(18px) scale(.98);
}

.apex-simple-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ===== BILDER ===== */
.apex-simple-image {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f1f1f1;
}

.apex-simple-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  transition: transform 0.35s ease;
}

.apex-simple-card:hover img {
  transform: scale(1.03);
}

/* ===== NAVN ===== */
.apex-simple-info {
  margin-top: 10px;
  text-align: center;
}

.apex-simple-name {
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 400;
  color: #666;
}

.apex-simple-card:hover .apex-simple-name {
  color: #111;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
  .apex-simple-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .apex-model-filter {
    gap: 34px;
    margin-bottom: 28px;
  }

  .apex-filter-btn {
    font-size: 12px !important;
    letter-spacing: 2px !important;
  }

  .apex-simple-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 22px 12px;
  }
}