/* rem and em do NOT depend on html font-size in media queries!
Instead, 1rem = 1em = 16px */

/***************************************/
/* BELOW 1344px (Smaller desktops) */
/* 1350 * 16 = 84.375 = 84em (84*16=1344) */
/***************************************/

@media (max-width: 75em) {
  a:link {
    font-size: 1.4rem;
  }

  .header {
    justify-content: space-between;
  }

  .hero-spotify {
    width: 75%;
  }

  .hero-description {
    max-width: 70rem;
    margin: 0 auto;
  }

  /* MOBILE NAVIGATION */

  .btn-mobile-nav {
    display: block;
    z-index: 9999;
  }

  .main-nav {
    background-color: rgb(0, 0, 0, 0.5);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    transform: translateX(100%);

    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s;

    /* Hide navigation */
    /* Display: none; Allows NO transitions at all */

    /* 1) Hide nav visually */
    opacity: 0;

    /* 2) Make nav unaccassible to mouse and keyboard */
    pointer-events: none;

    /* 3) Hide nav from screen readers */
    visibility: hidden;
  }

  .nav-open .main-nav {
    opacity: 1;
    pointer-events: auto;
    visibility: visible;
    transform: translateX(0);
  }

  .nav-open .icon-mobile-nav[name="close-outline"] {
    display: block;
  }

  .nav-open .icon-mobile-nav[name="menu-outline"] {
    display: none;
  }

  .nav-open #active {
    margin-left: 0;
  }

  .nav-open .dropdown-content {
    top: 2.4rem;
    left: 0;
    background-color: rgba(0, 0, 0);
    z-index: 999;
  }

  .nav-open .dropdown-content a {
    padding: 0.2rem;
  }

  .main-nav-list {
    flex-direction: column;
    gap: 4.8rem;
    margin-top: -16rem;
  }

  .main-nav-link:link,
  .main-nav-link:visited {
    font-size: 1.6rem;
  }

  .dropdown button {
    font-size: 1.6rem;
    background: none;
  }

  .about {
    max-width: 105rem;
  }

  .watch iframe {
    width: 96%;
  }

  .film-container {
    grid-template-columns: repeat(4, 1fr);
  }

  .videogame-gallery {
    column-gap: 1.2rem;
  }

  .games-credits {
    max-width: 80rem;
  }

  .film-credits {
    max-width: 90rem;
  }
}

@media (max-width: 64em) {
  section {
    margin: 0 1.2rem;
  }
}

