.pp-gallery-section { padding: 72px 0; background: linear-gradient(145deg,#171c22,#232a32); }
.pp-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.pp-gallery-item { position: relative; min-height: 280px; padding: 0; overflow: hidden; border: 1px solid rgba(255,255,255,.14); border-radius: var(--pp-radius); background: var(--pp-surface-dark); cursor: pointer; box-shadow: var(--pp-shadow); }
.pp-gallery-item:nth-child(4n+1) { grid-row: span 2; min-height: 576px; }
.pp-gallery-item img { width: 100%; height: 100%; min-height: inherit; object-fit: cover; transition: transform .25s ease, filter .25s ease; }
.pp-gallery-item:hover img, .pp-gallery-item:focus-visible img { transform: scale(1.03); filter: brightness(.78); }
.pp-gallery-item:focus-visible { outline: 3px solid var(--pp-teal); outline-offset: 3px; }
.pp-gallery-zoom { position: absolute; right: 14px; bottom: 14px; padding: 8px 11px; border-radius: 999px; background: rgba(14,19,24,.9); color: var(--pp-text); font-size: 12px; font-weight: 900; opacity: 0; transform: translateY(6px); transition: opacity .2s ease, transform .2s ease; }
.pp-gallery-item:hover .pp-gallery-zoom, .pp-gallery-item:focus-visible .pp-gallery-zoom { opacity: 1; transform: none; }
.pp-gallery-cta { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 24px; align-items: center; margin-top: 34px; padding: 28px; }
.pp-gallery-cta h2 { margin: 0 0 8px; font-size: 29px; }
.pp-gallery-cta p { margin: 0; color: var(--pp-muted); }
.pp-gallery-lightbox { position: fixed; z-index: 20000; inset: 0; display: none; place-items: center; padding: 24px; background: rgba(5,8,11,.94); }
.pp-gallery-lightbox.open { display: grid; }
.pp-gallery-lightbox-inner { position: relative; width: min(1050px,100%); max-height: calc(100vh - 48px); display: grid; place-items: center; }
.pp-gallery-lightbox img { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 12px; object-fit: contain; }
.pp-gallery-close, .pp-gallery-prev, .pp-gallery-next { position: absolute; z-index: 2; width: 46px; height: 46px; border: 0; border-radius: 50%; background: var(--pp-gold); color: #17130b; font-size: 23px; font-weight: 950; cursor: pointer; }
.pp-gallery-close { right: 10px; top: 10px; }
.pp-gallery-prev { left: 10px; top: 50%; transform: translateY(-50%); }
.pp-gallery-next { right: 10px; top: 50%; transform: translateY(-50%); }
body.pp-gallery-open { overflow: hidden; }
@media (max-width: 900px) { .pp-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); } .pp-gallery-item:nth-child(4n+1) { grid-row: auto; min-height: 330px; } }
@media (max-width: 620px) { .pp-gallery-grid { grid-template-columns: 1fr; } .pp-gallery-item, .pp-gallery-item:nth-child(4n+1) { min-height: 340px; } .pp-gallery-cta { grid-template-columns: 1fr; } .pp-gallery-cta .pp-button { width: 100%; } .pp-gallery-prev { left: 4px; } .pp-gallery-next { right: 4px; } }


/* PROUDPOPS-GALLERY-STEVE-CREDIT-V1 */
.pp-gallery-credit {
  max-width: 850px;
  margin: 22px 0 0;
  padding: 15px 18px;
  border-left: 4px solid var(--pp-action-orange,var(--pp-orange));
  border-radius: 8px;
  background: rgba(32,38,45,.72);
  color: var(--pp-muted);
  font-size: 14px;
}
.pp-gallery-credit strong {
  display: block;
  margin-bottom: 4px;
  color: var(--pp-text);
}
.pp-gallery-steve {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 26px;
  margin-top: 34px;
  padding: 28px;
  border: 1px solid rgba(255,255,255,.14);
  border-left: 5px solid var(--pp-action-orange,var(--pp-orange));
  border-radius: var(--pp-radius);
  background: linear-gradient(145deg,#171d23,#10161c);
  box-shadow: var(--pp-shadow);
}
.pp-gallery-steve h2 {
  margin: 0 0 10px;
  font-size: clamp(30px,4vw,46px);
  line-height: 1;
  letter-spacing: -.035em;
}
.pp-gallery-steve p:not(.pp-kicker) {
  max-width: 790px;
  margin: 0;
  color: var(--pp-muted);
}
.pp-gallery-steve-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}
@media (max-width: 820px) {
  .pp-gallery-steve { grid-template-columns: 1fr; }
  .pp-gallery-steve-actions { justify-content: flex-start; }
}
@media (max-width: 620px) {
  .pp-gallery-credit, .pp-gallery-steve { padding: 20px; }
  .pp-gallery-steve-actions { display: grid; }
  .pp-gallery-steve-actions .pp-button { width: 100%; }
}
/* PROUDPOPS-GALLERY-STEVE-CREDIT-V1-END */

/* PROUDPOPS-UNIFORM-GALLERY-GRID-V1 */
.pp-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  align-items: start;
}

.pp-gallery-item,
.pp-gallery-item:nth-child(4n+1) {
  width: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  grid-column: auto;
  grid-row: auto;
  align-self: start;
  border-radius: 14px;
}

.pp-gallery-item img,
.pp-gallery-item:nth-child(4n+1) img {
  width: 100%;
  height: 100%;
  min-height: 0;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center center;
}

/* The lightbox continues to display the complete source image. */
.pp-gallery-lightbox img {
  width: auto;
  height: auto;
  max-width: 100%;
  max-height: calc(100vh - 48px);
  aspect-ratio: auto;
  object-fit: contain;
}

@media (max-width: 900px) {
  .pp-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }
}

@media (max-width: 520px) {
  .pp-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .pp-gallery-item,
  .pp-gallery-item:nth-child(4n+1) {
    min-height: 0;
    border-radius: 10px;
  }
}

@media (max-width: 360px) {
  .pp-gallery-grid {
    grid-template-columns: 1fr;
  }
}
/* PROUDPOPS-UNIFORM-GALLERY-GRID-V1-END */
