.facility{
    padding: 50px 0;
}
.facility h1{
    font-family: var(--main-text-font);
    text-align: center;
    margin-bottom: 30px;
    color: #333333;
}
.facility-items{
    justify-content: space-between;
}
.facility-item{
    width: 30%;
    border-radius: 5px;
    transition: all 0.5s ease;
    position: relative;
}
.facility-item:before{
    display: block;
    content: "";
    width: 80%;
    height: 100%;
    background-color: #f3d6cf;
    position: absolute;
    opacity: 0;
    text-align: center;
    margin-left: 10%;
}
.facility-item:hover:before{
    opacity: 0.5;
}
.facility-item img{
    width: 80%;
    aspect-ratio: 1/1;
    object-fit: cover;
    border-radius: 5px;
    cursor: pointer;
}
.facility-item h2{
    font-family: var(--main-text-font);
    position: absolute;
    top: 50%;
    left: 50%;
    color: white;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: all 0.5s ease;
    font-size: 2.1vw;
    text-align: center;
}

.facility-item:hover h2{
    opacity: 1;
    width: 270px;
    text-align: center;
}
.facility-item {
    transition: all 1s ease;
    -webkit-transition: all 1s ease;
    -moz-transition: all 1s ease;
    -o-transition: all 1s ease;
    width: 33.33%;
    text-align: center;
}

.facility-item:hover {
    transform: scale(1.2,1.2);
    -webkit-transform: scale(1.2,1.2);
    -moz-transform: scale(1.2,1.2);
    -o-transform: scale(1.2,1.2);
    -ms-transform: scale(1.2,1.2);
}
