.strain-gallery { position: relative; }
.strain-gallery > img[hidden],
.strain-gallery__controls[hidden] { display: none; }
.strain-gallery > img[data-gallery-context] { padding: 0; }
.strain-gallery-link { display: block; color: inherit; text-decoration: none; }
.strain-gallery__image-link { position: absolute; inset: 0; }

.strain-gallery > img[data-gallery-extra] { padding: 12px 14px 24px; }
.strain-gallery__controls {
    position: absolute;
    inset: 0;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: #1f3a33;
    pointer-events: none;
}
.strain-gallery__controls button {
    position: relative;
    isolation: isolate;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    color: inherit;
    cursor: pointer;
    background: transparent;
    pointer-events: auto;
    font-size: 0;
}
.strain-gallery__controls button::after {
    position: absolute;
    top: 50%;
    left: 50%;
    box-sizing: border-box;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-right: 2px solid currentColor;
    transform: translate(calc(-50% - 1px), -50%) rotate(45deg);
    content: '';
}
.strain-gallery__controls button[data-step="-1"]::after {
    transform: translate(calc(-50% + 1px), -50%) rotate(225deg);
}
.strain-gallery__controls button::before {
    position: absolute;
    inset: 8px;
    z-index: -1;
    border-radius: 50%;
    background: #fffffff0;
    box-shadow: 0 1px 5px #203b3326;
    content: '';
}
.strain-gallery__controls button:hover::before { background: #d2e1dc; }
.strain-gallery__controls output {
    position: absolute;
    width: 1px;
    min-width: 0;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}
.strain-gallery__dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 5px;
    padding: 4px 6px;
    border-radius: 12px;
    background: #ffffffe8;
}
.strain-gallery__dots span {
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: #849990;
}
.strain-gallery__dots .is-current { background: #203b33; }
