/*
Table of Content:
@Custom Breakpoints
  (min-width: 2000px)
  (max-width: 1700px)
  (max-width: 1600px)
  (max-width: 1500px)
  (max-width: 1400px)
  (max-width: 1300px)
  (max-width: 1200px)
  (max-width: 1100px)
  (max-width: 1024px)
  (max-width: 992px) -> start of mobile menu
  (max-width: 400px)
  (max-height: 800px) -> for sticky sections on small height screen
@Bootstrap Breakpoints
  xl: (max-width: 1199px)
  lg: (max-width: 991px)
  md: (max-width: 767px)
  sm: (max-width: 575px)
*/

@media only screen and (min-width: 2000px) {
  .d-xxl-none {
    display: none !important;
  }

  .d-xxl-block {
    display: block !important;
  }

  .video {
    width: calc(1600px - 30px);
    margin: 0 auto;
  }

  .video .container {
    padding-left: 60px;
    padding-right: 60px;
    width: 100%;
  }
}

@media only screen and (max-width: 1700px) {
  html {
    /* font-size: 17px; */
  }

  .footer-secondary-menu {
    font-size: 0.9rem;
  }
}

@media only screen and (max-width: 1600px) {
  html {
    /* font-size: 16px; */
  }

  .footer-secondary-menu {
    font-size: 0.8rem;
  }
}

@media only screen and (max-width: 1500px) {
  /* Global */

  html {
    /* font-size: 15px; */
  }

  .container {
    width: 100%;
  }

  /* Special Layouts */

  #header {
    height: 500px;
  }
}

@media only screen and (max-width: 1400px) {
  /* Global */

  html {
    /* font-size: 14px; */
  }

  .container {
    width: 100%;
  }

  .agc-logo {
    flex-basis: 25%;
  }

  #footer-navigation .menu {
    margin-right: 0;
  }

  /* Special Layouts */

  #header {
    margin-top: 70px;
  }

  /* Gravity Forms */
  .gform_wrapper textarea {
    height: 100px;
  }

  /* Accordion */
  .accordion-image {
    padding-right: 2rem;
  }
}

@media only screen and (max-width: 1300px) {
  /* Global */

  html {
    /* font-size: 13px; */
  }

  body {
    /* overflow-x: hidden; */
  }

  /* Typography */

  /* Header */

  header.container-fluid {
    /* height: 50px; */
  }

  #header {
    margin-top: 50px;
  }
}

@media only screen and (max-width: 1200px) {
  /* Global */
  html {
    /* font-size: 11px; */
  }

  .container {
    max-width: 100%;
    width: 100%;
  }
}

@media only screen and (max-width: 1100px) {
  /* Cards */
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Image Text */
  .image-text-info-headline {
    font-size: 2.25rem;
  }

  /* Contact Information */
  .contact-information {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }
}

@media only screen and (min-width: 992px) and (max-width: 1100px) {
  .fieldwrk-logo {
    transform: none;
  }
}

@media only screen and (max-width: 1024px) {
  /* Global */

  html {
    /* font-size: 16px; */
  }

  .container {
    /* width: 95%; */
  }

  /* Testimonials */
  .testimonial-slider {
    padding: 60px 40px 40px;
  }

  .quote {
    font-size: 2.5rem;
  }

  .author-name {
    font-size: 1.75rem;
  }

  .layout-text-html-content .wysiwyg {
    font-size: 1.15rem;
  }

  .card {
    height: 100%;
  }

  .card-image-placeholder {
    display: none;
  }
}

@media only screen and (min-width: 1200px) and (max-height: 750px) {
  /* Header Navigation */

  #menu-primary-navigation a {
    font-size: 0.95em;
  }

  /* Special Layouts */
  #header {
    height: 400px;
  }

  #header.shorter {
    height: 300px;
  }
}

@media only screen and (max-width: 992px) {
  /* Start of mobile menu */
  /* Global */

  html {
    /* font-size: 13px; */
  }

  /* .row {
    margin-left: -15px;
    margin-right: -15px;
    padding-top: 4em;
    padding-bottom: 4em;
  } */

  header.container-fluid {
    width: 100%;
  }

  body.menu-open {
    overflow: auto;
  }

  body.menu-open #main-content {
    transform: none;
    transform-origin: center;
    /* transform: translateY(calc(288px + var(--header-height-desktop))); */
    overflow-y: hidden;
  }

  #main-content {
    max-height: none;
  }

  #main-navigation-container {
    background: var(--color-gray-2);
    height: calc(100vh - var(--header-height-desktop));
    top: var(--header-height-desktop);
  }

  .logged-in #main-navigation-container {
    height: calc(
      100vh - var(--header-height-desktop) - var(--header-wp-admin-bar)
    );
    top: calc(var(--header-height-desktop) + var(--header-wp-admin-bar));
  }

  .menu-main-menu-navigation-container,
  #main-navigation-container .menu {
    height: 100%;
  }

  #main-navigation-container .menu {
    flex-direction: column;
  }

  html.fixed {
    overflow: auto;
  }

  #footer-navigation-container .menu > li:last-child {
    margin-left: 0;
  }
}

