.dtbread2 .dtbreadtop { position: relative; } .dtbread2 .dtbreadtop .subBanner { padding-bottom: 20%; position: relative; } .dtbread2 .dtbreadtop .subBanner img { transition: all 0.5s ease-in-out; max-width: none; position: absolute; top: 50%; left: 50%; width: 100%; height: 100%; transform: translate(-50%, -50%); -webkit-transition: .3s; -o-transition: .3s; -moz-transition: .3s; transition: .3s; -webkit-transform: translate(-50%, -50%); -moz-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); -o-transform: translate(-50%, -50%); object-fit: cover; width: auto; } .dtbread2 .dtbreadtop .subBanner img:hover { /* transform: none; */ opacity: 1; } .dtbread2 .dtbreadtop .subBanner::after { content: ""; display: block; width: 100%; height: 159px; position: absolute; bottom: 0px; background: linear-gradient(0deg, rgba(0, 0, 0, 0.5) 0%, transparent 100%); } @media screen and (max-width: 997px) { .dtbread2 .dtbreadtop .subBanner::after { height: 60px; } } @media screen and (max-width:767px) { .dtbread2 .dtbreadtop .subBanner::after { height: 30px; } } @media screen and (max-width: 479px) { .dtbread2 .dtbreadtop .subBanner::after { height: 30px; } } .dtbread2 .dtbreadtop .gp-container { position: absolute; bottom: 0px; left: 50%; transform: translateX(-50%); } .dtbread2 .dtbreadtop .gp-container .channel { display: flex; align-items: baseline; margin-bottom: 15px; justify-content: space-between; } @media screen and (max-width: 997px) { .dtbread2 .dtbreadtop .gp-container .channel .channelName { font-size: 26px; } } @media screen and (max-width:767px) { .dtbread2 .dtbreadtop .gp-container .channel .channelName { font-size: 22px; } } @media screen and (max-width: 479px) { .dtbread2 .dtbreadtop .gp-container .channel .channelName { font-size: 18px; } } .dtbread2 .dtbreadtop .gp-container .channelPath { margin-left: 20px; position: absolute; right: 0; bottom: 15px; } .dtbread2 .dtbreadtop .gp-container .channelPath a:hover { color: #4e2a84; } @media screen and (max-width: 997px) { .dtbread2 .dtbreadtop .gp-container .channelPath a { color: #333333 !important; } } .dtbread2 .dtbreadtop .gp-container .channelPath span { padding-left: 7px; padding-right: 2px; } @media screen and (max-width: 997px) { .dtbread2 .dtbreadtop .gp-container .channelPath { display: none; } .dtbread2 .dtbreadtop .gp-container { left: 0; transform: translateX(0); } } .dtbread2 .channelPath2 { display: none; text-align: right; margin-top: 15px; } @media screen and (max-width: 997px) { .dtbread2 .channelPath2 { display: block; color: #333333 !important; margin-right: 2vw; } } .dtbread2 .channelPath2 a:hover { color: #4e2a84; } @media screen and (max-width: 997px) { .dtbread2 .channelPath2 a { color: #333333 !important; } } .dtbread2 .channelPath2 span { padding-left: 7px; padding-right: 2px; color: #333333 !important; }