.properm-article h1 {
    margin-top: 9px;
    line-height: 1.25;
}

.properm-article h2 {
    margin: 32px 0 16px;
    font-size: 24px;
    line-height: 1.3;
    scroll-margin-top: 24px;
}

.properm-article p,
.properm-article blockquote {
    margin: 0 0 20px;
    font-size: 16px;
    line-height: 1.65;
}

.properm-article blockquote {
    padding: 16px 20px;
    border-left: 4px solid #183c8e;
    background: #f3f5f9;
}

.properm-article .properm-article__subtitle,
.properm-article .properm-article__lead {
    font-size: 18px;
    font-weight: bold;
}

.properm-article .properm-article__meta,
.properm-article .properm-article__source {
    color: #666;
    font-size: 14px;
}

.properm-article__toc {
    margin: 24px 0;
    padding: 16px 24px;
    background: #f3f5f9;
}

.properm-article__toc ul {
    margin: 0;
    padding-left: 18px;
}

.properm-article__toc li {
    margin: 8px 0;
    line-height: 1.5;
}

.properm-article__photo,
.properm-gallery {
    margin: 24px 0 32px;
}

.properm-article__photo img,
.properm-gallery img {
    display: block;
    width: 100%;
    height: auto;
}

.properm-gallery__stage {
    position: relative;
}

.properm-gallery__slide {
    display: block;
    margin-bottom: 12px;
}

.properm-gallery__controls,
.properm-gallery__thumbs {
    display: none;
}

.properm-gallery.is-ready .properm-gallery__slide {
    margin-bottom: 0;
}

.properm-gallery__slide[hidden] {
    display: none;
}

.properm-gallery.is-ready .properm-gallery__controls {
    position: absolute;
    right: 12px;
    bottom: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 4px;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
}

.properm-gallery__controls button {
    width: 40px;
    height: 40px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
}

.properm-gallery.is-ready .properm-gallery__thumbs {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.properm-gallery__thumb {
    flex: 1;
    min-width: 0;
    padding: 3px;
    border: 2px solid transparent;
    background: transparent;
    cursor: pointer;
}

.properm-gallery__thumb[aria-pressed="true"] {
    border-color: #183c8e;
}

.properm-gallery button:focus-visible,
.properm-gallery a:focus-visible {
    outline: 3px solid #ffcc01;
    outline-offset: 2px;
}
