@keyframes PhotoView__fade { from { opacity: 0; } to { opacity: 1; } } .PhotoView { &-PhotoSlider__clean { .PhotoView-PhotoSlider__BannerWrap, .PhotoView-PhotoSlider__ArrowLeft, .PhotoView-PhotoSlider__ArrowRight, .PhotoView-PhotoSlider__FooterWrap { opacity: 0; &:hover { opacity: 0; } } } &-PhotoSlider__Backdrop { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); z-index: -1; } &-PhotoSlider__fadeIn { opacity: 0; animation: PhotoView__fade 0.4s linear both; } &-PhotoSlider__fadeOut { opacity: 0; animation: PhotoView__fade 0.4s linear both reverse; } &-PhotoSlider__BannerWrap { position: absolute; left: 0; top: 0; display: flex; justify-content: space-between; align-items: center; width: 100%; height: 44px; color: white; background-color: rgba(0, 0, 0, 0.5); transition: opacity 0.2s ease-out; z-index: 20; &:hover { opacity: 1; } } &-PhotoSlider__Counter { padding: 0 10px; font-size: 14px; opacity: 0.75; } &-PhotoSlider__BannerRight { height: 100%; } &-PhotoSlider__Close { box-sizing: border-box; padding: 10px; opacity: 0.75; cursor: pointer; transition: opacity 0.2s linear; &:hover { opacity: 1; } } &-PhotoSlider__ArrowLeft, &-PhotoSlider__ArrowRight { position: absolute; top: 0; bottom: 0; display: flex; justify-content: center; align-items: center; width: 70px; height: 100px; margin: auto; opacity: 0.75; z-index: 20; cursor: pointer; user-select: none; transition: opacity 0.2s linear; &:hover { opacity: 1; } svg { box-sizing: content-box; padding: 10px; width: 24px; height: 24px; fill: white; background: rgba(0, 0, 0, 0.3); } } &-PhotoSlider__ArrowLeft { left: 0; } &-PhotoSlider__ArrowRight { right: 0; } &-PhotoSlider__FooterWrap { box-sizing: border-box; position: absolute; left: 0; bottom: 0; padding: 10px; width: 100%; min-height: 44px; line-height: 1.5; font-size: 14px; color: #ccc; background-color: rgba(0, 0, 0, 0.5); text-align: justify; transition: opacity 0.2s ease-out; z-index: 20; } }