.media-slideshow-frame { height: 360px; background-color: gray; width: 100%; position: relative; } .media-slideshow-photo { background-color: gray; object-fit: cover; width: 100%; height: 100%; display: none; } .media-slideshow-video { background-color: gray; width: 100%; height: 100%; display: none; object-fit: cover; } .media-slideshow-arrow-left { cursor: pointer; position: absolute; top: 50%; width: auto; margin-top: -22px; padding: 16px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; transition: 0.6s ease; } .media-slideshow-arrow-right { cursor: pointer; position: absolute; top: 50%; width: auto; margin-top: -22px; padding: 16px; color: white; font-weight: bold; font-size: 18px; transition: 0.6s ease; border-radius: 0 3px 3px 0; user-select: none; right: 0; border-radius: 3px 0 0 3px; transition: 0.6s ease; } .media-slideshow-arrow-left:hover, .media-slideshow-arrow-right:hover { background-color: rgba(0,0,0,0.8); } /* Number text (1/3 etc) */ .media-slideshow-number-text { color: #f2f2f2; font-size: 12px; padding: 8px 12px; position: absolute; top: 0; background-color: rgba(0,0,0,0.8); border-radius: 2px; } /* Fading animation */ .fade { animation-name: fade; animation-duration: 1.5s; } @keyframes fade { from {opacity: .4} to {opacity: 1} }