/*

Based on Snapshot Template
http://www.templatemo.com/tm-493-snapshot

*/


/* Body 
------------------------------------- */
body {
    background: #ffffff;   
    font-family: 'Source Sans Pro', sans-serif;
    font-style: normal;
    font-weight: 300;
    position: relative;
}

html,body {
  width: 100%;
  overflow-x: hidden;
}

html {
  font-size: 100%;
}


/*---------------------------------------
    Typography              
-----------------------------------------*/

h1,h2,h3,h4 {
  font-weight: 300;
}

h1 {
  font-size: 2rem;
  line-height: 3rem;
  letter-spacing: 12px;
  text-transform: uppercase;
  padding-bottom: 8px;
}

h2 {
  color: #1e9e76;
  font-size: 1.4rem;
  font-weight: bold;
  letter-spacing: 4px;
  text-transform: uppercase;
}

h3 {
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 4px;
}

p {
  color: #999;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 34px;
}

#home p,
#contact p, footer p {
  color: #f9f9f9;
}

.btn {
  border:none;
  border-radius: 4px;
  transition: all 0.4s ease-in-out;
}

.btn:focus {
  background: #2be0a7;
  border-color: transparent;
}

.btn-success {
  background: #2be0a7;
  font-weight: 300;
  letter-spacing: 2px;
  padding: 14px 32px;
  margin-top: 26px;
}

.btn-success:hover {
  background: #222;
}

a {
  color: #2be0a7;
  -webkit-transition: 0.5s;
  -o-transition: 0.5s;
  transition: 0.5s;
  text-decoration: none !important;
}
a:hover, a:active, a:focus {
  color: #2be0a7;
  outline: none;
}

* {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}

*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
}



/*---------------------------------------
    All Section style              
-----------------------------------------*/

.section-title {
  padding-bottom: 20px;
}

#about .section-title {
  padding-top: 20px;
}

#about .section-title h1 {
  margin-bottom: 0px;
  padding-bottom: 0px;
}

#about,
#gallery,
#contact {
  padding-top: 20px;
  padding-bottom: 20px;
  position: relative;
}

#gallery,
#contact, footer {
  text-align: center;
}

.overlay {
  background: #304352;
  opacity: 0.9;
  position: absolute;
  width: 100%;
  height: 100vh;
  top: 0;
  left: 0;
  right: 0;
}



/*---------------------------------------
    Pre Loader Style              
-----------------------------------------*/

.preloader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 99999;
    display: flex;
    flex-flow: row nowrap;
    justify-content: center;
    align-items: center;
    background: none repeat scroll 0 0 #fff;
}

.sk-spinner-pulse {
  width: 60px;
  height: 60px;
  background-color: #2be0a7;
  border-radius: 100%;
  margin: 40px auto;
  -webkit-animation: sk-pulseScaleOut 1s infinite ease-in-out;
          animation: sk-pulseScaleOut 1s infinite ease-in-out; }

@-webkit-keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }

@keyframes sk-pulseScaleOut {
  0% {
    -webkit-transform: scale(0);
            transform: scale(0); }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
    opacity: 0; } }



/*---------------------------------------
    Main Navigation             
-----------------------------------------*/

.navbar-default {
  background: #ffffff;
  box-shadow: 0px 2px 8px 0px rgba(50, 50, 50, 0.04);
  border: none;
  margin-bottom: 0px !important;
}

.navbar-default .navbar-brand {
  color: #304352;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 2px;
  margin: 0;
}

.navbar-default .navbar-nav li a {
    color: #777;
    font-size: 14px;
    font-weight: 300;
    letter-spacing: 1px;
    text-transform: uppercase;
    -webkit-transition: all 0.4s ease-in-out;
    transition: all 0.4s ease-in-out;
    padding-right: 22px;
    padding-left: 22px;
}

.navbar-default .navbar-nav li a span {
  position: relative;
  display: block;
  padding-bottom: 2px;
}

.navbar-default .navbar-nav li a span:before {
  content: "";
  position: absolute;
  width: 100%;
  height: 2px;
  bottom: 0;
  left: 0;
  background-color: rgba(255, 255, 255, 0.5);
  visibility: hidden;
  -webkit-transform: scaleX(0);
  -moz-transform: scaleX(0);
  -ms-transform: scaleX(0);
  -o-transform: scaleX(0);
  transform: scaleX(0);
  -webkit-transition: all 0.3s ease-in-out 0s;
  -moz-transition: all 0.3s ease-in-out 0s;
  -ms-transition: all 0.3s ease-in-out 0s;
  -o-transition: all 0.3s ease-in-out 0s;
  transition: all 0.3s ease-in-out 0s;
}

