.empriva-condoleance-overview-wrapper {
    display: flex;
    width: 100%;
    max-width: 1000px; /* debug limit */
    flex-wrap: wrap;
    /*margin-top: 3rem;*/
}

.empriva-condoleance-overview-wrapper * {
    box-sizing: border-box;
}

/* General stying */
.empriva-condoleance-overview-wrapper > p {
    font-weight: bold;
    line-height: 1.5rem;
}

.empriva-condoleance-overview-wrapper > p span {
    font-weight: normal;
}

.empriva-condoleance-overview-item {
    display: flex;
    flex-direction: column;
    flex: 1 0 calc(25% - 1.5rem);
    width: calc(25% - 1.5rem);
    flex-grow: 0;
    margin-right: 2rem;
    margin-bottom: 3rem;
    position: relative;
    color: inherit;
    text-decoration: inherit;
    border-bottom: solid 2px lightgray;
    padding-bottom: 1.5rem;
}

.empriva-condoleance-overview-item:nth-child(4n) {
    margin-right: 0 !important;
}

.empriva-condoleance-date-cross:before {
    content: '✝';
}

/* Tablet / small screen */
@media only screen and (max-width: 768px) {
    .empriva-condoleance-overview-item {
        flex: 1 0 calc(50% - 1.5rem);
        width: calc(50% - 1.5rem);
    }

    .empriva-condoleance-overview-item:nth-child(2n) {
        margin-right: 0 !important;
    }
}

/* Mobile */
@media only screen and (max-width: 480px) {
    .empriva-condoleance-overview-item {
        flex: 1 0 100%;
        width: 100%;
    }

    .empriva-condoleance-overview-item:nth-child(2n) {
        margin-right: 0 !important;
    }
}

.empriva-condoleance-overview-item-image-container {
    margin-bottom: 1rem;
    position: relative;
    line-height: 0;
    position: relative;
    padding-top: 100%;
    min-height: 1px; /* IE11 fix */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}

.empriva-condoleance-overview-item-image-container .image-overlay {
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: #FFF;
    opacity: 0.4;
    line-height: 0;
}

.empriva-condoleance-overview-item-name {
    text-align: center;
    font-weight: bold;
    margin-bottom: 0.3rem;
}

.empriva-condoleance-overview-item-date {
    text-align: center;
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    flex-basis: auto;
}

.empriva-condoleance-overview-item-line {
    margin-top: 1rem;
    border-bottom: solid 2px lightgray;
}

/* Hovers */
.empriva-condoleance-overview-item:hover {
    background: #336666;
}

.empriva-condoleance-overview-item:hover .image-overlay {
    opacity: 0;
}

.empriva-condoleance-overview-item:hover {
    color: #FFF;
    border-color: #FFF;
}

#empriva-condoleance-single-action-container {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    width: 100%;
    padding: 0.8rem;
    border-bottom: solid 2px #336666;
}

.empriva-profile-wrapper {
    display: flex;
    flex-direction: row;
    width: 100%;
    border-bottom: solid 2px #336666;
}

@media only screen and (max-width: 768px) {
    .empriva-profile-wrapper {
        flex-direction: column;
    }
}

.empriva-profile-image-wrapper {
    flex: 2;
    margin-right: 2rem;
    line-height: 0;
}

.empriva-profile-image {
    margin-bottom: 1rem;
    position: relative;
    line-height: 0;
    position: relative;
    padding-top: 100%;
    min-height: 1px; /* IE11 fix */
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;
}
@media only screen and (max-width: 768px) {
    .empriva-profile-image-wrapper {
        margin-right: 0;
        margin-bottom: 2rem;
    }
}

.empriva-profile-image-wrapper img {
    width: 100%;
    height: auto;
}

.empriva-profile-info-wrapper {
    flex: 5;
}

.empriva-profile-info-wrapper h1 {
    font-size: 2rem;
    margin-top: 0;
}

.empriva-profile-dates {
    align-items: center;
    display: flex;
}

.empriva-profile-dates .longdash {
    color: #336666;
}

.empriva-profile-description {
    font-size: 1.2rem;
    line-height: 1.6rem;
}

