body.gallery-page { background: #fffdfa; }
.gallery-page-hero { position: relative; overflow: hidden; min-height: 530px; padding: 180px 0 118px; color: #fff; background: #171126; }
.gallery-page-hero-inner { width: min(calc(100% - 64px), 1180px); position: relative; z-index: 1; margin: 0 auto; }
.gallery-page-hero .eyebrow { color: #c7ff54; }
.gallery-page-hero h1 { max-width: 670px; margin: 18px 0 22px; color: #fff; font-family: var(--serif); font-size: clamp(52px, 7vw, 102px); letter-spacing: -.075em; line-height: .91; }
.gallery-page-hero h1 em { color: #c7ff54; }
.gallery-page-hero p:not(.eyebrow) { max-width: 470px; margin: 0 0 30px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.gallery-page-shape { position: absolute; display: block; border-radius: 50%; pointer-events: none; }
.gallery-page-shape-one { width: 510px; height: 510px; right: -85px; top: -175px; border: 1px solid rgba(199,255,84,.45); }
.gallery-page-shape-two { width: 290px; height: 290px; right: 190px; bottom: -195px; background: #5227ff; opacity: .72; }
.gallery-page-grid-section { padding: 118px 0 126px; }
.gallery-page-heading { display: grid; grid-template-columns: 1fr .78fr; gap: 80px; align-items: end; margin-bottom: 52px; }
.gallery-page-heading h2 { margin: 13px 0 0; font-size: clamp(44px, 5vw, 68px); }
.gallery-page-heading h2 em { color: var(--violet); }
.gallery-page-heading > p { max-width: 430px; margin: 0 0 5px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.uploaded-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; }
.uploaded-gallery-grid figure { min-width: 0; position: relative; margin: 0; overflow: hidden; border-radius: 24px; background: #eee8df; box-shadow: 0 18px 40px rgba(23,18,41,.08); }
.uploaded-gallery-grid figure:nth-child(3n + 2) { margin-top: 58px; }
.uploaded-gallery-grid img { display: block; width: 100%; aspect-ratio: 0.73; object-fit: cover; transition: transform .5s ease; }
.uploaded-gallery-grid figure:hover img { transform: scale(1.045); }
.uploaded-gallery-grid figure::after { content: ""; position: absolute; inset: auto 0 0; height: 34%; pointer-events: none; background: linear-gradient(transparent, rgba(23,18,41,.74)); }
.uploaded-gallery-grid figcaption { display: flex; justify-content: space-between; align-items: center; gap: 15px; position: absolute; z-index: 1; right: 18px; bottom: 16px; left: 18px; color: #fff; font-size: 12px; font-weight: 700; }
.uploaded-gallery-grid figcaption strong { color: #c7ff54; font-size: 11px; letter-spacing: .12em; }
.gallery-page-cta { padding: 0 0 126px; }
.gallery-page-cta-card { position: relative; overflow: hidden; padding: 76px 32px 72px; text-align: center; color: #fff; border-radius: 32px; background: #5227ff; }
.gallery-page-cta-card::before { content: "✦"; position: absolute; top: 20px; left: 11%; color: #c7ff54; font-family: var(--serif); font-size: 34px; transform: rotate(-18deg); }
.gallery-page-cta-card::after { content: "♡"; position: absolute; right: 12%; bottom: 6px; color: rgba(255,255,255,.3); font-family: var(--serif); font-size: 74px; }
.gallery-page-cta-card .eyebrow { position: relative; z-index: 1; color: #c7ff54; }
.gallery-page-cta-card h2 { position: relative; z-index: 1; margin: 17px 0 28px; color: #fff; font-size: clamp(40px, 5vw, 66px); }
.gallery-page-cta-card h2 em { color: #c7ff54; }
.gallery-page-cta-card .button { position: relative; z-index: 1; }
@media (max-width: 720px) {
  .gallery-page-hero { min-height: 500px; padding: 138px 0 82px; }
  .gallery-page-hero-inner { width: min(calc(100% - 32px), 580px); }
  .gallery-page-hero h1 { font-size: clamp(49px, 14vw, 70px); }
  .gallery-page-shape-one { width: 330px; height: 330px; right: -160px; top: -95px; }
  .gallery-page-shape-two { right: 10px; bottom: -185px; }
  .gallery-page-grid-section { padding: 78px 0 86px; }
  .gallery-page-heading { grid-template-columns: 1fr; gap: 20px; margin-bottom: 30px; }
  .uploaded-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .uploaded-gallery-grid figure:nth-child(3n + 2) { margin-top: 0; }
  .uploaded-gallery-grid figure:nth-child(4n + 2) { margin-top: 28px; }
  .uploaded-gallery-grid figure:nth-child(4n + 3) { margin-top: 9px; }
  .uploaded-gallery-grid img { aspect-ratio: .72; }
  .uploaded-gallery-grid figcaption { right: 10px; bottom: 10px; left: 10px; font-size: 10px; }
  .gallery-page-cta { padding-bottom: 84px; }
  .gallery-page-cta-card { padding: 58px 20px 54px; border-radius: 24px; }
}