.navbar-default .navbar-nav li a:hover span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  -moz-transform: scaleX(1);
  -ms-transform: scaleX(1);
  -o-transform: scaleX(1);
  transform: scaleX(1);
}

.navbar-default .navbar-nav li.active a span:before {
  visibility: visible;
  -webkit-transform: scaleX(1);
  transform: scaleX(1);
  background-color: #304352;
}

.navbar-default .navbar-nav > li a:hover {
    color: #304352 !important;
}

.navbar-default .navbar-nav > li > a:hover,
.navbar-default .navbar-nav > li > a:focus {
    color: #777;
    background-color: transparent;
}

.navbar-default .navbar-nav > .active > a,
.navbar-default .navbar-nav > .active > a:hover,
.navbar-default .navbar-nav > .active > a:focus {
    color: #304352;
    background-color: transparent;
}

.navbar-default .navbar-toggle {
     border: none;
     padding-top: 10px;
  }

.navbar-default .navbar-toggle .icon-bar {
    border-color: transparent;
  }

.navbar-default .navbar-toggle:hover,
.navbar-default .navbar-toggle:focus { 
  background-color: transparent;
}

@media screen and (max-width: 768px) {
  
  .navbar-default .navbar-nav li a span:before {
    background: transparent !important;
  }
  .navbar-default .navbar-nav li.active a {
    background: transparent;
    background: none;
    color: #304352 !important;
  }
  .navbar-default .navbar-nav li.active a span:before {
    visibility: visible;
    -webkit-transform: scaleX(1);
    transform: scaleX(1);
  }
}



/*---------------------------------------
    Home Section              
-----------------------------------------*/

#home {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -webkit-align-items: center;
      -ms-flex-align: center;
        align-items: center;
  height: 100vh;
  text-align: center;
}

#home h1 {
  color: #ffffff;
}

#home .col-md-8 {
  padding-left: 62px;
}



/*---------------------------------------
    About Section              
-----------------------------------------*/

#about {
  background: #f0f0f0;
}

#about .item {
  width: 100%;
  display: block;
}

#about .about-thumb {
  background: #ffffff;
  border-radius: 4px;
  padding: 40px;
  position: relative;
}

#about .about-img img {
  border: 8px solid #ffffff;
  position: absolute;
  left: -120px;
  bottom: -325px;
  padding: 12px;
}

#about .team-thumb {
  width: 100%;
  height: 400px;
  margin: 32px 0;
  text-align: center;
  background: #ffffff;
  border-radius: 4px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#about .team-thumb .image-holder {
  position: relative;
  top: 40px;
  display: inline-block;
  margin-bottom: 40px;
  padding: 10px;
  -webkit-transition: all 0.3s ease;
  transition: all 0.3s ease;
}

#about .team-thumb .heading {
  font-weight: bold;
  position: relative;
  top: 10px;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

#about .team-thumb:hover {
  background: #304352;
}

#about .team-thumb:hover .image-holder {
  top: -40px;
  margin-bottom: 0px;
}

#about .team-thumb:hover .heading {
  top: -10px;
}

#about .team-thumb .description {
  font-size: 18px;
  width: 80%;
  margin: 0 auto;
  opacity: 0;
  -webkit-transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  transition: all 600ms cubic-bezier(0.68, -0.55, 0.265, 1.55);
  -webkit-transform: scale(0);
  -ms-transform: scale(0);
  transform: scale(0);
}

#about .team-thumb:hover .description {
  opacity: 1;
  -webkit-transform: scale(1);
  -ms-transform: scale(1);
  transform: scale(1);
}

#about .team-thumb:hover p.description {
  color: #ffffff;
}



/*---------------------------------------
    Galllery section              
-----------------------------------------*/

#gallery {
  background: #ffffff;
}

#gallery .gallery-thumb {
  background-color: #ffffff;
  box-shadow: 0px 1px 2px 0px rgba(90, 91, 95, 0.8);
  cursor: pointer;
  display: block;
  margin-bottom: 25px;
  position: relative;
  top: 0px;
  transition: all 0.4s ease-in-out;
}

