/* NIC Core widgets. Colours and fonts come from the Elementor Kit through widget controls. */
/*
 * Widgets given source classes are marked nic-grid--source / nic-item--source: the source
 * stylesheet styles them, so they only get zero-specificity fallbacks here (grid only: no item
 * min-width, flex or margin resets). Default output keeps these rules at their original specificity.
 */
.nic-grid:where(:not(.nic-grid--source)) {
  display: grid;
  grid-template-columns: repeat(var(--nic-columns, 3), minmax(0, 1fr));
  gap: var(--nic-gap, 24px);
}
/* Source classes own the columns (a mobile-first `grid md:grid-cols-2` is one column below md):
   a column fallback here would out-rank the source's implicit single column. */
:where(.nic-grid--source) {
  display: grid;
  gap: var(--nic-gap, 24px);
}
.nic-item:where(:not(.nic-item--source)) {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}
.nic-item[hidden] {
  display: none;
}
/* The cover crop; "Natural size" images keep their own size for the theme stylesheet to shape. */
.nic-item__media:where(:not(.nic-item__media--natural)) img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}
.nic-team .nic-item__media:where(:not(.nic-item__media--natural)) img {
  aspect-ratio: 4 / 5;
}
.nic-item__media--natural img {
  max-width: 100%;
  height: auto;
}
:where(.nic-item:not(.nic-item--source)) .nic-item__title {
  margin: 0;
}
.nic-item__title a {
  color: inherit;
  text-decoration: none;
}
:where(.nic-item:not(.nic-item--source)) .nic-item__meta,
:where(.nic-item:not(.nic-item--source)) .nic-item__text {
  margin: 0;
}
.nic-team__social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nic-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: var(--nic-gap, 24px);
}
.nic-filter__btn {
  cursor: pointer;
}
.nic-filter__btn.is-active {
  text-decoration: underline;
}
.nic-slider__track {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc(
    (100% - (var(--nic-columns, 1) - 1) * var(--nic-gap, 24px)) / var(--nic-columns, 1)
  );
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
}
.nic-slider__track > * {
  scroll-snap-align: start;
}
.nic-slider__nav {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}
.nic-testimonial:where(:not(.nic-item--source)) {
  margin: 0;
}
.nic-testimonial:where(:not(.nic-item--source)) blockquote {
  margin: 0;
}
.nic-testimonial__author {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.nic-testimonial__photo {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
}
.nic-service__icon {
  font-size: 2rem;
  line-height: 1;
}
.nic-empty {
  padding: 1.5rem;
  border: 1px dashed currentColor;
  opacity: 0.7;
  text-align: center;
}
@media (prefers-reduced-motion: reduce) {
  .nic-slider__track {
    scroll-behavior: auto;
  }
}
