figure.slide {
/* Position slides absolutely to allow overlapping */
+ text-align: center;
position: absolute;
top: 0;
left: 0;
+ width: 100%;
margin: 0;
/* Slides start at 0 opacity */
opacity: 0;
-moz-transition: opacity 1s ease;
}
-figure.slide *,
-div.slideshow div#controls {
- width: 100%;
-}
-
-figure.slide figcaption {
- height: var(--sl-cap);
- text-align: center;
+figure.slide img {
+ max-width: 100%;
}
top: calc(50% - calc(var(--sl-cap) + var(--sl-dots) + 50px) / 2);
width: auto;
padding: 16px;
- border-radius: 0 3px 3px 0;
}
#state {
border-radius: 3px;
}
+#prev {
+ left: 0;
+ border-radius: 0 3px 3px 0;
+}
+
#next {
/* Position next button on right */
right: 0;
div.slideshow div#controls {
text-align: center;
+ width: 100%;
}
div.slideshow div#controls span {