.pg-widget-wrapper-84005f9b {
  --pg-bg: #FAF8F4;
  --pg-surface: #FFFFFF;
  --pg-black: #111110;
  --pg-line: rgba(30,30,28,.12);
  --pg-shadow: 0 22px 60px rgba(30,30,28,.10);
  font-family: inherit;
}

.pg-widget-wrapper-84005f9b * {
  box-sizing: border-box;
}

/* Base resets & styling within scope */
.pg-widget-wrapper-84005f9b button {
  font: inherit;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
}

.pg-widget-wrapper-84005f9b a {
  text-decoration: none;
  color: inherit;
}

.pg-widget-wrapper-84005f9b img,
.pg-widget-wrapper-84005f9b video {
  max-width: 100%;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  margin: 0;
  padding: 0;
  border: 0;
}

/* SECTION CONTAINER */
.pg-projects-section {
  padding: 112px 0 120px;
  background: var(--pg-surface);
}

.pg-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.pg-kicker {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--pg-water);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pg-kicker i {
  width: 28px;
  height: 1px;
  background: var(--pg-sand);
}

.pg-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 40px;
  margin-bottom: 42px;
}

.pg-section-head h2 {
  margin: 17px 0 0;
  font-size: 49px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.026em;
  color: var(--pg-graphite);
}

.pg-section-head p {
  margin: 12px 0 0;
  color: var(--pg-muted);
  font-size: 15px;
  font-weight: 600;
}

/* FILTER */
.pg-filter {
  position: relative;
  width: 270px;
  flex: 0 0 auto;
}

.pg-filter__toggle {
  width: 100%;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 17px;
  border: 1px solid var(--pg-line);
  border-radius: 16px;
  background: #fff;
  color: var(--pg-graphite);
  font-size: 12px;
  font-weight: 900;
  transition: .2s ease;
}

.pg-filter__toggle:hover,
.pg-filter.is-open .pg-filter__toggle {
  border-color: rgba(47, 127, 134, .45);
  box-shadow: 0 10px 26px rgba(30, 30, 28, .07);
}

.pg-filter-icon {
  display: flex;
  align-items: center;
  transition: transform .2s ease;
}

.pg-filter.is-open .pg-filter-icon {
  transform: rotate(180deg);
}

.pg-filter__menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  right: 0;
  left: 0;
  display: none;
  padding: 7px;
  border: 1px solid var(--pg-line);
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 18px 38px rgba(30, 30, 28, .13);
}

.pg-filter.is-open .pg-filter__menu {
  display: block;
}

.pg-filter__menu button {
  width: 100%;
  padding: 11px 12px;
  border-radius: 11px;
  background: transparent;
  color: var(--pg-muted);
  text-align: left;
  font-size: 12px;
  font-weight: 800;
}

.pg-filter__menu button:hover,
.pg-filter__menu button.is-active {
  background: var(--pg-water-soft);
  color: var(--pg-water);
}

/* PROJECT LIST */
.pg-project-list {
  display: grid;
  gap: 30px;
}

.pg-project-card {
  padding: 28px;
  border: 1px solid rgba(30, 30, 28, .09);
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(30, 30, 28, .055);
}

.pg-project-card[hidden] {
  display: none;
}

.pg-project-card__head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 28px;
  margin-bottom: 20px;
}

.pg-project-card__category {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--pg-water);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .105em;
  text-transform: uppercase;
}

.pg-project-card__category::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--pg-water);
}

.pg-project-card h3 {
  margin: 0;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.13;
  letter-spacing: -.018em;
  color: var(--pg-graphite);
}

.pg-project-card__description {
  max-width: 760px;
  margin: 11px 0 0;
  color: var(--pg-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.66;
}

.pg-project-card__count {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 13px;
  border-radius: 999px;
  background: var(--pg-water-soft);
  color: var(--pg-water);
  white-space: nowrap;
  font-size: 11px;
  font-weight: 900;
}

.pg-project-card__count svg {
  width: 16px;
  height: 16px;
}

/* PREVIEW MOSAIC */
.pg-project-mosaic {
  height: 510px;
  display: grid;
  grid-template-columns: minmax(0, 2.08fr) minmax(220px, 1fr);
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  overflow: hidden;
  border-radius: 24px;
  background: var(--pg-water-soft);
}

.pg-project-media {
  position: relative;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 0;
  background: var(--pg-graphite);
  cursor: pointer;
  line-height: 0;
  appearance: none;
}

.pg-project-media:first-child {
  grid-row: 1/3;
}

.pg-project-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .55s ease;
}

