/**
Theme Name:     McraeTheme
Theme URI:      https://mcraeconstructions.com.au
Author:         ChaoAn <hybridneurons@gmail.com>
Author URI:     https://www.hybridneurons.site/
license:        GPL-3.0-or-later
license URI:    https://www.gnu.org/licenses/gpl-3.0-standalone.html
Description:    McRae construction website theme
Text Domain:    McRae Construction
Version:        0.0.1
*/

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  background-color:white;
  color: #404040;
  font-family: 'Montserrat', sans-serif;;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
}

.body-container {
  flex: 1;
  overflow-x: hidden;
  padding-right: calc(var(--bs-gutter-x)* .5);
  padding-left: calc(var(--bs-gutter-x)* .5);
  margin-right: auto;
  margin-left: auto;
}

@media only screen and (min-width: 1399px) {
  .body-container {
    max-width: 1320px;
  }
}

@media only screen and (max-width: 1398px) and (min-width: 1199px) {
  .body-container {
    max-width: 1145px;
  }
}

@media only screen and (max-width: 1198px) and (min-width: 992px) {
  .body-container {
    max-width: 965px;
  }
}

@media only screen and (max-width: 991px) {
  .body-container {
    --bs-gutter-x: 1.5rem;
    --bs-gutter-y: 0;
    width: 100%;
    padding-right: calc(var(--bs-gutter-x)* .5);
    padding-left: calc(var(--bs-gutter-x)* .5);
    margin-right: auto;
    margin-left: auto;
    overflow-x: hidden;
  }
}

.page-row {
  margin-top: 60px;
  margin-bottom: 100px;
}

.card {
  border: none;
  border-radius: .25rem;
}

a, p, h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

a:hover {
  border-bottom: none;
  text-decoration: none;
}

.fa, 
.fab, 
.fad, 
.fal, 
.far, 
.fas
{
  margin-right: 5px;
}


/* --------------- Navigation bar and menu ----------------- */
.navbar {
  background-color: transparent;
  width: 100%;
  border-bottom: white solid 1px;
  color: white;
  transition-duration: 0.6s;
  -webkit-transition-duration: 0.6s;
}

.logofont {
  color: white;
  font-weight: bold;
  font-size: 2vw;
}

.logofont:hover {
  color: #F15A29;
}

.navlogo a img {
  width: 100%;
  height: auto;
}

.navbar-toggler {
  border: none;
}

.burgericon {
  color: #F15A29;
  font-size: 30px;
}

.navbar-toggler:hover,
.navbar-toggler:focus,
.navbar-toggler:active {
  box-shadow: none;
}

.navbar-collapse {
  justify-content: center;
}

.navigation {
  list-style-type: none;
  list-style: none;
  background: transparent;
  margin-top: 0px;
  margin-bottom: 0px;
  padding: 0;
}

.navigation .menu-item.current_page_item {
  display: initial !important;
}

.navigation .page_item {
  display: none;
}

.navigation li {
  display: block;
  margin-left: clamp(1rem, 1.5vw, 100vh);
  margin-right: clamp(1rem, 1.5vw, 100vh);
  margin-bottom: 3vh;
  margin-top: 3vh;
}

.navigation li a {
  color: white;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.navigation li:hover,
.navigation li a:hover,
.navigation li[class*="current-menu-"] > a,
.navigation .current-menu-item,
.navigation .current_page_item {
  color:#F15A29;
  text-decoration: none;
  font-weight: bold;
}

.navmenu-phone-email {
  display: inline;
  margin-right: 4vw;
}

.mainmenu-phone {
  font-size: 2.5vw;
  color: #F15A29;
  padding-bottom: 0;
  margin-bottom: 0;
}

.mainmenu-email {
  font-size: 1vw;
  margin-bottom: 0;
}

@media only screen and (min-width: 1530px) {
  .navigation li:hover > ul {
    display: block !important;
  }
}

/* for desktop */
@media only screen and (min-width: 992px) {
  .navbar {
    height: 16vh;
  }

  .navlogo {
    width: clamp(10rem, 15vw, 100vh);
    margin-left: 4vw;
  }

  .navigation li {
    display: inline-block;
  }

  .navigation li a {
    font-size: clamp(.7rem, .8vw, 100vh);
  }
}

/* for mobile */
@media only screen and (max-width: 991px) {
  .burger-collapse.colorchanged {
    background-color:#032838 !important;
    border: none;
  }

  .navlogo {
    width: clamp(10rem, 25vw, 100vh);
    margin-left: 4vw;
    margin-top: 30px;
    margin-bottom: 30px;
  }

  .navbar-toggler {
    margin-top: 30px;
    margin-bottom: 30px;
    margin-right: 4vw;
  }

  .navbar span.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 32 32' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(241, 90, 41, 1)' stroke-width='3' stroke-linecap='round' stroke-miterlimit='10' d='M4 8h24M4 16h24M4 24h24'/%3E%3C/svg%3E");
  }

  .navmenu-phone-email {
    display: none;
  }

  .navigation {
    text-align: center;
  }
}

