/*-------------------------------------------------------------- 20. Posts ----------------------------------------------------------------*/ .cs_post_meta_2 { display: flex; flex-wrap: wrap; > span { &:not(:last-child) { &::after { content: '/'; margin: 0 10px; transform: rotate(10deg); display: inline-block; color: var(--accent); } } } } .cs_post_meta_3 { display: flex; flex-wrap: wrap; > span { &:not(:last-child) { &::after { content: '—'; margin: 0 10px; transform: initial; } } } } .cs_post_meta_4 { display: flex; flex-wrap: wrap; gap: 0px 35px; @media (max-width: 360px) { gap: 0px 20px; } @media (max-width: 575px) { gap: 0px 25px; } > span { position: relative; display: inline-block; &:not(:last-child) { &::before { content: ''; height: 5px; width: 5px; border-radius: 50%; background-color: var(--accent); position: absolute; top: 50%; right: -20px; margin-top: -2px; @media (max-width: 575px) { right: -15px; } @media (max-width: 575px) { right: -12px; } } } } } .text-center { .cs_post_meta_2 { justify-content: center; } } .cs_post.cs_style_1, .cs_post.cs_style_2 { .cs_post_title { a { background-repeat: no-repeat; background-image: linear-gradient( 90deg, currentColor 0, currentColor 100% ); transition: background-size 0.6s cubic-bezier(0.49, 0.49, 0.08, 1), color 0.27s ease-out; background-position: 100% calc(100% - 0px); background-size: 0 2px; &:hover { background-size: 100% 2px; background-position: 0 calc(100% - 0px); } } } } .cs_post.cs_style_1 { .cs_post_title { max-width: 430px; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; } .cs_hover_icon { top: 20px; right: 20px; height: 40px; width: 40px; background-color: rgba(255, 255, 255, 0.2); transition: transform 0.5s cubic-bezier(0.5, 2.2, 0.7, 0.7), all 0.3s ease; transform: scale(0); opacity: 0; &:hover { color: var(--accent); background-color: rgba(255, 255, 255, 0.75); } } .cs_post_thumb { &::before { content: ''; position: absolute; left: 0; top: 0; height: 100%; width: 100%; background: rgba(0, 0, 0, 0.2); opacity: 0; z-index: 1; transition: all 0.4s ease; } img { transition: all 0.6s ease; height: 100%; width: 100%; object-fit: cover; } &:hover { img { transform: scale(1.06); } &::before { opacity: 1; } .cs_hover_icon { transform: scale(1); opacity: 1; } } } .cs_post_meta { display: flex; justify-content: space-between; align-items: center; gap: 5px 20px; padding-top: 2px; + .cs_post_title { padding-bottom: 10px; } } .cs_post_meta_seperator { flex: 1; height: 1px; background-color: var(--accent); } &.cs_size_1 { .cs_post_thumb { height: 412px; @media (max-width: 1400px) { height: 370px; } } } &.cs_size_2 { .cs_post_thumb { height: 282px; @media (max-width: 575px) { height: initial; } } } &.cs_size_3 { .cs_post_thumb { height: 350px; } } &.cs_size_4, &.cs_size_5 { .cs_post_thumb { height: 465px; @media (max-width: 575px) { height: 350px; } } .cs_post_title { max-width: 100%; } &:not(:last-child) { margin-bottom: 80px; @media (max-width: 991px) { margin-bottom: 60px; } } .cs_subtitle { text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; } } &.cs_size_4 { .cs_video_block.cs_style_1 { height: 465px; @media (max-width: 575px) { height: 350px; } .cs_play_btn_2 { scale: 0.7; } } } &.cs_size_5 { .cs_video_block.cs_style_1 { .cs_play_btn_2 { scale: 0.7; } } } @media (min-width: 992px) { &.cs_size_5 { display: flex; align-items: center; gap: 24px; .cs_post_thumb { flex: none; width: 50%; margin-bottom: 0; } .cs_subtitle { -webkit-line-clamp: 4; } .cs_video_block.cs_style_1 { height: 550px; margin-bottom: 0; } } } } .cs_post.cs_style_2 { .cs_post_thumb { position: relative; &::before { content: ''; position: absolute; border: 1px solid var(--accent); left: 25px; right: 25px; top: 25px; bottom: 25px; z-index: 1; } img { transition: all 1s ease; height: 100%; width: 100%; object-fit: cover; } &:hover { img { transform: scale(1.06); } } } .cs_posted_by { display: inline-flex; align-items: center; gap: 10px; svg { position: relative; top: -1px; } span { position: relative; &::before { content: ''; height: 1px; width: 50px; background-color: var(--accent); position: absolute; left: 100%; top: 50%; margin-left: 10px; margin-top: -1px; } } } .cs_posted_by { display: flex; align-items: center; gap: 10px; } &.cs_size_1 { .cs_post_thumb { height: 292px; } } } .cs_blog_details { img { border-radius: 5px; margin-bottom: 40px; } .cs_video_block { margin-bottom: 40px; border-radius: 6px; } h2 { font-size: 30px; font-weight: 400; margin-bottom: 15px; } p { margin-bottom: 35px; } p:first-child:first-letter, > img:first-child + p:first-letter { float: left; font-size: 53px; line-height: 0.5em; font-weight: 400; margin: 10px 10px 0 0; text-transform: uppercase; font-style: normal; color: var(--primary); font-family: var(--primary-font); } blockquote { border-left: 5px solid var(--secondary); font-size: 28px; line-height: 1.25em; font-style: normal; font-weight: 400; color: var(--primary); font-family: var(--primary-font); padding: 15px 0px 15px 30px; margin: 40px 0; svg { display: block; margin-bottom: 25px; } small { display: block; font-family: var(--secondary-font); font-style: initial; font-size: 16px; line-height: 1.5em; color: var(--secondary); margin-top: 18px; } } ul { list-style: disc; li { &:not(:last-child) { margin-bottom: 5px; } } } > * { margin-bottom: 0; } } .cs_post_share { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 15px 20px; border: 1px solid var(--ternary); border-left: 0; border-right: 0; padding: 14px 0; > * { display: flex; align-items: center; gap: 15px; } .cs_categories { a { display: inline-block; &:not(:last-child) { &::after { content: ','; } } } } .cs_social_share_btns { display: flex; gap: 0 15px; a { display: flex; } } }