.pg {
  padding: 56px 24px 64px;
  background: #fff;
  color: #111;
}

.pg[hidden],
.pg-lightbox[hidden] {
  display: none !important;
}

.pg__inner {
  width: min(1480px, 100%);
  margin: 0 auto;
}

.pg__heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
}

.pg__eyebrow {
  margin: 0 0 7px;
  color: #666;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.pg__heading h2 {
  margin: 0;
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1;
  letter-spacing: -.02em;
  text-transform: uppercase;
}

.pg__disclosure {
  margin: 0;
  padding: 9px 13px;
  border: 1px solid #d8d8d8;
  border-radius: 999px;
  color: #555;
  font-size: 12px;
  line-height: 1.25;
  text-align: center;
}

.pg__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.pg-card {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border: 1px solid #e2e2e2;
  border-radius: 3px;
  background: #f6f3ef;
}

.pg-card__trigger {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  background: #ece8e1;
  cursor: zoom-in;
}

.pg-card__trigger:focus-visible {
  outline: 3px solid #111;
  outline-offset: -3px;
}

.pg-card img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform .25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .pg-card__trigger:hover img {
    transform: scale(1.015);
  }
}

.pg-card figcaption {
  padding: 13px 14px 14px;
  background: #fff;
  font-size: 14px;
  line-height: 1.35;
}

.pg-lightbox {
  position: fixed;
  z-index: 100000;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, .82);
}

.pg-lightbox__panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1100px, 100%);
  max-height: calc(100vh - 48px);
  overflow: hidden;
  background: #fff;
}

.pg-lightbox__panel img {
  display: block;
  width: 100%;
  min-height: 0;
  max-height: calc(100vh - 122px);
  object-fit: contain;
  background: #161616;
}

.pg-lightbox__panel p {
  margin: 0;
  padding: 14px 54px 15px 18px;
  font-size: 14px;
  line-height: 1.35;
}

.pg-lightbox__close {
  position: absolute;
  z-index: 2;
  top: 10px;
  right: 10px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #111;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
}

body.pg-lightbox-open {
  overflow: hidden;
}

@media (max-width: 990px) {
  .pg__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 580px) {
  .pg {
    padding: 38px 14px 44px;
  }

  .pg__heading {
    display: block;
    margin-bottom: 20px;
  }

  .pg__disclosure {
    width: fit-content;
    margin-top: 14px;
    border-radius: 3px;
    text-align: left;
  }

  .pg__grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .pg-lightbox {
    padding: 10px;
  }

  .pg-lightbox__panel {
    max-height: calc(100vh - 20px);
  }

  .pg-lightbox__panel img {
    max-height: calc(100vh - 94px);
  }
}
