$slider-max-height: 590px; .carousel-slider.overlay { height: 100%; .swiper-container, .carousel-slider, .bastet-carousel, .swiper-slide, .post, .post-thumbnail, .thumbinal, .image { height: 100%; } .post .post-thumbnail .thumbinal .image { border-radius: 0; } } .wp-block-bastet-posts-carousel { &.height-auto { height: auto !important; } } .carousel-slider.default { position: relative; display: block; overflow: hidden; padding: 0 4px 0 4px; margin-left: -4px; margin-right: -4px; .swiper-container { overflow: visible; .swiper-wrapper { padding: 0 1px; } } .post { margin-bottom: 0; box-shadow: $box-shadow__main; .entry-meta .author img { max-width: 28px; } .thumbinal .image { border-bottom-right-radius: 0; border-bottom-left-radius: 0; } .post-content { padding: 20px 20px; border: 1px solid $color__global-border; border-top: none; border-bottom-left-radius: $border-radius__main; border-bottom-right-radius: $border-radius__main; margin-top: -30px; } .entry-content { p { font-size: 15px; line-height: 25px; margin-bottom: 16px; } } .entry-title { font-size: 22px; line-height: 30px; padding: 0; margin-bottom: 10px; } .entry-meta { border-top: 1px solid $color__global-border; padding-top: 12px; } } } .carousel-slider.overlay { .post .post-thumbnail .thumbinal .image { &:before { padding-top: 78%; } &:after { content: ""; position: absolute; bottom: 0; left: 0; height: 55%; width: 100%; background: linear-gradient(rgba(0,0,0,0) 15%,rgba(10,10,10,.45)); } } .post { position: relative; } .post-content { margin: auto; left: 0; right: 0; position: absolute; padding: 28px 24px; bottom: 0; border-radius: 8px; width: calc(100% - 80px); } .entry-title { font-size: 28px; line-height: 40px; margin: 6px 0 12px 0; color: #fff; } .entry-meta, .posted-cates a { color: #fff; } } .carousel-slider { &.per-row-3, &.per-row-4 { .post { .entry-title { font-size: 21px; line-height: 31px; margin-bottom: 14px; } } } &.per-row-3 { .post { .entry-title { font-size: 23px; line-height: 33px; } } .entry-content { p { font-size: 14px; line-height: 24px; } } } &.per-row-4 { .post { .entry-title { font-size: 17px; line-height: 25px; letter-spacing: -0.2px; font-weight: 600; margin-bottom: 11px; } } } &.per-row-2 { .post { .post-content { padding: 22px 24px; } .entry-title { font-size: 27px; line-height: 39px; letter-spacing: 0.2px; margin-bottom: 14px; @include respond-above( 'start', 'mobile' ) { font-size: 19px; line-height: 27px; } @include respond-above( 'mobile', 'screen' ) { font-size: 24px; line-height: 34px; } } } } } .carousel-slider.center { .swiper-container { max-width: 1180px !important; overflow: visible; } .post { position: relative; a { &:hover { opacity: 1; } } .posted-cates { position: relative; bottom: unset; left: unset; a { padding: 8px 14px; color: #fff; border-radius: $border-radius__main; background-color: bastet-color(); } } } .post-thumbnail { max-height: 590px; overflow: hidden; border-radius: $border-radius__main; } .post-thumbnail .thumbinal { position: relative; width: 100%; height: 100%; display: block; } .post .post-thumbnail .thumbinal .image { &:before { @include respond-above( 'start', 'mobile' ) { padding-top: 100%; } } &:after { content: ""; position: absolute; width: 100%; max-height: $slider-max-height; height: 100%; top: 0; left: 0; background: linear-gradient(rgba(0,0,0,0) 39%,rgba(0,0,0,.44) 61%); } img, iframe { width: 100%; max-width: none; height: 100%; position: absolute; top: 0; left: 0; object-fit: cover; image-rendering: auto; } } .post-content { position: absolute; width: 100%; height: 100%; bottom: 0; left: 0; margin: auto; z-index: 2; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: center; text-align: left; max-width: 360px; transition: all 300ms; transition-delay: 300ms; opacity: 0; @include respond-above( 'screen' ) { max-width: 746px; } @include respond-above( 'mobile', 'screen' ) { max-width: 555px; } .inner-content { position: relative; padding: 26px 26px 30px 26px; @include respond-above( 'start', 'mobile' ) { padding: 20px 40px 20px 0; } } .posted-cates { margin-bottom: 8px; } .entry-title { font-size: 42px; line-height: 54px; margin: 10px 0 18px 0; position: relative; color: #fff; @include respond-above( 'start', 'mobile' ) { font-size: 27px; line-height: 39px; } @include respond-above( 'mobile', 'screen' ) { font-size: 32px; line-height: 44px; } &:hover,a:hover { color: #fff; } } .entry-header,.entry-meta { position: relative; color: #fff; } .entry-meta { padding-top: 12px; opacity: 0.92; border-top: 1px solid #4a4a4a; .meta-icon { i { color: #fff; } } } .entry-content { position: relative; @include respond-above( 'start', 'screen' ) { display: none; } p { font-size: 15px; line-height: 27px; color: #fff; opacity: 0.98; } } .deco { position: absolute; display: block; width: 100%; height: 100%; top: 0; left: 0; &:before, &:after { position: absolute; } &.x { &:before, &:after { height: calc(100% - 40px); width: 1px; top: 20px; border-left: 1px solid $color--global-border; } &:before { left: 20px; } &:after { right: 20px; } } &.y { &:before, &:after { width: calc(100% - 40px); border-bottom: 1px solid $color--global-border;; height: 1px; left: 20px; } &:before { top: 20px; } &:after { bottom: 20px; } } } } .swiper-slide-active { .post-content { opacity: 1; } } } .carousel-slider { &.text-medium { .post { .entry-title { font-size: 23px; line-height: 32px; } } } &.text-large { .post { .entry-title { font-size: 27px; line-height: 39px; } } } } .bastet-slider-arrow { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 40px; .block-heading .heading{ margin-bottom: 0; } .bastet-button-prev svg { transform: rotate(180deg); } .button { padding: 0; margin-left: 10px; transition: all 300ms; border: 1px solid; border-radius: 50%; text-align: center; width: 32px; height: 32px; } svg { width: 16px; height: 16px; top: 2px; position: relative; } }