#gallery .gallery-thumb:hover {
  box-shadow: 0px 16px 22px 0px rgba(90, 91, 95, 0.8);
  top: -5px;
}

#gallery .gallery-thumb img {
  border-top-right-radius: 2px;
  border-bottom-left-radius: 2px;
  width: 100%;
}



/*---------------------------------------
    Contact section              
-----------------------------------------*/

#contact, footer {
  background: #304352;
  color: #ffffff;
}

#contact .form-control {
  background: transparent;
  box-shadow: none;
  border: 1px solid #f9f9f9;
  color: #ccc;
  font-size: 20px;
  margin-top: 10px;
  margin-bottom: 14px;
  transition: all 0.4s ease-in-out;
}

#contact .form-control:focus {
  border-color: #1e9e76;
  color: #ffffff;
}

#contact input {
  height: 55px;
}

#contact input[type="submit"] {
  background: #2be0a7;
  border:none;
  color: #ffffff;
  font-weight: 400;
  letter-spacing: 1px;
}

#contact input[type="submit"]:hover {
  background: #2be0a7;
  color: #ffffff;
}



/*---------------------------------------
    Footer section             
-----------------------------------------*/

footer {
  padding-bottom: 80px;
}



/*---------------------------------------
    Social icons style              
-----------------------------------------*/

.social-icon {
  padding: 0;
  margin: 0;
}

.social-icon li {
  list-style: none;
  display: inline-block;
}

.social-icon li a {
  border-radius: 4px;
  border: 1px solid #ffffff;
  color: #ffffff;
  font-size: 20px;
  width: 45px;
  height: 45px;
  line-height: 45px;
  text-align: center;
  margin: 10px 10px 42px 10px;
  padding: 0px;
}

.social-icon li a:hover {
  background: #ffffff;
  color: #2be0a7;
}



/*---------------------------------------
   Back top         
-----------------------------------------*/

.go-top {
  background-color: #ffffff;
  box-shadow: 1px 1.732px 12px 0px rgba( 0, 0, 0, .14 ), 1px 1.732px 3px 0px rgba( 0, 0, 0, .12 );
  transition : all 1s ease;
  bottom: 2em;
  right: 2em;
  color: #222;
  font-size: 26px;
  display: none;
  position: fixed;
  text-decoration: none;
  width: 40px;
  height: 40px;
  line-height: 35px;
  text-align: center;
  border-radius: 100%;
}

.go-top:hover {
  background: #2be0a7;
  color: #ffffff;
}



/*---------------------------------------
   Responsive Mobile         
-----------------------------------------*/

@media (max-width: 980px) {
/* 
  #home, .overlay {
    height: 50vh;
  }
*/
  #about .team-thumb {
    margin-top: 10px;
  }

}


@media (max-width: 767px) {

  #home, .overlay {
    height: 100vh;
  }

  #about .about-thumb {
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
  }

  #about .col-md-3 img {
    position: relative;
    top: 0;
    left: 0;
  }

}



@media (max-width: 650px) {

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 18px;
  }

  img {
    width: 100%;
  }

  #about,
  #gallery,
  #contact {
    padding-top: 40px;
    padding-bottom: 40px;
  }

}

/* Basic structure and reset if needed */
section.main {
  padding: 2em 0;
  text-align: center;
}

section.main.special {
  background-color: #f4f4f4;
}

.spotlight {
  display: flex;
  align-items: center;
  gap: 2em;
  text-align: left;
}

.spotlight .content {
  flex: 1;
}

.spotlight .image {
  flex: 1;
}

.spotlight .image img {
  width: 100%;
  height: auto;
  border-radius: 5px;
}

header.major h2 {
  font-size: 2em;
  margin-bottom: 0.5em;
}

ul.actions {
  list-style: none;
  padding: 0;
  margin: 2em 0 0 0;
}

ul.actions li {
  display: inline-block;
  margin: 0 0.5em;
}

ul.actions.special {
  justify-content: center;
  display: flex;
}

a.button {
  display: inline-block;
  background-color: #333;
  color: #fff;
  padding: 0.75em 1.5em;
  border-radius: 5px;
  text-decoration: none;
}

a.button.primary {
  background-color: #007BFF;
}

/* ========== Custom Fixes ========== */

