#site-header@media (max-width: 1440px) {

  /* FILMS */
  .film-frame {
    width: 105%;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);

  }

}

@media (max-width: 1099px) {

  /* HEADER */
  #site-header {
    grid-template-columns: 75px 1fr 1fr;

  }

  .logo-silhouette {
    width: 100%;

  }

  /* FILMS */
  .scroll-inner {
    font-size: clamp(0.9rem, 1.8vw, 1.1em); /* scale font-size */

  }

  .music-blurb .scroll-inner,  .artists .scroll-inner {
    font-size: 1.1em; /* undo clamp applied to general scrolls */

  }

  .laurels {
    flex-wrap: wrap;

  }

  .laurels li {
    flex: 1 0 32%; /* restrict to three items per row */

  }

  .laurels li:first-child {
    margin-top: 0;

  }

  .laurels li:nth-child(4) {
    margin-top: 15px;

  }

  /* FOOTER */
  .site-footer .wrapper {
    grid-template-columns: repeat(3,1fr);

  }

  .footer-tree img {
    max-width: 100%;
    height: auto;
  }

  .footer-mailing-list {
    padding-left: 5px;

  }

  /* FILMS PAGE */

  /* film embed */
  /* curved green bg top */
  .film-embed::before {
    left: -15%;
    right: -15%;
    border-radius: 25% 25% 0 0;
    height: 75%;

  }

}

/* large iPads portrait */
@media (max-width: 1024px) {

  /* HOME PAGE */

  /* rearrange intro elements */
  .intro .wrapper {
    grid-template-columns: 1fr 2fr 1fr;
    grid-template-rows: auto auto;

}

  .intro-illustrations, .intro-illustrations.flowers {
    grid-row: 1 / 2; /* first row */

  }

  .intro-text {
    grid-row: 2; /* second row */
    grid-column: 1 / 4; /* extend across whole row */
    padding: 0 10px;

  }

  .intro-illustrations img {
    width: unset;
    max-width: 100%;

  }

}

/* iphone 16 Pro Max / 17 Pro Max landscape */
@media (max-width: 956px) {

  /* FILMS PAGE */

  .laurels {
    gap: 2%;

  }

  /* FOOTER */
  .footer-branding img {
    max-width: 66%;

  }

}

/* iphone 14 Pro Max / 15 Pro Max / 16 Plus landscape */
@media (max-width: 932px) {

  /* HEADER */
  #site-header {
    font-size: 1.33em;

  }

  .header-inner {
    grid-template-columns: 30px 190px 1fr;

  }

  /* reduce header height so border-bottom stays aligned with reduced site-logo */
  .nav-container, .spacer {
    height: 130px;

  }

}

/* iphone 14 Pro / 15 Pro / 16 landscape */
@media (max-width: 852px) {

  /* HEADER */
  #site-header {
    grid-template-columns: 50px 1fr 50px;
    font-size: 1.25em;

  }

  .header-inner {
    grid-template-columns: 30px 165px 1fr;

  }

  .nav-container, .spacer {
    height: 115px;

  }

  /* FILMS */
.more-films .pointing-tree {
  grid-column: 1 / 3;
   position: absolute;
   top: 5px; /* don't cut off drop-shadow */
   left: 0;
   width: 100%;
   max-width: 220px;
   z-index: 1;

 }

 .more-films .wooden-sign {
   margin-left: 2rem;

 }

 /* ARTISTS */

 .artists .scroll-inner {
   font-size: clamp(0.9rem, 2.2vw, 1.1em); /* scale font-size */

 }

}