/* --------------- navbar on scroll ----------------- */
.navbar.scrolled {
  background-color: #032838 !important;
  border-bottom: none;
  box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.4);
  transition-duration: 0.6s;
  -webkit-transition-duration: 0.6s;
}

.navlogo.scrolled {
  width: 10vw;
}

.mainmenu-phone.scrolled {
  font-size: 1.6vw;
}

.mainmenu-email.scrolled {
  font-size: .9vw;
}

/* for desktop */
@media only screen and (min-width: 992px) {
  .navbar.scrolled {
    height: 12vh;
  }

  .navlogo.scrolled {
    width: clamp(8rem, 10vw, 100vh);
  }
}

/* for mobile */
@media only screen and (max-width: 991px) {
  .navlogo.scrolled {
    width: clamp(10rem, 25vw, 100vh);
    margin-top: 30px;
    margin-bottom: 30px;
  }
}

/* --------------- footer navigation ----------------- */
footer ul {
  padding: 0;
  margin: 0;
}

.firstfooter {
  height: auto;
  background-color: #1C4697;
}

@media only screen and (min-width: 576px) {
  .firstfooter .container,
  .secondfooter .container {
    width: 780px;
  }
}

.secondfooter {
  padding-top: 20px;
  padding-bottom: 20px;
  background-color: #032838;
}

.footcontsec div {
  display: block;
}

.footcontsec div ul{
  display: flex;
  justify-content: space-between;
}

.footfirstnav {
  list-style-type: none;
  list-style: none;
  background: transparent;
  padding: 0;
  margin-bottom: 45px;
}

.footfirstnav .menu-item.current_page_item {
  display: initial !important;
}

.footfirstnav .page_item {
  display: none;
}

.footfirstnav li {
  font-size: 13px;
  text-align: center;
  margin-top: 0;
  padding-top: 0;
}

