.sv-article-format,
.sv-article-byline {
    margin-block: 0;
}

.sv-article-relations__list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-article-gallery__list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
    gap: 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.sv-article-gallery__figure {
    margin: 0;
}

.sv-article-gallery__link,
.sv-article-gallery__image {
    display: block;
}

.sv-article-gallery__image {
    width: 100%;
    height: auto;
}

.sv-article-gallery__figcaption {
    margin-top: 0.5rem;
}

.sv-article-gallery__caption,
.sv-article-gallery__credit {
    display: block;
}

.sv-article-gallery__credit {
    font-size: 0.875em;
}

html.sv-gallery-open { overflow: hidden; }
.sv-gallery-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    border: 0;
    background: #161616;
    color: #fff;
}
.sv-gallery-viewer::backdrop { background: #161616; }
.sv-gallery-viewer__panel {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: 12px;
    box-sizing: border-box;
    overflow: auto;
}
.sv-gallery-viewer__figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    margin: auto;
    max-width: 100%;
    min-width: 0;
}
.sv-gallery-viewer__top {
    display: flex;
    justify-content: flex-end;
    width: 100%;
    padding-bottom: 4px;
}
.sv-gallery-viewer__image {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: calc(100vh - 190px);
    max-height: calc(100dvh - 190px);
    object-fit: contain;
}
.sv-gallery-viewer__caption {
    margin: 0;
    padding: 3px 8px 0;
    background: #161616;
    color: #a6a6a6;
    font-size: 12px;
    font-weight: 400;
    line-height: 1.4;
    text-align: center;
    overflow-wrap: anywhere;
    max-width: 100%;
}
.sv-gallery-viewer__description,
.sv-gallery-viewer__credit { display: block; }
.sv-gallery-viewer__navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 4px;
}
.sv-gallery-viewer button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 4px;
    background: transparent;
    color: #a6a6a6;
    font: 400 32px/1 sans-serif;
    cursor: pointer;
}
.sv-gallery-viewer button:hover { color: #ddd; }
.sv-gallery-viewer button:focus-visible { outline: 2px solid #a6a6a6; outline-offset: 2px; }
.sv-gallery-viewer__status {
    color: #a6a6a6;
    text-align: center;
    font-size: 12px;
    line-height: 1.4;
    min-width: 48px;
}
.sv-gallery-viewer [hidden] { display: none; }
@media (max-width: 991px) {
    .sv-gallery-viewer__caption { font-size: 11px; }
}
@media (max-width: 479px) {
    .sv-gallery-viewer__panel { padding: 8px; }
    .sv-gallery-viewer__caption { font-size: 10px; }
}

.sv-article-main-image,
.sv-article-main-image__image {
    display: block;
    width: 100%;
}

.sv-article-main-image__image {
    height: auto;
    aspect-ratio: auto;
}

.sv-article-image-credit--mobile {
    display: none;
}

@media (max-width: 479px) {
    .sv-article-image-credit--desktop { display: none; }
    .sv-article-image-credit--mobile { display: inline; }
}


.sv-article-gallery__title {
    font-size: 21px;
    line-height: 1.2;
    font-weight: 600;
    text-transform: none;
}
