.rpinas-media-player {
    display: block;
    width: min(100%, 54rem);
    margin: 1rem 0;
}

.rpinas-play-modes {
    max-width: 54rem;
    margin: 1rem 0;
    padding: 1rem;
    border: 1px solid #ced4da;
    border-radius: 0.5rem;
    background: #f8f9fa;
}

.rpinas-play-mode-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.rpinas-play-mode-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    min-height: 3rem;
    padding: 0.65rem 0.9rem;
    border: 2px solid #7b1f2a;
    border-radius: 0.5rem;
    color: #7b1f2a;
    background: #fff;
    font-weight: 700;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: rgba(123, 31, 42, 0.2);
}

.rpinas-play-mode-option:has(input:checked) {
    color: #fff;
    background: #7b1f2a;
}

.rpinas-play-mode-option input {
    width: 1.35rem;
    height: 1.35rem;
    margin: 0;
    accent-color: #7b1f2a;
    flex: 0 0 auto;
}

@media (max-width: 575.98px) {
    .rpinas-play-mode-actions,
    .rpinas-play-mode-option {
        width: 100%;
    }
}

.rpinas-video-player {
    max-height: 70vh;
    background: #000;
}

.rpinas-full-image {
    display: block;
    max-width: 100%;
    height: auto;
}

.rpinas-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
    gap: 1rem;
    padding: 0;
    list-style: none;
}

.rpinas-gallery-item {
    border: 1px solid currentColor;
    border-radius: 0.35rem;
    padding: 1rem;
}

.rpinas-thumbnail {
    display: block;
    max-width: 20rem;
    width: 100%;
    height: auto;
}
