.native-portfolio {
  padding-bottom: clamp(3rem, 6vw, 6rem);
}

.native-portfolio__page-head h1 {
  max-width: 28ch;
  overflow-wrap: anywhere;
}

.native-portfolio__intro {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem 2rem;
}

.native-portfolio__intro p {
  max-width: 64ch;
  margin-bottom: 0;
}

.native-portfolio__link,
.native-portfolio__filter-actions a,
.native-portfolio-card__more {
  color: var(--primary, #a44228);
  font-weight: 650;
  text-underline-offset: .18em;
}

.native-portfolio__link:hover,
.native-portfolio__filter-actions a:hover {
  text-decoration: underline;
}

.native-portfolio__categories {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-block: 1.25rem;
}

.native-portfolio__categories a,
.native-portfolio__pagination a,
.native-portfolio__pagination span {
  display: inline-flex;
  min-height: 2.75rem;
  min-width: 2.75rem;
  align-items: center;
  justify-content: center;
  padding: .45rem .8rem;
  border: 1px solid var(--border, #dedfd8);
  border-radius: var(--radius, .25rem);
  background: var(--card, #fff);
  color: var(--foreground, #202525);
  text-decoration: none;
  text-align: center;
}

.native-portfolio__categories a:hover,
.native-portfolio__pagination a:hover {
  border-color: var(--primary, #a44228);
}

.native-portfolio__categories [aria-current],
.native-portfolio__pagination [aria-current] {
  border-color: var(--primary, #a44228);
  color: var(--primary-foreground, #fff);
  background: var(--primary, #a44228);
}

.native-portfolio__filter-panel summary {
  width: fit-content;
  min-height: 2.75rem;
  padding: .64rem .85rem;
  border: 1px solid var(--border, #dedfd8);
  border-radius: var(--radius, .25rem);
  color: var(--foreground, #202525);
  background: var(--card, #fff);
  font-weight: 650;
  cursor: pointer;
}

.native-portfolio__filter-panel[open] summary {
  margin-bottom: .6rem;
}

.native-portfolio__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr));
  align-items: end;
  gap: .75rem;
  padding: 1rem;
  border: 1px solid var(--border, #dedfd8);
  border-radius: var(--radius, .25rem);
  background: var(--card, #fff);
}

.native-portfolio__filters label {
  display: grid;
  min-width: 0;
  gap: .35rem;
  color: var(--foreground, #202525);
  font-weight: 600;
}

.native-portfolio__filters input,
.native-portfolio__filters select {
  width: 100%;
  min-width: 0;
  min-height: 2.75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--input, #d3d5ce);
  border-radius: var(--radius, .25rem);
  background: var(--card, #fff);
  color: var(--foreground, #202525);
  font: inherit;
  font-weight: 400;
}

.native-portfolio__filter-actions,
.native-portfolio__cta-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .75rem;
}

.native-portfolio__button {
  display: inline-flex;
  min-height: 2.75rem;
  max-width: 100%;
  align-items: center;
  justify-content: center;
  padding: .66rem 1rem;
  border: 1px solid var(--primary, #a44228);
  border-radius: var(--radius, .25rem);
  color: var(--primary-foreground, #fff);
  background: var(--primary, #a44228);
  font: inherit;
  font-weight: 650;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

.native-portfolio__button:hover {
  filter: brightness(.9);
}

.native-portfolio__button--outline {
  color: var(--primary, #a44228);
  background: transparent;
}

.native-portfolio__results {
  margin: 1.35rem 0 .7rem;
  color: var(--muted-foreground, #63665f);
}

.native-portfolio__grid,
.native-portfolio__gallery,
.native-portfolio__product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16.5rem), 1fr));
  gap: clamp(.8rem, 2vw, 1.4rem);
}

.native-portfolio__grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
}

.native-portfolio-card,
.native-portfolio-product {
  min-width: 0;
  border: 1px solid var(--border, #dedfd8);
  border-radius: var(--radius, .25rem);
  background: var(--card, #fff);
}

.native-portfolio-card__link,
.native-portfolio-product a {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
}

.native-portfolio-card__link:hover h2,
.native-portfolio-card__link:hover h3,
.native-portfolio-product a:hover h3 {
  text-decoration: underline;
  text-underline-offset: .15em;
}

.native-portfolio-card__media {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius, .25rem) var(--radius, .25rem) 0 0;
  background: var(--muted, #eeeee9);
}

.native-portfolio-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.native-portfolio-card__count {
  position: absolute;
  right: .6rem;
  bottom: .6rem;
  padding: .25rem .55rem;
  border-radius: var(--radius, .25rem);
  color: #fff;
  background: rgba(23, 24, 21, .8);
  font-size: .82rem;
}

.native-portfolio-card__body,
.native-portfolio-product a > div {
  padding: clamp(.85rem, 2vw, 1.2rem);
}

.native-portfolio-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: .45rem;
}

.native-portfolio-card__body p,
.native-portfolio-product p,
.native-portfolio-card__body h2,
.native-portfolio-card__body h3,
.native-portfolio-product h3 {
  margin: 0;
}

.native-portfolio-card__body h2,
.native-portfolio-card__body h3,
.native-portfolio-product h3 {
  font-size: 1.14rem;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.native-portfolio-card__category,
.native-portfolio__category,
.native-portfolio-product__role {
  color: var(--primary, #a44228);
  font-size: .86rem;
  font-weight: 650;
}

.native-portfolio-card__model {
  font-size: .9rem;
  font-weight: 600;
}

.native-portfolio-card__summary,
.native-portfolio-product__stock,
.native-portfolio__gallery figcaption,
.native-portfolio__hero-photo figcaption {
  color: var(--muted-foreground, #63665f);
}

.native-portfolio-card__more {
  margin-top: auto;
  padding-top: .5rem;
  font-size: .9rem;
}

.native-portfolio__pagination {
  display: flex;
  flex-wrap: wrap;
  gap: .4rem;
  justify-content: center;
  margin-top: 2rem;
}

.native-portfolio__empty {
  padding: 2rem;
  border: 1px solid var(--border, #dedfd8);
  border-radius: var(--radius, .25rem);
  background: var(--card, #fff);
}

.native-portfolio__project-lead {
  display: grid;
  grid-template-columns: minmax(0, 1.85fr) minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 3rem);
  align-items: start;
}

.native-portfolio__hero-photo,
.native-portfolio__gallery figure,
.native-portfolio-lightbox figure {
  min-width: 0;
  margin: 0;
}

.native-portfolio__hero-photo a,
.native-portfolio__gallery figure a {
  display: block;
  overflow: hidden;
  border-radius: var(--radius, .25rem);
  background: var(--muted, #eeeee9);
  cursor: zoom-in;
}

.native-portfolio__hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(80vh, 44rem);
  object-fit: contain;
}

.native-portfolio__project-notes {
  min-width: 0;
  padding: clamp(1rem, 2vw, 1.4rem);
  border: 1px solid var(--border, #dedfd8);
  border-radius: var(--radius, .25rem);
  background: var(--card, #fff);
}

.native-portfolio__summary {
  font-size: 1.08rem;
  line-height: 1.6;
}

.native-portfolio__facts {
  margin-block: .9rem 1.2rem;
}

.native-portfolio__facts > div {
  padding-block: .56rem;
  border-top: 1px solid var(--border, #dedfd8);
}

.native-portfolio__facts dt {
  color: var(--muted-foreground, #63665f);
  font-size: .85rem;
}

.native-portfolio__facts dd {
  margin: .1rem 0 0;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.native-portfolio__section {
  margin-top: clamp(2.25rem, 5vw, 4.75rem);
}

.native-portfolio__section > h2 {
  margin: 0 0 1rem;
}

.native-portfolio__copy {
  max-width: 75ch;
}

.native-portfolio__copy p {
  margin: .7rem 0;
  line-height: 1.75;
}

.native-portfolio__gallery figure a {
  aspect-ratio: 4 / 3;
}

.native-portfolio__gallery img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.native-portfolio__gallery figcaption,
.native-portfolio__hero-photo figcaption {
  margin: .45rem 0 0;
  font-size: .9rem;
}

.native-portfolio__product-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr));
}

.native-portfolio-product img {
  display: block;
  width: 100%;
  max-height: 13rem;
  aspect-ratio: 1;
  object-fit: contain;
  padding: .6rem;
  border-bottom: 1px solid var(--border, #dedfd8);
}

.native-portfolio-product a > div {
  display: grid;
  gap: .46rem;
}

.native-portfolio-product__price {
  font-weight: 700;
}

.native-portfolio__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem 2rem;
  padding: clamp(1.15rem, 3vw, 2.5rem);
  border: 1px solid var(--border, #dedfd8);
  border-radius: var(--radius, .25rem);
  background: var(--accent, #f1e9e3);
}

.native-portfolio__cta h2,
.native-portfolio__cta p {
  margin-block: 0 .45rem;
}

.native-portfolio__cta p:last-child {
  margin-bottom: 0;
}

.native-portfolio :focus-visible,
.native-portfolio-card__link:focus-visible,
.native-portfolio-lightbox :focus-visible {
  outline: 3px solid var(--ring, #a44228);
  outline-offset: 3px;
}

.native-portfolio-lightbox {
  width: min(60rem, calc(100vw - 1rem));
  max-width: none;
  max-height: calc(100vh - 1rem);
  max-height: calc(100dvh - 1rem);
  padding: .6rem;
  border: 0;
  border-radius: var(--radius, .25rem);
  background: #202525;
  color: #fff;
}

.native-portfolio-lightbox::backdrop {
  background: rgba(11, 13, 12, .83);
}

.native-portfolio-lightbox:not([open]) {
  display: none;
}

.native-portfolio-lightbox__toolbar,
.native-portfolio-lightbox__controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: .7rem;
}

.native-portfolio-lightbox__controls {
  justify-content: center;
}

.native-portfolio-lightbox button {
  min-width: 2.75rem;
  min-height: 2.75rem;
  padding: .35rem .7rem;
  border: 1px solid #747975;
  border-radius: var(--radius, .25rem);
  background: #303534;
  color: #fff;
  cursor: pointer;
}

.native-portfolio-lightbox button:disabled {
  opacity: .45;
  cursor: default;
}

.native-portfolio-lightbox img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(69vh, calc(100vh - 9rem));
  max-height: min(69dvh, calc(100dvh - 9rem));
  object-fit: contain;
}

.native-portfolio-lightbox figcaption {
  margin: .4rem 0;
  text-align: center;
}

@media (max-width: 899px) {
  .native-portfolio__project-lead {
    grid-template-columns: minmax(0, 1fr);
  }

  .native-portfolio__grid {
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr));
  }
}

@media (max-width: 559px) {
  .native-portfolio__categories {
    flex-wrap: nowrap;
    overflow: auto;
    margin-block: .9rem;
    padding-bottom: .3rem;
    scroll-padding: .35rem;
  }

  .native-portfolio__categories a {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .native-portfolio__grid,
  .native-portfolio__gallery,
  .native-portfolio__filters {
    grid-template-columns: minmax(0, 1fr);
  }

  .native-portfolio__filters input,
  .native-portfolio__filters select {
    font-size: 1rem;
  }
}
