/* ------------------------------
| Smile Gallery Fullwidth Items |
-------------------------------*/

.gallery-item-fullwidth {
    width: 100%;
    display: block;
    margin: 0 auto;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.gallery-items-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
}

.gallery-item-fullwidth>* {
    flex: 1 1 auto;
    height: 100%;
}

.gallery-item-fullwidth .gallery-slider,
.gallery-item-fullwidth .gallery-two-images,
.gallery-item-fullwidth .gallery-single-image {
    width: 100%;
    display: block;
    position: relative;
    z-index: 1;
}

.gallery-item-fullwidth .title-02 {
    position: relative;
    z-index: 2;
    background: #fff;
    padding: 10px 0;
}

.gallery-container {
    padding: 24px 20px 20px 20px !important;
    box-shadow: 0px 1px 12px 0px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    transition: 0.4s ease;
    -webkit-transition: 0.4s ease;
    -moz-transition: 0.4s ease;
}

.gallery-two-images.row {
    /* padding: 0px; */
}

.container .row {
    margin-left: 0px !important;
    margin-right: 0px !important;
}

.gallery-two-images.row.gallery-image {
    padding: 0px !important;
}


.gallery-two-images .gallery-heading .title-02 {
    min-height: 67px;
}

.gallery-two-images .gallery-heading {
    margin: 0 0 35px 0;
}

#gallery-zoom-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
}

#gallery-zoom-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 40px;
    color: #fff;
    cursor: pointer;
    font-weight: bold;
}

#gallery-zoom-img {
    width: 70vw;
    height: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    display: block;
    margin: auto;
    border-radius: 10px;
    
}

.gallery-two-images img {
    /* max-width: 90% !important; */
    margin: 0 auto
}

.gallery-item:hover .gallery-container {
    box-shadow: 0 1px 25px 0 rgba(0, 0, 0, .2);
    transition: 0.4s ease;
    -webkit-transition: 0.4s ease;
    -moz-transition: 0.4s ease;
}

/*to make all cards take tallest card height*/
.gallery-inner.gallery-two-images.row {
    display: flex !important;
}

.gallery-item {
    display: flex !important;
}

/*homepage testimonial images, remove black background*/
.testimonial-vid img {
    object-fit: cover;
}

/*to make the last card in last row to at center*/
.gallery-item {
    margin: 0 auto;
}

/*make images take up height of parent
.gallery-two-images .col.s6.before.matchHeight.valign-wrapper img,
.gallery-two-images .col.s6.after.matchHeight.valign-wrapper img {
  height: 100% !important;
  object-fit: cover !important;
}
.col.s12.gallery-heading {
    min-height: 100px !important;
}
.services .container {
    max-width: 1500px !important;
}
.grid figure img {
    width: 100% !important;
    height: 320px !important;
}