@media screen and (max-width: 1439px) and (min-width: 1200px) {
  /* Portfolio Page */
  #portfolio-container {
    max-width: calc(100% - 80px);
  }
  #portfolio-main-section {
    justify-content: center;
  }
  #portfolio-main-section .portfolio-grid {
    flex: 0 0 47%;
  }
}

@media screen and (max-width: 1320px) {
  #level-megamenu-container .megamenu-fixed-wrapper {
    padding: 30px 20px;
  }
  .close-button {
    padding-right: 0px;
  }
  .close-button img {
    width: 34px;
    height: 34px;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper
    .col-1
    .menu-item.contact-btn
    a {
    padding: 10px 17px 7px;
  }
  /* Portfolio single */
  #outdoor-gallery .gallery-grid {
    width: min(100%, calc(100% - 20px));
  }
  .gallery-grid .gallery-item:nth-child(1) {
    height: 300px;
  }
  .gallery-grid .gallery-item:nth-child(2) {
    height: 200px;
  }
  .gallery-grid .gallery-item:nth-child(3) {
    height: 200px;
  }
  .gallery-grid .gallery-item:nth-child(4) {
    height: 300px;
  }
  .gallery-grid .gallery-item:nth-child(5) {
    height: 300px;
  }
  .gallery-grid .gallery-item:nth-child(6) {
    height: 200px;
  }
}

@media screen and (min-width: 1200px) {
  .page-id-20 .highlight_heading span.highlight-text {
    position: relative;
    top: 7px;
  }
  .page-id-24 .highlight_heading span.highlight-text {
    position: relative;
    top: 5px;
  }
  .page-id-22 .highlight_heading span.highlight-text {
    position: relative;
    top: 3px;
  }
}

@media screen and (max-width: 1199px) {
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper
    .col-1
    .menu-item
    a,
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper
    .col-2
    #menu-mega-menu-portfolio
    .menu-item-has-children
    > a {
    font-size: 16px;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper
    .col-2
    #menu-mega-menu-portfolio
    .menu-item-has-children
    .sub-menu
    a {
    font-size: 15px;
    line-height: 23px;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper
    .col-1
    .menu-item-home
    a
    img {
    width: 90px;
    height: 90px;
  }
  #menu-mega-menu-portfolio {
    gap: 30px;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper
    .col-1 {
    padding-right: 25px;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper
    .col-2 {
    padding-left: 25px;
  }
  /* Common Styles */
  .highlight_heading span.highlight-text {
    font-size: 56px;
    line-height: inherit;
  }
  /* Home Page */
  .portfolio-thumb {
    height: 280px;
  }
  .home-testimonial .home-testimonial-para p::before,
  .home-testimonial .home-testimonial-para p::after {
    scale: 0.5;
  }
  .home-testimonial .home-testimonial-para p::before {
    top: -26px;
    left: -28px;
  }
  .home-testimonial .home-testimonial-para p::after {
    bottom: -37px;
    right: -14px;
  }
  .home-testimonial .home-testimonial-para p {
    max-width: 770px;
  }
  .highlight_heading.footer_cta span {
    font-size: 34px;
    line-height: 42px;
  }
  /* Services Page */
  .heading_spacer span {
    font-family: var(--adobe-font);
    font-size: inherit;
    line-height: inherit;
    color: #25617b;
  }
  .number_text span.process-num {
    font-size: inherit;
    line-height: inherit;
  }
  /* About Page */
  .para_spacing p:not(:last-child) {
    margin-bottom: 17px;
  }
  /* Blog Page */
  #blog-container .blog-image-wrapper {
    flex: 0 0 33%;
    width: 297px;
    height: 200px;
  }
  #blog-container .blog-desciption {
    margin: 40px 0;
  }
  #blog-container .blog-flex-wrapper:not(:last-child) {
    margin-bottom: 30px;
    padding-bottom: 30px;
  }
  #blog-container .load-more-btn-post {
    margin-top: 40px;
  }
  .blog-flex-wrapper .blog-heading h4 {
    font-size: 26px;
    line-height: 36px;
  }
  .blog-flex-wrapper .blog-paragraph p {
    font-size: 18px;
    line-height: 28px;
  }
  /* Testimonial Page */
  #testimonial-wrapper .testimonial-list-container p {
    font-size: 18px;
    line-height: 28px;
  }
  /* Portfolio Page */
  #portfolio-container {
    max-width: calc(100% - 80px);
  }
  #portfolio-container .portfolio-desciption {
    margin: 40px auto;
  }
  #portfolio-main-section {
    justify-content: center;
    gap: 40px 20px;
  }
  #portfolio-main-section .portfolio-grid {
    flex: 0 0 47%;
  }
}

