/* The portfolio uses the same screenshot composition and typography as the homepage. */
.pwpg {
  --pwpg-text: var(--e-global-color-primary, #fff);
  --pwpg-muted: var(--e-global-color-text, #d0d0d0);
  --pwpg-accent: var(--e-global-color-accent, #cff85e);
  --pwpg-line: rgba(220, 229, 206, .23);
  container: pwd-project-collection / inline-size;
  display: block;
  width: 100%;
  min-width: 0;
  color: var(--pwpg-text);
  font-family: var(--e-global-typography-primary-font-family, "Overused Grotesk"), sans-serif;
}

.elementor-widget-pwd-portfolio-gallery { width: 100%; min-width: 0; }

.pwpg .pwpg-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  column-gap: clamp(24px, 3.3vw, 58px);
  row-gap: clamp(34px, 4.4vw, 72px);
}

@container pwd-project-collection (min-width: 660px) {
  .pwpg .pwpg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@container pwd-project-collection (min-width: 1150px) {
  .pwpg .pwpg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.pwpg article.pwpg-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  margin: 0;
  padding: 0 0 clamp(16px, 2vw, 28px);
  border: 0;
  border-bottom: 1px solid var(--pwpg-line);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.pwpg .pwpg-visual {
  display: block;
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  margin: 0 0 clamp(15px, 1.8vw, 25px);
}

.pwpg .pwpg-address {
  box-sizing: border-box;
  display: block;
  width: 88%;
  margin: 0;
  padding: .44em .85em;
  border-radius: 7px 7px 0 0;
  background: #edf0eb;
  color: #273028;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font: 500 clamp(10px, .76vw, 13px)/1.4 ui-monospace, "SFMono-Regular", Consolas, monospace;
  letter-spacing: .015em;
}

.pwpg .pwpg-image-area {
  position: relative;
  width: 100%;
  aspect-ratio: 1600 / 1088;
  isolation: isolate;
}

.pwpg .pwpg-image-area img {
  display: block;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

.pwpg .pwpg-composite {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: left top;
}

.pwpg .pwpg-desktop {
  width: 88%;
  height: 80.7%;
  object-position: top center;
  object-fit: cover;
  border-radius: 0 0 4px 4px;
}

.pwpg .pwpg-phone {
  box-sizing: border-box;
  position: absolute;
  top: 24.2%;
  right: 0;
  width: 24%;
  aspect-ratio: 384 / 825;
  overflow: hidden;
  border: clamp(3px, .35vw, 7px) solid #151515;
  border-radius: 15.5% / 7.2%;
  background: #111;
  box-shadow: 0 0 0 1px #8b8d87;
}

.pwpg .pwpg-phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

.pwpg .pwpg-single .pwpg-address {
  width: 100%;
}

.pwpg .pwpg-single .pwpg-image-area {
  aspect-ratio: 1600 / 1088;
  overflow: hidden;
  border-radius: 0 0 5px 5px;
}

.pwpg .pwpg-single .pwpg-desktop {
  width: 100%;
  height: 100%;
}

.pwpg .pwpg-single .pwpg-phone {
  position: static;
  width: auto;
  height: 100%;
  margin-inline: auto;
}

.pwpg a.pwpg-visit {
  position: absolute;
  z-index: 1;
  left: clamp(7px, 1vw, 15px);
  bottom: calc(19.3% + clamp(7px, 1vw, 15px));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5em;
  max-width: calc(76% - 14px);
  min-height: 38px;
  box-sizing: border-box;
  margin: 0;
  padding: .45em .85em;
  border: 1px solid rgba(255, 255, 255, .54);
  border-radius: 999px;
  background: #161b13;
  color: #fff;
  font: 650 clamp(12px, .85vw, 15px)/1.18 var(--e-global-typography-primary-font-family, "Overused Grotesk"), sans-serif;
  text-align: center;
  text-decoration: none;
}

.pwpg .pwpg-single a.pwpg-visit { bottom: clamp(7px, 1vw, 15px); }

.pwpg a.pwpg-visit > span {
  flex: 0 0 auto;
  color: var(--pwpg-accent);
}

.pwpg .pwpg-copy { min-width: 0; }

.pwpg .pwpg-copy .pwpg-category {
  display: block;
  margin: 0 0 7px;
  color: var(--pwpg-accent);
  font-size: .8125rem;
  font-weight: 600;
  line-height: 1.4;
}

.pwpg .pwpg-copy .pwpg-name {
  display: block;
  margin: 0;
  padding: 0;
  color: var(--pwpg-text);
  font-family: inherit;
  font-weight: 600;
  font-size: clamp(1.4rem, 1.9vw, 2rem);
  line-height: 1.12;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}

.pwpg .pwpg-name .pwpg-name-link {
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: none;
}

.pwpg .pwpg-name .pwpg-name-link:is(:hover, :focus-visible) {
  text-decoration: underline;
  text-decoration-color: var(--pwpg-accent);
  text-underline-offset: .16em;
}

.pwpg .pwpg-name .pwpg-name-link:focus-visible {
  outline: 2px solid var(--pwpg-accent);
  outline-offset: 4px;
}

.pwpg .pwpg-copy .pwpg-description {
  margin: .55em 0 0;
  color: var(--pwpg-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.pwpg .pwpg-copy .pwpg-details {
  display: inline-flex;
  align-items: center;
  gap: .45em;
  margin: .6em .8em 0 0;
  padding: .35em 0;
  color: var(--pwpg-accent);
  font: 600 .875rem/1.45 var(--e-global-typography-primary-font-family, "Overused Grotesk"), sans-serif;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: .2em;
}

.pwpg a:focus-visible {
  outline: 3px solid var(--pwpg-accent);
  outline-offset: 3px;
}

@media (hover: hover) {
  .pwpg a.pwpg-visit:hover {
    background: var(--pwpg-accent);
    border-color: var(--pwpg-accent);
    color: #151a0f;
  }
  .pwpg a.pwpg-visit:hover > span { color: inherit; }
  .pwpg .pwpg-copy .pwpg-details:hover { text-decoration-color: currentColor; }
}

@media (max-width: 767px) {
  .pwpg a.pwpg-visit { min-height: 44px; }
  .pwpg .pwpg-copy .pwpg-details { min-height: 44px; }
}

.pwpg.pwpg-feature-preview .pwpg-visual { margin: 0; }

.pwpg .pwpg-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
}
.pwpg .pwpg-filter .pwpg-filter-choice {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  max-width: 100%;
  min-height: 44px;
  margin: 0;
  padding: .55em 1em;
  border: 1px solid var(--pwpg-line);
  border-radius: 999px;
  background: #1b1d19;
  color: var(--pwpg-text);
  font: 600 .875rem/1.2 var(--e-global-typography-primary-font-family, "Overused Grotesk"), sans-serif;
  letter-spacing: normal;
  text-transform: none;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}
.pwpg .pwpg-filter .pwpg-filter-choice:is([aria-pressed="true"], [aria-current], :hover) {
  border-color: var(--pwpg-accent);
}
.pwpg .pwpg-filter .pwpg-filter-choice:is([aria-pressed="true"], [aria-current]) {
  background: var(--pwpg-accent);
  color: #17200d;
}
.pwpg .pwpg-filter .pwpg-filter-choice:focus-visible {
  outline: 3px solid var(--pwpg-accent);
  outline-offset: 2px;
}
.pwpg .pwpg-count {
  margin: 0 0 clamp(18px, 2.2vw, 32px);
  color: var(--pwpg-muted);
  font: 500 .875rem/1.45 var(--e-global-typography-primary-font-family, "Overused Grotesk"), sans-serif;
}
.pwpg .pwpg-card[hidden] { display: none !important; }
.pwpg .pwpg-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

html.pwd-a11y-contrast .pwpg .pwpg-filter .pwpg-filter-choice:is([aria-current], [aria-pressed="true"]),
html.pwd-a11y-contrast .pwpg a.pwpg-visit:hover,
html.pwd-a11y-contrast .pwpg a.pwpg-visit:hover > span {
  background: #cff85e !important;
  color: #10150a !important;
}

html.pwd-a11y-contrast .pwpg .pwpg-card,
html.pwd-a11y-contrast .pwpg .pwpg-filter .pwpg-filter-choice { border-color: #fff; }
