/*
Theme Name: Solicitor Child Theme 
Theme URI: http://demo.imithemes.com/solicitor/
Description: Child theme for Solicitor WordPress Theme
Author: imithemes
Author URI: http://www.imithemes.com
Template: solicitor
Version: 1.0
*/
/* =Theme customization starts here
------------------------------------------------------- */

#undefined-sticky-wrapper {
	height: auto !important;
}

#proffilter .blog .sf-field-search label {
    width: 85%;
}

.owl-item {
  position: relative;
}

.sa_hover_container {
  display: block;
 /* width: 100%; */
  height: auto;
}

.community-overlay{
    position: absolute;
  bottom: 0;
  left: 100%;
  right: 0;
  background-color: black;
  overflow: hidden;
  width: 0;
  height: 100%;
  transition: .5s ease;
}

.sa_hover_container:hover .community-overlay {
    width: 96%;
    left: 8px;
    opacity: 0.7;
    bottom: 32px;
}

.community-text {
  color: white;
  font-size: 20px;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  white-space: nowrap; 
}

.footer-row3 p {
  color: #d6d6d6 !important;
  font-size: 12px !important;
}

.site-footer .footer_widget a, .site-footer a {
  color: #d6d6d6 !important;
}

.ah-banner-image {
  height: 400px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center center;
}


.social-icon-list {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  max-width: 196px;
}

.social-icons-title {
  font-size: 12px;
  text-transform: uppercase;
  padding-right: 4px;
}

.social-icon-item {
  padding: 0 4px;
}

.social-icon-item img {
  max-width: 30px;
}

.insights-template-default .the_content ul li {
  margin-bottom: 1em;
}

@media only screen and (max-width: 600px) {
  .ah-banner-image {
      height: 190px;
  }
}

@media only screen and (max-width: 375px) {
  .ah-banner-image {
      height: 95px;
  }
}

.topbar .search-form input {
  background: none;
  border: 0;
  color: #333;
  padding-left: 25px;
  margin-top: 0;
  height: 32px;
}

.grid {
  display: grid;
  grid-template-columns: 40% 1fr 1fr;
  grid-template-rows: 1fr 1fr 2fr;
  gap: 0px;
  height: 80vh;
}

.grid.grid-insights {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr;
}

.grid .grid-item {
  position: relative;
  padding: 20px;
}

.grid .grid-item .grid-item-image img,
.grid .grid-item .grid-item-overlay {
  display: block;
  object-fit: cover;
  width: 100%;
  height: 100%;
}

.grid .grid-item .grid-item-image {
  mix-blend-mode: luminosity;
  opacity: .2;
  height: 100%;
  width: 100%;
  transition: all .24s;
}

.grid .grid-item .grid-item-overlay {
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.grid .grid-item:first-child {
  width: 100%;
  height: 80vh;
  grid-row: span 3;
}

.grid .grid-item:nth-child(2),
.grid .grid-item:nth-child(3) {
  width: 100%;
  height: 40VH;
}

.grid .grid-item:nth-child(4) {
  width: 100%;
  height: 40VH;
  grid-column: 2 / span 2;
}

.grid .grid-item-content {
  color: #ffffff;
  position: absolute;
  left: 40px;
  bottom: 40px;
  padding-right: 5em;
}

.grid .grid-item-content h2 {
  color: #ffffff;
  font-size: 1.5em !important;
  font-weight: 100;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 3px;
}

.grid .grid-item-content h3 {
  color: #ffffff;
  font-size: 2em !important; 
  font-weight: 400;
  line-height: 1.1em;
  -webkit-box-orient: vertical;
  display: block;
  display: -webkit-box;
  overflow: hidden !important;
  text-overflow: ellipsis;
  -webkit-line-clamp: 4;
}

.grid .grid-item-content a {
  color: #ffffff;
  font-size: 1.2em;
  font-weight: 400;
  text-transform: uppercase;
}

.swiper-wrapper {
  margin-bottom: 22px;
}

.swiper-pagination-bullet-active {
  background: #333 !important;
}

.swiper-pagination-bullet {
  width: 12px;
  height: 12px;
}

.swiper-button-next, .swiper-button-prev {
  color: #333 !important;
  opacity: .5;
  transition: opacity .25s;
}

.swiper-button-next:hover, .swiper-button-prev:hover {
  color: #333 !important;
  opacity: 1;
}

@keyframes fade {
  0% { opacity: 0; }
  100% { opacity: 1; }
}

.swiper-gallery-tab {
  height: 0;
  display: none;
  opacity: 0;
}

.swiper-gallery-tab.active {
  height: auto;
  display: block;
  opacity: 1;
  animation: fade .5s linear backwards;
}


.grid-item a:hover .grid-item-content h3 {
  text-decoration: underline;
}

.grid-item a:hover .grid-item-image {
  opacity: .05;
} 

@media only screen and (max-width: 1000px) {
  .grid {
    display: grid;
    grid-template-columns: 40% 1fr;
    gap: 0px;
  }
  
  .grid .grid-item {
    position: relative;
    padding: 10px;
  }
  .grid .grid-item:nth-child(2),
  .grid .grid-item:nth-child(3) {
    width: 100%;
    height: 26VH;
    grid-column: auto;
  }
  .grid .grid-item:nth-child(3) {
    grid-column: 2;
  }
  .grid .grid-item:nth-child(4) {
    height: 28vh;
  }
  .grid .grid-item-content h3 {
    color: #ffffff;
    font-size: 1.4em !important;
    font-weight: 400;
    line-height: normal;
    -webkit-box-orient: vertical;
    display: block;
    display: -webkit-box;
    overflow: hidden !important;
    text-overflow: ellipsis;
    -webkit-line-clamp: 2;
  }
}

.grid-button-wrapper {
  width: 100%;
  padding: 20px;
  display: flex;
  justify-content: center;
  line-height: normal;
}

.grid-button-wrapper button {
  margin-left: 10px;
  margin-right: 10px;
  background-color: white;
  border: 2px solid rgb(73, 85, 144);
  color: rgb(73, 85, 144);
  transition: .25s all;
  padding: 6px 23px;
}

.grid-button-wrapper button.active,
.grid-button-wrapper button:hover,
.grid-button-wrapper button:active {
  background-color: rgb(73, 85, 144);
  color: white;
}

@media only screen and (max-width: 600px) {
  .grid {
    display: block;
  }
  .grid .grid-item {
    position: relative;
    padding: 5px;
  }
  .grid .grid-item-content h2 {
    font-size: .9em !important;
    line-height: normal !important;
  }
  .grid .grid-item-content h3 {
    font-size: 1.3em !important;
  }
  .grid .grid-item:first-child {
    height: 20VH;
  }
  .grid .grid-item:nth-child(2),
  .grid .grid-item:nth-child(3) {
    width: 100%;
    height: 20VH;
    grid-column: auto;
  }
  .grid .grid-item:nth-child(4) {
    height: 20vh;
  }
  .grid .grid-item-content {
    color: #ffffff;
    position: absolute;
    left: 2em;
    bottom: 10%;
    padding-right: 5em;
  }

  .page-header-text {
    align-items: center !important;
  }

  .page-header-text h1 {
    font-size: 3em;
    margin-bottom: 5px;
    text-align: center;
  }
}