@media screen and (max-width: 1024px) {
  /* Portfolio Page */
  #portfolio-container {
    max-width: calc(100% - 80px);
  }
  #portfolio-main-section {
    justify-content: center;
  }
  #portfolio-main-section .portfolio-grid {
    flex: 0 0 47%;
  }
  /* Portfolio Single */
  #outdoor-gallery .gallery-grid {
    column-gap: 10px;
  }
  .gallery-grid .gallery-item {
    margin: 0 0 0px 0;
  }
}

@media screen and (max-width: 991px) {
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .desktop-tablet-megamenu-wrapper {
    display: none;
  }
  #level-megamenu-container .megamenu-fixed-wrapper {
    height: 100dvh;
    background-position: 80%;
  }
  #level-megamenu-container .megamenu-fixed-wrapper .mobile-megamenu-wrapper {
    display: block;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .mobile-megamenu-wrapper
    #menu-mobile-menu
    > li.menu-item {
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #d9d9d9;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .mobile-megamenu-wrapper
    #menu-mobile-menu
    > li.menu-item
    > a {
    text-transform: uppercase;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .mobile-megamenu-wrapper
    li.menu-item-has-children
    .arrow-up {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    display: inline-block;
    background-image: url(https://thelevelfg.com/wp-content/uploads/2024/08/toggle-plus.svg);
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    top: 43%;
    right: 0;
    transform: translate(0%, -50%);
    z-index: 99;
  }
  #level-megamenu-container
    .megamenu-fixed-wrapper
    .mobile-megamenu-wrapper
    li.menu-item-has-children
    .arrow-down.arrow-up {
    content: "";
    position: absolute;
    width: 18px;
    height: 18px;
    display: inline-block;
    background-image: url(https://thelevelfg.com/wp-content/uploads/2024/08/toggle-minus-1.svg);
    background-repeat: no-repeat;
    background-position: right;
    background-size: contain;
    top: 43%;
    right: 0;
    transform: translate(0%, -50%);
    z-index: 99;
  }
  .mobile-megamenu-wrapper .menu-item-has-children > a,
  .mobile-megamenu-wrapper
    .menu-item-has-children
    .sub-menu
    > .menu-item-has-children
    > a {
    position: relative;
    width: 100%;
    display: inline-block;
    text-transform: uppercase;
  }
  .mobile-megamenu-wrapper .menu-item-has-children > a + .sub-menu,
  .mobile-megamenu-wrapper
    .menu-item-has-children
    .sub-menu
    > .menu-item-has-children
    > a
    + .sub-menu {
    display: none;
  }
  .mobile-megamenu-wrapper .menu-item-has-children > a + .sub-menu {
    padding: 12px !important;
  }
  .mobile-megamenu-wrapper
    .menu-item-has-children
    > a
    + .sub-menu
    > .menu-item-has-children:not(:last-child) {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #d9d9d9;
  }
  .mobile-megamenu-wrapper ul.kerl_social_icons_ul {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 40px;
  }
  /* Portfolio page */
  #portfolio-main-section .portfolio-grid .portfolio-thumb {
    width: 100%;
    height: 350px;
  }
}

@media screen and (max-width: 767px) {
  /* Common Styles */
  .highlight_heading span.highlight-text {
    font-size: 50px;
    line-height: inherit;
    position: relative;
    top: 4px;
  }
  .page-id-12 .highlight_heading span.highlight-text,
  .page-id-1462 .highlight_heading span.highlight-text,
  .page-id-22 .highlight_heading span.highlight-text {
    position: relative;
    top: 1px;
  }
  /* Home page */
  .home-testimonial .home-testimonial-para p::before,
  .home-testimonial .home-testimonial-para p::after {
    scale: 1;
  }
  .home-testimonial .home-testimonial-para p::before {
    top: -50px;
    left: -20px;
    background: url(/wp-content/uploads/2025/10/2.svg) no-repeat;
    width: 54px;
    height: 40px;
  }
  .home-testimonial .home-testimonial-para p::after {
    bottom: -54px;
    right: -24px;
    background: url(/wp-content/uploads/2025/10/3.svg) no-repeat;
    width: 54px;
    height: 40px;
  }
  .home-testimonial .home-testimonial-para p {
    max-width: 100%;
  }
  .highlight_heading.footer_cta span {
    font-size: 24px;
    line-height: 31px;
  }
  /* Portfolio Page */
  #portfolio-main-section .portfolio-grid .portfolio-thumb {
    width: 100%;
    height: 325px;
  }
  #portfolio-main-section .portfolio-grid {
    flex: 0 0 48%;
  }
  /* Portfolio Single */
  .gallery-grid .gallery-item:nth-child(1) {
    height: 250px;
  }
  .gallery-grid .gallery-item:nth-child(2) {
    height: 150px;
  }
  .gallery-grid .gallery-item:nth-child(3) {
    height: 150px;
  }
  .gallery-grid .gallery-item:nth-child(4) {
    height: 250px;
  }
  .gallery-grid .gallery-item:nth-child(5) {
    height: 250px;
  }
  .gallery-grid .gallery-item:nth-child(6) {
    height: 150px;
  }
}

