* {
    box-sizing: border-box;
}

:root {
    --gs-blue: #2045bc;
    --gs-offwhite: #f5f5f5;
    --gs-black: #1a1a1a;
    --gs-main: #a1bbff;
    --gs-chef: #b9d800;
    --gs-bar: #e04853;
    --gs-hotel: #bda9ed;
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
}

@font-face {
    font-family: "Involve";
    src: local("Involve"), local("Involve Regular");
    font-display: swap;
}

body {
    margin: 0;
    font-family: "Involve", "Segoe UI", Arial, sans-serif;
    background:
        linear-gradient(180deg, rgba(32, 69, 188, 0.12), rgba(32, 69, 188, 0) 220px),
        var(--gs-offwhite);
    color: var(--gs-black);
    letter-spacing: -0.01em;
}

body.public-gallery-page {
    background: #ffffff !important;
}

.container {
    width: min(1240px, 94vw);
    margin: 0 auto;
    padding: 1rem 0;
}

.narrow {
    max-width: 540px;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.toolbar-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    justify-content: flex-end;
}

.brand-title {
    margin: 0;
    font-size: clamp(2rem, 4vw, 3.1rem);
    font-weight: 700;
    line-height: 0.95;
    color: var(--gs-blue);
    text-transform: lowercase;
}

.brand-subtitle {
    margin: 0 0 0.9rem;
    font-size: 1.15rem;
    font-weight: 600;
    text-transform: lowercase;
}

h2,
h3 {
    text-transform: lowercase;
    margin: 0 0 0.8rem;
}

.card {
    background: #fff;
    border: 1px solid rgba(32, 69, 188, 0.22);
    border-radius: 18px;
    padding: 1rem;
    margin-bottom: 1rem;
    box-shadow: 0 10px 20px rgba(32, 69, 188, 0.06);
}

label {
    display: block;
    margin-bottom: 0.7rem;
    font-size: 0.94rem;
    text-transform: lowercase;
}

input[type="text"],
input[type="password"],
input[type="file"],
select,
button {
    width: 100%;
    margin-top: 0.35rem;
    padding: 0.62rem 0.72rem;
    border-radius: 10px;
    border: 1px solid rgba(32, 69, 188, 0.35);
    background: #fff;
    color: var(--gs-black);
}

input[type="file"] {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
}

/* Minimum touch target for mobile ergonomics */
button,
.btn,
.chip,
input[type="text"],
input[type="password"],
input[type="file"],
select {
    min-height: 44px;
}

