/* only small desktops */
@media (min-width: 992px) and (max-width: 1199px) {
  h2.timelin-title-hd,
  .services h2.section-title,
  .details h2.section-title {
    font-size: 90px;
  }

  #about p,
  #details p,
  #reg-hero p {
    font-size: 19px;
  }

  #hero-area .contents .head-title {
    font-size: 40px;
  }

  #hero-area .contents .btn {
    margin: 15px 0 0 0;
  }

  .services-item .services-content h3 a {
    font-size: 14px;
  }
  
  .profile-wrapper {
    margin-bottom: 2em;
  }

  .section-padding {
    padding: 1.6em 0;
  }

  #about.section-padding {
    padding-bottom: 7em;
  }

}

@media (max-width: 1199px) {
  h2.timelin-title-hd,
  .services h2.section-title,
  .details h2.section-title {
    font-size: 90px;
  }
  #portfolios .masonry-with-flex {
    display: flex;
    flex-wrap: wrap;
    flex-direction: unset;
    max-height: 9999px;
  }

  #portfolios .masonry-with-flex div:nth-child(4n + 1),
  #portfolios .masonry-with-flex div:nth-child(4n + 2),
  #portfolios .masonry-with-flex div:nth-child(4n + 3),
  #portfolios .masonry-with-flex div:nth-child(4n + 4) {
    height: 712px;
  }

  #portfolios .masonry-with-flex div {
    width: 400px;
  }

}

/* tablets */
@media (max-width: 991px) {
  .navbar-header {
    width: 100%;
  }
  .navbar-header a {
    padding-top: 0.5em;
  }
  .navbar-brand {
    position: absolute;
    padding: 0px 15px;
    top: 0;
  }
  .navbar-brand img {
    width: 75%;
  }
  #mobile-menu {
    display: none;
  }
  .slicknav_menu {
    display: block;
  }
  .slicknav_nav .active a {
    background: #e91e63;
    color: #fff;
  }
  .slicknav_nav a:hover,
  .slicknav_nav a:focus,
  .slicknav_nav .active {
    color: #243f21;
    outline: none;
    background: #f8f9fa;
  }

  .section-title {
    font-size: 30px;
    margin-bottom: 30px;
  }
  .services-item .services-content h3 a {
    font-size: 14px;
  }
  .services-item {
    margin-bottom: 20px;
  }

  .profile-wrapper {
    margin-bottom: 0em;
    margin-top: 14em;
    background-color: rgba(91, 121, 115, 27%);
  }

  #portfolios .masonry-with-flex div:nth-child(4n + 1),
  #portfolios .masonry-with-flex div:nth-child(4n + 2),
  #portfolios .masonry-with-flex div:nth-child(4n + 3),
  #portfolios .masonry-with-flex div:nth-child(4n + 4) {
    height: auto;
  }

  #portfolios .masonry-with-flex div {
    width: 294px;
  }

  .services {
    background-color: #2b6386;
  }

  #about .profile-wrapper {
    margin-top: 21em;
  }

  #about.section-padding {
    padding: 15em 0 3em 0;
  }

}

/* only small tablets */
@media (min-width: 768px) and (max-width: 991px) {
  .section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .services-item .services-content h3 a {
    font-size: 16px;
  }
  .services-item {
    margin-bottom: 20px;
  }
  .counter-section .counter p {
    font-size: 14px;
  }
}

/* mobile or only mobile */
@media (max-width: 767px) {
  h2.timelin-title-hd,
  .services h2.section-title,
  .details h2.section-title {
    font-size: 68px;
    margin-top: 1em;
  }
  .section-title {
    font-size: 22px;
    margin-bottom: 10px;
  }
  .section-sub {
    font-size: 16px;
  }
  .navbar-brand img {
    margin: 5px 0;
  }
  .hero-area-bg {
    margin-top: 3em;
  }
  #hero-area .contents {
    padding: 23em 0px 0px 0px;
  }
  #hero-area .contents .head-title {
    font-size: 22px;
  }
  #hero-area .contents h5 {
    font-size: 32px;
  }
  #hero-area .contents p {
    font-size: 20px;
  }
  #hero-area .contents .btn {
    margin-bottom: 1em;
  }
  .services-item {
    margin-bottom: 20px;
  }
  #portfolios .masonry-with-flex div {
    width: 100%;
  }
  .timeline li .content-text {
    height: auto;
    border-right: 1px solid #666666;
  }
  .timeline li .line-title {
    line-height: 19px;
  }
  #reception.details {
    margin-top: 4em;
  }
  ul.main {
    display: none;
  }
  ul.mobile {
    display: block;
  }
  ul.mobile div:nth-child(2) {
    display: block;
    height: 155px;
    border-bottom: 1px solid #666666;
  }
  .profile-wrapper {
    margin-bottom: 0em;
    margin-top: 5em;
  }
  .section-padding {
    padding: 25px 0;
  }
  .services.section-padding {
    padding-bottom: 1em;
  }
  .services .container {
    margin: 0em auto;
  }
  #services .col-sm-12 {
    padding: 0;
  }
  .contact-form-area {
    padding: 40px 0px;
  }
  #about .profile-wrapper, 
  #reception .profile-wrapper {
    margin-top: 2em;
    margin-left: 0em;
  }
  #reception .services-item img {
    max-width: 100%;
  }
  #registry.house h2 {
    margin-top: 0;
    font-size: 56px;
  }
  .footer-right-area {
    margin-top: 20px;
  }
}