@media (max-width: 59em) {
  article {
    margin-bottom: 4.8rem;
    background-color: #0f0f0f;
  }

  header {
    margin-bottom: 5.2rem;
    background-color: #212121;
  }

  h2 {
    font-size: 2.4rem;
  }

  .header {
    padding: 1.2rem 1rem;
  }

  .container {
    padding: 0 1.6rem;
  }
  .hero-spotify {
    width: 90%;
  }

  .copyright-text {
    font-size: 0.9rem;
    line-height: 1;
  }

  .socials {
    width: 36rem;
  }

  .music-selection {
    flex-direction: column;
    padding: 0 2.4rem;
  }

  .spotify {
    width: 100%;
  }

  .section-about {
    padding: 2.4rem 0 4.8rem 0;
  }

  .about-img {
    display: none;
  }

  .section-news {
    padding: 2.4rem 0 3.2rem 0;
  }

  .news {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .news-music {
    width: 100%;
    height: 46rem;
    order: 0;
  }

  .container {
    grid-template-columns: repeat(2, 1fr);
  }

  .listen-img {
    display: none;
  }

  .film-container {
    grid-template-columns: repeat(3, 1fr);
  }

  .misc-credits {
    max-width: 80rem;
  }
}

@media (max-width: 43em) {
  h2 {
    font-size: 2rem;
    letter-spacing: 1.4rem;
    padding-left: 1.4rem;
  }
  .container {
    grid-template-columns: 1fr;
  }
  .box1 {
    margin-bottom: 2.4rem;
  }
  .box2 {
    grid-row: 4;
    margin-bottom: 2.4rem;
  }
  .box3 {
    grid-row: 6;
    margin-bottom: 2.4rem;
  }
  .box4 {
    margin-bottom: 2.4rem;
  }
  .film-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 30em) {
  .film-container {
    grid-template-columns: 1fr;
  }
  .filmstv-container {
    padding: 1.2rem;
  }
  .credits-poster {
    width: 33rem;
    height: 48rem;
  }
}

@media (max-height: 26em) {
  .main-nav-list {
    flex-direction: row;
    gap: 4.8rem;
    margin-top: -12rem;
  }
}

@media (max-width: 24em) {
  .header {
    padding: 0 1.2rem;
  }
  .main-title {
    font-size: 2.2rem;
    border-bottom: none;
  }
  .sub-title {
    font-size: 1rem;
  }
  .sticky .header {
    height: 6.4rem;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
  }
  .icon-mobile-nav {
    height: 3.6rem;
    width: 3.6rem;
  }
  h2 {
    font-size: 2.2rem;
  }
  .hero {
    padding: 0 1.2rem;
  }
  .hero-spotify {
    width: 100%;
  }

  .about-awards {
    font-size: 1.2rem;
  }
  .watch.grid--2-cols {
    grid-template-columns: 1fr;
  }

  .videogame-gallery.grid--3-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .misc-gallery.grid--4-cols {
    grid-template-columns: repeat(2, 1fr);
  }
  .misc-gallery {
    column-gap: 1.2rem;
    row-gap: 1.2rem;
  }
  .contact-box {
    max-width: 35rem;
  }
  .sticky .section-footer {
    height: 6.4rem;
  }
  .socials {
    gap: 4px;
    width: 34rem;
    padding: 4px 0;
  }

  .copyright-text {
    font-size: 0.6rem;
    letter-spacing: 1px;
    margin-top: 0.4rem;
  }

  .sticky .section-hero,
  .sticky .section-about,
  .sticky .section-listen,
  .sticky .section-watch,
  .sticky .section-filmstv,
  .sticky .section-videogames,
  .sticky .section-misc,
  .sticky .section-contact {
    margin-bottom: 4.8rem;
  }

  .grid--2-cols-div1,
  .grid--2-cols-div2 {
    grid-template-columns: 1fr;
  }
  .hero-news {
    padding: 2.4rem 1.2rem;
  }
  .hero-img1 {
    grid-row: 1;
  }

  .hero-img3 {
    grid-row: 1;
  }
}

/*
- Font sizes (px)
10 / 12 / 14 / 16 / 18 / 20 / 24 / 30 / 36 / 44 / 52 / 62 / 74 / 86 / 98

- Spacing System (px)
2 / 4 / 8 / 12 / 16 / 24 / 32 / 48 / 64 / 80 / 96 / 128
*/

/***************************************/
/* Fixing Safari flexbox gap */
/***************************************/

.no-flexbox-gap .main-nav-list li:not(:last-child) {
  margin-right: 4.8rem;
}

.no-flexbox-gap .list-item:not(:last-child) {
  margin-bottom: 1.6rem;
}

.no-flexbox-gap .list-icon:not(:last-child) {
  margin-right: 1.6rem;
}

.no-flexbox-gap .delivered-faces {
  margin-right: 1.6rem;
}

.no-flexbox-gap .meal-attribute:not(:last-child) {
  margin-bottom: 2rem;
}

.no-flexbox-gap .meal-icon {
  margin-right: 1.6rem;
}

.no-flexbox-gap .footer-row div:not(:last-child) {
  margin-right: 6.4rem;
}

.no-flexbox-gap .social-links li:not(:last-child) {
  margin-right: 2.4rem;
}

.no-flexbox-gap .footer-nav li:not(:last-child) {
  margin-bottom: 2.4rem;
}

@media (max-width: 75em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 3.2rem;
  }
}

@media (max-width: 59em) {
  .no-flexbox-gap .main-nav-list li:not(:last-child) {
    margin-right: 0;
    margin-bottom: 4.8rem;
  }
}
