/* Framed, not edge to edge: on wide screens every photo sits inside a calm centred column with rounded corners.
   The Super 8 hero stays full screen as the one big moment. */
@media (min-width: 900px) {
  .kp-film[style*="aspect-ratio: 4 / 5"], .kp-tile[style*="aspect-ratio: 4 / 5"] { aspect-ratio: auto !important; height: min(62vh, 520px); }
  [style*="repeat(3, 1fr)"] > .kp-film[style*="aspect-ratio: 4 / 5"] { height: min(40vh, 340px); }
  .kp-film[style*="min-height: 600px"] { min-height: 480px !important; }
}
@media (min-width: 1100px) {
  section:has(> .kp-film), section:has(> .kp-tile), section:has(> div > .kp-film), section:has(> div > .kp-tile) {
    padding-left: max(48px, calc((100vw - 1200px) / 2)) !important; padding-right: max(48px, calc((100vw - 1200px) / 2)) !important;
    padding-top: 64px !important; padding-bottom: 64px !important; box-sizing: border-box; column-gap: 24px; }
  section:has(> .kp-tile) { display: grid; }
  section .kp-film, section .kp-tile { border-radius: 24px; overflow: hidden; box-shadow: 0 30px 60px -36px rgba(20,12,18,.45); }
  [style*="repeat(3, 1fr)"]:has(> .kp-film) { gap: 18px; }
}

/* ---- Phone polish (Nov 30) ---- */
/* The gold foil logo keeps a soft shadow so it reads over bright sunrise footage. */
a.foil { background-image: linear-gradient(115deg,#D4B064 0%,#F8EDCB 30%,#E0BE72 52%,#FBF2D6 74%,#CFA855 100%) !important; filter: drop-shadow(0 1px 1px rgba(11,15,36,.55)) drop-shadow(0 0 14px rgba(11,15,36,.45)); }
/* Sections finish fading in as they arrive, so tall ones (like the buy box) are never left half-faded while you read. */
@supports (animation-timeline: view()) { .reveal { animation-range: entry 0% entry 75% !important; } }
/* Nothing smaller than 11px. */
[style*="font-size: 9px"], [style*="font-size: 10px"] { font-size: 11px !important; }
/* Small text links get a comfortable tap area without moving the layout. */
a[href*="instagram.com/kaia.petra"]:not(footer a), .hy-note a { display: inline-block; padding: 10px 4px; margin: -10px -4px; }
@media (max-width: 640px) {
  /* Footer: less empty space above, links in two columns, taller tap rows. */
  footer#join > div { padding-top: 56px !important; }
  footer#join > div > div:first-child { grid-template-columns: 1fr 1fr !important; gap: 32px 20px !important; padding-bottom: 44px !important; }
  footer#join > div > div:first-child > div:first-child { grid-column: 1 / -1 !important; }
  footer#join > div > div:first-child > div:not(:first-child) { gap: 0 !important; }
  footer#join > div > div:first-child > div:not(:first-child) > a { padding: 11px 0; letter-spacing: .12em; white-space: nowrap; }
  footer#join > div > div:first-child { grid-template-columns: 1.15fr 1fr !important; }
  /* Shop filters stay on one line and slide sideways. */
  div:has(> .kp-tab) { max-width: 100%; box-sizing: border-box; flex-wrap: nowrap !important; justify-content: flex-start !important; gap: 28px !important; overflow-x: auto; scrollbar-width: none; padding: 4px 24px !important; }
  div:has(> .kp-tab)::-webkit-scrollbar { display: none; }
  .kp-tab { flex: none; white-space: nowrap; min-height: 40px; }
  /* Room at the end of the page for the Shop Now bar, so it never covers the last words. */
  body:has(.kp-sticky) { padding-bottom: 76px; }
}
