/* Custom Aspect Ratio */ .aspect-ratio-2x3 { position: relative; overflow: hidden; } .aspect-ratio-2x3:before { content: ""; display: block; padding-top: 150%; /* 2:3 Aspect Ratio */ } .aspect-ratio-content, .aspect-ratio-content > a, .aspect-ratio-content > a > img { position: absolute; top: 0; left: 0; right: 0; bottom: 0; width: 100%; height: 100%; } .aspect-ratio-content > a > img { object-fit: cover; } /* Adjust the positioning and visibility of figcaption and overlay */ .aspect-ratio-content > figcaption { position: absolute; width: 100%; left: 0; opacity: 0; /* Initially hidden */ transition: opacity 0.15s linear 0.1s; /* Smooth transition for opacity */ pointer-events: none; /* Disable pointer events when not visible */ } /* figcaption style */ .aspect-ratio-content > figcaption { /* bottom: 10; */ left: 0; opacity: 0; right: 0; top: 0; bottom: 0; align-items: center; display: flex; flex-direction: column; justify-content: center; } /* Hover effect */ .bsb-overlay-hover:hover > .aspect-ratio-content > figcaption { opacity: 1; /* Visible on hover */ } @keyframes bsb-fadeInLeft { 0% { opacity: 0; transform: translate3d(-100%, 0, 0); } to { opacity: 1; transform: translateZ(0); } } @keyframes bsb-fadeInRight { 0% { opacity: 0; transform: translate3d(100%, 0, 0); } to { opacity: 1; transform: translateZ(0); } } .bsb-overlay-hover { --bsb-overlay-hover-opacity: 0.5; --bsb-overlay-hover-bg-color: var(--bs-black-rgb); position: relative; } .bsb-overlay-hover > .aspect-ratio-content > a { bottom: 0; display: block; left: 0; position: relative; right: 0; top: 0; } .bsb-overlay-hover > .aspect-ratio-content > a > img.bsb-scale { --bsb-scale: 1; } .bsb-overlay-hover > .aspect-ratio-content > a > img.bsb-scale { transform: scale3d(var(--bsb-scale), var(--bsb-scale), var(--bsb-scale)); transform-style: preserve-3d; transition: transform 0.5s; } .bsb-overlay-hover > .aspect-ratio-content > a:after { background-color: rgba( var(--bsb-overlay-hover-bg-color), var(--bsb-overlay-hover-opacity) ); content: ""; cursor: pointer !important; display: block; z-index: 0; } .bsb-overlay-hover > .aspect-ratio-content > a:after, .bsb-overlay-hover > figcaption { bottom: 0; left: 0; opacity: 0; position: absolute; right: 0; top: 0; } .bsb-overlay-hover > figcaption { align-items: center; display: flex; flex-direction: column; justify-content: center; pointer-events: none; z-index: 1; } .bsb-overlay-hover > figcaption > * { opacity: 0; } .bsb-overlay-hover:hover > .aspect-ratio-content > a > img.bsb-hover-scale-up { --bsb-scale-hover: 1.2; transform: scale3d( var(--bsb-scale-hover), var(--bsb-scale-hover), var(--bsb-scale-hover) ); } .bsb-overlay-hover:hover > .aspect-ratio-content > a:after { opacity: 1; transition: opacity 0.15s linear; } .bsb-overlay-hover:hover > figcaption { opacity: 1; transition: opacity 0.15s linear 0.1s; } .bsb-overlay-hover:hover > figcaption > .bsb-hover-fadeInLeft { --bsb-animation-duration: 500ms; animation-duration: var(--bsb-animation-duration); animation-fill-mode: both; animation-name: bsb-fadeInLeft; } .bsb-overlay-hover:hover > figcaption > .bsb-hover-fadeInRight { --bsb-animation-duration: 500ms; animation-duration: var(--bsb-animation-duration); animation-fill-mode: both; animation-name: bsb-fadeInRight; } .swiper-card-post-title-overlay { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px; margin: 0px; background-color: rgba( var(--bsb-overlay-hover-bg-color), var(--bsb-overlay-hover-opacity) ); } .swiper-video-duration, .swiper-video-views { position: absolute; bottom: 0; padding: 4px 8px; font-size: 12px; line-height: 12px; } .swiper-video-duration { left: 0; } .swiper-video-views { right: 0; } .swiper-button-next { position: absolute; top: 50%; width: calc(var(--swiper-navigation-size) / 44 * 27); height: var(--swiper-navigation-size); margin-top: calc(0px - (var(--swiper-navigation-size) / 2)); z-index: 10; cursor: pointer; display: flex; align-items: center; justify-content: center; color: var(--swiper-navigation-color, var(--swiper-theme-color)); } .swiper-button-next:after { font-family: swiper-icons; font-size: var(--swiper-navigation-size); text-transform: none !important; letter-spacing: 0; text-transform: none; font-variant: initial; line-height: 1; } .swiper-button-next { right: 10px; left: auto; } .swiper-button-next:after { content: "next"; } .swiper-button { width: 1.875rem; height: 1.875rem; text-align: center; line-height: 1.875rem; color: var(--bs-white); background: rgba(0, 0, 0, 0); -webkit-border-radius: 50%; border-radius: 50%; border: 0.0625em solid var(--bs-white); z-index: 1; -webkit-transition: all 0.3s ease-in-out; -o-transition: all 0.3s ease-in-out; transition: all 0.3s ease-in-out; font-size: 1em; } .swiper-button::after { font-size: 0.625rem; color: var(--bs-white); } .swiper-button.swiper-button-next { right: 1em; } .swiper-button:hover { background: var(--bs-danger); border: 0.0625em solid var(--bs-danger); } .swiper-button-next { top: 50%; } @media (max-width: 767px) { .swiper-button { width: 1.5rem; height: 1.5rem; line-height: 1.5rem; } .swiper-button.swiper-button-next { right: 0.4687rem; } .swiper-button::after { font-size: 0.6875rem; } }