/* Navbar logo and brand styling */
.navbar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nav-logo {
  height: 40px;
  width: auto;
  max-height: 40px;
  display: inline-block;
}

.brand-text {
  font-family: 'Source Sans Pro', sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: #304352;
}

/* Meet your Clinical Psychologist image styling */
#intro .image img {
  width: 180px;
  height: 180px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ccc;
  margin-top: 1rem;
}

#intro.spotlight {
  padding-top: 40px !important;
}

/* Magna veroeros responsive 3-column layout */
.features {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 2rem 0;
}

.features li {
  flex: 0 0 32%;
  text-align: center;
}

@media (max-width: 768px) {
  .features li {
    flex: 0 0 100%;
  }
}

/* Remove background from services/gallery section */
#services {
  /* If I want the background back
  background: none !important;
  */
  background: #0f0f0f !important; 
}

#services .services-wrapper !important {
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Center-align the Clinical Psychologist section */
#intro .spotlight {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 40px !important;
}

/* Enlarged image (50% bigger) */
#intro .image img {
  width: 270px;
  height: 270px;
  margin: 1rem auto;
}

/* Add spacing between paragraphs */
#intro .content p {
  margin-bottom: 1.5rem;
}

/* Center the entire Meet Your Clinical Psychologist section in a box */
#intro {
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Make the image larger */
#intro .image img {
  width: 350px;
  height: 350px;
  object-fit: cover;
  border-radius: 50%;
  border: 4px solid #ccc;
  margin: 1.5rem auto;
}


#about .row {
  display: flex;
  align-items: center; /* Vertically align the items */
}

.text-section {
  flex: 2; /* Takes up 2/3 of the space */
}

.image-section {
  flex: 1; /* Takes up 1/3 of the space */
}

.image-section img {
  width: 100%; /* Make the image responsive */
  height: auto;
}


.info-icons-wrapper {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  text-align: center;
  margin-top: 20px;
}

.info-icon-box {
  flex: 1;
  min-width: 220px;
  padding: 15px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.info-icon-box i {
  font-size: 2em;
  margin-bottom: 10px;
  color: #2c3e50;
  transition: color 0.3s ease;
}

/* Hover Effects */
.info-icon-box:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.info-icon-box:hover i {
  color: #007BFF; /* Customize hover color here */
}

.info-icon-box p {
  font-weight: bold;
  margin: 0;
}

.services-wrapper {
  background: #fff;
  max-width: 960px;
  margin: 0 auto;
  padding: 3rem 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.05);
}

/* Make services grid 2x2 and responsive */
#services ul.grid {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  padding: 0;
  margin: 40px 0 0;
  list-style: none;
}

#services ul.grid > li {
  flex: 0 0 calc(50% - 15px);
}

@media (max-width: 768px) {
  #services ul.grid > li {
    flex: 0 0 100%;
  }
}

#services ul.grid img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 8px;
}

#services1 {
  background: #ffffff;
  padding: 0 0 50px;
  width: 100%;
  margin-top: 0;
}

#services1 .container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

#services1 .section-title {
  text-align: center;
  margin-bottom: 60px;
  font-size: 2.5rem;
  letter-spacing: 0.5rem;
  text-transform: uppercase;
  font-weight: 300;
  color: #333;
}

#services1 .row {
  width: 100%;
  margin: 0;
  display: flex;
  justify-content: center;
}

#services1 .grid {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 30px;
  width: 100%;
  max-width: 1200px;
}

#services1 .grid li {
  width: 100%;
}

#services1 figure {
  position: relative;
  overflow: hidden;
  background: #ffffff;
  border-radius: 0;
  margin: 0;
  height: 400px;
  transition: all 0.3s ease;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}

#services1 figure div {
  height: 100%;
  overflow: hidden;
}

#services1 figure img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
  transition: all 0.5s ease;
}

#services1 figcaption {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(25, 44, 69, 0.85);
  color: #ffffff;
  opacity: 0;
  transition: all 0.3s ease;
}

#services1 figure:hover figcaption {
  opacity: 1;
}

#services1 figcaption h1 {
  margin: 0;
  color: #ffffff;
  font-size: 22px;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 2px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  #services1 .grid {
    grid-template-columns: 1fr;
  }
}


/* ===== GALLERY & SERVICES SECTION STYLES ===== */
/* Shared container styles */
#gallery .container,
#services2 .container {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 15px;
}

