@media only screen and (max-width: 767px) {
  /* Prevent horizontal scroll */
  html, body {
    overflow-x: hidden;
  }

  /* Main content wrapper */
  body > div.wp-site-blocks > div > div.entry-content.alignfull.wp-block-post-content.is-layout-flow.wp-block-post-content-is-layout-flow {
    width: 100% !important;     /* full width of screen */
    max-width: 100% !important; /* prevent container limits */
    margin: 0 auto !important;  /* center content if needed */
    padding: 0 10px !important; /* small side padding for breathing room */
    box-sizing: border-box !important;
  }

  /* Make full-width Gutenberg blocks inside stretch correctly */
  .wp-block-media-text.alignfull,
  .wp-block-columns.alignfull {
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    box-sizing: border-box;
  }

  /* Ensure media scales */
  img, iframe, video {
    width: 100%;
    max-width: 100%;
    height: auto;
    display: block;
  }
}

/* ===============================
   GLOBAL PHOTO RESET
================================ */

.hero-photos-left img,
.hero-photos-right img,
.hero-photos-left video,
.hero-photos-right img,
.hero-photos-right video {
    display: block;
    width: 100%;
    height: auto;
    max-width: none;
}

/* ===============================
   POLAROID LOOK (LEFT)
================================ */

.hero-photos-left {
    width: 300px;
    position: relative;
    transform: rotate(-6deg);
    animation: floatSoft 6s ease-in-out infinite;
}

.hero-photos-left img,
.hero-photos-left video {
    background: #fff;
    padding: 12px 12px 38px 12px; /* thicker bottom = polaroid */
    border-radius: 6px;

    box-shadow:
        0 18px 40px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.6);

    margin: 0 auto;
    position: relative;
}

/* Overlap stack */
.hero-photos-left img:nth-child(2),
.hero-photos-left video:nth-child(2) {
    margin-top: -90px;
    transform: rotate(4deg);
    z-index: 2;
}

/* ===============================
   FLOATING ANIMATION
================================ */

@keyframes floatSoft {
    0% { transform: translateY(0) rotate(var(--rot)); }
    50% { transform: translateY(-12px) rotate(var(--rot)); }
    100% { transform: translateY(0) rotate(var(--rot)); }
}

.hero-photos-left { --rot: -6deg; }
.hero-photos-right { --rot: 4deg; }

/* =================================
   HERO LAYOUT BASE
================================= */

.hero-photos-left,
.hero-photos-right {
    position: relative;
    z-index: 2;
}

/* =================================
   POLAROID STACK — LEFT (FIXED)
================================= */

.hero-photos-left {
    width: 300px;
    position: relative;
    transform: rotate(-6deg);
    animation: floatSoft 6s ease-in-out infinite;
}

/* Target ALL direct children */
.hero-photos-left > * {
    background: #fff;
    padding: 12px 12px 30px;
    border-radius: 6px;

    box-shadow:
        0 20px 45px rgba(0,0,0,0.45),
        inset 0 1px 0 rgba(255,255,255,0.6);

    width: 100%;
    position: absolute;
    left: 0;
}

/* Stack positions */
.hero-photos-left > *:nth-child(1) {
    top: -60px;
	  left: -25px;
    transform: rotate(0deg);
    z-index: 1;
}

.hero-photos-left > *:nth-child(2) {
    top: 80px;
	  left: 135px;
    transform: rotate(15deg);
    z-index: 2;
}

.hero-photos-left > *:nth-child(3) {
    top: 140px;
	  left: -85px;
    transform: rotate(-10deg);
    z-index: 3;
}

/* Reserve height so content doesn’t collapse */
.hero-photos-left {
    height: 420px;
}


/* =================================
   FILM GRAIN OVERLAY
================================= */

.hero-section {
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='5'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.14'/%3E%3C/svg%3E");
    pointer-events: none;
    mix-blend-mode: overlay;
    z-index: 1;
}

/* =================================
   FLOATING MOTION
================================= */

@keyframes floatSoft {
    0% { transform: translateY(0) rotate(var(--rot)); }
    50% { transform: translateY(-12px) rotate(var(--rot)); }
    100% { transform: translateY(0) rotate(var(--rot)); }
}

.hero-photos-left { --rot: -6deg; }
.hero-photos-right { --rot: 4deg; }

/* =================================
   MOBILE REWRITE (CRITICAL)
================================= */

@media (max-width: 768px) {

    .hero-photos-left,
    .hero-photos-right {
        width: 220px;
        margin: 0 auto 40px;
        transform: rotate(0);
        animation: none;
    }

    .hero-photos-left {
        height: 360px;
    }

    .hero-photos-left > *:nth-child(2) {
        top: 50px;
    }

    .hero-photos-left > *:nth-child(3) {
        top: 100px;
    }

    .hero-layout {
        flex-direction: column;
        gap: 40px;
    }
}

.polaroid {
    background: #fff;
    padding: 10px 10px 26px;
    border-radius: 6px;
    box-shadow:
        0 25px 55px rgba(0,0,0,0.55),
        inset 0 1px 0 rgba(255,255,255,0.6);
}

.polaroid p {
    margin: 10px 0 0;
    font-size: 13px;
    font-family: "Caveat", "Patrick Hand", cursive;
    color: #222;
    text-align: center;
    letter-spacing: 0.4px;
}
@media (max-width: 768px) {

    .hero-photos-left {
        width: 220px;          /* smaller base */
        height: 320px;
        transform: scale(0.85); /* 👈 key move */
        margin: 0 auto;
    }

    /* tighten overlaps slightly */
    .hero-photos-left > *:nth-child(1) {
        top: -40px;
        left: -20px;
    }

    .hero-photos-left > *:nth-child(2) {
        top: 60px;
        left: 90px;
    }

    .hero-photos-left > *:nth-child(3) {
        top: 120px;
        left: -60px;
    }
}

/* =================================
   FULL-BLEED HERO GIF
================================= */
@media (max-width: 768px) {
.hero-gif-fullbleed {
    width: 120vw !important;
    max-width: 120vw !important;
    margin-left: calc(50% - 50vw) !important;
    margin-right: calc(50% - 50vw) !important;
    display: block;
}
}
@media (max-width: 768px) {
	/* If wrapped inside a Group / Row */
    .hero-layout,
    .hero-layout > .wp-block-group,
    .hero-layout > .wp-block-row {
        gap: 0 !important;
    }
}

