/* Small Screens and iPhones */

@media screen and (max-height: 800px) {
  body {
    /* background: lightcoral; */
  }

  nav {
    margin-bottom: 150px;
  }

}

@media screen and (max-width: 1150px) {
  body {
    /* background: lightcoral; */
  }

  nav {
    margin-bottom: 150px;
  }

  main {
    padding: 0 50px;
  }

  #text,
  #image,
  #text + #images > figure:first-child {
    width: calc(50% - 25px);
  }

  #text {
    margin-right: 50px;
  }

  footer {
    padding-top: 100px;
  }

  .footer-grid {
    margin-top: 75px;
  }

  #thumbnails {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 100px;
  }

  .rows.two .cell {
    width: calc((100% - 50px) / 2);
  }

  .rows.two .cell:nth-child(odd) { /* left */
    margin-left: 0;
    margin-right: 25px;
  }

  .rows.two .cell:nth-child(even) { /* right */
    margin-left: 25px;
  }


  nav li:nth-child(3) {
    display: none;
  }

  nav ul li {
    display: inline;
    margin-right: 25px;
  }

  .palm-beach-section {
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

  .palm-beach-section .column {
    width: 100%;
    max-width: 500px;
  }

  .quote-video-section {
    width: 100%;
    flex-direction: column;
    /* align-items: center; */
    gap: 2rem;
    margin-bottom: 2rem;
    background: none;
    position: static;
    margin-left: 0;
    margin-right: 0;
  }

  .quote-video-section .column {
    width: 100%;
    max-width: 500px;
    /* height: auto; */
  }

  .quote-video-section .column.quote {
    background: #EEE;
    position: relative;
    width: 100%;
    max-width: 500px;
    box-sizing: border-box;
    height: max-content;
    padding: 2rem;
  }

  .quote-video-section .column.quote::before {
    content: "";
    position: absolute;
    left: 1rem;
    top: 10%;
    height: 80%;
    width: 2px;
    background: #666;
  }

  .quote-video-section .column iframe {
    height: clamp(200px, auto, 280px);
    width: 100%;
    max-width: 500px;
    aspect-ratio: 16/9;
  }

  .palm-beach-title {
    text-align: center;
  }

  .palm-beach-section#vipPreviewInfo {
    max-width: none;
    margin-top: 0;
  }

  .mailing-list-action {
    margin: 0 auto 3rem auto;
  }
}


@media screen and (max-width: 800px) {
  body {
    /* background: lightcoral; */
  }

  main {
    padding: 0 0;
  }

  #text,
  #image,
  #text + #images figure,
  #text + #images > figure:first-child {
    width: 100%;
    margin-bottom: 50px;
  }

  #text + #images figure + figure {
    margin-bottom: 0;
  }

  #thumbnails {
    gap: 50px;
  }

  #footerDescription {
    display: none;
  }

  .footer-grid {
    grid-template-columns: repeat(3, 1fr);
    column-gap: 50px;
  }

}