/* smaller iPads portrait */
@media (max-width: 768px) {

  /* HEADER */
  #site-header {
    font-size: 1.11em; /* 20px */

  }

  .header-inner {
    grid-template-columns: 30px 140px 1fr;

  }

  .nav-container, .spacer {
    height: 100px;

  }

  .primary-nav .nav-list {
    gap: 2rem;

  }

  /* HOME */

  /* content links */
  .content-link.multimedia {
    grid-column: 2 / 4; /* span all columns 2 - 3 */

  }

  .content-link.multimedia a {
    width: 75%;

  }

  /* FILMS */
  .blurb-container, .film-2 .blurb-container {
    flex-direction: column-reverse;
  }

  .film-poster {
    justify-content: center;
    flex: unset;

  }

  .scroll {
    padding: 4% 8% 4% 10%;
    flex: unset;

  }

  .scroll-inner, .music-blurb .scroll-inner, .artists .scroll-inner {
    font-size: clamp(0.9rem, 3vw, 1.1em); /* scale font-size */

  }

  .film-poster.film-3  {
    grid-area: 2 / 2 / 3 / 4;
    justify-self: center;

  }

  .scroll.film-3 {
    grid-area: 3 / 1 / 4 / 4;
    justify-self: center;

  }

  /* MULTIMEDIA */

  .video-game .scroll {
    padding: 2% 8% 2% 10%;
    flex: unset;

  }

  /* scroll scales to required height of text content */
  .music .blurb-container {
    aspect-ratio: 3 / 2;

  }

  .music-blurb .scroll {
    aspect-ratio: auto;
    min-height: auto;
    background-size: 100% 100%;
    padding-top: 6%;
    padding-bottom: 6%;

  }

  .music-player-bg .wrapper {
    flex-direction: column;
    align-items: center;

  }

  .music-player-bg .wooden-sign p {
    font-size: 2em; /* scaling not required now */

  }

  .music-player {
    margin-left: 0;

  }

    /* curved ivory bg top */
  .music-player-bg::before {
      left: -60%;
      right: -60%;
      height: 60%;
      border-radius: 50% 50% 0 0;

  }

  .music-player-bg::after {
    left: -15%;
    right: -15%;

  }

  .music-player-bg {
    padding-bottom: 3rem;

  }

  /* ARTISTS */
  .rk-illustrations figure {
    margin: 1em;

  }

  .lg-art.wrapper {
    grid-template-columns: 1fr 1fr;

  }

  .lg-art figure.art-3 {
    grid-area: 2 / 1 / 3 / 2; /* second row */

  }

  .lg-art figure.art-4 {
    grid-area: 2 / 2 / 3 / 3; /* second row */
    width: unset;
    justify-self: center;

  }

  /* MAILING LIST */
  .subscribe-offer.wrapper {
    grid-template-columns: auto; /* single column */

  }

  .mailing-list-graphic img, .subscribers .abacus img{
    max-height: 300px;
    width: auto;

  }

  .scripts.wrapper {
    padding-top: 2rem;

  }

  /* BASIC PAGES */
  .basic-page {
    margin-bottom: 10%; /* clear footer tree */

  }

  /* FOOTER */

  /* rearrange elements to mobile version */
  .site-footer .wrapper {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: repeat(4,auto);
  }

  .footer-mailing-list {
    grid-row: 3 / 5;  /* span rows 3 and 4 */

  }

  .footer-branding {
    grid-column: 1 / 2; /* first column */
    justify-content: flex-start;
    padding-bottom: 1rem;

  }

  .footer-legal {
    grid-column: 1 / 2; /* first column */
    grid-row: 2 / 3; /* second row */

  }

  .legal-links {
    padding-bottom: 1rem;

  }

  .copyright {
    grid-column: 2 / 3; /* last column */
    grid-row: 4 / 5;  /* last row */

  }

  .footer-tree {
    grid-column: 2 / 3; /* second column */
    grid-row: 1 / 5; /* span all rows */
  }

}