.footfirstnav li a {
  color: white;
  text-decoration: none;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.footfirstnav li:hover,
.footfirstnav li a:hover,
.footfirstnav li[class*="current-menu-"] > a,
.current-menu-item,
.current_page_item {
  color: #F15A29;
  text-decoration: none;
}

/* for mobile */
@media only screen and (max-width: 576px) {
  .footcontsec div ul{
    display: block;
    margin-top: 15px;
    text-align: center;
  }

  .footfirstnav li {
    margin-top: 15px;
    margin-bottom: 15px;
  }
}

.footertext p {
  display: inline-flex;
}

.footer-phone {
  font-size: 25px;
  color: white;
}

.footer-email {
  color: white;
  margin-left: 100px;
  word-wrap: break-word;
}

@media only screen and (max-width: 254px) {
  .ftnavlogo {
    width: 10rem !important;
  }
}

/* for tablet */
@media only screen and (max-width: 768px) {
  .footertext p {
    display: block;
  }

  .footer-email {
    margin-left: 0;
  }
}

.first-footer-text,
.second-footer-text {
  color: white;
  font-size: 20px;
  font-weight: bold;
  margin-top: 20px;
}

.ftnavlogo {
  width: clamp(15rem, 15vw, 100vh);
  margin-top: 10px;
}

.ftnavlogo a img {
  width: 100%;
  height: auto;
}

.ftlogofont {
  color: white;
  font-size: 24px;
  font-weight: 600;
}

.ftlogofont:hover {
  color: #F15A29;
}

/* --------------- Social Menu ----------------- */
.socialfooter {
  padding-top: 15px;
  padding-bottom: 10px;
  background-color: #D9D9D9;
}

.socialmenu {
  display: flex;
  justify-content: center;
  text-align: center;
  list-style-type: none;
  list-style: none;
  background: transparent;
  padding: 0%;
}

.socialmenu li {
  margin-left: 20px;
  margin-right: 20px;
}

.socialmenu li a {
  color: #032838;
  font-size: clamp( 2rem, 2vw, 100vh);
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.socialmenu li a:hover {
  color: #F15A29;
}

/* --------------- Header Slider ----------------- */

  /* for mobile */
  .header {
    width: 100%;
  }
  .headerslider {
    display: block;
    position: relative;
    width: 100%;
  }

  .toggleheader,
  .featured-image {
    position: relative;
  }

  .header-overlay {
    background-color: black;
    opacity: 40%;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
  }

  .headerslitem,
  .featured-image-item {
    position: relative;
    overflow: hidden;
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }

  .headerslitem img,
  .featured-image-item img {
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
  }

  .headprev-icon,
  .headnext-icon {
    font-size: 25px;
    z-index: 2;
  }

  .headerslinner {
    text-align: center;
    overflow-x: hidden;
  }

  .header-text-wrapper {
    color: white;
    display: block;
    text-align: center;
    position: absolute;
    bottom: -10px;
    left: 0;
    right: 0;
    z-index: 3;
  }

  .header-toptext {
    margin-bottom: 0;
  }

  .header-text {
    font-weight: 100;
    text-align: center;
  }

  .header-text-wrapper p {
    padding-bottom: 0;
  }

  .enquire-btn {
    display: block;
    width: 200px;
    color: white;
    font-size: 15px;
    text-decoration: none;
    border: white solid 1px;
    border-radius: 5px;
    margin-left: auto;
    margin-right: auto;
    padding: 14px 5px 0 5px;
  }

  .enquire-btn:hover {
    color:#F15A29;
    border: #F15A29 solid 1px;
  }

  .featured-image-item img
  {
    background-image: url('/images/Hero-1920x983px-sample.jpg'); /* background image should be on top to be defined by the background size */
  }

  /* desktop */
  @media only screen and (min-width: 990px) {
    .headerslider {
      display: block;
    }

    .headerslitem,
    .featured-image-item {
      width: 100vw;
      height: 100vh;
    }

    .header-text {
      font-size: clamp( 4rem, 5vw, 100vh);
    }

    .header-toptext {
      margin-bottom: -12px;
    }
  }

  @media only screen and (min-width: 1024px) {
    .headerslitem img,
    .featured-image-item img {
      width: 100% !important;
      height: 100%;
    }
  }

  /* ipad pro */
  @media only screen and (max-width: 1024px) and (min-width: 990px) {
    .headerslitem,
    .featured-image-item {
      height: 783px;
    }

    .headerslitem img,
    .featured-image-item img {
      width: 130vw !important;
      height: 100%;
    }
  }

  /* for tablet */
  @media only screen and (max-width: 989px) and (min-width: 430px) {
    .headerslitem,
    .featured-image-item {
      height: 650px;
    }

    .header-text {
      font-size: clamp( 2.5rem, 4vw, 100vh);
    }
  }

  @media only screen and (max-width: 429px) {
    .headerslitem,
    .featured-image-item {
      height: 550px;
    }

    .header-text {
      font-size: clamp( 1.8rem, 3vw, 100vh);
    }
  }

  @media only screen and (max-width: 991px) {
    .header-text-wrapper {
      bottom: 50px;
    }

    .headerslitem img,
    .featured-image-item img {
      width: 180vw !important;
      height: 100%;
      position: relative;
      right: 185px;
    }
  }

/* --------------- Home Copy ----------------- */
  .home-copy {
    background: linear-gradient(100deg, #032838 47%, #D9D9D9 46%);
  }

  .home-copy .row {
    margin-top: 60px;
    margin-bottom: 50px;
  }

  .hometitle-col {
    display: grid;
    align-self: center;
  }

  .hometitle {
    font-size: clamp( 2rem, 2.5vw, 100vh);
    text-align: center;
    color: #F15A29;
    width: 85%;
  }

  .homecopy-col p,
  .aboutcontent-col p {
    font-size: clamp( 1rem, 1.2vw, 100vh) !important;
    color: #032838;
  }

  @media only screen and (max-width: 785px) {
    .col {
      flex: none;
    }

    .home-copy {
      background: none;
    }

    .hometitle {
      width: 100% !important;
    }

    .homecopy-col p {
      text-align: center;
    }
  }

/* --------------- Scroll Button ----------------- */
  .scrollbtn {
    display: inline-flex;
    position: relative;
    width: 40px !important;
    text-decoration: none;
    margin-top: 100px;
  }

  .scrollanimate {
    position: absolute;
    right: 0;
    left: 0;
    margin-left: auto;
    margin-right: auto;
    font-size: 2.7rem;
    color: white;
    animation: MoveUpDown 1.5s linear infinite;
  }
  
  @keyframes MoveUpDown {
    0%, 100% {
      bottom: 0;
    }
    50% {
      bottom: 20px;
    }
  }

  @media only screen and (max-width: 991px) {
    .scrollbtn {
      display: none !important;
    }
  }

/* --------------- Recent Slider ----------------- */
.fadein1,
.fadein2,
.fadein3 {
  opacity: 0;
  filter: alpha(opacity=0);
}

.recslinner, 
.testiinner {
  margin-bottom: 80px;
}

.recuptitle, 
.testititle {
  color:#F15A29;
  font-size:  clamp( 1.8rem, 2.5vw, 100vh);
  font-weight: 300;
  margin-top: 60px;
  margin-bottom: 40px;
}

.reccatname {
  color: #032838;
  font-weight: 300;
}

.homerecentslider {
  text-align: center;
  scale: .95;
}

.recslitem div,
.smrecslitem div
{
  display: inline-block;
  vertical-align: top;
}

.recslitem img,
.smrecslitem img
{
  width: 100%;
  height: 100%;
  border-radius: .15rem;
}

/* for mobile */
.recthumbcard.card {
  width: 299px;
  height: 357px;
  margin-left: 5px;
  margin-right: 5px;
}

/* for desktop */
@media only screen and (min-width: 1399px) {
  .recthumbcard.card {
    width: 419px;
    height: 500px;
  }
}

@media only screen and (min-width: 990px) {
  .reccatname {
    margin-left: 5px;
  }

  .recent-arrow-wrapper button{
    margin-right: 14px;
  }
}

@media only screen and (min-width: 960px) {
  .recthumbcard.card:hover {
    margin-top: 0;
  }
}

@media only screen and (max-width: 1398px) and (min-width: 1199px) {
  .recthumbcard.card {
    width: 359px;
    height: 428px;
  }
}

.recslupcont
{
  padding-top: 20px;
}

.reccountcontrol {
  position: relative;
  margin-bottom: 20px;
}

.recprev-icon, 
.recnext-icon,
.testiprev-icon,
.testinext-icon {
  width: 0;
  font-size: 2rem;
}

.recprev-icon {
  left: auto;
  right: 35px;
}

.recslide-icon,
.tetislide-icon {
  color:#032838;
  opacity: 10;
}

.viewallprojectscont {
  text-align: center;
}

.viewallprojects {
  color: #F15A29;
  text-decoration: none;
}

.viewallprojects:hover {
  color: #032838;
}

.mobilerecentslider,
.mobiletestimonial {
  text-align: center;
  margin-top: 25px;
  margin-bottom: 40px;
}

.homerecentslider {
  display: none;
}

/* for desktop */
@media only screen and (min-width: 960px) {
  .homerecentslider {
    display: block;
    margin-top: 15px;
  }
  
  .mobilerecentslider {
    display: none !important;
  }
}

/* for mobile */
@media only screen and (max-width: 959px) {
  .recuptitle,
  .reccatname,
  .testititle {
    text-align: center;
  }

  .reccountcontrol div {
    display: none;
  }

  .slider {
    display: grid;
    grid-auto-flow: column;
    /* grid-auto-columns: 22%; */
    gap: .5rem;
    overflow-x: auto;
    -ms-overflow-style: none;
    scrollbar-width: none;
    cursor: grab;
  }
  
  .slider::-webkit-scrollbar {
    display: none;
  }
  
  .slidecontainer {
    width: 299px;
    height: 400px;
  }
  
  .slidecontainer .mobilerecentimg {
    width: 100%;
    height: 100%;
    inline-size: 100%;
    /* aspect-ratio: 4 / 3; */
    object-fit: cover;
    border-radius: .2rem;
  }
}

/* --------------- Testimonials ----------------- */
.testicarousel {
  text-align: center;
  margin-bottom: 100px;
}

.testithumbcard {
  display: inline-flex !important;
  background-color: #f1f1f1;
}

/* for mobile */
.testithumbcard.card {
  margin-left: 20px;
  margin-right: 20px;
}

/* for desktop */
@media only screen and (min-width: 960px) {
  .testithumbcard.card {
    width: 45%;
    height: 50vh;
  }
}

.testicardbody {
  display: grid;
}

.testicardbody p {
  color: #032838;
  font-size: clamp( .8rem, .8vw, 100vh);
  margin-bottom: 0;
}

.testiquote {
  width: clamp( 1.5rem, 2vw, 100vh);
  color: #F15A29;
  margin-bottom: 20px;
}

.testiname {
  font-weight: bold;
  align-self: flex-end;
  margin-top: 20px;
}

.hometestimonials {
  display: none;
}

/* for desktop */
@media only screen and (min-width: 960px) {
  .hometestimonials {
    display: inline-flex;
  }
  
  .mobiletestimonial {
    display: none !important;
  }
}

/* --------------- About / Services Page ----------------- */
/* .page-content {
  margin-bottom: 100px;
} */

.about-copy {
  background: linear-gradient(100deg, #F15A29 47%, #D9D9D9 46%);
}

.about-copy .row {
  margin-top: 60px;
  margin-bottom: 50px;
}

.aboutcontent-col h2 {
  font-size: clamp( 2rem, 2vw, 100vh);
  text-align: center;
  color: #032838;
  margin-right: 50px;
}

.aboutus-bullets {
  display: flex;
  flex-wrap: wrap;
  margin-top: 40px;
  margin-bottom: 20px;
}

.aboutus-post {
  width: 33%;
}

.aboutus-card {
  background: transparent;
  margin-inline: 20px;
  margin-bottom: 20px;
}

.aboutus-post-content-top,
.aboutus-post-content-bottom {
  position: relative;
}

.aboutus-post-content-top h3,
.aboutus-post-content-bottom h3 {
  font-size: 1.5rem;
  font-weight: 300;
  color: #F15A29;
}

.aboutus-post-content-top p,
.aboutus-post-content-bottom p {
  color: #032838;
}

.aboutus-post-content-top span,
.aboutus-post-content-bottom span{
  position: absolute;
  background-color: #D9D9D9;
  border-radius: 100%;
  width: 40px;
  height: 40px;
  left: 0;
  z-index: -1;
}

.aboutus-post-content-top span {
  top: 9px;
}

.aboutus-post-content-bottom span {
  top: 20px;
}

.ourteam-content  {
  align-self: center;
}

.ourteam-content h3 {
  color: white;
  text-align: center;
  font-size: clamp( 2rem, 2vw, 100vh);
  font-weight: 300;
}

.ourteam-content p {
  color: white;
  font-size: clamp(1rem, 1.2vw, 100vh);
  text-align: center;
}

.aboutus-bottom-copy {
  text-align: center;
  margin-top: 60px;
}

.aboutus-bottom-copy h2 {
  font-size: clamp( 2rem, 2vw, 100vh);
  font-weight: 300;
  color:#032838;
}

.about-bottom-content h3 {
  font-size: clamp( 1rem, 1.5vw, 100vh);
  font-weight: 300;
  color: #F15A29;
}

.aboutus-post-bottom {
  width: 25%;
}

/* for desktop */
@media only screen and (min-width: 865px) {
  .our-team {
    background: #032838;
  }
  
  .ourteam-post {
    display: flex;
  }

  .ourteam-img-wrapper img {
    width: 450px;
    max-height: 450px;
  }

  .ourteam-content  {
    margin: 50px;

  }

  .aboutcontent-col {
    column-count: 2;
  }
}

/* for mobile */
@media only screen and (max-width: 864px) {
  .col {
    flex: none;
  }

  .about-copy {
    background: none;
  }

  .aboutcontent-col h2 {
    width: 100% !important;
    font-weight: 300;
    color: #F15A29;
  }

  .aboutcontent-col p {
    text-align: center;
  }

  .ourteam-content {
    background-color: #032838;
    padding: 10px;
  }

  .ourteam-img-wrapper img {
    width: 100%;
  }

  .aboutus-post,
  .aboutus-post-bottom {
    width: 50%;
  }
}

@media only screen and (max-width: 864px) {
  .aboutus-post,
  .aboutus-post-bottom {
    width: 100%;
  }

  .aboutus-card {
    margin-bottom: 0;
  }
}

/* --------------- Services ----------------- */
.page-content h3 {
  font-size: clamp( 1.3rem, 1.8vw, 100vh);
  font-weight: 300;
  text-align: center;
  color: #032838;
  margin-bottom: 90px;
}

.services-content {
  margin: 0;
}

.services-img-wrapper {
  min-width: 50%;
  justify-content: center;
  overflow: hidden;
}

.services-img-wrapper img {
  width: 100% !important;
}

.services-card h2,
.services-body h2,
.faq-page h2 {
  font-size: clamp( 1.5rem, 2.5vw, 100vh);
  font-weight: 300;
  color:#F15A29;
}

/* for desktop */
@media only screen and (min-width: 894px) {
  .services-content:nth-child(odd) .post-card  { 
    display: flex;
    flex-direction: row;
    text-align: left;
  }
  
  .services-content:nth-child(even) .post-card  { 
    display: flex;
    flex-direction: row-reverse;
    text-align: right;
  }

  .services-body {
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .services-body h2,
  .services-body p {
    padding-left: 30px;
    padding-right: 30px;
  }
}

/* for mobile */
@media only screen and (max-width: 893px) {
  .services-body {
    text-align: center;
    background-color: #f3f3f3;
    margin-bottom: 15px;
  }
}


/* --------------- Gallery ----------------- */
.gallery-col a {
  width: calc(100% / 3);
  float: left;
  position: relative;
  padding-bottom: calc(100% / 3);
}

.gallery-image {
  width: calc(100% - 16px);
  height: calc(100% - 16px);
  margin: 5px;
  position: absolute;
}

.galleryname-col div {
  margin-bottom: 20px;
}

.galleryname-col a {
  color: #032838;
  text-decoration: none;
}

.galleryname-col a:hover,
.galleryname-col a:active {
  color: #F15A29;
}

.gallery-title {
  display: grid;
  justify-content: end;
  margin-right: 10px;
  margin-bottom: 20px;
}

.modal {
  --bs-modal-width: 700px;
}

.modal-image {
  width: 100%;
}

/* for mobile */
@media only screen and (max-width: 959px) {
  .gallery-title {
    justify-content: center;
  }

  .gallery-col {
    width: 100% !important;
    margin-top: 30px;
  }

  .galleryname-col {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    margin-top: 0;
  }

  .galleryname-col h5 {
    font-size: 1rem;
    margin-left: 10px;
    margin-right: 10px;
    margin-bottom: 0;
  }
}

/* ------------------ FAQ -------------------- */
.faq-col {
  position: relative;
}

.faq-page {
  margin-bottom: 0 !important;
}

.faq-page h3  {
  text-align: initial;
  margin-top: 0;
  margin-bottom: 20px;
}

.faq-page p {
  margin-bottom: 70px;
}

/* for desktop */
@media only screen and (min-width: 820px) {
  .faq-page {
    width: 73%;
    float: right;
  }

  .faq-page img {
    position: absolute;
    width: clamp(6rem, 6vw, 100vh);
    left: 70px;
    margin-top: 90px;
  }
}

/* for mobile */
@media only screen and (max-width: 821px) {
  .faq-page figure {
    display: grid;
    justify-content: center;
  }

  .faq-page img {
    width: 100px;
    margin-top: 20px;
    margin-bottom: 20px;
  }

  .faq-page h2,
  .faq-page h3,
  .faq-page p {
    text-align: center !important;
  }

  .faq-page h2 {
    font-size: 2.5rem
  }
}

/* --------------- Contact Us ----------------- */
.contactform-container {
  background-color: #032838;
  display: flex;
  justify-content: center;
}

.form-field {
  color: white;
  background-color: transparent;
  border-top: none;
  border-left: none;
  border-right: none;
  border-bottom: white solid 1px; 
  border-radius: 0;
  line-height: 2;
}

.form-field::placeholder  {
  color:#D9D9D9;
}

.form-message {
  color: #032838;
  margin-top: 50px;
}

.form-message:active,
.form-message:focus,
.form-message:focus:active {
  box-shadow: none;
  border: #F15A29 solid 1px;
}

.form-field:active,
.form-field:focus,
.form-field:focus:active {
  color: white;
  background-color: transparent !important;
  box-shadow: none;
  border-bottom: #F15A29 solid 1px;
}

.submit-btn,
.submit-btn:hover,
.submit-btn:focus,
.submit-btn:active,
.submit-btn:visited {
  color: white !important;
  background-color: #F15A29 !important;
  border: none;
  box-shadow: none;
  width: 150px;
  margin-top: 20px;
}

.wpcf7 form.invalid 
.wpcf7-response-output, 
.wpcf7 form.unaccepted 
.wpcf7-response-output, 
.wpcf7 form.payment-required 
.wpcf7-response-output {
  color: #F15A29;
  border: none;
  padding: 0;
  margin-left: 0;
}

.wpcf7-not-valid-tip {
  color: #F15A29;
  font-size: .7em;
  font-weight: normal;
  display: block;
  margin-top: 5px;
}

/* --------------- Instagram ----------------- */
.ig-wrapper {
  background-color: #D9D9D9;
  overflow-x: hidden;
  padding-top: 20px;
  padding-bottom: 20px;
  margin-top: 85px;
}

/* for mobile */
@media only screen and (max-width: 959px) {
  .ig-wrapper {
    margin-top: 50px;
  }
}

/* --------------- 404 ----------------- */
.notfoundbackground {
  background-color: #032838;
}

.notfoundcard {
  margin-top: 200px;
  margin-bottom: 50px;
  background: transparent;
}

.notfoundcard h3 {
  color: white;
  font-size: 3rem;
  text-align: center;
}

.notfoundcard P {
  color: white;
  font-size: 1.5rem;
  text-align: center;
}

/* --------------- number pagination ----------------- */
.numberprevnext {
  text-align: center;
  margin-top: 20px;
  margin-bottom: 20px;
}

.numberprevnext div {
  display: inline-block;
  vertical-align: baseline;
  margin-bottom: 10px;
}

.firstprevpage p,
.firstprevpage a,
.nextlastpage p,
.nextlastpage a,
.nav-links .page-numbers {
  display: inline-block;
  font-size: 14px;
  border: 1px solid #e0e0e0;
  border-radius: .25rem;
  padding: 5px 15px 5px 15px;
  text-align: center;
  text-decoration: none;
}

.nav-links .page-numbers {
  color: #a0a0a0;
  margin-left: 2px;
  margin-right: 2px;

  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.nav-links .page-numbers:hover,
.nav-links .page-numbers:focus,
.nav-links .page-numbers:active {
  color:#F15A29;
  border: 1px solid #F15A29;
  padding: 6.5px 15px 6.5px 15px;
}

.nav-links .page-numbers.current {
  color: white;
  background-color: #F15A29;
  border: 1px solid #F15A29;
  padding: 6.5px 15px 6.5px 15px;
}

.prevnav:hover, .nextnav:hover,
.prevnav:focus, .nextnav:focus,
.prevnav:active, .nextnav:active,
.firstnav:hover, .lastnav:hover,
.firstnav:focus, .lastnav:focus,
.firstnav:active, .lastnav:active {
  color: #F15A29;
  border: 1px solid #F15A29;
  padding: 5px 18px 5px 18px;
}

.nextlastpage {
  margin-left: 2px;
}

.firstnav,
.lastnav,
.prevnav, 
.nextnav {
  color: #a0a0a0;
  -webkit-transition: all 0.3s ease-in-out;
  -moz-transition: all 0.3s ease-in-out;
  -ms-transition: all 0.3s ease-in-out;
  -o-transition: all 0.3s ease-in-out;
  transition: all 0.3s ease-in-out;
}

.prevnav, 
.nextnav {
  margin-right: 4px;
}

.idleprevnav {
  color: #e0e0e0;
  margin-right: 1px;
}

.idlenextnav,
.idlefirstnav {
  color: #e0e0e0;
  margin-right: 8px;
}

.firstprevpage,
.firstnav {
  margin-right: 1px;
}

.idlelastnav {
  color: #e0e0e0;
}