@media screen and (max-width: 600px) {

  body,
  .medium {
    /* background: lightblue; */
    font-size: 16px;
    line-height: 21px;
  }

  h3 {
    font: 22px/29px Std, sans-serif;
    margin-bottom: 1.318em;
  }

  #container {
  padding: 50px 25px 0 25px;
  }

  main {
    margin-bottom: 0;
  }

  /* Nav */

  nav {
    position: relative;
    height: calc(100vh);
    height: auto;
    width: calc(100vw);
    margin: -50px 0 56px -25px;
    padding: 25px 25px 0 25px;
    display: flex;
    flex-direction: column;
  }

  nav .nav-title {
    position: relative;
    z-index: 1;
  }

  nav h1 {
    xmargin-top: 100vh;
    display: block;
    height: auto;
    transform: translate(-50%, 0);
    margin: 21px auto 125px auto;
    position: relative;
    top: auto;
    left: auto;
    transform: none;
  }

  nav h1 a {
    margin: 0 auto;
  }

  nav ul {
    height: 0;
    display: none;
  }

  nav ul li {
    display: block;
    font-size: 22px;
    line-height: 29px;
    margin-bottom: 29px;
  }

  nav li:nth-child(3) {
    display: block;
  }

  nav ul ol {
    display: block;
  }

  nav ul ol li,
  nav ul li p {
    font-size: 16px;
    line-height: 21px;
    margin-bottom: 0;
  }

  nav ul li p {
    margin-bottom: 21px;
  }

  nav ul li ol li {
    list-style: disc inside;
    display: list-item;
    line-height: 29px;
  }

  nav ul ol li a {
  border-bottom: 2px solid;
  }


  nav ul {
  }

  nav #navContact {
    float: none;
    text-align: left;
    font-size: 22px;
    line-height: 29px;
  }

  nav #navContact > a:first-child {
    display: none;
  }

  nav #navContact p {
    display: block;
  }

  nav #navContact .navFollow {
    display: none;
  }

  #toggleMobileNav {
    position: absolute;
    top: 49px;
    right: 25px;
    width: 25px;
    height: 17px;
    background: transparent url('/assets/images/burgerBlack.svg') no-repeat top left;
    background-size: cover;
    text-indent: -1000em;
    display: block;
    z-index: 2;
  }

  .darkmode #toggleMobileNav {
    background-image: url('/assets/images/burgerWhite.svg');
  }

  #toggleMobileNav:hover {
    opacity: .4;
  }

  .navOpen {
    overflow: hidden;
  }

  .navOpen nav {
    height: calc(100vh);
    background: #F1F1F1;
  }

  .home.navOpen .darkmode nav {
    color: #000;
  }

  .home.navOpen .darkmode nav h1 a {
    background-image: url("/assets/images/rgTypeBlack.svg");
  }

  .navOpen nav ul {
    display: block;
  }

  .navOpen nav #toggleMobileNav {
    background-image: url('/assets/images/closeBlack.svg');
    width: 22px;
    height: 22px;
    top: 46px;
  }

  /* Main Content */

  .rows.two .cell {
    width: 100%;
    margin-bottom: 50px;
  }

  .rows.two .cell figure {
    margin-bottom: 0 !important;
  }

  .rows.two .cell:nth-child(even) {
  margin-left: 0;
  }

  #thumbnails {
    grid-template-columns: repeat(2, 1fr);
    margin-top: 50px;
  }

  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  #footerProjects {
    display: none;
  }

  #footerContact {
    order: 3;
  }

  #footerDescription {
    display: none;
  }

  /* Sections */

  .projects h3 {
    margin-bottom: 2.64em;
  }

  .palm-beach-title {
    text-align: left;

  }

  .palm-beach-exhibition-name {
    font-weight: 900;
    font-size: 5.7rem;
    line-height: 5rem;
    margin-bottom: 0.5rem;
  }

  .projects .palm-beach-exhibition-name {
    font-size: 5.7rem;
    line-height: 5rem;
    margin-bottom: 0.5rem;
  }

  .palm-beach-section .column .pbmcLogo {
    /* width: 90%;
    margin-left: 5%; */
    width: 90%;
  }

  .palm-beach-section .column .exhibition-description {
    width: 100%;
  }
}

/* Extra small screens - iPhone SE, Galaxy Z Fold */

@media screen and (max-width: 460px) {
  .palm-beach-exhibition-name {
    font-size: 4.8rem;
    line-height: 4.4rem;
  }

  .projects .palm-beach-exhibition-name {
    font-size: 4.8rem;
    line-height: 4.4rem;
  }

  .palm-beach-exhibition-subtitle {
    font-size: 1.3rem;
  }

  .palm-beach-section .column .exhibition-dates {
    font-size: 1.8rem;
  }
}

@media screen and (max-width: 400px) {
  .palm-beach-title {
    font-size: 2rem;
  }

  .palm-beach-exhibition-name {
    font-size: 4rem;
    line-height: 3.8rem;
  }

  .projects .palm-beach-exhibition-name {
    font-size: 4rem;
    line-height: 3.8rem;
  }

  .palm-beach-exhibition-subtitle {
    font-size: 1.1rem;
  }

  .palm-beach-section .column .exhibition-dates {
    font-size: 1.5rem;
  }
}
