/* Home: See the Difference (photo with curved edge, copy, tilted polaroids) */
.pf-home-gallery { --pf-curve-h: 52px; position: relative; box-sizing: border-box; display: grid; grid-template-columns: 40% 32% 28%; min-height: clamp(520px, 35vw, 680px); padding: var(--pf-curve-h) 0; overflow: hidden; }
.pf-home-gallery::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: var(--pf-curve-h); z-index: 3; pointer-events: none; background: var(--wp--preset--color--pale); -webkit-mask: var(--pf-wave-t) center / 100% 100% no-repeat; mask: var(--pf-wave-t) center / 100% 100% no-repeat; }
.pf-home-gallery .pf-gallery-main { position: relative; margin: calc(-1 * var(--pf-curve-h)) 0; background: var(--wp--preset--color--olive); overflow: hidden;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H90 C91 12 96 24 96.500 42 C97 62 97 80 100 100 H0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100' preserveAspectRatio='none'%3E%3Cpath d='M0 0 H90 C91 12 96 24 96.500 42 C97 62 97 80 100 100 H0 Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
.pf-home-gallery .pf-gallery-main img { position: absolute; bottom: 0; left: 56%; transform: translateX(-56%); height: calc(100% - 24px); width: auto; max-width: none; display: block; }
.pf-home-gallery .pf-gallery-copy { align-self: center; padding: 0 10px 0 clamp(24px, 6vw, 90px); position: relative; z-index: 2; }
.pf-home-gallery .pf-kicker { margin: 0; }
.pf-home-gallery h2 { font-size: clamp(32px, 3.6vw, 60px); line-height: 1.12; letter-spacing: -1px; margin: 6px 0 24px; white-space: nowrap; }
.pf-home-gallery h2 mark { display: block; font-size: 1.5em; line-height: 1; margin: 6px 0 0 14%; transform: rotate(-6deg); transform-origin: left center; white-space: nowrap; }
.pf-home-gallery .pf-gallery-copy > p:not(.pf-kicker) { font-size: 16px; line-height: 1.7; max-width: 340px; margin: 0 0 28px; }
.pf-home-gallery .pf-polaroids { position: relative; container-type: inline-size; z-index: 4; margin: calc(-1 * var(--pf-curve-h)) 0; align-self: stretch; }
.pf-home-gallery .pf-polaroid { position: absolute; width: 62cqw; background: #fff; padding: 8px 8px 22px; box-sizing: border-box; box-shadow: 0 8px 18px rgba(0,40,55,.28); }
.pf-home-gallery .pf-polaroid img { display: block; width: 100%; height: auto; }
.pf-home-gallery .pf-polaroid:nth-child(1) { top: 5%; left: 20%; transform: rotate(14deg); }
.pf-home-gallery .pf-polaroid:nth-child(2) { top: 33%; left: 26%; transform: rotate(-4deg); }
.pf-home-gallery .pf-polaroid:nth-child(3) { top: 57%; left: 4%; transform: rotate(11deg); }
@media (min-width: 1400px) { .pf-home-gallery .pf-kicker { white-space: nowrap; letter-spacing: 3px; } }
@media (max-width: 1250px) and (min-width: 801px) { .pf-home-gallery { grid-template-columns: 40% 29% 31%; } .pf-home-gallery .pf-gallery-copy { padding-left: 22px; } }
@media (max-width: 800px) {
  .pf-home-gallery { --pf-curve-h: 26px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 0; padding: 0 0 28px; }
  .pf-home-gallery .pf-gallery-main { grid-column: 1 / -1; margin: 0; min-height: 320px; height: 320px;
    -webkit-mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--pf-curve-h) + 1px) no-repeat, var(--pf-wave-t) bottom / 100% var(--pf-curve-h) no-repeat;
    mask: linear-gradient(#000, #000) top / 100% calc(100% - var(--pf-curve-h) + 1px) no-repeat, var(--pf-wave-t) bottom / 100% var(--pf-curve-h) no-repeat; }
  .pf-home-gallery .pf-gallery-main img { left: 0; right: 0; top: 0; bottom: auto; transform: none; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; }
  .pf-home-gallery .pf-gallery-copy { padding: 30px 25px; }
  .pf-home-gallery h2 { font-size: clamp(32px, 6vw, 52px); white-space: normal; }
  .pf-home-gallery .pf-polaroids { margin: 0; aspect-ratio: 1 / 1.75; }
  .pf-home-gallery .pf-polaroid { width: 74cqw; }
  .pf-home-gallery .pf-polaroid:nth-child(1) { top: 3%; left: 15%; }
  .pf-home-gallery .pf-polaroid:nth-child(2) { top: 32%; left: 17%; }
  .pf-home-gallery .pf-polaroid:nth-child(3) { top: 57%; left: 9%; }
}
@media (max-width: 560px) {
  .pf-home-gallery .pf-gallery-copy { padding: 28px 20px; }
  .pf-home-gallery h2 { font-size: clamp(32px, 9vw, 42px); }
  .pf-home-gallery .pf-gallery-main img { object-position: 43% 29%; }
}