@media only screen and (max-width: 782px) {
  .logged-in header.container-fluid {
    top: var(--header-wp-admin-bar-mobile);
  }

  .logged-in .has-mega-menu .mega-menu-wrapper-outer {
    /* top: var(--header-wp-admin-bar-mobile) !important; */
  }
}

@media only screen and (max-width: 400px) {
  #footer-navigation .menu {
    grid-template-columns: repeat(1, 1fr);
  }

  .bw-logo {
    transform: none;
    flex-basis: auto;
    margin-top: 3.25rem;
  }

  .bw-logo .text-right {
    text-align: left !important;
  }
}

@media only screen and (max-width: 782px) {
}

@media only screen and (max-width: 767px) {
  /* Global */

  #wpadminbar {
    position: fixed !important;
  }

  html {
    /* font-size: 17px; */
  }

  .container {
    width: 100%;
  }

  /* .row {
    padding-top: 3em;
    padding-bottom: 3em;
  } */

  .py-small {
    padding-top: 1.5em;
    padding-bottom: 1.5em;
  }

  .pt-small {
    padding-top: 1.5em;
  }

  .pb-small {
    padding-bottom: 1.5em;
  }

  /* Typography */

  /* Header */

  /* Header Navigation */

  #menu-primary-navigation {
    padding-top: 2em;
  }

  #menu-primary-navigation a {
    font-size: 1.3em;
  }

  #menu-primary-navigation .sub-menu > li:first-child {
    margin-top: 0.5em;
  }

  /* Special Layouts */

  #header {
    height: 300px;
  }

  /* HTML Video */

  .video {
    text-align: center;
  }

  /* Cards */

  /* Tables */

  table {
    display: block;
    overflow: scroll;
  }

  th,
  td {
    font-size: 0.7em;
  }

  td {
    line-height: 1.2;
  }

  th:last-of-type {
    padding-right: 2em;
  }

  td:last-of-type {
    padding-right: 2em;
  }

  /* Footer */
}

@media only screen and (min-width: 576px) and (max-width: 992px) {
  #footer-navigation .menu {
    max-width: max-content;
  }
}

/**
*
* @Bootstrap Breakpoints - 
* The Breakpoints below matches the bootstrap breakpoints 
* But desktop-first approach
*
* xl: (max-width: 1199px)
* lg: (max-width: 991px)
* md: (max-width: 767px)
* sm: (max-width: 575px)
*
**/

/**
*** @xl and below  
**/
@media (max-width: 1199px) {
}

/**
*** @lg and below  
**/
@media (max-width: 991px) {
  /* General */
  section,
  .layout-text-html,
  .layout-list-with-image,
  .layout-carousel,
  .layout-cards {
    padding-top: calc(var(--section-padding) * 0.5);
    padding-bottom: calc(var(--section-padding) * 0.5);
  }

  section.py-lg {
    padding-top: calc(var(--section-padding-lg) * 0.5);
    padding-bottom: calc(var(--section-padding-lg) * 0.5);
  }

  section.py-sm {
    padding-top: calc(var(--section-padding-sm) * 0.5);
    padding-bottom: calc(var(--section-padding-sm) * 0.5);
  }

  /* Footer */
  #footer-navigation-container .menu {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
  }

  #footer-navigation-container .menu > li {
    padding-right: 0;
  }

  /* List With Image */
  .list-item-content-container {
    gap: 2rem;
  }

  /* Cards */
  .card-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .card-item-header {
    margin-bottom: 0;
  }

  .card-content {
    position: static;
    transform: none !important;
  }

  .card-copy {
    opacity: 1;
  }

  /* Hero - Home Page */
  .hero-header,
  .hero-2-header {
    font-size: 2.75rem;
  }

  .layout-hero .button-group {
    flex-direction: column;
  }

  /* Hero - Sub Page */
  .layout-hero-2 {
    min-height: 60vh;
    height: auto;
  }

  /* Small CTA */
  .layout-cta {
    padding-top: 1.5rem;
    padding-bottom: 1.5rem;
  }

  .cta-content {
    flex-direction: column;
    gap: 1rem;
  }

  /* Horizontal List */
  .horizontal-list-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .team-modal-close {
    transform: none;
    left: 1rem;
  }
}