.empriva-profile-quote {
    font-size: 1.5rem;
    line-height: 1.6rem;
	opacity: 0.75;
	font-style: italic;
}

#empriva-condoleance-leave-message-container {
    /*margin-top: 2rem;*/
    margin-bottom: 0;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    background-color: rgba(51, 102, 102, 0.3);
}

@media only screen and (max-width: 768px) {
    #empriva-condoleance-leave-message-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }

    #empriva-condoleance-send-flowers-container {
        padding-left: 1.5rem;
        padding-right: 1.5rem;
    }
}

.empriva-form-row {
    display: flex;
    flex-direction: row;
    margin-bottom: 1rem;
}

@media only screen and (max-width: 768px) {
    .empriva-form-row {
        flex-direction: column;
    }
}

.empriva-form-row.label {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
}

.empriva-form-row label {
    font-weight: bold;
}

.empriva-form-item input {
    width: 100%;
    border: none;
    color: #336666;
    font-size: 1rem;
    font-family: inherit;
}

@media only screen and (max-width: 768px) {
    .empriva-form-item {
        margin-bottom: 1rem;
    }
}

.empriva-form-item input::placeholder {
    color: #336666;
}

.empriva-form-item select {
    width: 100%;
    border: none;
    color: #336666;
    font-size: 1rem;
    font-family: inherit;
}

.empriva-form-item textarea {
    width: 100%;
    min-height: 10rem;
    height: auto;
    padding: 2px;
    border: none;
    font-family: inherit;
    color: #336666;
    font-size: 1rem;
}

.empriva-form-item textarea::placeholder {
    color: #336666;
}

.empriva-form-item.one {
    flex: 1;
}

.empriva-form-item.two {
    flex: 2;
}

.empriva-form-item.three {
    flex: 3;
}

.empriva-form-item.four {
    flex: 4;
}

.empriva-margin-right {
    margin-right: 1rem;
}

@media only screen and (max-width: 768px) {
    .empriva-margin-right {
        margin-right: 0;
    }
}

.empriva-button-bar {
    display: flex;
}

.empriva-button-bar button[type="submit"] {
    border: none;
    margin-top: 0.5rem;
    margin-left: auto;
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
    padding-left: 1rem;
    padding-right: 2rem;
    color: #FFF;
    font-size: 1rem;
    background: #336666;
    font-family: inherit;
    fill: rgba(51, 102, 102, 0.7);
    display: flex;
    align-items: center;
}

.empriva-button-bar button[type="submit"] svg {
    margin-right: 0.5rem;
}

@media only screen and (max-width: 768px) {
    .empriva-button-bar button[type="submit"] {
        width: 100%;
    }
}

.empriva-button-bar button[type="submit"] svg {
    fill: #336666;
}

.empriva-button-bar button[type="submit"]:hover {
    cursor: pointer;
    background-color: rgba(51, 102, 102, 0.5);
}

.empriva-button-bar button[type="submit"]:hover svg {
    fill: rgba(51, 102, 102, 1);
}

#empriva-condoleance-send-flowers-container {
    width: 100%;
    margin-bottom: 0;
    padding-left: 4rem;
    padding-right: 4rem;
    padding-top: 2rem;
    padding-bottom: 4rem;
    background-color: rgba(51, 102, 102, 0.3);
}

#empriva-condoleance-messages {
    margin-top: 2rem;
    width: 100%;
}

#empriva-condoleance-messages .empriva-condoleance-message-item {
    margin-bottom: 1rem;
    width: 100%;
    padding: 10px;
    background-color: rgb(249, 249, 249);
}

.empriva-condoleance-message-item-author {
    font-weight: bold;
}

.empriva-condoleance-message-item-datetime {
    font-size: 0.7rem;
    opacity: 0.65;
}

#empriva-condoleance-form label.error {
    color: red;
    font-size: 0.7rem;
}

#empriva-condoleance-form input.error,
#empriva-condoleance-form textarea.error {
    outline: none !important;
    border:1px solid red;
}

#empriva-condoleance-form .google-captcha-disclaimer {
    margin-top: 20px;
    text-align: center;
    font-size: 0.7rem;
    opacity: 0.65;
}