/*
 * Verni 2006 UI system.
 *
 * This file is intentionally loaded after the historical stylesheet.  It is
 * the single place for shared layout, form, button, panel and responsive
 * rules. Feature-specific drawing, chat and media behaviour stays in
 * style.css until those modules are migrated independently.
 */

:root {
    --ui-canvas: var(--background, #e9edf1);
    --ui-surface: var(--page, #fff);
    --ui-panel: #f4f7fa;
    --ui-panel-strong: var(--soft, #e8f0f7);
    --ui-border: var(--line, #c7d3de);
    --ui-border-strong: #aebdca;
    --ui-brand: var(--blue, #4f7699);
    --ui-brand-dark: var(--blue-dark, #2b587a);
    --ui-text: #263746;
    --ui-muted: #6d7b87;
    --ui-danger: #a33a3a;
    --ui-success: #397a43;
    --ui-radius: 4px;
    --ui-shadow: 0 1px 0 rgba(30, 54, 73, .08);
    --ui-control-height: 32px;
    --ui-content-gap: 12px;
}

html,
body {
    max-width: 100%;
    overflow-x: clip;
}

body {
    color: var(--ui-text);
}

.page {
    width: min(940px, calc(100% - 28px));
    border-color: var(--ui-border-strong);
    box-shadow: 2px 2px 0 rgba(48, 69, 87, .12);
}

.page.page-wide {
    width: min(1080px, calc(100% - 28px));
}

.header {
    min-height: 42px;
    padding: 7px 13px;
    background: var(--ui-brand);
}

.logo {
    flex: 0 0 auto;
    font-size: 15px;
    line-height: 1.15;
}

.nav {
    gap: 3px 6px;
}

.nav a,
.nav .link-button {
    min-height: 26px;
    display: inline-flex;
    align-items: center;
    padding: 4px 6px;
    border-radius: 2px;
    white-space: nowrap;
}

.content {
    min-width: 0;
    padding: 16px;
}

.footer {
    line-height: 1.45;
}

h1,
h2,
h3 {
    line-height: 1.25;
}

h1 {
    margin-bottom: 14px;
}

h2,
h3,
p {
    overflow-wrap: anywhere;
}

form,
fieldset,
label,
section,
article,
aside,
main,
div {
    min-width: 0;
}

input,
textarea,
select,
button {
    min-width: 0;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="search"],
input[type="url"],
input[type="tel"],
input[type="number"],
input[type="date"],
input[type="time"],
textarea,
select {
    width: 100%;
    min-height: var(--ui-control-height);
    padding: 6px 8px;
    border: 1px solid var(--ui-border-strong);
    border-radius: 2px;
    background: #fff;
    color: var(--ui-text);
    line-height: 1.35;
    box-shadow: inset 1px 1px 0 rgba(34, 56, 73, .04);
}

textarea {
    min-height: 74px;
    resize: vertical;
}

input[type="file"] {
    width: 100%;
    padding: 5px;
    border: 1px solid var(--ui-border);
    background: #fff;
}

label {
    color: #435665;
}

label > input:not([type="checkbox"]):not([type="radio"]),
label > textarea,
label > select {
    display: block;
    margin-top: 4px;
}

button:not(.link-button):not(.text-danger-button):not(.mini-danger-button):not(.graffiti-tool):not(.graffiti-color):not(.mobile-nav-item):not(.mobile-menu-row):not(.dialog-menu-toggle):not(.dialog-menu-action):not(.message-emoji-button):not(.message-send-button):not(.icon-action-button):not(.photo-action-button):not(.photo-icon-button):not(.photo-comment-action):not(.photo-fullscreen-close):not(.visitor-clear-button):not(.back-to-top),
.button {
    min-height: var(--ui-control-height);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 6px 11px;
    border-radius: var(--ui-radius);
    line-height: 1.2;
    white-space: normal;
}

.button-secondary,
button.button-secondary {
    color: #314b61;
}

.icon-action-button,
button.icon-action-button {
    flex: 0 0 auto;
}

.section-title {
    min-height: 31px;
    margin: 2px 0 11px;
    padding: 0 0 6px;
    align-items: center;
    border-color: var(--ui-border);
}

.section-title h1,
.section-title h2,
.section-title h3 {
    margin: 0;
}

.section-title > span,
.section-title > a,
.section-title > form {
    flex: 0 0 auto;
}

.notice,
.empty-state {
    margin: 9px 0;
    padding: 10px 11px;
    border: 1px solid var(--ui-border);
    background: #f8fafb;
    color: #566672;
    line-height: 1.45;
}

.form-error {
    margin: 8px 0 0;
    padding: 8px 9px;
    border-left: 3px solid var(--ui-danger);
    background: #fff2f2;
}

.muted,
.field-hint,
.upload-status {
    color: var(--ui-muted);
}

.stacked-form,
.settings-form,
.upload-panel,
.inline-form,
.search-form-panel,
.composer-card,
.group-panel,
.admin-announcements,
.admin-card-actions {
    border-color: var(--ui-border);
}

.stacked-form {
    width: min(100%, 420px);
}

.stacked-form label,
.settings-form label,
.upload-panel label {
    margin-bottom: 10px;
}

.inline-form,
.upload-panel,
.search-form-panel,
.composer-card {
    padding: 11px;
    background: var(--ui-panel);
}

.checkbox-line {
    width: fit-content;
    max-width: 100%;
    display: grid !important;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 7px;
    align-items: start;
    line-height: 1.35;
}

.checkbox-line input[type="checkbox"],
.checkbox-line input[type="radio"] {
    width: 17px;
    height: 17px;
    margin: 0;
}

.settings-grid {
    gap: 10px 14px;
}

.profile-layout {
    grid-template-columns: 228px minmax(0, 1fr);
    gap: 16px;
}

.profile-sidebar {
    gap: 11px;
}

.avatar-box,
.side-block,
.rating-box,
.profile-likes,
.profile-info-table {
    border-color: var(--ui-border);
}

.avatar-box {
    padding: 8px;
    background: #fff;
    text-align: center;
}

.avatar-box img {
    display: block;
    width: 100%;
    max-width: 210px;
    margin: 0 auto;
    object-fit: cover;
}

.profile-name {
    margin: 0 0 4px;
    font-size: 19px;
}

.profile-presence {
    margin-bottom: 9px;
}

.profile-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: end;
}

.profile-actions form,
.profile-actions p {
    margin: 0;
}

.profile-info-table {
    width: 100%;
    margin-top: 10px;
}

.profile-info-table td {
    padding: 6px 7px;
    border-bottom: 1px solid #e3e8ed;
}

.profile-info-table td:first-child {
    width: 155px;
    color: #526575;
    background: #f8fafb;
}

.side-block {
    padding: 9px;
    background: var(--ui-panel);
}

.feed-list,
.wall-posts,
.friend-list,
.dialog-list,
.notification-list,
.search-results-list,
.group-list,
.system-event-list,
.moderation-list {
    gap: var(--ui-content-gap);
}

.feed-item,
.wall-post,
.friend-card,
.dialog-row,
.notification-item,
.search-user-card,
.group-card,
.system-event,
.moderation-card,
.admin-user,
.photo-card,
.discussion-card {
    border-color: var(--ui-border);
    border-radius: 2px;
    background: #fff;
    box-shadow: var(--ui-shadow);
}

.feed-item,
.wall-post,
.friend-card,
.notification-item,
.search-user-card,
.group-card,
.system-event,
.admin-user {
    padding: 10px;
}

.feed-item:hover,
.wall-post:hover,
.friend-card:hover,
.dialog-row:hover,
.search-user-card:hover,
.group-card:hover,
.photo-card:hover {
    border-color: #9eb2c3;
    background: #fbfcfd;
}

.feed-photo-link img,
.wall-photo,
.wall-graffiti {
    border-color: var(--ui-border);
    background: #fff;
}

.wall-form,
.wall-comments,
.photo-comments {
    border-color: var(--ui-border);
    background: var(--ui-panel);
}

.wall-post-actions,
.feed-actions,
.photo-comment-actions,
.group-card-actions,
.admin-user-actions {
    gap: 6px;
}

.friend-card {
    grid-template-columns: 58px minmax(0, 1fr) auto;
}

.friend-card-action {
    display: flex;
    align-items: center;
}

.search-form-grid,
.settings-grid {
    align-items: start;
}

.search-user-card {
    grid-template-columns: 72px minmax(0, 1fr) auto;
    align-items: center;
}

.search-user-avatar {
    width: 66px;
    height: 66px;
}

.search-user-name,
.group-card-title,
.friend-name {
    font-size: 13px;
}

.search-rating {
    min-width: 74px;
    text-align: center;
}

.group-panel {
    padding: 11px;
    background: var(--ui-panel);
}

.group-layout {
    gap: 14px;
}

.group-main,
.group-sidebar {
    gap: 12px;
}

.group-discussion-form,
.group-main .wall-form,
.group-album-create-form,
.group-photo-upload-form {
    gap: 8px;
}

.group-card-actions > *,
.group-card-actions form {
    min-width: 0;
}

.group-hero,
.group-cover,
.group-avatar {
    border-color: var(--ui-border-strong);
}

.media-tools {
    display: grid;
    gap: 10px;
}

.photo-album-create-form,
.photo-upload-panel {
    margin-bottom: 0;
}

.album-overview-grid,
.photo-grid,
.group-photo-grid {
    gap: 11px;
}

.album-overview-card {
    border-color: var(--ui-border);
    background: #fff;
    box-shadow: var(--ui-shadow);
}

.photo-card {
    padding: 7px;
}

.photo-card img {
    display: block;
}

.photo-card-actions,
.photo-tag-form {
    gap: 6px;
}

.photo-view-card {
    gap: 14px;
}

.photo-view-image-wrap,
.photo-view-owner,
.photo-view-box {
    border-color: var(--ui-border);
}

.notification-main p {
    line-height: 1.45;
}

.admin-search-form,
.admin-user-actions,
.admin-block-form,
.admin-delete-form,
.admin-score-form {
    gap: 7px;
}

.admin-user {
    margin-bottom: 10px;
}

.admin-error-log {
    max-height: 520px;
    margin: 10px 0;
    padding: 11px;
    overflow: auto;
    border: 1px solid var(--ui-border);
    background: #f5f7f8;
    color: #2e3f4d;
    font: 11px/1.45 Consolas, monospace;
    white-space: pre-wrap;
}

.admin-title-links a {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 7px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel);
    font-size: 11px;
    white-space: nowrap;
}

.admin-title-links a:hover {
    border-color: #9eb2c3;
    background: #e8f0f6;
    text-decoration: none;
}

.legacy-message-person h2 {
    margin: 0;
}

.legacy-message-thread {
    margin-bottom: 10px;
    padding: 10px;
    border: 1px solid var(--ui-border);
    background: var(--ui-panel);
}

.legacy-message-form textarea {
    width: 100%;
}

/* Wall composer and posts share one rhythm on profiles and in groups. */
.wall {
    min-width: 0;
}

.wall-form.composer-card {
    display: grid;
    gap: 9px;
    margin: 10px 0 14px;
    padding: 12px;
}

.wall-form.composer-card > label {
    margin: 0;
}

.wall-form.composer-card > textarea {
    min-height: 82px;
    margin: 0;
    line-height: 1.45;
}

.wall-form.composer-card .textarea-counter {
    margin: -5px 0 0;
}

.wall-post-options {
    display: grid;
    grid-template-columns: minmax(150px, 190px) minmax(260px, 420px);
    gap: 10px;
    align-items: end;
    justify-content: start;
    margin: 0;
}

.wall-post-options label {
    min-width: 0;
    margin: 0;
}

.wall-post-options select,
.wall-post-options input[type="file"] {
    width: 100%;
    max-width: 100%;
}

.wall-post-options .upload-status {
    grid-column: 1 / -1;
    margin: 0;
}

.wall-form-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    align-items: center;
    margin: 0;
    padding-top: 2px;
}

.wall-post {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 11px;
    align-items: start;
}

.wall-avatar {
    display: block;
    width: 44px;
    height: 44px;
}

.wall-avatar img {
    display: block;
    width: 44px;
    height: 44px;
    border-radius: 2px;
}

.wall-post-content {
    display: grid;
    gap: 8px;
    width: min(100%, 760px);
    min-width: 0;
}

.wall-post-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 7px;
    align-items: baseline;
    min-width: 0;
    margin: 0;
    padding-bottom: 6px;
    border-bottom: 1px solid #e3e9ee;
}

.wall-post-meta span {
    margin: 0;
}

.wall-post-text {
    max-width: 68ch;
    line-height: 1.45;
}

.wall-post-media {
    display: grid;
    gap: 7px;
    width: min(100%, 640px);
    min-width: 0;
}

.wall-post-media .wall-photo,
.wall-post-media .wall-graffiti {
    display: block;
    width: auto;
    max-width: 100%;
    height: auto;
    max-height: 680px;
    margin: 0;
    object-fit: contain;
    box-shadow: 0 1px 1px rgba(34, 52, 68, .08);
}

.wall-post-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    align-items: center;
    width: 100%;
    margin: 0;
    padding: 6px 0;
    border-top: 1px solid #e3e9ee;
    border-bottom: 1px solid #e3e9ee;
}

.wall-like-form,
.wall-delete-form {
    margin: 0;
}

.wall-delete-form {
    margin-left: auto;
}

.wall-action-button,
button.wall-action-button,
a.wall-action-button,
.wall-post-actions .content-report-menu > summary {
    display: inline-flex;
    min-width: 30px;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    margin: 0;
    padding: 4px 8px;
    border: 1px solid transparent;
    border-radius: 3px;
    background: transparent;
    box-shadow: none;
    color: #526b80;
    font-size: 11px;
    line-height: 1.2;
    text-decoration: none;
    cursor: pointer;
}

.wall-action-button:hover,
button.wall-action-button:hover,
a.wall-action-button:hover,
.wall-post-actions .content-report-menu > summary:hover {
    border-color: #c4d1dc;
    background: #edf3f7;
    color: var(--ui-brand-dark);
    text-decoration: none;
}

.wall-action-button.is-active,
button.wall-action-button.is-active {
    color: #b03d4b;
}

.wall-action-danger,
button.wall-action-danger {
    color: #9a4646;
}

.wall-post-actions .content-report-menu {
    margin: 0;
}

.wall-comments {
    margin: 0;
    padding: 0 8px;
    border: 1px solid #dce4eb;
}

.wall-comment:last-child {
    border-bottom: 0;
}

.wall-comment-form.compact-composer {
    margin-top: 0;
}

@media (min-width: 701px) {
    .section-login .content,
    .section-register .content,
    .section-password .content {
        padding: 24px 28px;
    }

    .section-login .stacked-form,
    .section-register .stacked-form,
    .section-password .stacked-form {
        padding: 14px;
        border: 1px solid var(--ui-border);
        background: var(--ui-panel);
    }
}

@media (max-width: 800px) {
    .page,
    .page.page-wide {
        width: calc(100% - 16px);
        margin: 8px auto;
    }

    .nav {
        gap: 2px;
    }

    .nav a,
    .nav .link-button {
        padding-inline: 4px;
    }

    .group-layout,
    .photo-view-card,
    .admin-card {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    :root {
        --ui-control-height: 42px;
        --ui-content-gap: 9px;
    }

    html {
        min-width: 320px;
    }

    body {
        font-size: 14px;
        line-height: 1.42;
    }

    .page,
    .page.page-wide {
        width: 100%;
        margin: 0 0 calc(64px + env(safe-area-inset-bottom));
        border-right: 0;
        border-left: 0;
        box-shadow: none;
    }

    .header {
        position: sticky;
        top: 0;
        z-index: 55;
        min-height: 44px;
        padding: 8px 12px;
    }

    .logo {
        font-size: 17px;
    }

    .content {
        padding: 12px 12px 82px;
    }

    .footer {
        padding: 10px 12px 78px;
        font-size: 11px;
    }

    h1 {
        margin-bottom: 13px;
        font-size: 22px;
    }

    h2 {
        font-size: 19px;
    }

    h3 {
        font-size: 16px;
    }

    .section-title {
        min-height: 36px;
        gap: 8px;
        align-items: center;
    }

    .section-title span {
        font-size: 11px;
    }

    input,
    textarea,
    select,
    button {
        font-size: 16px;
    }

    .field-hint,
    .upload-status,
    .stacked-form small,
    .upload-panel small {
        font-size: 12px;
    }

    button:not(.link-button):not(.text-danger-button):not(.mini-danger-button):not(.graffiti-tool):not(.graffiti-color):not(.mobile-nav-item):not(.mobile-menu-row):not(.dialog-menu-toggle):not(.dialog-menu-action):not(.message-emoji-button):not(.message-send-button):not(.icon-action-button):not(.photo-action-button):not(.photo-icon-button):not(.photo-comment-action):not(.photo-fullscreen-close):not(.visitor-clear-button):not(.back-to-top),
    .button {
        min-height: 42px;
        padding: 9px 12px;
        font-size: 14px;
    }

    .stacked-form,
    .settings-form,
    .upload-panel,
    .inline-form,
    .search-form-panel {
        width: 100%;
    }

    .inline-form,
    .upload-panel,
    .search-form-panel,
    .composer-card,
    .group-panel {
        padding: 10px;
    }

    .inline-form,
    .settings-grid,
    .search-form-grid,
    .admin-search-form,
    .admin-block-form,
    .admin-delete-form,
    .admin-score-form {
        display: grid;
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .inline-form > *,
    .admin-search-form > *,
    .admin-user-actions > *,
    .admin-user-actions form,
    .admin-user-actions button,
    .admin-user-actions .button,
    .admin-block-form > *,
    .admin-delete-form > *,
    .admin-score-form > * {
        width: 100%;
        max-width: 100%;
    }

    .profile-layout {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .profile-sidebar {
        display: contents;
    }

    .avatar-box {
        order: 1;
        padding: 8px;
    }

    .avatar-box img {
        width: 168px;
        height: 168px;
        object-fit: cover;
    }

    .rating-box {
        order: 2;
        width: 100%;
    }

    .profile-main {
        order: 3;
        width: 100%;
    }

    .profile-sidebar > .side-block {
        order: 4;
        width: 100%;
    }

    .profile-name {
        font-size: 21px;
    }

    .profile-actions,
    p.profile-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 7px;
    }

    .profile-actions > *,
    .profile-actions form,
    .profile-actions button,
    .profile-actions .button {
        width: 100%;
    }

    .profile-info-table,
    .profile-info-table tbody,
    .profile-info-table tr,
    .profile-info-table td {
        display: block;
        width: 100%;
    }

    .profile-info-table tr {
        border-bottom: 1px solid #e2e7eb;
    }

    .profile-info-table td {
        border: 0;
    }

    .profile-info-table td:first-child {
        padding-bottom: 2px;
        background: transparent;
    }

    .feed-item,
    .wall-post,
    .friend-card,
    .notification-item,
    .search-user-card,
    .group-card,
    .system-event,
    .admin-user {
        padding: 9px;
    }

    .wall-form.composer-card {
        gap: 8px;
        padding: 10px;
    }

    .wall-post-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .wall-form.composer-card .wall-form-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .wall-form.composer-card .wall-form-actions > *,
    .wall-form.composer-card .wall-form-actions button {
        width: 100%;
    }

    .wall-post {
        grid-template-columns: 36px minmax(0, 1fr);
        gap: 8px;
    }

    .wall-avatar,
    .wall-avatar img {
        width: 36px;
        height: 36px;
    }

    .wall-post-content,
    .wall-post-media,
    .wall-post-media .wall-photo,
    .wall-post-media .wall-graffiti {
        width: 100%;
        max-width: 100%;
    }

    .wall-post-meta {
        display: grid;
        gap: 1px;
        padding-bottom: 5px;
    }

    .wall-post-meta span {
        font-size: 11px;
    }

    .wall-post-actions {
        gap: 3px;
        padding-block: 5px;
    }

    .wall-delete-form {
        margin-left: 0;
    }

    .wall-action-button,
    button.wall-action-button,
    a.wall-action-button,
    .wall-post-actions .content-report-menu > summary {
        min-width: 38px;
        min-height: 38px;
        padding: 7px 9px;
        font-size: 12px;
    }

    .wall-comments {
        padding-inline: 7px;
    }

    .feed-meta,
    .wall-post-meta {
        font-size: 13px;
    }

    .feed-meta span {
        margin-left: 0;
        font-size: 11px;
    }

    .feed-photo-link,
    .feed-photo-link img,
    .wall-photo,
    .wall-graffiti {
        width: 100%;
        max-width: 100%;
    }

    .friend-card,
    .friend-request-card {
        grid-template-columns: 54px minmax(0, 1fr);
        align-items: start;
    }

    .friend-card-action,
    .friend-card > form,
    .friend-request-card > form {
        grid-column: 1 / -1;
        width: 100%;
    }

    .friend-card-action button,
    .friend-request-card button {
        width: 100%;
    }

    .search-user-card {
        grid-template-columns: 62px minmax(0, 1fr);
        align-items: start;
    }

    .search-user-avatar {
        width: 58px;
        height: 58px;
    }

    .search-user-score {
        grid-column: 1 / -1;
    }

    .search-rating {
        width: 100%;
        text-align: left;
    }

    .notification-item {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .notification-actions {
        grid-column: 1 / -1;
        display: flex;
        justify-content: flex-end;
    }

    .dialog-row {
        border-right: 1px solid var(--ui-border);
        border-left: 1px solid var(--ui-border);
    }

    .group-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .group-card-actions button,
    .group-card-actions .button {
        width: 100%;
    }

    .group-cover {
        min-height: 132px;
    }

    .album-overview-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-grid,
    .group-photo-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-card-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .photo-tag-form {
        grid-template-columns: 1fr;
    }

    .photo-view-card {
        grid-template-columns: 1fr;
    }

    .photo-view-image-wrap {
        padding: 5px;
    }

    .admin-title-links {
        display: flex;
        width: 100%;
        flex-wrap: wrap;
        justify-content: flex-start;
        gap: 5px;
    }

    .admin-title-links a {
        min-height: 34px;
        font-size: 12px;
    }

    .icon-action-button,
    button.icon-action-button {
        width: 38px;
        height: 38px;
        min-height: 38px;
    }

    .photo-action-button,
    button.photo-action-button {
        min-height: 40px;
        font-size: 13px;
    }

    .back-to-top {
        right: 10px;
        bottom: calc(70px + env(safe-area-inset-bottom));
        width: 42px;
        height: 42px;
        min-height: 42px;
        padding: 0;
        border-radius: 50%;
        opacity: .92;
    }

    .back-to-top span {
        position: absolute !important;
        width: 1px !important;
        height: 1px !important;
        padding: 0 !important;
        margin: -1px !important;
        overflow: hidden !important;
        clip: rect(0, 0, 0, 0) !important;
        white-space: nowrap !important;
        border: 0 !important;
    }

    .legacy-message-person,
    .legacy-message-person tbody,
    .legacy-message-person tr,
    .legacy-message-person td {
        display: block;
        width: 100%;
    }
}

@media (max-width: 380px) {
    .content {
        padding-inline: 9px;
    }

    .profile-actions,
    p.profile-actions,
    .group-card-actions {
        grid-template-columns: 1fr;
    }

    .album-overview-grid,
    .photo-grid,
    .group-photo-grid {
        grid-template-columns: 1fr;
    }

    .section-title {
        flex-wrap: wrap;
        align-items: flex-start;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        scroll-behavior: auto !important;
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
    }
}