/* iPhone 8 and below – landscape */
@media screen and (max-width: 667px) {

  /* ACTIVATE MOBILE MENU */
  .nav-container {
    display: none; /* hide desktop menu */

  }

  #mobile-menu-container {
    display: block; /* display mobile menu */
    height: 100px;
    border-bottom: 2px solid var(--purdeedarkpurple);
  }

  .header-inner {
    grid-template-columns: 1fr 140px 1fr;

  }

  /* HOME PAGE */

  /* character carousel */
  /* curved green bg top */
  .characters::before {
    left: -90%;
    right: -90%;
  }

  /* curved bg bottom (sky bg eats into green above it) */
  .characters::after {
    left: -15%;
    right: -15%;
    bottom: -8%;
    height: 12%;
    border-radius: 50% 50% 0 0;
  }

  .characters-carousel {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    padding-bottom: 2rem;
  }

  .character-content {
    max-width: 250px;

  }

  /* content links cta */
  .content-links {
    padding-top: 0;

  }

  .content-links .wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(3,1fr);
    grid-column-gap: unset;
    grid-row-gap: 10px;
    position: relative;
    padding-top: 130px;
  }

   .content-links .pointing-tree {
    position: absolute;
    top: 5px; /* don't cut off drop-shadow */
    left: 0;
    width: 50%;
    max-width: 220px;
    z-index: 1;
  }

  .content-link.films {
    justify-content: flex-end;

  }

  .content-link.artists {
    justify-content: center;

  }

  .content-link.multimedia {
    grid-column: 1; /* column 1 */
    grid-row: 3 / 4;  /* on third row */
    justify-content: center;
    width: 130%; /* can exceed horizontal viewport */

}

  .content-link.multimedia a {
    width: 100%;

  }

  .content-link.multimedia img {
    width: 100%;
    max-width: 660px;
    height: auto;

  }

  /* FILMS */
  /* film embed */
  /* curved green bg top */
  .film-embed::before {
    left: -18%;
    right: -18%;
    border-radius: 25% 25% 0 0;
    height: 78%;

  }

  .film-embed {
    padding-top: 1rem;
    height: max-content;

  }

  .film-frame iframe, .yt-embed .film-frame .video-preview, .film-frame .placeholder {
    border-width: 5px;

  }

  .yt-embed .film-frame .video-preview {
    border-radius: 5px;

  }

  .cinemas .wrapper p {
    width: 95%;
    min-width: unset;
    font-size: 1em; /* 18px */

  }

  /* MAILING LIST */
  .scripts.wrapper {
    grid-template-rows: repeat(3,auto);

  }

  .scripts .heading-container {
    grid-column: 1 / 4;
    justify-self: flex-start;
    padding-left: 10px;
    width: 100%;

  }

  .script-1  {
    grid-area: 2 / 2 / 3 / 4;
    align-self: center;

  }

  .script-2 {
    grid-area: 3 / 1 / 4 / 3;
    justify-self: center;

  }

}

/* small iPhones landscape */
@media (max-width: 568px) {

  /* HOME PAGE */
  /* tree frame extends screen width to allow more room for hero img
  - will be clipped by .hero-viewport so doesn't cause horizontal overflow scrolling */
  .hero-frame {
    width: 115%;
    max-width: none;
    left: 50%;
    transform: translateX(-50%);
  }

  /* content cta */
  .content-links {
    padding-bottom: 0;

  }

  /* hang pointing tree off left side */
  .pointing-tree {
    transform: translateX(-32%);

  }

  /* center the overflowing cloud img so screen cut-off is shared left and right */
  .content-link.multimedia {
    position: relative;
    left: 45%;
    transform: translateX(-45%);

  }

  /* FILMS PAGE */
  /* film embed */
  /* curved green bg top */
  .film-embed::before {
    height: 85%;
    left: -18%;
    right: -18%;
    border-radius: 23% 23% 0 0;

  }

  .film-frame {
    width: 113%;
    left: 50%; /* center it */
    transform: translateX(-50%);

  }

  .laurels li {
    flex: 1 0 48%; /* restrict to two items per row */

  }

  .laurels li:nth-child(4), .laurels li:last-child {
    margin-top: 0;

  }

  .yt-consent-message p, .cky-banner-element {
    font-size: 0.9em;

  }

  /* MULTIMEDIA */
  .music .blurb-container {
    flex-direction: column;
/*    aspect-ratio: 1 / 1; */
    align-items: flex-start;

  }

  .music-blurb .scroll {
    max-width: 90%;

  }

  .baby-bee {
    position: absolute;
    right: 0;
    top: 50%;
    width: 20%;
    min-width: 80px;

  }

  .books.wrapper {
    grid-template-rows: repeat(3,auto);

  }

  .books .heading-container {
    grid-column: 1 / 4;
    justify-self: flex-start;
    padding-left: 10px;
    width: 100%;

  }

  .book-1  {
    grid-area: 2 / 2 / 3 / 4;
    align-self: center;

  }

  .book-2 {
    grid-area: 3 / 1 / 4 / 3;
    justify-self: center;

  }

  /* ARTISTS */
  figure.profile-photo-2 {
    width: 100%;
    float: none;
    margin: 0 10px;

  }

  .artist-1 .artist-blurb-bg {
    padding-bottom: 4rem;

  }

  .artist-blurb-bg::before, .artist-blurb-bg::after {
    left: -10%;
    right: -10%;

  }

  /* FOOTER */
 .footer-viewport {
    overflow-x: hidden; /* clips tree when it is positioned to exceed the horizontal screen area */

  }

  .site-footer .wrapper {
    width: 115%;
    grid-template-columns: 55% 45%;

  }

  .copyright {
    grid-column: 1 / 2; /* first column */
    grid-row: 3 / 4;  /* row 3 */
    padding-bottom: 1rem;

  }

  .footer-mailing-list {
    grid-row: 4 / 5;  /* row 4 */

  }

}

