@-webkit-keyframes shuffle {
0% {
transform: rotate(0) translateX(0) scale(1);
}
50% {
transform: rotate(5deg) translateX(105%) scale(0.96);
}
100% {
transform: rotate(0) translateX(0);
}
}
@keyframes shuffle {
0% {
transform: rotate(0) translateX(0) scale(1);
}
50% {
transform: rotate(5deg) translateX(105%) scale(0.96);
}
100% {
transform: rotate(0) translateX(0);
}
}
.dibc-news-articles-card-wrapper {
width: 100%;
position: relative;
}
.dibc-news-article-archive-main-container a,
.dibc-news-article-archive-main-container h1,
.dibc-news-article-archive-main-container
h2
.dibc-news-article-single-main-container
a,
.dibc-news-article-single-main-container h1 {
color: #dc914f;
}
.dibc-news-article-archive-main-container a.banner-book-btn {
color:#fff;
}
.dibc-news-article-single-main-container .entry-content {
padding: 0 10%;
}
.dibc-news-article-single-main-container h1 {
font-size: 36px;
}
.dibc-news-article-single-main-container h2 {
font-size: 28px;
margin-bottom: 8px;
}
.dibc-news-article-single-main-container h3 {
font-size: 20px;
margin-bottom: 8px;
text-transform: none;
line-height: 1.4;
}
.dibc-news-article-list {
width: 100%;
max-height: 100%;
height: 600px;
margin: 0;
padding: 40px;
list-style: none;
position: relative;
}
.dibc-news-article {
display: flex;
max-width: 100%;
width: 50%;
max-height: 100%;
height: 520px;
background: #efeaea;
border: 1px solid #ccc;
border-radius: 2px;
position: relative;
z-index: 1;
transition: all 0.5s ease;
}
.dibc-news-article-list li:nth-child(-n+3) .dibc-news-article {
box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}
.dibc-news-article img {
height: 100%;
width: 100%;
object-fit: cover;
object-position: top;
}
.dibc-news-article::before,
.dibc-news-article::after {
content: "";
position: absolute;
bottom: 10px;
width: 40%;
height: 10px;
z-index: -2;
transition: all 0.3s ease-in-out;
}
.dibc-news-article-list li:nth-last-child(-n+3) .dibc-news-article::before,
.dibc-news-article-list li:nth-last-child(-n+3) .dibc-news-article::after {
box-shadow: 0 5px 14px rgba(0, 0, 0, 0.7);
}
.dibc-news-article::before {
left: 15px;
transform: skew(-5deg) rotate(-5deg);
}
.dibc-news-article::after {
right: 15px;
transform: skew(5deg) rotate(5deg);
}
.dibc-news-article:hover::before,
.dibc-news-article:hover::after {
box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.dibc-news-article:hover {
box-shadow: 0 0 15px rgba(0, 0, 0, 1);
}
.is-animated .dibc-news-article {
box-shadow: 0 0 25px rgba(0, 0, 0, 0.4);
}
.is-animated .dibc-news-article::before,
.is-animated .dibc-news-article::after {
box-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.dibc-news-article:hover::before {
left: 5px;
}
.dibc-news-article:hover::after {
right: 5px;
}
.dibc-news-article-info {
width: 40%;
height: 520px;
position: absolute;
left: 55%;
top: 0;
overflow: hidden;
opacity: 0;
transition: all 1s ease-in-out;
align-content: space-around;
}
.dibc-news-article-list li:last-child .dibc-news-article-info {
opacity: 1;
}
.dibc-news-article-info .entry-meta img,
.dibc-news-article-single-main-container .dibc-article-header img {
height: 50px;
width: auto;
margin-bottom: 8px;
}
.dibc-news-article-info h2 {
font-size: 30px;
margin-bottom: 8px;
}
.dibc-news-article-list__item {
position: absolute;
width: calc(100% - 80px);
height: 100%;
}
.dibc-news-article-list__item .dibc-news-article {
position: absolute;
-webkit-animation: none;
animation: none;
-webkit-animation-fill-mode: forwards;
animation-fill-mode: forwards;
margin-top: 0;
}
.is-animated.dibc-news-article-list__item .dibc-news-article {
transition: z-index 0s ease-in-out 0.5s;
animation-name: shuffle;
animation-duration: 1s;
animation-timing-function: ease-in-out; animation-iteration-count: 1;
animation-direction: normal;
}
.dibc-news-article-list__item:nth-child(1) .dibc-news-article {
transform: rotate(3deg);
}
.dibc-news-article-list__item:nth-child(2) .dibc-news-article {
transform: rotate(-3deg);
}
.dibc-news-article-list__item:nth-child(3) .dibc-news-article {
transform: rotate(5deg);
}
.dibc-news-article-list__item:last-child .dibc-news-article,
.dibc-news-article-list__item:nth-last-child(2) .dibc-news-article {
transform: rotate(0deg);
}
.dibc-news-article-single-main-container .header-banner,
.dibc-news-article-archive-main-container .header-banner {
padding: 150px 0 50px;
}
.dibc-news-article-button-wrapper {
position: absolute;
top: 50%;
display: flex;
justify-content: space-between;
width: 100%;
}
.dibc-news-article-btn-prev,
.dibc-news-article-btn-next {
padding: 25px 10px;
}
.dibc-news-article-btn-prev {
margin-left: -20px;
}
.dibc-news-article-btn-next {
margin-right: -20px;
}
.dibc-news-article-btn-prev:before,
.dibc-news-article-btn-prev:after,
.dibc-news-article-btn-next:before,
.dibc-news-article-btn-next:after {
display: block;
content: "";
height: 2px;
width: 20px;
background: #ccc;
transform-origin: 100% 50%;
transform: rotate(45deg);
}
.dibc-news-article-btn-prev:before,
.dibc-news-article-btn-prev:after {
transform-origin: 0 0;
}
.dibc-news-article-btn-prev:after {
margin-top: -3px;
}
.dibc-news-article-btn-next:after,
.dibc-news-article-btn-prev:after {
transform: rotate(-45deg);
}
.dibc-news-article a {
display: block;
width: 100%;
} .dibc-news-article-single-main-container {
text-align: center;
}
.dibc-news-article-single-main-container .dibc-article-header {
padding-top: 20px;
}
.dibc-news-article-single-main-container h1 {
margin: 20px 0 10px;
}
#dibc-article-screenshot img {
max-width: 100%;
padding: 20px 0;
}
@media screen and (max-width: 720px) {
.dibc-news-article {
width: 100%;
}
.dibc-news-article-info {
width: 100%;
left: 0;
top: 520px;
}
.dibc-news-article-list {
height: 1200px;
}
.dibc-news-article-button-wrapper {
top: 25%;
}
.dibc-news-article-button-wrapper {
}
.dibc-news-article-single-main-container .entry-content {
padding: 0 10%;
}
.dibc-news-article-single-main-container h1 {
font-size: 30px;
}
.dibc-news-article-single-main-container h2 {
font-size: 24px;
margin-bottom: 8px;
}
.dibc-news-article-single-main-container h3 {
font-size: 18px;
margin-bottom: 8px;
}
.dibc-news-article-single-main-container p {
line-height: 1.5;
}
}