@media screen and (max-width: 570px) {
  .portfolio-grid .portfolio-item p.portfolio-location::after {
    width: 102px;
  }
  .portfolio-grid {
    gap: 50px;
  }
  .portfolio-grid .portfolio-item {
    flex: 0 0 100%;
  }
  .portfolio-grid .portfolio-item .portfolio-thumb {
    height: 217px;
  }
  .portfolio-grid .portfolio-item h3.portfolio-title {
    font-size: 18px;
    line-height: 34px;
  }
  .portfolio-grid .portfolio-item p.portfolio-location {
    font-size: 18px;
    line-height: 26px;
  }
  .portfolio-grid .portfolio-item p.portfolio-description {
    font-size: 16px;
    line-height: 24px;
    margin: 15px auto 0px;
    height: 100px;
    -webkit-line-clamp: 4;
  }
  .portfolio-grid .portfolio-item a.portfolio-btn {
    font-size: 18px;
    line-height: 40px;
    text-decoration: underline 2.5px #c3b69b;
  }
  .blog-tab-selection ul.tabs-flex-wrapper {
    gap: 15px 0;
  }
  #blog-container .blog-image-wrapper {
    flex: 0 0 100%;
    height: 300px;
  }
  #blog-container .blog-detailed-wrapper {
    flex: 0 0 100%;
  }
  #blog-container .blog-flex-wrapper {
    gap: 25px;
  }
  .blog-flex-wrapper .blog-heading h4 {
    font-size: 22px;
    line-height: 34px;
  }
  .blog-flex-wrapper .blog-paragraph p {
    font-size: 16px;
    line-height: 24px;
  }
  #blog-container .load-more-btn-post a.load-more-post-btn {
    font-size: 18px;
    line-height: 30px;
  }
  #blog-container .blog-desciption h5 {
    font-size: 20px;
    line-height: 30px;
  }
  .blog-tab-selection ul.tabs-flex-wrapper li {
    font-size: 16px;
  }
  .blog-flex-wrapper .blog-redirection-button a {
    text-decoration: underline 2.5px #c3b69b;
  }
  /* Testimonial Page */
  #testimonial-wrapper .testimonial-list-container {
    padding: 20px 20px;
  }
  #testimonial-wrapper .testimonial-list-container p {
    font-size: 16px;
    line-height: 24px;
  }
  #testimonial-wrapper .testimonial-list-container h4 {
    font-size: 17px;
    line-height: 24px;
  }
  #testimonial-container .load-more-btn-wrapper {
    margin-top: 45px;
  }
  /* Portfolio Page */
  #portfolio-container {
    max-width: calc(100% - 40px);
  }
  #portfolio-main-section {
    gap: 35px;
  }
  #portfolio-main-section .portfolio-grid {
    flex: 0 0 100%;
  }
  .portfolio-tab-selection ul.tabs-flex-wrapper {
    gap: 15px 0;
  }
  #portfolio-container .load-more-btn-post a.load-more-post-btn {
    font-size: 18px;
    line-height: 30px;
  }
  .portfolio-tab-selection ul.tabs-flex-wrapper li {
    font-size: 16px;
  }
  #portfolio-container .portfolio-desciption h5 {
    font-size: 20px;
    line-height: 30px;
  }
  #portfolio-container .load-more-btn-post {
    margin-top: 45px;
  }
  /* Portfolio single */
  #outdoor-gallery .gallery-grid {
    column-count: 2;
  }
  .gallery-grid .gallery-item:nth-child(1) {
    height: 180px;
  }
  .gallery-grid .gallery-item:nth-child(2) {
    height: 130px;
  }
  .gallery-grid .gallery-item:nth-child(3) {
    height: 130px;
  }
  .gallery-grid .gallery-item:nth-child(4) {
    height: 130px;
  }
  .gallery-grid .gallery-item:nth-child(5) {
    height: 130px;
  }
  .gallery-grid .gallery-item:nth-child(6) {
    height: 180px;
  }
  .button-wrapper-portfolio {
    margin-top: 15px;
  }
}