@media (max-width: 530px) {
   /* FILMS */
   .cinemas .wrapper div.cinema-2 {
     align-items: flex-start;

   }

}

/* iPhone 16 Pro Max / 17 Pro Max - portrait */
@media (max-width: 440px) {

  /* HOME PAGE */
  /* character carousel */
  /* curved green bg top */
  .characters::before {
    left: -100%;
    right: -100%;
  }

  /* curved bg bottom (sky bg eats into green above it) */
  .characters::after {
    left: -15%;
    right: -15%;
    bottom: -8%;
    height: 12%;
    border-radius: 50% 50% 0 0;
  }
  .characters h2 {
    font-size: 1em;

  }

  .character-column {
    height: 360px;

  }

  /* center the overflowing cloud img so screen cut-off is shared left and right */
  .content-link.films {
    width: 120%; /* can exceed horizontal viewport */
    position: relative;
    left: 50%;
    transform: translateX(-50%);

  }

  .content-link.artists {
    width: 120%; /* can exceed horizontal viewport */
    position: relative;
    left: 50%;
    transform: translateX(-50%);

  }

  /* FILMS PAGE */
  .film .scroll, .scroll.film-3  {
    aspect-ratio: auto;
    min-height: auto;
    background-size: 100% 100%;
    padding: 10% 12%;

  }

  .film-embed::after {
    left: -20%;
    right: -20%;

  }

  .film-frame {
    aspect-ratio: 980 / 550;
    width: 100%;
    left: unset;
    transform: unset;

  }

  .film-frame::before {
    display: none;

  }

  .film-frame iframe {
    width: 100%;
    bottom: 0;
    border-radius: 7px;

  }

  .yt-embed .film-frame .video-preview {
    width: 100%;

  }

  .film-frame .placeholder {
    width: 100%;
    bottom: 0;

  }

  .cinemas {
    padding-bottom: 3rem;

  }

  .cinemas::after {
    left: -20%;
    right: -20%;
    bottom: -11%;

  }

  .cinemas .wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(6,auto);
    padding: 0 5px;

  }

  .cinemas .wrapper figure {
    display: flex;
    justify-content: center;

  }

  div.cinema-1 {
    grid-area: 2 / 1 / 3 / 2;
    justify-content: center;

  }

  figure.cinema-1 {
    grid-area: 1 / 1 / 2 / 2;
    margin: 0;

  }

  .cinemas .wrapper div.cinema-2 {
    grid-area: 4 / 1 / 5 / 2;
    justify-content: center;
    align-items: center;

  }

  figure.cinema-2 {
    grid-area: 3 / 1 / 4 / 2;
    margin: 0;

  }

  .cinemas .wrapper div.cinema-3 {
    grid-area: 6 / 1 / 7 / 2;
    justify-content: center;
    align-items: center;
    z-index: 1;

  }

  figure.cinema-3 {
    grid-area: 5 / 1 / 6 / 2;
    margin: 0;

  }

  .cinemas .wrapper figure img {
    width: 90%;

  }

  .more-films .wooden-sign.arrow, .scripts .wooden-sign.arrow {
    width: 70%;

  }

  .more-films .wooden-sign h2, .scripts .wooden-sign h2 {
    font-size: clamp(0.9rem, 8vw, 2em); /* scale font-size */

  }

  /* MULTIMEDIA */
  .video-game .film-embed::after {
    left: -15px;
    right: -15px;

  }

  .video-game .placeholder {
    width: 100%;
    bottom: 0;

  }

  .music {
    padding-top: 2rem;

  }
  .music-player h3 {
    margin-left: 10%;
    margin-right: 10%;

  }

  .playlist-container {
    flex-direction: column;
    align-items: space-around;

  }

  .playlist {
    padding-left: 2px;
    flex: unset;

  }

  .album-cover {
    align-self: center;

  }

  .music-player-bg::after {
    left: -25%;
    right: -25%;

  }

  /* ARTISTS */
  /* vertically stack artwork */
  .rk-illustrations .wrapper, .lg-art.wrapper {
    grid-template-columns: 1fr;
    grid-template-rows: repeat(4,auto);

  }

  .lg-art figure.art-3, .lg-art figure.art-4, .rk-illustrations .illustration-2, .rk-illustrations .illustration-3, .rk-illustrations .illustration-4 {
    grid-area: unset;

  }

  .rk-illustrations::after {
    left: -18%;
    right: -18%;
    bottom: -8%;
    height: 12%;

  }

  /* MAILING LIST */
  .script-1, .script-2, .book-1, .book-2 {
    grid-column: 1 / 4;

  }

