/** HEADER **/

.skip-to-content {
      position: absolute;
      top: -4rem;
      left: 1rem;
      background: var(--c-red);
      color: var(--c-white);
      padding: 0.5rem 1rem .75rem 1rem;
      z-index: 9999;
      transition: top 0.2s ease;
      text-decoration: none;
      border-bottom-left-radius: 1rem;
      border-bottom-right-radius: 1rem;
}

.skip-to-content:focus {
      top: 0;
}

header {
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 3.3rem;
      background-color: var(--c-turquoise);
      color: var(--c-black);
      z-index: 9998;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      padding: 1rem 1rem;
      border-bottom: 1px solid var(--c-red);
      overflow: hidden;
      transition: height .5s ease-in-out;
}

nav {
      width: 100%;
      height: 100%;
      display: flex;
      justify-content: center;
      align-items: center;
}

.nav-container {
      width: max-content;
      height: 100%;
      display: flex;
      justify-content: space-evenly;
      align-items: left;
      flex-direction: column;
      padding: 2rem 0;
      opacity: 0;
      transition: opacity .5s ease-in-out;
}

nav ul,
.nav-buttons {
      list-style-type: none;
      display: flex;
      flex-direction: column;
      gap: .5rem;
}

nav ul li a,
.contrast-button,
.close-nav-button {
      display: grid;
      grid-template-columns: 1.5rem auto;
      gap: .5rem;
      align-items: center;
      width: max-content;
}

@media screen and (min-width: 480px) {
      #site-content {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: center;
            justify-content: center;
      }
}

@media screen and (min-width: 720px) {

      header {
            flex-wrap: nowrap;
            height: 3.3rem;
            border-bottom: 2px solid var(--c-red);
      }

      .site-title {
            width: 20rem;
      }

      .mobile-only {
            display: none !important;
      }

      nav {
            width: max-content;
      }

      .nav-container {
            width: max-content;
            justify-content: start;
            align-items: left;
            flex-direction: row;
            gap: 1rem;
            opacity: 1;
      }

      nav ul,
      .nav-buttons {
            list-style-type: none;
            display: flex;
            flex-direction: row;
            gap: .5rem;
            align-items: center;
      }

      nav ul li a,
      .contrast-button,
      .close-nav-button {
            display: grid;
            grid-template-columns: 1.5rem auto;
            gap: .1rem;
            align-items: center;
            width: max-content;
      }
}

/** FOOTER **/

footer {
      width: 100%;
      min-height: 10rem;
      background: var(--c-white);
      color: var(--c-red);
      padding: 2.5rem;
      display: flex;
      flex-direction: column;
      gap: 3rem;
      z-index: 6 !important;
      position: relative;
}

.footer-partner-logos {
      display: flex;
      gap: 1rem;
      justify-content: start;
      align-items: center;
      flex-wrap: wrap;
      margin-top: 1rem;
}

.footer-partner-logo {
      height: auto;
      width: auto;
      max-width: 10rem;
      max-height: 6rem;
}

@media screen and (min-width: 720px) {

      footer {
            display: grid;
            grid-template-columns: 1fr 1fr;
            align-items: start;
      }

      .footer-partner {
            grid-column: 2 / span 1;
            grid-row: 1;
      }

      s .footer-links {
            grid-column: 1 / span 1;
            grid-row: 1;
      }
}

/** SUBNAV **/

.sub-nav {
      background-color: var(--c-red);
      min-height: 4rem;
      height: auto;
      position: sticky;
      top: 3.3rem;
      z-index: 9000;
      padding: .5rem;
      display: flex;
      justify-content: space-between;
      align-items: center;
      flex-wrap: wrap;
      width: 100%;
      transition: height .5s ease-in-out;
      gap: .3rem;
}

.filter-list {
      display: flex;
      gap: .3rem;
      justify-content: start;
      align-items: start;
      height: 100%;
      flex-wrap: wrap;
}

.search-toggle-buttons {
      display: flex;
      gap: .3rem;
      justify-content: center;
      align-items: center;
      height: 100%;
}

.filter-list-button,
.search-button,
.toggle-subnav-button {
      height: 3rem;
      width: 3rem;
      display: flex;
      justify-content: center;
      align-items: center;
      background-color: var(--c-white);
      border-radius: 2.5rem;
      padding: 0 1rem;
      gap: .5rem;
      transition: all .5s ease-in-out;
}

.search-button,
.toggle-subnav-button {
      padding: 0;
}

.filter-list-button:hover,
.search-button:hover,
.toggle-subnav-button:hover,
.list-toggle-button:hover {
      background-color: var(--c-turquoise);
}

.filter-list-button {
      overflow-x: hidden;
}

.filter-list-button.active {
      background-color: var(--c-black);
      color: var(--c-white);
      border: var(--c-black-white);
      border: 2px solid var(--c-black-white);
}

.filter-list-button svg path {
      fill: var(--c-black);
      stroke: var(--c-black);
}

.filter-list-button.active svg path {
      fill: var(--c-white);
      stroke: var(--c-white);
}

.filter-list-button span {
      display: none;
}

.list-gallery-toggle-container {
      display: none;
}

.list-gallery-toggle {
      display: flex;
      gap: .25rem;
      align-items: center;
      color: var(--c-black-white);
}

.list-toggle-button {
      height: 3rem;
      width: 5rem;
      display: flex;
      justify-content: end;
      align-items: center;
      background-color: var(--c-white);
      border-radius: 2.5rem;
      padding: .25rem;
      transition: all .5s ease-in-out;
}

.list-toggle-button-switch {
      height: 2.5rem;
      width: 2.5rem;
      border-radius: 2.5rem;
      background-color: var(--c-black);
      transition: all .5s ease-in-out;
}

@media screen and (min-width: 720px) {
      .list-gallery-toggle-container {
            display: block;
      }
}

@media screen and (min-width: 1024px) {

      .filter-list-button {
            width: auto;
      }

      .filter-list-button span {
            display: block;
      }

      .toggle-subnav-button {
            display: none;
      }
}