/**
 * SVVAUL Portal CSS Layer
 * Системный слой для портальных разделов (admission и др.)
 */

.portal-lead {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
}

.portal-section {
    padding: 40px 0;
    margin-bottom: 40px;
    border-bottom: 1px solid #e5e5e5;
}

.svv-home-quick-tasks.portal-section,
.svv-admission-steps.portal-section,
.svv-home-discovery.portal-section {
    padding: 28px;
    border: 1px solid var(--svv-line, #dbe3eb);
    border-radius: 8px;
    background: var(--svv-surface, #fff);
    box-shadow: 0 8px 24px rgb(16 32 56 / 4%);
}

.svv-home-quick-tasks.portal-section {
    padding: 22px 24px;
    background: #fff;
    box-shadow: 0 4px 16px rgb(16 32 56 / 3%);
}

.svv-admission-steps.portal-section {
    border-left: 4px solid var(--svv-blue, #1b4f8a);
    background: #f4f8fc;
}

.svv-admission-steps .svv-home-link-card,
.svv-admission-steps .svv-home-link-card--primary {
    background: #fff;
}

.svv-home-discovery.portal-section {
    padding: 24px;
    background: #fbfcfd;
    box-shadow: none;
}

@media (width <= 900px) {
    .svv-home-quick-tasks.portal-section,
    .svv-admission-steps.portal-section,
    .svv-home-discovery.portal-section {
        padding: 18px;
    }

    .svv-home-quick-tasks .svv-home-grid,
    .svv-admission-steps .svv-home-grid,
    .svv-home-discovery .svv-home-grid {
        grid-template-columns: 1fr;
    }
}

.portal-layout {
    display: flex;
    gap: 24px;
    align-items: flex-start;
}

.portal-layout > .wp-block-column:first-child {
    flex: 0 0 25%;
}

.portal-layout > .wp-block-column:last-child {
    flex: 1 1 0;
    min-width: 0;
}

@media (width <= 900px) {
    .portal-layout {
        flex-direction: column;
    }

    .portal-layout > .wp-block-column:first-child,
    .portal-layout > .wp-block-column:last-child {
        flex-basis: auto !important;
        width: 100%;
    }
}

.portal-button {
    background: transparent !important;
    padding: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
}

.portal-button > .wp-block-button__link.wp-element-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: #1f4fa3;
    color: #ffffff;
    text-decoration: none;
    border-radius: 999px;
    font-weight: 500;
    border: none;
    outline: none;
    box-shadow: none;
}

.portal-button > .wp-block-button__link.wp-element-button:hover {
    background-color: #163c7a;
    border: none;
    box-shadow: none;
}

.portal-button > .wp-block-button__link.wp-element-button:focus,
.portal-button > .wp-block-button__link.wp-element-button:focus-visible,
.portal-button:focus-within > .wp-block-button__link.wp-element-button {
    outline: none !important;
    box-shadow: none !important;
}

/* Убираем двойной контур Gutenberg кнопок */

/* Вариант A: portal-button на самой ссылке <a> */
.wp-block-button__link.portal-button {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Вариант B: portal-button на контейнере <div> */
.portal-button .wp-block-button__link {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

/* Убираем контур на фокусе (включая :focus-visible) */
.wp-block-button__link.portal-button:focus,
.wp-block-button__link.portal-button:focus-visible,
.portal-button .wp-block-button__link:focus,
.portal-button .wp-block-button__link:focus-visible {
    outline: none !important;
    box-shadow: none !important;
}

/* portal button for Gutenberg markup (portal-button on wrapper) */
.wp-block-button.portal-button > .wp-block-button__link.wp-element-button {
    background-color: #1f4fa3 !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* remove "black oval" on focus states */
.wp-block-button.portal-button > .wp-block-button__link.wp-element-button:focus,
.wp-block-button.portal-button > .wp-block-button__link.wp-element-button:focus-visible,
.wp-block-button.portal-button:focus-within > .wp-block-button__link.wp-element-button {
    outline: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* keep hover consistent */
.wp-block-button.portal-button > .wp-block-button__link.wp-element-button:hover {
    background-color: #163c7a !important;
    border: none !important;
    box-shadow: none !important;
    filter: none !important;
}

/* ========================================
   Portal Sidebar (Gutenberg Page List)
   ======================================== */

/* A) Карточка сайдбара */
.portal-sidebar {
    border: 1px solid rgb(0 0 0 / 8%);
    border-radius: 12px;
    padding: 14px;
    background: #fff;
}

/* B) Sticky поведение на десктопе */
@media (width >= 901px) {
    .portal-sidebar {
        position: sticky;
        top: calc(24px + var(--wp-admin--admin-bar--height, 0px));
        align-self: flex-start;
    }
}

/* C) Сброс маркеров списка */
.portal-sidebar .wp-block-page-list {
    list-style: none;
    padding-left: 0;
    margin: 0;
}

/* D) Отступы между пунктами */
.portal-sidebar .wp-block-page-list li + li {
    margin-top: 6px;
}

/* E) Стили ссылок */
.portal-sidebar a,
.portal-sidebar .wp-block-pages-list__item__link {
    display: block;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
}

.portal-sidebar__current {
    display: block;
    margin-bottom: 6px;
    padding: 8px 10px;
    border-radius: 10px;
    background: rgb(0 0 0 / 6%);
    font-weight: 600;
    color: #1f4fa3;
}

/* F) Hover */
.portal-sidebar a:hover,
.portal-sidebar .wp-block-pages-list__item__link:hover {
    background: rgb(0 0 0 / 4%);
}

/* G) Active state */
.portal-sidebar .wp-block-page-list .current_page_item > .wp-block-pages-list__item__link,
.portal-sidebar .wp-block-page-list .current_page_item > a,
.portal-sidebar .wp-block-page-list a[aria-current="page"] {
    background: rgb(0 0 0 / 6%);
    font-weight: 600;
}

/* H) Предки текущей страницы */
.portal-sidebar .wp-block-page-list .current_page_parent > .wp-block-pages-list__item__link,
.portal-sidebar .wp-block-page-list .current_page_parent > a,
.portal-sidebar .wp-block-page-list .current_page_ancestor > a,
.portal-sidebar .wp-block-page-list .current_page_ancestor > .wp-block-pages-list__item__link {
    font-weight: 600;
}

@media (width <= 900px) {
    .portal-sidebar {
        position: static;
        padding: 10px;
        margin-bottom: 18px;
    }

    .portal-sidebar .wp-block-page-list {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
        gap: 6px;
    }

    .portal-sidebar .wp-block-page-list li + li {
        margin-top: 0;
    }

    .portal-sidebar a,
    .portal-sidebar .wp-block-pages-list__item__link,
    .portal-sidebar__current {
        padding: 7px 9px;
    }
}

/* ========================================
   Articles Archive (/stati/)
   ======================================== */

.stati-page .entry-title {
    padding-bottom: 14px;
}

.stati-page .portal-layout > .wp-block-column:last-child > p:first-of-type {
    max-width: 760px;
    margin: 0 0 22px;
    color: #4b5563;
    font-size: 18px;
    line-height: 1.65;
}

.stati-index-page .portal-layout > .wp-block-column:last-child > ul {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    padding: 0;
    margin: 20px 0 0;
    list-style: none;
}

.stati-index-page .portal-layout > .wp-block-column:last-child > ul li {
    margin: 0;
}

.stati-index-page .portal-layout > .wp-block-column:last-child > ul a {
    position: relative;
    display: flex;
    min-height: 74px;
    align-items: center;
    padding: 16px 42px 16px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    color: #111827;
    font-weight: 700;
    line-height: 1.35;
    text-decoration: none;
    box-shadow: 0 12px 24px rgb(15 23 42 / 4%);
}

.stati-index-page .portal-layout > .wp-block-column:last-child > ul a::after {
    position: absolute;
    right: 16px;
    color: #1f4fa3;
    content: "→";
    font-size: 20px;
    line-height: 1;
}

.stati-index-page .portal-layout > .wp-block-column:last-child > ul a:hover,
.stati-index-page .portal-layout > .wp-block-column:last-child > ul a:focus-visible {
    border-color: #bfdbfe;
    color: #1f4fa3;
    box-shadow: 0 16px 30px rgb(31 79 163 / 10%);
}

.stati-article-page .portal-layout > .wp-block-column:last-child > .wp-block-html,
.stati-article-page .portal-layout > .wp-block-column:last-child > div {
    overflow-x: auto;
}

.stati-article-page .portal-layout > .wp-block-column:last-child table {
    display: table;
    width: 100% !important;
    max-width: 100%;
    margin: 20px 0;
    border-collapse: collapse;
    background: #fff;
    font-size: 14px;
    line-height: 1.45;
}

.stati-article-page .portal-layout > .wp-block-column:last-child td,
.stati-article-page .portal-layout > .wp-block-column:last-child th {
    padding: 8px 10px;
    border: 1px solid #d1d5db;
    vertical-align: top;
}

.stati-article-page .portal-layout > .wp-block-column:last-child td[bgcolor="#000080"],
.stati-article-page .portal-layout > .wp-block-column:last-child th[bgcolor="#000080"] {
    background: #1f4fa3 !important;
    color: #fff !important;
}

.stati-article-page .portal-layout > .wp-block-column:last-child td[bgcolor="#c0c0c0"],
.stati-article-page .portal-layout > .wp-block-column:last-child th[bgcolor="#c0c0c0"] {
    background: #f3f4f6 !important;
}

.stati-article-page .portal-layout > .wp-block-column:last-child img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
}

.stati-article-page .portal-layout > .wp-block-column:last-child p {
    line-height: 1.7;
}

@media (width <= 900px) {
    .stati-index-page .portal-layout > .wp-block-column:last-child > ul {
        grid-template-columns: 1fr;
    }

    .stati-index-page .portal-layout > .wp-block-column:last-child > ul a {
        min-height: 0;
    }

    .stati-article-page .portal-layout > .wp-block-column:last-child table {
        min-width: 640px;
    }
}

/* ========================================
   Photo Gallery (/fotogalereya/)
   ======================================== */

.svv-photoarchive-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0 28px;
}

.svv-photoarchive-card {
    position: relative;
    display: block;
    min-height: 142px;
    padding: 18px 52px 18px 18px;
    border: 1px solid var(--svv-line, #dbe3eb);
    border-radius: 8px;
    background: #fff;
    color: #12243d;
    text-decoration: none;
    box-shadow: 0 8px 20px rgb(16 32 56 / 4%);
}

.svv-photoarchive-card:hover,
.svv-photoarchive-card:focus-visible {
    border-color: #9fb3ca;
    background: #f4f8fc;
    opacity: 1;
}

.svv-photoarchive-card::after {
    position: absolute;
    right: 18px;
    bottom: 18px;
    width: 24px;
    height: 24px;
    border: 1px solid #c8d5e2;
    border-radius: 50%;
    background: #fff;
    content: "";
}

.svv-photoarchive-card h2 {
    margin: 8px 0 7px;
    color: inherit;
    font-size: 18px;
    line-height: 1.28;
}

.svv-photoarchive-card p {
    margin: 0;
    color: #5f6b7a;
    font-size: 14px;
    line-height: 1.48;
}

.svv-photoarchive-card__count {
    display: inline-flex;
    color: var(--svv-green, #4d6b36);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.svv-photoarchive-empty {
    padding: 14px 16px;
    border: 1px solid #e4dac1;
    border-radius: 8px;
    background: #fff9ea;
    color: #5f4a1e;
}

.svv-photoarchive-original-map {
    margin: 18px 0;
    padding: 18px;
    border: 1px solid #d8e3ee;
    border-left: 4px solid var(--svv-blue, #1b4f8a);
    border-radius: 8px;
    background: #f4f8fc;
}

.svv-photoarchive-original-map h2 {
    margin: 0 0 10px;
    color: #12243d;
    font-size: 18px;
    line-height: 1.3;
}

.svv-photoarchive-original-map ul {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.svv-photoarchive-original-map li {
    padding: 6px 9px;
    border: 1px solid #cfdbe8;
    border-radius: 6px;
    background: #fff;
    color: #31445d;
    font-size: 13px;
    font-weight: 700;
}

.svv-photoarchive-page .wp-block-gallery {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    align-items: start;
}

.svv-photoarchive-page .wp-block-gallery.has-nested-images figure.wp-block-image {
    display: flex !important;
    flex-direction: column;
    gap: 6px;
    height: auto !important;
    overflow: visible;
    width: 100% !important;
    margin: 0 !important;
}

.svv-photoarchive-page .wp-block-gallery.has-nested-images figure.wp-block-image::before {
    content: none !important;
}

.svv-photoarchive-page .wp-block-gallery.has-nested-images figure.wp-block-image a,
.svv-photoarchive-page .wp-block-gallery.has-nested-images figure.wp-block-image .wp-lightbox-container {
    display: block;
    flex: 0 0 auto !important;
    width: 100%;
    height: auto !important;
}

.svv-photoarchive-page .wp-block-gallery img {
    display: block;
    flex: 0 0 auto !important;
    width: 100%;
    height: auto;
    min-height: 0 !important;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
}

.svv-photoarchive-page .wp-lightbox-overlay .lightbox-image-container img,
.svv-photoarchive-page .wp-lightbox-overlay img[class*="wp-image-"] {
    width: auto !important;
    height: auto !important;
    max-width: calc(100vw - 48px) !important;
    max-height: calc(100vh - 148px) !important;
    aspect-ratio: auto !important;
    object-fit: contain !important;
}

.svv-photoarchive-page .wp-block-image figcaption {
    position: static !important;
    inset: auto !important;
    overflow: visible !important;
    max-height: none !important;
    flex: 0 0 auto !important;
    margin: 0;
    padding: 0;
    background: transparent !important;
    background-image: none !important;
    color: #5f6b7a !important;
    font-size: 12px;
    line-height: 1.35;
    text-shadow: none;
}

body.svv-photoarchive-custom-lightbox-open {
    overflow: hidden;
}

.svv-photoarchive-custom-lightbox[hidden] {
    display: none;
}

.svv-photoarchive-custom-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100500;
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr) 72px;
    place-items: center center;
    padding: 48px 24px 32px;
    background: rgb(255 255 255 / 96%);
}

.svv-photoarchive-custom-lightbox__figure {
    display: grid;
    justify-items: center;
    gap: 16px;
    min-width: 0;
    max-width: 100%;
    max-height: 100%;
    margin: 0;
}

.svv-photoarchive-custom-lightbox__image {
    display: block;
    width: auto;
    height: auto;
    max-width: calc(100vw - 192px);
    max-height: calc(100vh - 168px);
    border-radius: 0;
    object-fit: contain;
}

.svv-photoarchive-custom-lightbox__meta {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin: 0;
    text-align: center;
}

.svv-photoarchive-custom-lightbox__caption {
    max-width: min(760px, calc(100vw - 48px));
    padding: 8px 12px;
    border: 1px solid rgb(18 36 61 / 14%);
    border-radius: 8px;
    background: rgb(255 255 255 / 94%);
    box-shadow: 0 10px 28px rgb(18 36 61 / 14%);
    color: #12243d;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.svv-photoarchive-custom-lightbox__title {
    max-width: min(760px, calc(100vw - 48px));
    color: #12243d;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.35;
}

.svv-photoarchive-custom-lightbox__comments {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 8px;
    background: #1b4f8a;
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.svv-photoarchive-custom-lightbox__comments:hover,
.svv-photoarchive-custom-lightbox__comments:focus-visible {
    background: #123a66;
}

.svv-photoarchive-custom-lightbox__close,
.svv-photoarchive-custom-lightbox__nav {
    border: 0;
    background: transparent;
    color: #12243d;
    cursor: pointer;
    font: inherit;
}

.svv-photoarchive-custom-lightbox__close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    font-size: 34px;
    line-height: 1;
}

.svv-photoarchive-custom-lightbox__nav {
    width: 56px;
    height: 80px;
    border-radius: 8px;
    font-size: 58px;
    line-height: 1;
}

.svv-photoarchive-custom-lightbox__nav:hover,
.svv-photoarchive-custom-lightbox__nav:focus-visible {
    background: rgb(18 36 61 / 8%);
}

.svv-photoarchive-comment-link {
    display: inline-flex;
    align-items: center;
    margin-top: 4px;
    color: var(--svv-blue, #1b4f8a);
    font-size: 12px;
    font-weight: 800;
    text-decoration: none;
}

.svv-photoarchive-comment-link:hover,
.svv-photoarchive-comment-link:focus-visible {
    text-decoration: underline;
}

.svv-photo-attachment {
    max-width: 1160px;
    margin: 0 auto;
}

.svv-photo-attachment__layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.34fr);
    gap: 24px;
    align-items: start;
}

.svv-photo-attachment__media {
    padding: 16px;
    border: 1px solid var(--svv-line, #dbe3eb);
    border-radius: 8px;
    background: #fff;
}

.svv-photo-attachment__media img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 8px;
}

.svv-photo-attachment__meta {
    padding: 18px;
    border: 1px solid var(--svv-line, #dbe3eb);
    border-radius: 8px;
    background: #f8fafc;
}

.svv-photo-attachment__meta h2,
.svv-photo-attachment__comments h2 {
    margin: 0 0 10px;
    color: #12243d;
    font-size: 20px;
    line-height: 1.3;
}

.svv-photo-attachment__description {
    color: #4b5563;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}

.svv-photo-attachment__back {
    display: inline-flex;
    align-items: center;
    margin-top: 16px;
    color: var(--svv-blue, #1b4f8a);
    font-weight: 800;
    text-decoration: none;
}

.svv-photo-attachment__back:hover,
.svv-photo-attachment__back:focus-visible {
    text-decoration: underline;
}

.svv-photo-attachment__comments {
    margin-top: 28px;
    padding-top: 22px;
    border-top: 1px solid var(--svv-line, #dbe3eb);
}

.svv-comments-list {
    display: grid;
    gap: 12px;
    padding: 0;
    margin: 0 0 22px;
    list-style: none;
}

.svv-comment {
    padding: 14px;
    border: 1px solid var(--svv-line, #dbe3eb);
    border-radius: 8px;
    background: #fff;
}

.svv-comment__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 10px;
    align-items: center;
    margin-bottom: 8px;
    color: #5f6b7a;
    font-size: 12px;
    font-weight: 800;
}

.svv-comment__author {
    color: #12243d;
    font-size: 14px;
}

.svv-comment__source {
    display: inline-flex;
    align-items: center;
    min-height: 20px;
    padding: 0 7px;
    border-radius: 999px;
    background: #eef3f0;
    color: var(--svv-green, #4d6b36);
    font-size: 11px;
    font-weight: 900;
}

.svv-comment__content {
    color: #26364a;
    font-size: 14px;
    line-height: 1.55;
}

.svv-comment-login-note,
.svv-comments-closed {
    padding: 14px 16px;
    border: 1px solid #d8e3ee;
    border-radius: 8px;
    background: #f4f8fc;
    color: #31445d;
    font-size: 14px;
    line-height: 1.5;
}

.svv-comment-form .comment-form-comment label {
    display: block;
    margin-bottom: 6px;
    font-weight: 800;
}

.svv-comment-form textarea {
    box-sizing: border-box;
    width: 100%;
    border: 1px solid var(--svv-line, #dbe3eb);
    border-radius: 8px;
}

.svv-comment-form .submit {
    padding: 10px 16px;
    border: 0;
    border-radius: 8px;
    background: var(--svv-blue, #1b4f8a);
    color: #fff;
    font-weight: 800;
    cursor: pointer;
}

.svv-comment-form .submit:hover,
.svv-comment-form .submit:focus-visible {
    background: #123a66;
}

.svv-gallery-page.portal-section {
    padding: 0;
    border-bottom: 0;
}

.svv-gallery-page .portal-lead {
    max-width: 780px;
    color: #4b5563;
    line-height: 1.6;
}

.svv-gallery-intro {
    display: grid;
    grid-template-columns: minmax(240px, 0.36fr) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    margin: 20px 0;
    padding: 22px 24px;
    border: 1px solid #d8e3ee;
    border-left: 4px solid var(--svv-blue, #1b4f8a);
    border-radius: 8px;
    background: #f4f8fc;
}

.svv-gallery-intro__label,
.svv-gallery-album-card__kicker {
    display: inline-flex;
    color: var(--svv-green, #4d6b36);
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 0.08em;
    line-height: 1.2;
    text-transform: uppercase;
}

.svv-gallery-intro h2 {
    margin: 5px 0 0;
    color: #12243d;
    font-size: 24px;
    line-height: 1.2;
}

.svv-gallery-intro p {
    margin: 0;
    color: #4b5563;
    font-size: 15px;
    line-height: 1.6;
}

.svv-gallery-album-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    margin: 20px 0;
}

.svv-gallery-album-card {
    min-height: 150px;
    padding: 16px;
    border: 1px solid var(--svv-line, #dbe3eb);
    border-radius: 8px;
    background: #fff;
    box-shadow: 0 8px 20px rgb(16 32 56 / 4%);
}

.svv-gallery-album-card h3 {
    margin: 12px 0 7px;
    color: #12243d;
    font-size: 18px;
    line-height: 1.28;
}

.svv-gallery-album-card p {
    margin: 0;
    color: #5f6b7a;
    font-size: 14px;
    line-height: 1.5;
}

.svv-gallery-note {
    display: flex;
    gap: 8px;
    align-items: baseline;
    margin: 22px 0 0;
    padding: 14px 16px;
    border: 1px solid #e4dac1;
    border-radius: 8px;
    background: #fff9ea;
    color: #5f4a1e;
    font-size: 14px;
    line-height: 1.5;
}

.svv-gallery-page .foogallery,
.svv-gallery-page .foogallery-album-gallery-list {
    margin: 22px 0;
}

.svv-gallery-page .fg-item,
.svv-gallery-page .foogallery-album-gallery-list .foogallery-pile {
    border-radius: 8px;
    overflow: hidden;
}

.svv-gallery-page .fg-caption,
.svv-gallery-page .foogallery-album-gallery-list h3 {
    font-family: inherit;
}

@media (width <= 900px) {
    .svv-photoarchive-card-grid,
    .svv-gallery-intro,
    .svv-gallery-album-grid {
        grid-template-columns: 1fr;
    }

    .svv-photoarchive-page .wp-block-gallery {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .svv-photo-attachment__layout {
        grid-template-columns: 1fr;
    }

    .svv-gallery-intro {
        padding: 18px;
    }

    .svv-gallery-note {
        display: grid;
    }
}
