/* Image sliders in posts: the [html] .sim-slider of the source and our [slider][slide=…] (rift_pilot.php), driven by
   rift-post-tools.js. Values: Quadro style.css «Слайдер» (Структура style.css 4714–4827), the same in every design of the
   source, so in every design here. Was in foundation.css for basic and sylv only (2026-11-12). */
.sim-slider {
    position: relative;
    margin: auto;
    overflow: visible;
    width: 900px !important;
    /* Not in the source: a phone or a narrow post column takes the slider whole, its pictures scaled with it. */
    max-width: 100%;
    /* The source's post text had line-height normal (arrows 54px tall, the dots' row 22px); ours is 1.5. */
    line-height: normal;
}

.sim-slider {
    margin-left: auto;
    margin-right: auto;
    padding-bottom: 5px;
}

.sim-slider-list {
    margin: 0;
    padding: 0;
    list-style-type: none;
    position: relative;
}

.post_body .sim-slider ul li {
    list-style: none !important;
}

/* The owner's script (71275) set each slide absolute at 0 0, full width, 600ms opacity, the shown one above the rest and
   the hidden ones out of the pointer's way: those inline values were what the source showed, so they are the rule here. */
.sim-slider-element {
    width: 100%;
    transition: opacity .6s;
    opacity: 0;
    position: absolute;
    z-index: 1;
    left: 0;
    top: 0;
    display: block;
    pointer-events: none;
}

.sim-slider-element.active {
    opacity: 1;
    z-index: 2;
    pointer-events: auto;
}

li.sim-slider-element {
    text-align: center;
    font-family: Mason;
    font-size: 28px;
    font-weight: 900;
    line-height: 36px;
}

/* Navigation item styles */

div.sim-slider-arrow-left, div.sim-slider-arrow-right, div.sim-slider-arrow-left2, div.sim-slider-arrow-right2 {
    top: 40%;
    position: absolute;
    color: #726e6a;
    font-size: 28px !important;
    cursor: pointer;
    border-radius: 5px;
    backdrop-filter: blur(8px);
    background: #ffffff57;
    padding: 10px 5px;
    transition: .3s ease-in-out;
    font-family: "Playfair", serif !important;
    font-weight: 900;
    opacity: 0.68;
    z-index: 4;
}

div.sim-slider-arrow-left, div.sim-slider-arrow-left2 {
    left: -20px;
}

div.sim-slider-arrow-left {
    left: -11px;
}

div.sim-slider-arrow-right, div.sim-slider-arrow-right2 {
    right: -20px;
    display: block;
}

/* Not in the source: some imported posts (viewtopic.php?id=3312#p702332) bring the arrows empty, which showed there as
   a bare 10×20 blur pill; the owner wants them visible, so an empty arrow gets the glyph the -left2/-right2 ones carry. */
div:is(.sim-slider-arrow-left, .sim-slider-arrow-left2):empty::before {
    content: "⟨";
}
div:is(.sim-slider-arrow-right, .sim-slider-arrow-right2):empty::before {
    content: "⟩";
}

div.sim-slider-arrow-left:hover,div.sim-slider-arrow-right:hover, div.sim-slider-arrow-left2:hover, div.sim-slider-arrow-right2:hover {
    opacity: 1.0;
}

div.sim-slider-dots {
    width: 100%;
    height: auto;
    position: absolute;
    left: 0;
    bottom: 0px;
    z-index: 3;
    text-align: center;
}

span.sim-dot {
    width: 10px;
    height: 10px;
    margin: 5px 7px;
    padding: 0;
    display: inline-block;
    border-radius: 5px;
    cursor: pointer;
    background: rgb(125 126 126);
    opacity: .4;
    transition: transform .2s ease, opacity .2s ease;
}

.sim-dot.active, span.sim-dot:hover {
    opacity: 1;
    transform: scale(1.2);
}

/* The owner's script: one slide has nothing to switch to. */
.sim-slider.is-single-slide > :is(.sim-slider-arrow-left, .sim-slider-arrow-right, .sim-slider-arrow-left2, .sim-slider-arrow-right2, .sim-slider-dots) {
    display: none;
}

/* [slider][slide=…]: the source's slides had a spacer picture and a min-height (312px under 296px of slide in
   viewtopic.php?id=13#p64) to keep the dots under the pictures; here the script sizes the list to the tallest slide
   and the same 16px stay under it. A slide's pictures stand in one row, shrunk alike when they do not fit. */
.rift-slider .sim-slider-list {
    margin-bottom: 16px;
}
.rift-slide-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.rift-slide-row > * {
    flex: 0 1 auto;
    min-width: 0;
}