/* Shared grid list */
#gallery ul.grid,
#services2 ul.grid {
  padding: 0;
  margin: 0;
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

/* Grid items */
#gallery ul.grid > li,
#services2 ul.grid > li {
  flex: 1 1 calc(50% - 20px);
  box-sizing: border-box;
}

/* Responsive layout */
@media (max-width: 768px) {
  #gallery ul.grid > li,
  #services2 ul.grid > li {
    flex: 1 1 100%;
  }
}

/* Image figures */
#gallery figure,
#services2 figure {
  position: relative;
  overflow: hidden;
  margin: 0;
}

#gallery figure img,
#services2 figure img {
  width: 100%;
  display: block;
  transition: transform 0.3s ease;
}

/* Figcaption styles */
#gallery figcaption,
#services2 figcaption {
  position: absolute;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  color: white;
  width: 100%;
  padding: 15px;
  box-sizing: border-box;
  opacity: 1;
  transition: opacity 0.3s ease;
}

#gallery figure:hover figcaption,
#services2 figure:hover figcaption {
  opacity: 1;
}

#gallery figure:hover img,
#services2 figure:hover img {
  transform: scale(1.05);
  transition: transform 0.3s ease;
  opacity: 0.8;
}

/* Specific to cs-style-4 gallery layout */
#gallery ul.cs-style-4 figure {
  cursor: pointer;
  opacity: 1;
}

/* Section titles */
#gallery .section-title,
#services2 .section-title {
  text-align: center;
  margin-bottom: 40px;
}

#gallery .section-title h1,
#services2 .section-title {
  font-size: 2.5em;
  margin-bottom: 10px;
}

#gallery .section-title p {
  font-size: 1.4em;
  color: #777;
}

/* WOW.js / Animate fadeInUp if used */
#gallery .wow,
#services2 .wow {
  visibility: hidden;
}

#gallery .fadeInUp,
#services2 .fadeInUp {
  animation-name: fadeInUp;
}

@keyframes fadeInUp {
  from {
    transform: translate3d(0, 40px, 0);
    opacity: 0;
  }
  to {
    transform: translate3d(0, 0, 0);
    opacity: 1;
  }
}/*---------------------------------------
   Responsive Mobile         
-----------------------------------------*/

@media (max-width: 980px) {
/* 
  #home, .overlay {
    height: 50vh;
  }
*/
  #about .team-thumb {
    margin-top: 32px;
  }

}


@media (max-width: 767px) {

  #home, .overlay {
    height: 100vh;
  }

  #about .about-thumb {
    padding: 32px;
    margin-bottom: 32px;
    text-align: center;
  }

  #about .col-md-3 img {
    position: relative;
    top: 0;
    left: 0;
  }

}



@media (max-width: 650px) {

  h1 {
    font-size: 1.6rem;
  }

  p {
    font-size: 18px;
  }

  img {
    width: 100%;
  }

  #about,
  #gallery,
  #contact {
    padding-top: 80px;
    padding-bottom: 80px;
  }

}
  

/* Hide images on mobile devices (screens smaller than 768px) - Only in services section */
@media (max-width: 767px) {
  #service2 .grid figure div img {
    display: none;
  }
  
  /* Make figcaption visible on mobile (override hover-only behavior) */
  #service2 .grid figure figcaption {
    position: static !important; /* Remove any absolute positioning */
    opacity: 1 !important; /* Make sure it's visible */
    visibility: visible !important; /* Override any visibility:hidden */
    transform: none !important; /* Remove any transforms */
    background: rgba(255, 255, 255, 0.9); /* Light background for readability */
    color: #333 !important; /* Dark text for contrast */
    padding: 20px; /* Add padding for better spacing */
    margin-top: 0; /* Remove any top margin */
    border-radius: 8px; /* Optional: rounded corners */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1); /* Optional: subtle shadow */
  }
  
 /* Make sure headings are visible and properly styled on mobile */
   #service2 .grid figure figcaption h1 {
     display: block !important;
     visibility: visible !important;
     opacity: 1 !important;
     color: #2c3e50 !important; /* Dark color for better readability */
     font-size: 1.5rem !important; /* Ensure readable size */
     margin-bottom: 15px !important;
     font-weight: bold !important;
   }
   
   /* Make the figure container more compact on mobile */
   #service2 .grid figure {
     height: auto;
     min-height: auto;
   }
 }