.condolences {
display: grid;
grid-column-gap: 4rem;
grid-row-gap: 4rem;
grid-template-columns: repeat(4, 1fr);
align-items: stretch;
}
.condolence__image_container {
display: block;
width: 80%;
margin: 0 auto;
margin-bottom: 1rem;
}
.condolence__image {
position: relative;
padding-bottom: 100%;
border-radius: 100%;
overflow: hidden;
}
.condolence__image img{
position: absolute;
left: 50%;
top: 50%;
height: 100% !important;
object-fit: cover;
transform: translate(-50%, -50%);
filter: saturate(0%);
transition: filter .3s;
}
.condolence:hover img {
filter: saturate(100%);
}
.condolence__content {
text-align: center;
}
.condolence__content a {
font-size: 1.75vw;;
font-weight: 400;
line-height: 40px;
}
.condolence__content p {
color: #777;
font-size: 14px;
line-height: 1.5em;
margin: 0;
}
@media (max-width: 1365px) {
.condolence__image_container {
width: 100%;
}
}
@media (max-width: 1023px) {
.condolences {
grid-template-columns: repeat(2, 1fr)
}
.condolence__content a {
font-size: 2.5vw;
}
.condolence__image_container {
width: 80%;
}
}
@media (max-width: 767px) {
.condolences {
grid-template-columns: repeat(1, 1fr)
}
.condolence__image_container {
width: 60%;
}
.condolence__content a {
font-size: 3.5vw;
}
}