.pg-project-media::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(17, 17, 16, .38));
  opacity: .55;
  transition: opacity .25s ease;
  z-index: 1;
}

.pg-project-media:hover img {
  transform: scale(1.035);
}

.pg-project-media:hover::after {
  opacity: .9;
}

.pg-project-media__play {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 50%;
  background: rgba(17, 17, 16, .55);
  color: #fff;
  transform: translate(-50%, -50%);
  backdrop-filter: blur(8px);
}

.pg-project-media__play svg {
  width: 20px;
  height: 20px;
  margin-left: 2px;
  fill: currentColor;
}

.pg-project-media:not(:first-child) .pg-project-media__play {
  width: 42px;
  height: 42px;
}

.pg-project-media:not(:first-child) .pg-project-media__play svg {
  width: 16px;
  height: 16px;
}

.pg-project-media__more {
  position: absolute;
  z-index: 4;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 16, .58);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: -.02em;
  backdrop-filter: blur(2px);
}

.pg-project-media__label {
  position: absolute;
  z-index: 3;
  right: 14px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 999px;
  background: rgba(17, 17, 16, .48);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  backdrop-filter: blur(8px);
}

.pg-project-media__label svg {
  width: 14px;
  height: 14px;
}

/* FOOTER OF CARD */
.pg-project-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-top: 19px;
}

.pg-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.pg-project-tag {
  padding: 8px 10px;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  color: var(--pg-muted);
  font-size: 10px;
  font-weight: 800;
}

.pg-project-open {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 46px;
  padding: 0 17px;
  border-radius: 999px;
  background: var(--pg-graphite);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 900;
  transition: .2s ease;
  white-space: nowrap;
}

.pg-project-open:hover {
  transform: translateY(-2px);
  background: var(--pg-water);
}

.pg-project-open svg {
  width: 17px;
  height: 17px;
}

/* LOAD MORE */
.pg-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 38px;
}

.pg-load-more {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0 21px;
  border: 1px solid var(--pg-line);
  border-radius: 999px;
  background: #fff;
  color: var(--pg-graphite);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  transition: .2s ease;
}

.pg-load-more:hover {
  transform: translateY(-2px);
  border-color: var(--pg-water);
  color: var(--pg-water);
}

/* MODAL VIEWER */
.pg-project-modal {
  position: fixed;
  z-index: 9999;
  inset: 0;
  display: none;
  padding: 28px;
}

body.admin-bar .pg-project-modal {
  top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
  body.admin-bar .pg-project-modal {
    top: 46px;
  }
}

.pg-project-modal.is-open {
  display: block;
}

body.pg-lock {
  overflow: hidden !important;
}

.pg-project-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(17, 17, 16, .82);
  backdrop-filter: blur(10px);
}

.pg-project-modal__panel {
  position: relative;
  width: min(1500px, 100%);
  height: min(900px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 32px 100px rgba(0, 0, 0, .34);
}

.pg-project-modal__close {
  position: absolute;
  z-index: 15;
  top: 16px;
  right: 16px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(30, 30, 28, .12);
  border-radius: 50%;
  background: rgba(255, 255, 255, .94);
  color: var(--pg-graphite);
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(30, 30, 28, .14);
}

.pg-project-modal__close:hover {
  background: var(--pg-water);
  color: #fff;
}

.pg-project-modal__viewer {
  position: relative;
  min-width: 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  background: var(--pg-black);
}

.pg-main-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  overflow: hidden;
}

.pg-main-media img,
.pg-main-media video {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border: 0;
  object-fit: cover;
  background: transparent;
}

.pg-media-nav {
  position: absolute;
  z-index: 7;
  top: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, .27);
  border-radius: 50%;
  background: rgba(17, 17, 16, .46);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
  backdrop-filter: blur(8px);
}

.pg-media-nav:hover {
  background: var(--pg-water);
}

.pg-media-nav svg {
  width: 20px;
  height: 20px;
}

.pg-media-nav--prev {
  left: 18px;
}

.pg-media-nav--next {
  right: 18px;
}

.pg-media-counter {
  position: absolute;
  z-index: 7;
  bottom: 18px;
  left: 50%;
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(17, 17, 16, .58);
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  transform: translateX(-50%);
  backdrop-filter: blur(8px);
}

