:root {
    --smp-bg-grey: #f8f8f8;
}

#services h2 {
    margin: 1.52rem 0 0.912rem 0;
}

#map_canvas {
	width: 100%;
	height: 100%;
}

.list-agencies {
	cursor: pointer;
	color:black;
	transition: background-color 0.5s ease;

}
.list-agencies:hover {
	background-color: #ddd;
}

li.list-agencies:not(:last-child) {
	border-bottom: 1px solid lightgrey;
}

.smp-rating {
	font-size: 12px;
    color: #F8B707;
}

.smp-review-count {
	height:inherit;
	line-height: 1.4;
	color: #9e9e9e;
}

.smp-review-reply {
    padding-left: 20px;
    border-left: solid lightgrey;
}

.reviewDate {
    font-size:13px;
    color:#70757a;
}

.smp-agency__megamap {
	height:400px;
	overflow-y: scroll;
}

.smp-megamap__address {
	color:#9e9e9e;
}

#mapid {
	height: 400px;
	z-index:1;
}

.smp-action-archive {
    background-color: white;
    padding:0.75em;
    border-radius: 0px 2px 2px 2px;
    box-shadow: 0 2px 28px 0 rgba(0,0,0,0.12);
    margin:2em 0px;

}

.smp-pagination {

  display:inline-block;
}

.smp-count-obituaries {
  margin-left:10px;
  display:inline-block;
}

.smp-yoast-breadcrumbs {
	
}

.smp-test {
    display:none;
}

h1.smp-bannner_title_agency {
	margin-top:10px;
	margin-bottom:10px;
	font-size:2em;
	font-weight:600;
}


.smp-hide-on-small-only {
	display:none;
}



@media only screen and (min-width: 601px) {

	.smp-hide-on-small-only {
		display:block;
	}

	.smp-yoast-breadcrumbs {
		font-size:14px;
	}
}

.smp-google-badge {
    padding:10px;
    border-radius:5px;
    border:1px lightgrey solid;
}



#gallery-1 .gallery-item img {
    border:none;
    width: 100%;
    height: 75px;
    cursor:pointer;
    padding:5px;
    transition: all 0.5s ease;
    object-fit: cover;
}

#gallery-1 .gallery-item {
    margin-top: 0px !important; /* for ovveride the inline css dinamicly generate by wordpress gallery function */
}



@media screen and (min-width : 1000px) {
    #gallery-1 .gallery-item img {
        border:none;
        width: 100%;
        height: 150px;
        cursor:pointer;
        padding:5px;
        transition: all 0.5s ease;
        object-fit: cover;
    }
}

#gallery-1 .gallery-item img:hover {
    opacity:0.8;
}

#gallery-1 .gallery-item img {
    height: 100px;
}

@media only screen and (min-width: 576px) {
    #gallery-1 .gallery-item img {
        height: 125px;
    }
}

@media only screen and (min-width: 992px) {

    #gallery-1 .gallery-item img {
        height: 150px;
    }

}

#gallery-1 .gallery-item:first-child img {
    padding-left:0;
}

#gallery-1 .gallery-item:nth-child(4) img {
    padding-right:0;
}

.current_day {
    color: green;
}

.is-currently-open {
    color: green;
}

/*CAROUSEL*/

#listservices {
    margin: 80px 0;
}

#listservices > div:last-child {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
}

#listservices > div > div {
    width: 100%;
    flex-direction: row-reverse;
    display: inline-block;
    justify-content: space-between;
    padding: 0 10px;
    margin: 10px 0;
}

#listservices > div > div > p {
    margin: 0;
    line-height: unset;
    display: flex;
    display:-webkit-inline-box;
    flex-direction: column;
    justify-content: center;
    line-height:50px;
}

#listservices > div > div > img {
    float:left;
    margin-right:10px;
}

#landing {
    display: flex;
    flex-direction: column;
}

.landing-md-6 {
    width: 100%;

}


.smp-grid {
    display: flex;
    justify-content: space-around;
    flex-direction: column;
}

.smp-grid > div {
    display: flex;
    flex: 1;

}

.smp-grid > div > span, .smp-grid > div > a {
    display: flex;
    flex-direction: column;
    justify-content: center;
}



.smp-actions {
    display: flex;
    justify-content: center;
    padding:24px 0px;
}

.smp-actions > .smp-button_secondary {
    margin-left: 15px;
}

.resp-picture {
    position: relative;
    top: 35px;
}


#funeralhome {
    display: flex;
    flex-direction: column-reverse;
}

#funeralhome .smp-btn-comp {
    text-align: center;
}

#funeralhome {
    margin: 80px 0;
    display: flex;
    justify-content: center;
}

#listservices > h2 {
    font-size: 1.6em;
}