/* if no hyperlink on book-1 */
  .book-1 {
    width: 90%;

  }

  .script-1 a, .script-2 a, .book-1 a, .book-2 a {
    width: 90%;
    margin: 0 auto;
    display: block;

  }

  /* FOOTER */
  .copyright {
    flex-direction: column;
    align-items: center;

  }

  .pipe {
    display: none;

  }

}

/* iPhone 6/7/8 Plus / XR/XS / 11  - portrait */
@media (max-width: 414px) {
  /* HOME */
  .site-footer .wrapper {
    grid-template-columns: 60% 40%;

  }

  /* FILMS */
  .credits li {
    font-size: 1em; /* 18px */

  }

  .credits .copy-symbol {
    bottom: 17px;
    left: -17px;

  }

  .film-frame .placeholder {
    align-items: flex-start;
    justify-content: flex-start;

  }

  /* MULTIMEDIA */
  .music-blurb .scroll {
    padding: 10% 12%;

  }

}

/* small iPhones - portrait */
@media (max-width: 375px) {

  /* HOME PAGE */
  /* character carousel */
  .characters h2 {
    font-size: 0.89em;

  }

  .characters p {
    font-size: 0.83em;

  }

  .character-column {
    height: 320px;

  }

  /* FILMS */
  .laurels {
    gap: 1%;

  }

  /* MULTIMEDIA */
  .video-game .scroll  {
    aspect-ratio: auto;
    min-height: auto;
    background-size: 100% 100%;
    padding: 10% 12%;

  }

  /* hide Baby Bee on smallest screens */
  .baby-bee {
    display: none;

  }

  .music-blurb .scroll {
    max-width: 100%;

  }

  /* FOOTER */
  .site-footer {
    font-size: 0.78em;
  }

  .site-footer .wrapper {
    grid-template-columns: 65% 35%;

  }

  /* needed to align copyright symbol to resized text */
  .copyright span {
    bottom: 10px;

  }

}

/* smallest iPhones - portrait */
@media (max-width: 320px) {

  /* FILMS */
  .credits li {
    font-size: 0.89em; /* 16px */

  }

  .credits .copy-symbol {
/*    font-size: 1.7em; */
    bottom: 13px;
    left: -15px;

  }

}
