@import url('https://fonts.googleapis.com/css2?family=Instrument+Sans:ital,wght@0,400..700;1,400..700&display=swap');

.team-member {
    margin-bottom: 3rem;
    width: 100%;
    position: relative;
}

.team-member .foto {
    overflow: hidden;
    position: relative;
    /* margin-bottom: 0.5em; */
    aspect-ratio: 340/390;
    min-height: 390px;
    width: 100%;
}

.team-member .back,
.team-member .front {
    -webkit-transition: all .5s;
    -moz-transition: all .5s;
    transition: all .5s;
    position: absolute;
    width: 100%;
    height: 100%;
    left: 50%;
    object-fit: cover;
    top: 50%;
    bottom: auto;
    right: auto;
    transform: translateX(-50%) translateY(-50%);
}

.team-member .back {
    opacity: 1;
}

.team-member .front {
    opacity: 0;
    -webkit-filter: grayscale(0) !important;
    filter: grayscale(0) !important;
}

p small,
.p-small p,
.p-big p {
    text-transform: uppercase;
    display: inline-block;
    color: #FFF;
    margin: 0 !important;
    font-family: "Open Sans", Sans-serif;
    font-size: 23px;
    font-weight: 400;
}

.p-small {
    position: absolute;
    bottom: 0;
    width: 100%;
    padding: 35px;
}

.team-member:hover p {
    background-image: -webkit-gradient(linear, left top, left bottom, color-stop(50%, transparent), color-stop(50%, #a6233b));
    background-image: linear-gradient(to bottom, transparent 50%, #a6233b 50%);
    background-repeat: repeat-x;
    background-size: 100% 80%;
    background-position: 0 100%;
}

.team-member:hover .back {
    opacity: 0;
}

.team-member:hover .front {
    opacity: 1;
}

.team-member img {
    -webkit-filter: grayscale(100%);
    filter: grayscale(100%);
}

@media (max-width: 767px) {
    .team-member .foto {
        min-height: 420px;
    }
}

.wrapper-blog {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 16px;
}

.item-blog {
    width: calc((100% - 54px) / 4);
    aspect-ratio: 289 / 371;

    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;

}

.item-blog img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.4s ease-in-out;
    z-index: 1;
}

.date {
    font-family: "GT American Font", Sans-serif;
    font-weight: 500;
    font-size: 12px;
    line-height: 19.41px;
    letter-spacing: 0.15px;
    text-align: center;
    margin-left: 22px;
    background: #3E6560;
    border-radius: 12px;
    padding: 4px 12px;
    color: #FFFFFFC4;
    width: fit-content;
    position: relative;
    z-index: 2;
    margin-top: 18px;
}

.content-blog {
    background: #3E6560;
    border-radius: 8px;
    padding: 16px 16px 26px;
    z-index: 2;
    position: relative;
    transition: all 0.8s ease;
 
    max-height: 90px;
}

.item-blog:hover .content-blog {
    transform: translateY(0);
    max-height: 70%;
}

.title-blog {
  font-family: "GT American Font", Sans-serif;
    font-weight: 400;
    font-size: 20px;
    line-height: 1.25;
    letter-spacing: -0.48px;
    color: #EEEFEF;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2; 
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
	min-height:48px
}

.description-blog p {
  font-family: "GT American Font", Sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.1px;
    color: #FFFFFF;
    margin: 0;
}

.description-blog {
    margin-top: 25px;
    font-family: "GT American Font", Sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.2;
    letter-spacing: 0.1px;
    color: #FFFFFF;
/*     display: none; */
/* 	opacity: 0; */
}
.item-blog:hover .description-blog {
   opacity: 1;
}
.item-blog:hover img {
    transform: scale(1.1);
}
@media (max-width: 1200px) { 
    .title-blog {
        font-size: 19px; 
    }
    .item-blog {
        width: calc((100% - 36px) / 3);
    }
}
@media (max-width: 1024px) {
    .item-blog {
        width: calc((100% - 36px) / 3);
    }

    .title-blog {
        font-size: 18px;
    }
}

@media (max-width: 767px) {
    .item-blog {
        width: calc((100% - 18px) / 2);
    }
}

@media (max-width: 500px) {
    .item-blog {
        width: 100%;
    }
}