#agencies h2 {
    font-size: 1.6em;
    margin: 1em 0;
}

.smp_carousel .smp_carousel-item {
    width: 100% !important;
    height: 100% !important;
    opacity: 1 !important;
}



@media only screen and (min-width: 576px) {

    #listservices > div > div {
        width: 50%;
        flex-direction: row;
    }
    #listservices > div > div > p {
        width: 80%;
    }

    .smp_carousel .smp_carousel-item {
        width: 33% !important;
    }

    .smp-grid {
        flex-direction: row;
    }

    .smp-actions {
        justify-content: flex-end;
    }

    #funeralhome {
        flex-direction: row;
    }

    #funeralhome .smp-btn-comp {
        text-align: right;
    }
    #funeralhome > div:first-child {
        width: 65%;
    }

    #funeralhome > div:last-child {
        width: 35%;
    }

}

@media only screen and (min-width: 992px) {
    #listservices > div > div {
        width: 30%;
    }

    .smp_carousel .smp_carousel-item {
        width: 33% !important;
    }


    #landing {
        flex-direction: row;
    }

    .landing-md-6 {
        width: 50%;
    }
}



.smp-google-rating {
    padding: 24px;
    background: var(--smp-bg-grey);

}

.smp-google-rating > div {
    display:inline-block;
}



.pt-sm-50 {
    padding-top: 0 !important;
}

.d-sm-none {
    display: none;
}

@media only screen and (min-width: 601px) {
    .d-sm-none {
        display: block;
    }

    .rating {
        flex-direction: row;
        justify-content: space-between;
    }

    .pt-sm-50 {
        padding-top: 50px !important;
    }

}


/*MATERIALIZE*/

.smp_carousel .smp_carousel-item {
    visibility: hidden;
    width: 200px;
    height: 200px;
    position: absolute;
    top: 0;
    left: 0;
    padding: 24px;
    background: var(--smp-bg-grey);
}

.smp_card-content > div > p {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 9;
    -webkit-box-orient: vertical;
    padding: 5px;
}

.smp_card-content {
    text-align: center;
}

.smp_card-content > div:first-child {
    display: flex;
    justify-content: center;
}
.smp_card-content > div:last-child {
    display:inline-block;
    margin-left:10px;
}


.smp_carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
    height: 400px;
    -webkit-perspective: 500px;
    perspective: 500px;
    -webkit-transform-style: preserve-3d;
    transform-style: preserve-3d;
    -webkit-transform-origin: 0% 50%;
    transform-origin: 0% 50%;
    margin: 80px 0;
}



.smp-carousel-arrow {
    position: absolute;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: var(--smp-primary-color);
    background: #ffffff;
    z-index: 1;
}
.smp-carousel-arrow > i {
    cursor: pointer;
    font-size: 27px;
}

#prev {
    left: 0;
}

#next {
    right: 0;
}

#agencycontainer {
    margin: 0 auto;

}


@media only screen and (min-width: 601px) {

    #agencycontainer {
        margin: 0 auto;

    }
}



.tabl-horaire {
    display: flex;
}


.icon-horaire {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: right;
}

.smp-divider-image {
    margin-bottom:30px;
}

.smp-picto-info {
    margin-left:-10px;
    margin-top: 10px;
    margin-bottom: 10px;

}

.smp-picto-info img {
    padding-right:8px;
}

#agencies {
    padding-top:50px;
}

@media only screen and (min-width: 601px) {
    .smp-photo-organization {
        padding-right:1.5em;
    }
    .smp-text-information-organization {
        padding-left:1.5em;
    }
}


@media only screen and (min-width: 601px) {
    .smp-photo-funeralhome {
        padding-left:1.5em;
    }
    .smp-text-information-funeralhome {
        padding-right:1.5em;
    }
}

.responsable-ctnr{
    display: flex;
    flex-direction: row;
    margin-top: 20px;
}
.responsable-ctnr_img > img {
    border-radius: 50%;
    width: 66px;
    height: 66px;
    float: left;
    margin-right: 10px;
}
.responsable-ctnr_text{
    margin-top: 14px;
}
.responsable-ctnr_text_title{
    font-size:20px;
}

.smp-bubble {
    font-size: 15px;
    position: relative;
    line-height: 24px;
    background: #eee;
    border-radius: 20px;
    padding: 20px;
    margin: 20px 0px;
}

.smp-bubble-bottom-left:before {
    content: "";
    width: 0px;
    height: 0px;
    position: absolute;
    border-left: 24px solid #eee;
    border-right: 12px solid transparent;
    border-top: 12px solid #eee;
    border-bottom: 20px solid transparent;
    left: 32px;
    bottom: -24px;
}