.pg-project-modal__info {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.pg-project-modal__info-scroll {
  min-height: 0;
  overflow: auto;
  padding: 58px 28px 24px;
}

.pg-modal-type {
  display: block;
  color: var(--pg-water);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pg-project-modal__info h2 {
  margin: 10px 0 0;
  font-size: 35px;
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: -.025em;
  color: var(--pg-graphite);
}

.pg-modal-description {
  margin: 15px 0 0;
  color: var(--pg-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.65;
}

.pg-project-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 24px 0 0;
  padding: 20px 0;
  border-top: 1px solid var(--pg-line);
  border-bottom: 1px solid var(--pg-line);
}

.pg-project-data div {
  min-width: 0;
}

.pg-project-data dt {
  color: var(--pg-muted);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.pg-project-data dd {
  margin: 4px 0 0;
  color: var(--pg-graphite);
  font-size: 12px;
  font-weight: 900;
}

.pg-modal-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 20px;
}

.pg-thumbnails {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 23px;
}

.pg-thumb {
  position: relative;
  aspect-ratio: 1/1;
  overflow: hidden;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: var(--pg-water-soft);
  cursor: pointer;
  appearance: none;
}

.pg-thumb.is-active {
  border-color: var(--pg-water);
}

.pg-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pg-thumb__video {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(17, 17, 16, .28);
  color: #fff;
}

.pg-thumb__video svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.pg-modal-cta {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: auto 18px 18px;
  border-radius: 999px;
  background: var(--pg-water);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  transition: .2s ease;
}

.pg-modal-cta:hover {
  background: var(--pg-water-dark);
}

/* RESPONSIVE SCALES */
@media(max-width:1024px) {
  .pg-section-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 25px;
  }
  .pg-filter {
    width: min(340px, 100%);
  }
  .pg-project-mosaic {
    height: 440px;
    grid-template-columns: minmax(0, 1.75fr) minmax(190px, 1fr);
  }
  .pg-project-modal {
    padding: 18px;
  }
  .pg-project-modal__panel {
    height: calc(100vh - 36px);
    grid-template-columns: minmax(0, 1fr) 340px;
  }
}

@media(max-width:767px) {
  .pg-container {
    width: 100%;
    padding: 0 20px;
  }
  .pg-projects-section {
    padding: 64px 0 72px;
  }
  .pg-section-head {
    margin-bottom: 27px;
  }
  .pg-section-head h2 {
    font-size: 35px;
    line-height: 1.12;
  }
  .pg-section-head p {
    font-size: 14px;
    line-height: 1.55;
  }
  .pg-filter {
    width: 100%;
  }
  .pg-project-list {
    gap: 20px;
  }
  .pg-project-card {
    padding: 15px;
    border-radius: 23px;
  }
  .pg-project-card__head {
    grid-template-columns: 1fr;
    gap: 13px;
    margin: 2px 2px 15px;
  }
  .pg-project-card h3 {
    font-size: 25px;
  }
  .pg-project-card__description {
    font-size: 13px;
    line-height: 1.55;
  }
  .pg-project-card__count {
    width: max-content;
    padding: 8px 10px;
  }
  .pg-project-mosaic {
    height: 370px;
    grid-template-columns: 1.55fr 1fr;
    gap: 5px;
    border-radius: 17px;
  }
  .pg-project-media__play {
    width: 43px;
    height: 43px;
  }
  .pg-project-media__more {
    font-size: 22px;
  }
  .pg-project-media__label {
    display: none;
  }
  .pg-project-card__footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 14px;
    margin: 15px 2px 2px;
  }
  .pg-project-open {
    width: 100%;
    min-height: 47px;
  }

  .pg-project-modal {
    padding: 0;
  }
  .pg-project-modal__panel {
    width: 100%;
    height: 100dvh;
    grid-template-columns: 1fr;
    grid-template-rows: 48vh minmax(0, 1fr);
    border-radius: 0;
  }
  .pg-project-modal__close {
    top: 10px;
    right: 10px;
  }
  .pg-project-modal__info-scroll {
    padding: 25px 20px 18px;
  }
  .pg-project-modal__info h2 {
    padding-right: 30px;
    font-size: 30px;
  }
  .pg-project-data {
    grid-template-columns: repeat(2, 1fr);
  }
  .pg-thumbnails {
    grid-template-columns: repeat(5, 1fr);
  }
  .pg-modal-cta {
    min-height: 49px;
    margin: 10px 15px 15px;
  }
  .pg-media-nav {
    width: 39px;
    height: 39px;
  }
  .pg-media-nav--prev {
    left: 10px;
  }
  .pg-media-nav--next {
    right: 10px;
  }
}

@media(max-width:470px) {
  .pg-project-mosaic {
    height: 320px;
  }
  .pg-project-card__description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }
  .pg-project-tags .pg-project-tag:nth-child(n+4) {
    display: none;
  }
}