button,
.btn {
    display: inline-block;
    width: auto;
    min-width: 136px;
    text-align: center;
    text-decoration: none;
    background: linear-gradient(135deg, #214ad1 0%, #2045bc 55%, #1a3ca8 100%);
    color: var(--gs-offwhite);
    border: 1px solid var(--gs-blue);
    border-radius: 999px;
    padding: 0.58rem 1rem;
    cursor: pointer;
    text-transform: lowercase;
    font-weight: 600;
    box-shadow: 0 8px 20px rgba(32, 69, 188, 0.2);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.btn:hover,
button:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
    box-shadow: 0 12px 24px rgba(32, 69, 188, 0.25);
}

.btn:active,
button:active {
    transform: translateY(0);
    box-shadow: 0 6px 14px rgba(32, 69, 188, 0.2);
}

.btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible {
    outline: 2px solid rgba(32, 69, 188, 0.35);
    outline-offset: 2px;
}

.btn.btn-accent,
button.btn-accent {
    background: linear-gradient(135deg, #2f60ff 0%, #2045bc 100%);
    border-color: #1d43bd;
    box-shadow: 0 12px 28px rgba(32, 69, 188, 0.28);
}

.btn.btn-secondary,
button.btn-secondary {
    background: #ffffff;
    color: var(--gs-blue);
    border-color: rgba(32, 69, 188, 0.38);
    box-shadow: 0 6px 14px rgba(32, 69, 188, 0.12);
}

.btn.btn-secondary:hover,
button.btn-secondary:hover {
    background: #f2f6ff;
    box-shadow: 0 10px 18px rgba(32, 69, 188, 0.16);
}

.btn.btn-danger,
button.btn-danger {
    background: linear-gradient(135deg, #db3f4f 0%, #ba3040 100%);
    border-color: #b6303e;
    color: #fff;
    box-shadow: 0 10px 22px rgba(186, 48, 64, 0.28);
}

button.danger {
    background: #c03945;
    border-color: #c03945;
}

.modern-upload-form {
    display: grid;
    gap: 0.7rem;
}

.upload-dropzone {
    position: relative;
    display: grid;
    gap: 0.25rem;
    margin-bottom: 0.2rem;
    padding: 1rem;
    border-radius: 14px;
    border: 1px dashed rgba(32, 69, 188, 0.45);
    background:
        radial-gradient(circle at 20% 20%, rgba(161, 187, 255, 0.25), transparent 52%),
        #f8faff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.upload-dropzone:hover,
.upload-dropzone:focus-within,
.upload-dropzone.is-dragover {
    border-color: var(--gs-blue);
    box-shadow: 0 0 0 4px rgba(32, 69, 188, 0.1);
    background: #f4f8ff;
}

.upload-dropzone.has-files {
    border-style: solid;
}

.upload-dropzone input[type="file"] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
}

.upload-dropzone-title {
    font-weight: 700;
    font-size: 1rem;
    color: var(--gs-blue);
}

.upload-dropzone-subtitle {
    font-size: 0.88rem;
    color: rgba(26, 26, 26, 0.7);
}

.upload-dropzone-hint {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin-top: 0.25rem;
    padding: 0.24rem 0.6rem;
    border-radius: 999px;
    background: #e8eeff;
    color: #1b3fbb;
    font-size: 0.82rem;
}

.import-structure-form input[type="file"] {
    width: 260px;
    max-width: 100%;
}

.flash {
    background: #e6edff;
    border: 1px solid rgba(32, 69, 188, 0.4);
    border-radius: 12px;
    padding: 0.8rem;
    margin-bottom: 1rem;
}

.muted {
    color: rgba(26, 26, 26, 0.65);
    font-size: 0.92rem;
}

.grid2,
.grid3 {
    display: grid;
    gap: 0.75rem;
}

.grid2 {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.grid3 {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.9rem;
}

.admin-main {
    max-width: 1360px;
}

.admin-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 0.9rem;
    align-items: start;
}

.admin-sidebar-stack {
    position: sticky;
    top: 8px;
    max-height: calc(100vh - 24px);
    overflow: auto;
    padding-right: 2px;
}

.admin-sidebar-stack .card:last-child {
    margin-bottom: 0;
}

.admin-photos-section {
    min-width: 0;
}

.admin-photos-head {
    position: sticky;
    top: 8px;
    z-index: 5;
    background: var(--gs-offwhite);
    padding-bottom: 0.5rem;
    margin-bottom: 0.4rem;
}

.admin-photos-head h2 {
    margin-bottom: 0.45rem;
}

body.admin-page.admin-focus-mode .admin-secondary {
    display: none;
}

body.admin-page.admin-focus-mode .admin-layout {
    grid-template-columns: 300px minmax(0, 1fr);
}

body.admin-page.admin-focus-mode .admin-sidebar-stack {
    max-height: none;
    position: sticky;
    top: 8px;
}

.photo-card img,
.gallery-item img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 0.7rem;
    background: #e9ecf5;
}

.photo-preview-wrap {
    margin-bottom: 0.7rem;
}

.photo-preview-wrap .photo-preview-link {
    display: block;
}

.photo-preview-wrap .photo-preview-image {
    margin-bottom: 0;
}

.photo-preview-wrap .photo-missing-box {
    display: none;
    padding: 0.8rem;
    border: 1px dashed rgba(32, 69, 188, 0.42);
    background: #f6f9ff;
}

.photo-preview-wrap.is-missing .photo-preview-link {
    display: none;
}

.photo-preview-wrap.is-missing .photo-missing-box {
    display: block;
}

.admin-grid-upload-action {
    margin: 0.35rem 0 0.7rem;
    justify-content: flex-end;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 0.85rem;
}

.gallery-grid.view-list {
    grid-template-columns: 1fr;
}

.gallery-grid.view-list .gallery-item img {
    height: 420px;
}

.gallery-grid.view-day {
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
}

.day-heading {
    grid-column: 1 / -1;
    font-weight: 700;
    color: var(--gs-blue);
    margin-top: 0.8rem;
}

.gallery-item.hidden {
    display: none;
}

.gallery-item {
    position: relative;
}

.fav-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    z-index: 2;
    min-width: 40px;
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(32, 69, 188, 0.35);
    background: rgba(255, 255, 255, 0.92);
    color: var(--gs-blue);
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.fav-btn.active {
    background: var(--gs-blue);
    color: #fff;
    border-color: var(--gs-blue);
}

.gallery-item-actions {
    margin-top: 0.4rem;
}

.gallery-download-btn {
    width: 100%;
    min-width: 0;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.checkbox input {
    width: auto;
    margin: 0;
    min-width: 20px;
    min-height: 20px;
}

.schedule-filters {
    border-top: 6px solid var(--gs-blue);
    background:
        linear-gradient(130deg, rgba(161, 187, 255, 0.34), rgba(245, 245, 245, 0.9) 45%);
}

.schedule-filters.filters-hidden form {
    display: none;
}

.chip-group {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.8rem;
}

/* ---------- gallery refresh (geometria-like) ---------- */
.face-search-intro {
    margin-bottom: 1rem;
    padding: 0 0.15rem;
    color: rgba(26, 26, 26, 0.88);
    line-height: 1.55;
    font-size: 0.98rem;
}

.face-search-intro p {
    margin: 0 0 0.75rem;
}

.face-search-intro p:last-child {
    margin-bottom: 0;
}

.face-search-hero-head {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.55rem;
    margin-bottom: 1rem;
}

.face-search-hero-head h2 {
    margin: 0;
    font-size: clamp(1.2rem, 3.5vw, 1.45rem);
    font-weight: 700;
    color: var(--gs-blue, #2045bc);
    letter-spacing: -0.02em;
}

.face-search-hero-head .brand-logo-img {
    max-width: min(200px, 58vw);
}

.face-search-hero {
    border: 1px solid rgba(32, 69, 188, 0.22);
    background:
        linear-gradient(180deg, #ffffff 0%, #f6f9ff 100%);
    padding: 1rem;
}

.face-search-upload-shell {
    margin-bottom: 0.75rem;
}

.face-upload-drop {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 168px;
    border: 1px dashed rgba(32, 69, 188, 0.5);
    background: #ffffff;
    padding: 1.15rem 1rem;
    margin-bottom: 0;
    cursor: pointer;
    transition: border-color 0.15s ease, background 0.15s ease;
}

.face-search-dropzone.is-dragover {
    border-color: var(--gs-blue);
    background: rgba(161, 187, 255, 0.22);
}

.face-upload-drop-icon {
    display: block;
    color: var(--gs-blue);
    margin-bottom: 0.45rem;
    opacity: 0.92;
}

.face-upload-drop input[type="file"] {
    position: absolute;
    inset: 0;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
}

.face-upload-drop-title {
    display: block;
    font-weight: 700;
    color: var(--gs-blue);
    margin-bottom: 0.2rem;
}

.face-upload-drop-subtitle {
    display: block;
    color: rgba(26, 26, 26, 0.72);
    font-size: 0.9rem;
}

.face-search-actions {
    margin-top: 0.3rem;
}

.face-search-face-picker {
    margin-top: 0.75rem;
    padding: 0.75rem 0.85rem;
    border-radius: 14px;
    background: linear-gradient(180deg, #f4f7ff 0%, #eef2ff 100%);
    border: 1px solid rgba(32, 69, 188, 0.22);
}

.face-search-picker-hint {
    margin: 0 0 0.65rem;
    font-size: 0.95rem;
    color: rgba(26, 26, 26, 0.88);
    line-height: 1.35;
}

.face-search-picker-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    align-items: stretch;
    margin-bottom: 0.5rem;
}

.face-search-picker-tile {
    padding: 0;
    border: 2px solid rgba(32, 69, 188, 0.15);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background: #fff;
    line-height: 0;
    transition:
        border-color 0.15s ease,
        transform 0.15s ease,
        box-shadow 0.15s ease;
}

.face-search-picker-tile:hover,
.face-search-picker-tile:focus-visible {
    border-color: var(--gs-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(32, 69, 188, 0.18);
}

.face-search-picker-tile:focus-visible {
    outline: 2px solid rgba(32, 69, 188, 0.35);
    outline-offset: 2px;
}

.face-search-picker-tile canvas {
    display: block;
    width: 88px;
    height: 88px;
    object-fit: cover;
}

.face-search-picker-cancel {
    margin-top: 0.15rem;
    width: auto;
    min-width: 0;
}

.face-search-preview-wrap {
    margin-top: 0.75rem;
    text-align: center;
}

.face-search-preview-wrap img {
    display: block;
    max-width: 100%;
    max-height: min(48vh, 320px);
    width: auto;
    height: auto;
    margin: 0 auto;
    border-radius: 10px;
    border: 1px solid rgba(32, 69, 188, 0.18);
    object-fit: contain;
    background: #fff;
}

.face-search-clear-photo {
    margin-top: 0.55rem;
}

.gallery-section h2 {
    margin-bottom: 0.35rem;
}

.gallery-grid {
    margin-top: 0.45rem;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 0.65rem;
}

.gallery-item {
    border: 1px solid rgba(32, 69, 188, 0.16);
    background: #fff;
    padding: 0.32rem;
}

.gallery-item img {
    margin-bottom: 0.35rem;
}

.gallery-item-actions {
    margin-top: 0;
}

.gallery-download-btn {
    font-size: 0.86rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
}

.admin-upload-card .modern-upload-form {
    background: linear-gradient(180deg, #ffffff 0%, #f7faff 100%);
    border: 1px solid rgba(32, 69, 188, 0.18);
    padding: 0.75rem;
}

/* Brand logo (SVG) — публичная галерея, админка, вход */
.brand-logo-block {
    text-align: center;
    margin: 0.5rem 0 1rem;
}

.brand-header-block {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
    min-width: 0;
}

.brand-logo-link {
    display: inline-block;
    line-height: 0;
    border-radius: 12px;
    transition: transform 0.2s ease, filter 0.2s ease, box-shadow 0.2s ease;
}

.brand-logo-link:hover {
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.brand-logo-link:focus-visible {
    outline: 2px solid rgba(32, 69, 188, 0.45);
    outline-offset: 3px;
}

.brand-logo-img {
    display: block;
    max-width: min(220px, 52vw);
    height: auto;
    width: auto;
}

.brand-header-tagline {
    margin: 0;
    font-size: 0.88rem;
}

.public-gallery-page .toolbar .brand-logo-img {
    max-width: min(200px, 48vw);
}

/* Админка: hero загрузки */
.admin-upload-hero {
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(32, 69, 188, 0.2);
    background:
        radial-gradient(120% 80% at 10% 0%, rgba(47, 96, 255, 0.12), transparent 55%),
        linear-gradient(180deg, #ffffff 0%, #f4f7ff 100%);
}

.admin-upload-hero-head {
    margin-bottom: 0.75rem;
}

.admin-upload-hero-title {
    margin: 0 0 0.35rem;
    font-size: 1.35rem;
    letter-spacing: -0.02em;
}

.admin-upload-hero-lead {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.35;
}

.admin-upload-dropzone {
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        transform 0.15s ease;
}

.admin-upload-dropzone.is-dragover {
    border-color: var(--gs-blue) !important;
    background: linear-gradient(180deg, #eef3ff 0%, #e4ecff 100%) !important;
    box-shadow: 0 0 0 3px rgba(32, 69, 188, 0.2);
    transform: scale(1.01);
}

.admin-upload-dropzone.has-files .upload-dropzone-hint {
    color: var(--gs-blue);
    font-weight: 600;
}

/* Прогресс AJAX-загрузки */
.admin-upload-progress {
    margin-top: 1rem;
    padding: 1rem 1.1rem 1.05rem;
    border-radius: 16px;
    background: linear-gradient(145deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    color: #e2e8f0;
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow:
        0 16px 40px rgba(15, 23, 42, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.admin-upload-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin-bottom: 0.85rem;
}

.admin-upload-step {
    font-size: 0.72rem;
    text-transform: lowercase;
    letter-spacing: 0.04em;
    padding: 0.28rem 0.55rem;
    border-radius: 999px;
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #94a3b8;
    background: rgba(15, 23, 42, 0.5);
    transition:
        color 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;
}

.admin-upload-step.is-done {
    color: #86efac;
    border-color: rgba(74, 222, 128, 0.45);
    background: rgba(22, 101, 52, 0.25);
}

.admin-upload-step.is-active {
    color: #fff;
    border-color: rgba(96, 165, 250, 0.85);
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.55), rgba(59, 130, 246, 0.35));
    box-shadow: 0 0 18px rgba(59, 130, 246, 0.35);
}

.admin-upload-step.is-error {
    color: #fecaca;
    border-color: rgba(248, 113, 113, 0.55);
    background: rgba(127, 29, 29, 0.35);
}

.admin-upload-progress-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.35rem;
}

.admin-upload-progress-head strong {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.admin-upload-percent {
    font-variant-numeric: tabular-nums;
    font-size: 1.1rem;
    font-weight: 700;
    color: #93c5fd;
}

.admin-upload-progress-hint {
    margin: 0 0 0.75rem;
    color: #94a3b8 !important;
    font-size: 0.88rem;
    line-height: 1.4;
}

.admin-upload-progress-track {
    height: 10px;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.9);
    border: 1px solid rgba(51, 65, 85, 0.85);
    overflow: hidden;
    position: relative;
}

.admin-upload-progress-fill {
    height: 100%;
    width: 0%;
    border-radius: inherit;
    background: linear-gradient(90deg, #2563eb, #38bdf8, #818cf8);
    background-size: 200% 100%;
    transition: width 0.35s ease;
    animation: admin-upload-shimmer 1.8s ease-in-out infinite;
    box-shadow: 0 0 14px rgba(56, 189, 248, 0.45);
}

.admin-upload-progress[data-stage="done"] .admin-upload-progress-fill {
    animation: none;
    background: linear-gradient(90deg, #22c55e, #4ade80);
    box-shadow: 0 0 12px rgba(74, 222, 128, 0.4);
}

.admin-upload-progress[data-stage="err"] .admin-upload-progress-fill {
    animation: none;
    background: linear-gradient(90deg, #dc2626, #f87171);
    box-shadow: 0 0 12px rgba(248, 113, 113, 0.35);
}

@keyframes admin-upload-shimmer {
    0% {
        background-position: 0% 50%;
    }
    100% {
        background-position: 100% 50%;
    }
}

.admin-upload-result {
    margin-top: 0.75rem;
    background: rgba(15, 23, 42, 0.65) !important;
    border: 1px solid rgba(148, 163, 184, 0.35) !important;
    color: #e2e8f0 !important;
}

/* Массовое удаление и карточки в админке */
.admin-bulk-delete-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.65rem 1rem;
    margin-bottom: 0.85rem;
    padding: 0.55rem 0.65rem;
    border-radius: 12px;
    background: #fff5f5;
    border: 1px solid rgba(220, 38, 38, 0.22);
}

.admin-select-all-label {
    margin: 0;
    font-weight: 600;
}

.admin-published-card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.admin-published-check {
    margin: 0 0 0.25rem !important;
    font-size: 0.88rem;
}

.admin-single-delete-form {
    margin-top: auto;
    padding-top: 0.25rem;
}

.btn-compact {
    width: 100%;
    min-height: 40px;
    padding: 0.45rem 0.65rem;
    font-size: 0.88rem;
}

.chip-label {
    font-size: 0.9rem;
    color: rgba(26, 26, 26, 0.72);
    margin-right: 0.2rem;
    text-transform: lowercase;
}

.chip {
    border: 1px solid rgba(32, 69, 188, 0.5);
    color: var(--gs-black);
    background: #fff;
    border-radius: 999px;
    padding: 0.38rem 0.78rem;
    text-decoration: none;
    font-size: 0.9rem;
    text-transform: lowercase;
}

.chip.active {
    background: var(--gs-blue);
    color: var(--gs-offwhite);
    border-color: var(--gs-blue);
}

.tags-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.45rem 0.8rem;
    margin-top: 0.5rem;
}

.tag-pill {
    border: 1px solid rgba(32, 69, 188, 0.35);
    border-radius: 999px;
    padding: 0.44rem 0.72rem;
    margin: 0;
    background: #fff;
}

.tag-pill.is-checked {
    background: #e5ecff;
    border-color: var(--gs-blue);
}

.pagination {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    gap: 0.45rem;
    flex-wrap: wrap;
}

.card-soft {
    background: #f7f9ff;
}

.admin-users {
    display: grid;
    gap: 0.55rem;
    margin-top: 0.8rem;
}

.row-inline {
    display: flex;
    gap: 0.6rem;
    align-items: center;
    flex-wrap: wrap;
}

.row-inline select,
.row-inline button {
    width: auto;
    margin: 0;
}

.log-box {
    margin-top: 0.75rem;
    background: #0f172a;
    color: #e2e8f0;
    border-radius: 12px;
    padding: 0.75rem;
    max-height: 320px;
    overflow: auto;
    white-space: pre-wrap;
    word-break: break-word;
    font-size: 0.82rem;
    line-height: 1.4;
}

.device-preview-panel {
    border-style: dashed;
}

.admin-filter-presets {
    margin-top: 0.55rem;
}

.device-profile-buttons .btn {
    min-width: 120px;
}

.preview-profile-btn.active {
    background: #1a1a1a;
    border-color: #1a1a1a;
}

#faceThreshold {
    width: 100%;
}

.lightbox-overlay {
    position: fixed;
    inset: 0;
    z-index: 9999;
    background: rgba(2, 6, 23, 0.92);
    display: none;
    box-sizing: border-box;
    padding: max(10px, var(--safe-top)) max(10px, var(--safe-right)) max(10px, var(--safe-bottom))
        max(10px, var(--safe-left));
    overflow: hidden;
}

.lightbox-overlay.open {
    display: grid;
    grid-template-columns: min(52px, 14vw) minmax(0, 1fr) min(52px, 14vw);
    grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas:
        "lb-close lb-close lb-close"
        "lb-prev lb-stage lb-next"
        "lb-dl lb-dl lb-dl";
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    max-height: 100vh;
    max-height: 100dvh;
}

.lightbox-close {
    grid-area: lb-close;
    position: static;
    justify-self: end;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox-prev {
    grid-area: lb-prev;
    position: static;
    align-self: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox-next {
    grid-area: lb-next;
    position: static;
    align-self: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    border-radius: 999px;
    padding: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.lightbox-stage {
    grid-area: lb-stage;
    position: relative;
    display: flex;
    align-items: stretch;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
    touch-action: none;
}

.lightbox-zoom-layer {
    box-sizing: border-box;
    width: 100%;
    height: 100%;
    max-width: 100%;
    max-height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transform-origin: center center;
    will-change: transform;
}

/*
 * Вписываем фото в реальную высоту ячейки сетки (.lightbox-stage), а не в vh:
 * иначе max-height по viewport больше доступной сотки «стрелки — крестик — скачать» и края
 * съедает overflow:hidden (особенно на телефоне).
 */
.lightbox-overlay .lightbox-image {
    display: block;
    margin: 0;
    padding: 0;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: center;
    border-radius: 10px;
}

a.lightbox-download {
    grid-area: lb-dl;
    position: static;
    white-space: nowrap;
    text-decoration: none;
    z-index: 2;
    margin-top: 4px;
}

/* iPhone 12-15 baseline (390-430 logical width) */
@media (max-width: 430px) {
    .container {
        width: min(100%, calc(100vw - 12px));
        padding-left: max(0px, var(--safe-left));
        padding-right: max(0px, var(--safe-right));
        padding-bottom: max(8px, var(--safe-bottom));
    }
    .card {
        border-radius: 14px;
        padding: 0.85rem;
    }
    .brand-title {
        font-size: clamp(1.85rem, 9vw, 2.5rem);
    }
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }
    .photo-card img,
    .gallery-item img {
        height: 230px;
    }
    .chip {
        font-size: 0.82rem;
        padding: 0.36rem 0.62rem;
    }
}

/* iPhone SE and ultra-small devices */
@media (max-width: 375px) {
    .container {
        width: min(100%, calc(100vw - 8px));
    }
    .brand-title {
        font-size: clamp(1.7rem, 11vw, 2.2rem);
    }
    .photo-card img,
    .gallery-item img {
        height: 205px;
    }
    .log-box {
        max-height: 210px;
        font-size: 0.74rem;
    }
    .chip {
        font-size: 0.79rem;
        padding: 0.34rem 0.56rem;
    }
}

/* Android small-large phones */
@media (min-width: 360px) and (max-width: 480px) {
    .gallery-grid.view-list .gallery-item img {
        height: 300px;
    }
}

/* Tablet portrait */
@media (min-width: 700px) and (max-width: 1024px) {
    .toolbar {
        flex-direction: column;
        align-items: flex-start;
    }
    .toolbar-actions {
        width: 100%;
        justify-content: flex-start;
    }
    .grid3 {
        grid-template-columns: 1fr 1fr;
    }
    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    }
    .gallery-grid.view-list .gallery-item img {
        height: 340px;
    }
}

/* Tablet landscape and small laptop overlap */
@media (min-width: 1025px) and (max-width: 1280px) {
    .container {
        width: min(1200px, 95vw);
    }
    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    }
}

@media (max-width: 700px) {
    .admin-layout {
        grid-template-columns: 1fr;
    }
    .admin-sidebar-stack {
        position: static;
        max-height: none;
        overflow: visible;
        padding-right: 0;
    }
    .admin-photos-section {
        min-width: 0;
    }
    body.admin-page.admin-focus-mode .admin-layout {
        grid-template-columns: 1fr;
    }
    .container {
        width: min(100%, 96vw);
    }
    .grid2,
    .grid3 {
        grid-template-columns: 1fr;
    }
    .inline {
        flex-direction: column;
        align-items: stretch;
    }
    .inline .btn,
    .inline button,
    .inline form {
        width: 100%;
    }
    .btn,
    button {
        min-width: 0;
        width: 100%;
    }
    .photo-card img,
    .gallery-item img {
        height: 210px;
    }
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }
    .lightbox-prev,
    .lightbox-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
    }
}

@media (max-width: 460px) {
    .brand-title {
        font-size: clamp(1.8rem, 10vw, 2.4rem);
    }
    .gallery-grid {
        grid-template-columns: 1fr;
    }
    .photo-card img,
    .gallery-item img {
        height: 220px;
    }
    .chip-group {
        gap: 0.35rem;
    }
    .chip {
        font-size: 0.82rem;
        padding: 0.34rem 0.62rem;
    }
    .log-box {
        max-height: 240px;
        font-size: 0.76rem;
    }
}

@media (pointer: coarse) {
    .chip,
    .btn,
    button {
        min-height: 44px;
    }
    .chip {
        display: inline-flex;
        align-items: center;
    }
}

/* Admin quick device preview profiles */
body.admin-page[class*="preview-profile-"] .container {
    width: min(100%, calc(100vw - 14px));
}

body.admin-page.preview-profile-iphone-se .container {
    max-width: 375px;
}

body.admin-page.preview-profile-iphone-15 .container {
    max-width: 390px;
}

body.admin-page.preview-profile-pixel-8 .container {
    max-width: 412px;
}

body.admin-page.preview-profile-galaxy-s23 .container {
    max-width: 360px;
}

body.admin-page.preview-profile-ipad-mini .container {
    max-width: 768px;
}

body.admin-page.preview-profile-ipad-pro .container {
    max-width: 1024px;
}

/* ---------- Device matrix fine-tuning ---------- */

/* iPhone SE (2020/2022) ~ 375x667 logical */
@media (max-width: 375px) and (max-height: 700px) {
    .brand-title {
        font-size: 1.78rem;
    }
    .card {
        padding: 0.72rem;
    }
    .photo-card img,
    .gallery-item img {
        height: 188px;
    }
    .gallery-grid.view-list .gallery-item img {
        height: 250px;
    }
    .toolbar-actions .muted {
        font-size: 0.8rem;
    }
}

/* iPhone 12/13/14/15 and Pro line ~ 390x844 */
@media (min-width: 390px) and (max-width: 393px) and (min-height: 780px) {
    .brand-title {
        font-size: 2rem;
    }
    .container {
        width: min(100%, calc(100vw - 10px));
        padding-top: 0.75rem;
        padding-bottom: 0.75rem;
    }
    .card {
        padding: 0.78rem;
    }
    .inline {
        gap: 0.55rem;
    }
    .chip {
        font-size: 0.8rem;
        padding: 0.34rem 0.58rem;
    }
    .admin-layout {
        gap: 0.55rem;
    }
    .photo-card img,
    .gallery-item img {
        height: 236px;
    }
    .gallery-grid.view-list .gallery-item img {
        height: 324px;
    }
}

/* iPhone Plus/Pro Max ~ 428x926 */
@media (min-width: 414px) and (max-width: 430px) and (min-height: 860px) {
    .container {
        width: min(100%, calc(100vw - 14px));
    }
    .photo-card img,
    .gallery-item img {
        height: 248px;
    }
    .gallery-grid.view-list .gallery-item img {
        height: 352px;
    }
}

/* Pixel/Galaxy compact Android ~ 360x800 */
@media (min-width: 360px) and (max-width: 370px) and (min-height: 720px) {
    .photo-card img,
    .gallery-item img {
        height: 206px;
    }
    .chip {
        font-size: 0.8rem;
    }
}

/* Pixel/Galaxy larger Android ~ 412x915 */
@media (min-width: 411px) and (max-width: 414px) and (min-height: 860px) {
    .photo-card img,
    .gallery-item img {
        height: 242px;
    }
    .gallery-grid.view-list .gallery-item img {
        height: 346px;
    }
}

/* iPad Mini portrait 768x1024 */
@media (min-width: 768px) and (max-width: 820px) and (min-height: 980px) {
    .container {
        width: min(100%, 94vw);
    }
    .admin-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .photo-card img,
    .gallery-item img {
        height: 220px;
    }
}

/* iPad Air/Pro portrait 820-1024 width */
@media (min-width: 820px) and (max-width: 1024px) and (min-height: 1020px) {
    .admin-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
    .photo-card img,
    .gallery-item img {
        height: 230px;
    }
}

/* iPad landscape / small tablet laptop crossover */
@media (min-width: 1024px) and (max-width: 1366px) and (orientation: landscape) {
    .admin-grid {
        grid-template-columns: repeat(auto-fill, minmax(238px, 1fr));
    }
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(218px, 1fr));
    }
    .photo-card img,
    .gallery-item img {
        height: 214px;
    }
}

/* ---------- usability stabilization ---------- */
.container {
    padding-left: 10px;
    padding-right: 10px;
}

.toolbar-actions form {
    margin: 0;
}

.toolbar-actions .btn,
.toolbar-actions button {
    min-width: 0;
}

.admin-grid,
.gallery-grid {
    align-items: start;
}

.admin-grid > *,
.gallery-grid > * {
    min-width: 0;
}

input[type="text"],
input[type="password"],
input[type="file"],
select,
button {
    max-width: 100%;
}

.inline > form {
    margin: 0;
}

.inline > form button,
.inline > form .btn {
    width: auto;
}

/* Админка: компактная сетка с фиксированным кадром */
.photo-card img {
    height: auto;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}

.gallery-grid.view-list .photo-card img {
    aspect-ratio: 16 / 9;
}

/*
 * Публичная галерея — репортажная сетка (плотная адаптивная сетка, в духе geometria.ru/reportage).
 */
body.public-gallery-page .public-gallery-toolbar {
    padding-top: max(0.75rem, var(--safe-top));
    padding-left: max(12px, var(--safe-left));
    padding-right: max(12px, var(--safe-right));
}

body.public-gallery-page .public-gallery-toolbar--minimal {
    justify-content: flex-end;
}

body.public-gallery-page .toolbar-actions--end {
    margin-left: auto;
}

body.public-gallery-page .public-gallery-main {
    padding-left: max(12px, var(--safe-left));
    padding-right: max(12px, var(--safe-right));
    padding-bottom: max(1rem, var(--safe-bottom));
}

body.public-gallery-page .gallery-section.gallery-reportage {
    max-width: min(1680px, 100%);
    margin-inline: auto;
}

body.public-gallery-page #searchResultsSection[hidden] {
    display: none !important;
}

body.public-gallery-page #searchResultsSection .gallery-reportage-grid.view-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
    max-width: min(920px, 100%);
    margin-inline: auto;
}

body.public-gallery-page #searchResultsSection .gallery-reportage-grid.view-list .gallery-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

body.public-gallery-page #searchResultsSection .gallery-reportage-grid.view-list .gallery-item-view {
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 10;
}

body.public-gallery-page #searchResultsSection .gallery-reportage-grid.view-list .gallery-item-actions {
    width: 100%;
}

body.public-gallery-page #searchResultsSection .gallery-reportage-grid.view-list .gallery-download-btn {
    width: 100%;
    min-width: 0;
}

