.card { position: relative; display: block; border-radius: 8px; overflow: hidden; transition: all 0.3s ease; &__lab { height: 300px; border: 1px solid transparent; color: $text-secondary; .image { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s ease; pointer-events: none; z-index: 0; } .content { position: absolute; bottom: -10px; left: 0; padding: 0 30px; z-index: 2; transition: bottom 0.3s ease; } &::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); z-index: 1; pointer-events: none; } .description { max-height: 0; opacity: 0; margin: 0; overflow: hidden; transition: max-height 0.3s ease, opacity 0.3s ease; } .link { opacity: 0; transform: translateY(10px); transition: opacity 0.3s ease, transform 0.3s ease; } &:hover { .description { max-height: 200px; opacity: 1; margin-top: 10px; } .link { opacity: 1; transform: translateY(0); } .image { filter: brightness(0.7); } .content { bottom: 20px; } } } &__news { height: 250px; position: relative; overflow: hidden; border-radius: 8px; .slide_background { position: absolute; top: -10%; left: -10%; right: -10%; bottom: -10%; background-size: cover; background-position: center; filter: blur(12px) brightness(0.9); transform: scale(1.05); z-index: 1; opacity: 0.8; pointer-events: none; } .image { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: contain; object-position: center; z-index: 1; pointer-events: none; transition: transform 0.3s ease; transform: translateZ(0); } .content { position: absolute; bottom: 0; left: 0; right: 0; padding: 20px 20px; color: white; z-index: 3; max-height: 60%; overflow: hidden; } .title { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; } &::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); z-index: 2; pointer-events: none; } } &__project { height: 250px; position: relative; .image { position: absolute; width: 100%; height: 100%; object-fit: cover; transition: filter 0.3s ease; pointer-events: none; z-index: 0; } .content { position: absolute; left: 11px; bottom: 0; padding: 20px 20px; color: $text-card-project; z-index: 2; } &::before { content: ""; position: absolute; bottom: 0; left: 0; width: 100%; height: 60%; background: linear-gradient(to top, rgba(0, 0, 0, 0.6), transparent); z-index: 1; pointer-events: none; } } } .title { font-size: clamp(1.25rem, 1.0011rem + 0.5199vw, 1.625rem); font-weight: 600; } .description { p { font-size: clamp(1rem, 0.8755rem + 0.26vw, 1.1875rem); line-height: 140%; display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; } margin: 0; } .link { font-size: clamp(12px, 1.5vw, 20px); font-weight: 500; } @media (max-width: 768px) { .card { height: 215px !important; &--lab { .content { left: 10px; right: 10px; } } } .card__lab { &:hover { .title { font-size: 20px; } } } .title { font-size: 22px; } .description { p { font-size: 16px; line-height: 18px; } } .link { font-size: 18px; } } .placeholder { position: absolute; width: 100%; height: 100%; background-color: #2A3451; background-image: url("/src/shared/assets/images/kit.svg"); background-repeat: no-repeat; background-position: center center; background-size: 70%; z-index: 0; }