/**
*** @md and below   
**/
@media (max-width: 767px) {
  .section-headline {
    font-size: 2.5rem;
  }

  /* Footer */
  #footer-navigation-container .menu {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  .fieldwrk-logo {
    transform: none;
    padding-right: 0;
  }

  /* Accordion */
  .layout-accordion .section-image {
    height: 500px;
    object-fit: cover;
    object-position: center;
  }

  /* List With Image */
  .list-item-content-container {
    gap: 2rem;
  }

  .list-item {
    flex-direction: column;
  }

  .list-item-img {
    flex: auto;
  }

  /* Cards */
  .card-list {
    grid-template-columns: repeat(1, 1fr);
  }

  /* Hero - Home Page -> Change layout */
  .hero-header,
  .hero-2-header {
    font-size: 2.5rem;
  }

  .layout-hero .button-group {
    flex-direction: row;
  }

  .hero-background-container-wrapper .solid-bg {
    display: none;
  }

  .hero-content-container {
    margin-bottom: 2rem;
    padding: 2rem;
    background-color: var(--color-midnight-faded-2);
  }

  .hero-button {
    margin-top: 2rem;
  }

  .hero-content {
    padding-left: 0;
  }

  /* Hero - Sub Page */
  .hero-2-content {
    left: 0;
    right: auto;
    transform: none;
    bottom: 0;
    max-width: 100%;
    width: 100%;
    padding: 2rem;
  }

  /* Portfolio/Project Slider */
  .slide-portfolio {
    width: 350px;
  }

  .slider-project-arrow-container .next,
  .slider-portfolio-arrow-container .next {
    margin-right: 2rem;
  }

  .slider-project-arrow-overlay,
  .slider-portfolio-arrow-overlay {
    width: 100px;
  }

  .tag {
    font-size: 12px;
  }

  .image-text-file {
    min-height: 400px;
    object-fit: cover;
    object-position: center;
  }

  /* Image/Text Row */
  .image-text-row-headline {
    font-size: 2rem;
  }

  .image-text-rows-container > .row {
    margin-bottom: 2rem;
  }

  /* Horizontal List */
  .horizontal-list-container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  /* Blog */
  .blog-grid-item {
    margin-bottom: 1rem;
  }

  /* Contact Form */
  div.gform_wrapper.gravity-theme .gform_fields {
    display: block;
  }

  /* Contact Information */
  .contact-information {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
  }

  /* Testimonials */
  .testimonial-slider {
    padding: 50px 30px 30px;
  }

  .quote {
    font-size: 1.75rem;
  }

  .author-name {
    font-size: 1.5rem;
  }

  /* Event List */
  .event-name {
    font-size: 1.75rem;
  }

  /* Full Width Media */
  .full-width-img-wrapper {
    background-attachment: scroll;
  }

  .slider-portfolio-arrow-container,
  .slider-portfolio-arrow-overlay,
  .slider-project-arrow-container,
  .slider-project-arrow-overlay {
    display: none;
  }

  .grid-item {
    margin-bottom: 2rem;
  }
}

/**
*** @sm and below  
**/
@media (max-width: 575px) {
  h1 br,
  .hero-header br,
  .layout-subheader br {
    display: none;
  }

  .section-headline {
    font-size: 2.25rem;
  }

  /* Buttons */
  .headline-button .button,
  .layout-horizontal-list .button {
    width: 100%;
  }

  /* Hero - Home Page */
  .hero-header,
  .hero-2-header {
    font-size: 2.25rem;
  }

  .layout-hero .button-group,
  .layout-hero-2 .button-group {
    flex-direction: column;
  }

  /* Image/Text */
  .image-text-info .button-group {
    flex-direction: column;
  }

  /* Cards */
  .card-image-placeholder {
    min-height: 300px;
  }

  /* Testimonials */
  .quote {
    font-size: 1.25rem;
  }

  .author-name {
    font-size: 1.25rem;
  }

  /* Projects */
  .blog-filter {
    flex-direction: column;
  }

  .filter-item {
    width: 100%;
  }
}

@media (max-width: 400px) {
  #logo img {
    width: 120px;
  }
}

/* Small breakpoint: 2 columns (50%) for firefox isotope */
/* @media (min-width: 576px) {
  .grid-sizer .col-sm-6 {
    width: calc(50% - 0.1px) !important;
  }
} */

/* Large breakpoint: 3 columns (33.3333%) for firefox isotope */
/* @media (min-width: 992px) {
  .grid-sizer .col-lg-4 {
    width: calc(100% / 3 - 0.1px) !important;
  }
} */