.gallery-reportage-head {
    margin-bottom: 0.65rem;
}

.gallery-reportage-head h2 {
    margin-bottom: 0.25rem;
}

.gallery-reportage-meta {
    margin: 0;
    font-size: 0.92rem;
}

body.public-gallery-page .gallery-section.gallery-reportage .gallery-item {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    padding: 0;
    border: none;
    background: transparent;
    min-width: 0;
}

/* Перебиваем display:flex выше: иначе .gallery-item.hidden не скрывает карточки после поиска */
body.public-gallery-page .gallery-section.gallery-reportage .gallery-item.hidden {
    display: none;
}

body.public-gallery-page .gallery-section.gallery-reportage .gallery-item-actions {
    margin-top: 0;
}

body.public-gallery-page .gallery-section.gallery-reportage .gallery-download-btn {
    font-size: clamp(0.78rem, 3vw, 0.86rem);
    padding: 0.42rem 0.55rem;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

/*
 * До включения JS — простая сетка; после — класс gallery-reportage-grid--justified (ряды по пропорциям фото).
 */
body.public-gallery-page .gallery-reportage-grid.gallery-grid:not(.gallery-reportage-grid--justified) {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(6px, 1.8vw, 14px);
    margin-top: 0.5rem;
}

@media (min-width: 420px) {
    body.public-gallery-page .gallery-reportage-grid.gallery-grid:not(.gallery-reportage-grid--justified):not(.view-list):not(.view-day) {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 640px) {
    body.public-gallery-page .gallery-reportage-grid.gallery-grid:not(.gallery-reportage-grid--justified):not(.view-list):not(.view-day) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: clamp(8px, 1.5vw, 16px);
    }
}

@media (min-width: 960px) {
    body.public-gallery-page .gallery-reportage-grid.gallery-grid:not(.gallery-reportage-grid--justified):not(.view-list):not(.view-day) {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (min-width: 1320px) {
    body.public-gallery-page .gallery-reportage-grid.gallery-grid:not(.gallery-reportage-grid--justified):not(.view-list):not(.view-day) {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

/* Justified-ряды (скрипт): альбом + портрет в одной линии, общая высота ряда */
body.public-gallery-page .gallery-reportage-grid.gallery-reportage-grid--justified {
    display: block !important;
    width: 100%;
    margin-top: 0.5rem;
}

body.public-gallery-page .gallery-justified-row {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: flex-end;
    gap: 10px;
    width: 100%;
    margin-bottom: 10px;
}

body.public-gallery-page .gallery-justified-row:last-child {
    margin-bottom: 0;
}

/* Режим списка: крупнее, одна колонка */
body.public-gallery-page .gallery-reportage-grid.gallery-grid.view-list {
    grid-template-columns: minmax(0, 1fr);
    max-width: min(920px, 100%);
    margin-inline: auto;
    gap: 1rem;
}

body.public-gallery-page .gallery-reportage-grid.gallery-grid.view-list .gallery-item {
    flex-direction: row;
    align-items: stretch;
    gap: 0.75rem;
    flex-wrap: wrap;
}

body.public-gallery-page .gallery-reportage-grid.gallery-grid.view-list a.gallery-item-view {
    flex: 1 1 220px;
    max-width: 100%;
    min-height: 200px;
    aspect-ratio: 16 / 10;
}

body.public-gallery-page .gallery-reportage-grid.gallery-grid.view-list .gallery-item-actions {
    flex: 1 1 100%;
}

@media (min-width: 600px) {
    body.public-gallery-page .gallery-reportage-grid.gallery-grid.view-list .gallery-item {
        flex-wrap: nowrap;
    }

    body.public-gallery-page .gallery-reportage-grid.gallery-grid.view-list .gallery-item-actions {
        flex: 0 0 auto;
        align-self: center;
        width: auto;
    }

    body.public-gallery-page .gallery-reportage-grid.gallery-grid.view-list .gallery-download-btn {
        width: auto;
        min-width: 7.5rem;
    }
}

body.public-gallery-page .gallery-section.gallery-reportage a.gallery-item-view {
    display: block;
    overflow: hidden;
    aspect-ratio: 1;
    background: #e6eaf3;
    flex-shrink: 0;
    transition: opacity 0.15s ease;
}

body.public-gallery-page .gallery-reportage-grid.gallery-reportage-grid--justified a.gallery-item-view {
    aspect-ratio: auto;
}

/* Скругления как на репортажных галереях (перебиваем глобальный border-radius: 0) */
body.public-gallery-page .gallery-item-view,
body.public-gallery-page .gallery-item-view img {
    border-radius: 12px !important;
}

body.public-gallery-page .gallery-section.gallery-reportage a.gallery-item-view:focus-visible {
    outline: 2px solid var(--gs-blue);
    outline-offset: 2px;
}

@media (hover: hover) and (pointer: fine) {
    body.public-gallery-page .gallery-section.gallery-reportage .gallery-item:hover a.gallery-item-view {
        opacity: 0.94;
    }
}

body.public-gallery-page .gallery-section.gallery-reportage a.gallery-item-view img {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    object-position: center;
    display: block;
}

/* Ландшафт на узком телефоне — запасная сетка до JS */
@media (max-height: 460px) and (orientation: landscape) {
    body.public-gallery-page .gallery-reportage-grid.gallery-grid:not(.gallery-reportage-grid--justified):not(.view-list) {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 6px;
    }
}

.log-box {
    overflow-wrap: anywhere;
}

/* ---------- strict sharp corners + alignment cleanup ---------- */
*,
*::before,
*::after {
    border-radius: 0 !important;
}

button,
.btn,
input[type="text"],
input[type="password"],
input[type="file"],
select {
    min-height: 44px;
    line-height: 1.2;
}

.toolbar,
.toolbar-actions,
.inline {
    align-items: center;
}

.toolbar-actions {
    gap: 0.45rem;
}

label {
    margin-bottom: 0.5rem;
}

input[type="text"],
input[type="password"],
input[type="file"],
select,
button {
    margin-top: 0.28rem;
}

.upload-dropzone {
    display: block;
}

.upload-dropzone-title,
.upload-dropzone-subtitle,
.upload-dropzone-hint {
    display: block;
}

/* ---------- full-width adaptive layout ---------- */
.container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: 12px;
    padding-right: 12px;
}

.admin-main,
.narrow {
    max-width: none;
}

body.admin-page[class*="preview-profile-"] .container,
body.admin-page.preview-profile-iphone-se .container,
body.admin-page.preview-profile-iphone-15 .container,
body.admin-page.preview-profile-pixel-8 .container,
body.admin-page.preview-profile-galaxy-s23 .container,
body.admin-page.preview-profile-ipad-mini .container,
body.admin-page.preview-profile-ipad-pro .container {
    width: 100% !important;
    max-width: none !important;
}

/* ---------- public gallery v2 overrides ---------- */
body.public-gallery-page {
    background: #ffffff !important;
    color: #1a1a1a;
}

body.public-gallery-page .container {
    width: min(1560px, 100%);
    margin: 0 auto;
    padding-left: clamp(10px, 2.2vw, 24px);
    padding-right: clamp(10px, 2.2vw, 24px);
}

body.public-gallery-page .public-gallery-toolbar {
    padding-top: max(12px, var(--safe-top));
}

body.public-gallery-page .brand-title {
    color: #2045bc;
    letter-spacing: -0.02em;
}

body.public-gallery-page .face-search-hero,
body.public-gallery-page .gallery-section.gallery-reportage {
    border-radius: 14px !important;
}

body.public-gallery-page .face-upload-drop {
    min-height: 148px;
    border-radius: 12px !important;
}

body.public-gallery-page .gallery-reportage-head {
    margin-bottom: 0.85rem;
}

body.public-gallery-page .gallery-grid.gallery-reportage-grid {
    display: grid;
    gap: clamp(8px, 1vw, 14px);
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

body.public-gallery-page .gallery-item {
    border-radius: 12px !important;
    overflow: hidden;
    background: #fff;
    border: 1px solid rgba(32, 69, 188, 0.14);
    padding: 0;
}

body.public-gallery-page .gallery-item-view,
body.public-gallery-page .gallery-item-view img {
    border-radius: 0 !important;
}

body.public-gallery-page .gallery-item-view {
    display: block;
    aspect-ratio: 4 / 5;
    background: #e8ecf9;
}

body.public-gallery-page .gallery-item-view img {
    width: 100%;
    height: 100% !important;
    max-height: none !important;
    object-fit: cover;
    margin: 0;
}

body.public-gallery-page .gallery-item-actions {
    padding: 8px;
}

body.public-gallery-page .gallery-download-btn {
    width: 100%;
    min-width: 0;
    border-radius: 0 !important;
}

button,
.btn,
.chip {
    border-radius: 0 !important;
}

@media (max-width: 359px) {
    body.public-gallery-page .gallery-grid.gallery-reportage-grid {
        grid-template-columns: 1fr;
    }
}

@media (min-width: 640px) {
    body.public-gallery-page .gallery-grid.gallery-reportage-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 960px) {
    body.public-gallery-page .gallery-grid.gallery-reportage-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (min-width: 1400px) {
    body.public-gallery-page .gallery-grid.gallery-reportage-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

@media (max-height: 460px) and (orientation: landscape) {
    body.public-gallery-page .gallery-grid.gallery-reportage-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    body.public-gallery-page .face-upload-drop {
        min-height: 108px;
    }
}

