
*,
*::before,
*::after {
    box-sizing: border-box;
}
:root {
    --bg: #111318;
    --bg-soft: #f4f5f7;
    --surface: #ffffff;
    --surface-dark: #171a21;
    --text: #15171c;
    --text-soft: #5d6675;
    --text-light: #f5f7fb;
    --border: #e4e8ee;
    --border-dark: rgba(255, 255, 255, 0.12);
    --accent: #cf1f1f;
    --accent-dark: #9d1717;
    --success: #13864c;
    --danger: #b71d1d;
    --shadow: 0 12px 28px rgba(16, 18, 24, 0.08);
    --radius: 14px;
    --wrap: 1180px;
    --font-heading: "Arial Narrow", "Helvetica Neue Condensed", Arial, sans-serif;
    --font-mono: "Consolas", "SFMono-Regular", "Courier New", monospace;
}
html {
    scroll-behavior: smooth;
}
body {
    margin: 0;
    font-family: Inter, Arial, Helvetica, sans-serif;
    color: var(--text);
    background: #fff;
    line-height: 1.6;
}
.hero-copy h1,
.section h2,
.login-card h1,
.admin-section h2 {
    font-family: var(--font-heading);
    font-weight: 800;
    text-transform: uppercase;
}
.hero-copy h1 {
    text-transform: none;
}
.card h3,
.step-card h3,
.project-card h3,
.admin-project-content h3,
.testimonial-name,
.brand-word {
    font-family: var(--font-heading);
    font-weight: 800;
}
.eyebrow,
.step-number,
.stat-value,
.mini-value,
.info-value,
.project-meta,
.admin-project-meta {
    font-family: var(--font-mono);
}
img {
    max-width: 100%;
    display: block;
}
picture {
    display: block;
}
a {
    color: inherit;
    text-decoration: none;
}
button,
input,
textarea {
    font: inherit;
}
.wrap {
    width: min(calc(100% - 32px), var(--wrap));
    margin: 0 auto;
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(17, 19, 24, 0.06);
}
.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 88px;
}
.brand img {
    width: 220px;
    height: auto;
}
.nav-links {
    display: flex;
    align-items: center;
    gap: 22px;
    font-weight: 600;
}
.nav-links a:not(.button):hover {
    color: var(--accent);
}
.nav-toggle {
    display: none;
    border: 0;
    background: #fff;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 22px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 22px;
    border-radius: 4px;
    border: 1px solid transparent;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    clip-path: polygon(0 0, 100% 0, 100% calc(100% - 11px), calc(100% - 11px) 100%, 0 100%);
}
.button:hover {
    transform: translateY(-1px);
}
.button-full {
    width: 100%;
}
.button-primary {
    background: var(--accent);
    color: #fff;
}
.button-primary:hover {
    background: var(--accent-dark);
}
.button-secondary {
    background: #fff;
    color: var(--text);
    border-color: rgba(17, 19, 24, 0.12);
}
.button-light {
    background: #fff;
    color: var(--text);
}
.button-ghost {
    color: #fff;
    border-color: rgba(255, 255, 255, 0.2);
}
.button-danger {
    background: #fff2f2;
    color: var(--danger);
    border-color: rgba(183, 29, 29, 0.15);
}
.hero {
    position: relative;
    padding: 72px 0 56px;
    overflow: hidden;
    background-color: #fbfaf8;
    background-image:
        repeating-linear-gradient(135deg, rgba(207, 31, 31, 0.055) 0 2px, transparent 2px 28px),
        linear-gradient(180deg, #fff 0%, #f5f4f0 100%);
}
.hero-truss {
    position: absolute;
    top: -20px;
    right: -10px;
    width: 520px;
    height: 520px;
    opacity: 0.11;
    pointer-events: none;
    z-index: 0;
}
.hero-grid {
    position: relative;
    z-index: 1;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    gap: 42px;
    align-items: center;
}
.hero-copy h1,
.section h2,
.login-card h1,
.admin-section h2 {
    margin: 0 0 14px;
    font-size: clamp(2rem, 3.6vw, 4.1rem);
    line-height: 1.06;
    letter-spacing: -0.03em;
}
.section h2,
.admin-section h2 {
    font-size: clamp(1.6rem, 3vw, 2.6rem);
}
.hero-text,
.section-heading p,
.cta-band p,
.card p,
.step-card p,
.footer-grid p,
.contact-form,
.contact-form input,
.contact-form textarea,
.info-item span,
.mini-card span {
    color: var(--text-soft);
}
.eyebrow {
    display: inline-flex;
    align-items: center;
    margin-bottom: 14px;
    padding: 0 0 0 14px;
    border-left: 3px solid var(--accent);
    color: var(--accent-dark);
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 0.78rem;
}
.section-heading-light .eyebrow,
.cta-band .eyebrow {
    color: #ff8b8b;
    border-left-color: #ff8b8b;
}
.hero-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin: 28px 0 30px;
}
.hero-visual {
    position: relative;
    padding: 14px;
}
.hero-visual::before,
.hero-visual::after {
    content: "";
    position: absolute;
    width: 32px;
    height: 32px;
    border: 2px solid var(--accent);
    z-index: 2;
}
.hero-visual::before {
    top: 0;
    left: 0;
    border-right: 0;
    border-bottom: 0;
}
.hero-visual::after {
    bottom: 0;
    right: 0;
    border-left: 0;
    border-top: 0;
}
.hero-visual img {
    width: 100%;
    border-radius: 4px;
    box-shadow: var(--shadow);
    min-height: 500px;
    height: 500px;
    object-fit: cover;
}
.hero-badge {
    position: absolute;
    right: 22px;
    bottom: 22px;
    width: min(320px, calc(100% - 44px));
    padding: 18px 20px;
    border-radius: 14px;
    background: rgba(17, 19, 24, 0.9);
    color: #fff;
    backdrop-filter: blur(10px);
}
.hero-badge span {
    display: block;
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.95rem;
    margin-top: 6px;
}
.hero-badge .badge-title {
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    margin-top: 0;
}
.stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}
.stat-card {
    padding: 18px;
    background: #fff;
    border-radius: 18px;
    border: 1px solid rgba(17, 19, 24, 0.08);
    box-shadow: 0 10px 30px rgba(17, 19, 24, 0.06);
}
.stat-card .stat-value {
    display: block;
    font-size: 1.2rem;
    font-weight: 800;
    margin-bottom: 6px;
}
.stat-card .stat-value-text {
    font-size: 1rem;
}
.section {
    padding: 84px 0;
}
.roof-divider {
    --tooth: #fbfaf8;
    --base: #fff;
    height: 18px;
    background-color: var(--base);
    background-image:
        linear-gradient(135deg, var(--tooth) 25%, transparent 25%),
        linear-gradient(225deg, var(--tooth) 25%, transparent 25%);
    background-position: 0 0, 9px 0;
    background-size: 18px 18px;
}
.section-soft {
    background: var(--bg-soft);
}
.section-dark {
    background: linear-gradient(180deg, #151920 0%, #101218 100%);
    color: var(--text-light);
}
.section-heading {
    max-width: 720px;
    margin-bottom: 36px;
}
.section-heading-light p {
    color: rgba(255, 255, 255, 0.7);
}
.two-column {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 32px;
    align-items: start;
}
.info-panel {
    display: grid;
    gap: 16px;
    padding: 26px;
    border-radius: var(--radius);
    background: var(--surface-dark);
    color: #fff;
    box-shadow: var(--shadow);
}
.info-item {
    padding-bottom: 16px;
    border-bottom: 1px solid var(--border-dark);
}
.info-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}
.info-item span {
    display: block;
    color: rgba(255, 255, 255, 0.62);
    margin-bottom: 4px;
}
.info-item .info-value {
    color: #fff;
    font-weight: 800;
    margin-bottom: 0;
}
.cards {
    display: grid;
    gap: 22px;
}
.cards-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}
.card,
.step-card,
.mini-card,
.contact-form,
.admin-stat,
.admin-project-card,
.login-card,
.flash,
.project-card,
.admin-section,
.existing-image-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.card,
.step-card {
    padding: 28px;
    border: 1px solid rgba(17, 19, 24, 0.06);
}
.card h3,
.step-card h3,
.project-card h3,
.admin-project-content h3 {
    margin: 0 0 10px;
    font-size: 1.3rem;
}
.card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin-bottom: 16px;
    border-radius: 10px;
    background: rgba(207, 31, 31, 0.08);
    color: var(--accent);
}
.card-icon svg {
    width: 22px;
    height: 22px;
}
.steps {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    position: relative;
    padding-top: 4px;
}
.steps::before {
    content: "";
    position: absolute;
    top: 23px;
    left: 4%;
    right: 4%;
    height: 2px;
    background: repeating-linear-gradient(90deg, rgba(207, 31, 31, 0.35) 0 10px, transparent 10px 18px);
}
.step-card {
    position: relative;
    background: transparent;
    box-shadow: none;
    border: 0;
    padding: 0;
}
.step-number {
    display: inline-flex;
    position: relative;
    z-index: 1;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-weight: 800;
    font-size: 0.95rem;
    margin-bottom: 18px;
    box-shadow: 0 0 0 6px #fff;
}
.project-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}
.project-card {
    position: relative;
    overflow: hidden;
    background: #fff;
    color: var(--text);
}
.project-card::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    z-index: 2;
    border-style: solid;
    border-width: 0 26px 26px 0;
    border-color: transparent var(--accent) transparent transparent;
}
.project-card-badge {
    position: absolute;
    top: 3px;
    right: 3px;
    z-index: 3;
    width: 13px;
    height: 13px;
    color: #fff;
    pointer-events: none;
}
.project-image-button {
    padding: 0;
    border: 0;
    background: transparent;
    width: 100%;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    cursor: pointer;
}
.project-image-button picture,
.gallery-card-image picture,
.detail-cover picture,
.detail-thumb picture {
    width: 100%;
    height: 100%;
}
.project-card img,
.admin-project-card img,
.existing-image-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.project-card-body {
    padding: 22px;
}
.project-meta,
.admin-project-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 10px;
    color: var(--text-soft);
    font-size: 0.9rem;
}
.text-link {
    margin-top: 10px;
    border: 0;
    background: transparent;
    padding: 0;
    color: var(--accent);
    font-weight: 800;
    cursor: pointer;
}
.centered-action {
    display: flex;
    justify-content: center;
    margin-top: 32px;
}
.testimonial-card {
    position: relative;
    padding-top: 46px;
}
.testimonial-card::before {
    content: "\201C";
    position: absolute;
    top: -6px;
    left: 22px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 4.5rem;
    line-height: 1;
    color: rgba(207, 31, 31, 0.16);
}
.testimonial-card .stars {
    position: relative;
    margin-bottom: 14px;
    color: #d39a12;
    letter-spacing: 0.15em;
    font-size: 1rem;
}
.testimonial-author {
    display: grid;
    gap: 4px;
    margin-top: 20px;
}
.testimonial-name {
    font-weight: 800;
}
.cta-band {
    position: relative;
    overflow: hidden;
    background: #111318;
    border-top: 3px solid var(--accent);
    color: #fff;
}
.cta-band::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 42%;
    background: repeating-linear-gradient(115deg, rgba(207, 31, 31, 0.18) 0 3px, transparent 3px 22px);
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 55%);
    mask-image: linear-gradient(90deg, transparent, #000 55%);
    pointer-events: none;
}
.cta-band-inner {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}
.contact-grid {
    display: grid;
    grid-template-columns: 0.92fr 1.08fr;
    gap: 30px;
}
.contact-cards {
    display: grid;
    gap: 14px;
    margin-top: 24px;
}
.mini-card {
    padding: 18px 20px;
}
.mini-card span {
    display: block;
    font-size: 0.92rem;
    margin-bottom: 6px;
}
.mini-card .mini-value {
    color: var(--text);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 0;
}
.contact-form {
    padding: 26px;
    display: grid;
    gap: 14px;
}
.contact-form label,
.admin-form label {
    display: grid;
    gap: 8px;
}
.contact-form input,
.contact-form textarea,
.admin-form input,
.admin-form textarea {
    width: 100%;
    padding: 14px 16px;
    border-radius: 14px;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}
.hp-field {
    position: absolute;
    left: -100vw;
    opacity: 0;
    pointer-events: none;
}
.site-footer {
    padding: 70px 0 24px;
    background: #101218;
    color: #fff;
}
.footer-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr 0.8fr 0.9fr;
    gap: 28px;
}
.footer-logo {
    width: 220px;
    max-width: 100%;
    height: auto;
    object-fit: contain;
    margin-bottom: 12px;
}
.footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}
.footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 36px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
}
.flash {
    padding: 14px 18px;
    border: 1px solid transparent;
    font-weight: 700;
}
.flash-success {
    background: #eefbf3;
    border-color: rgba(19, 134, 76, 0.18);
    color: var(--success);
}
.flash-error {
    background: #fff4f4;
    border-color: rgba(183, 29, 29, 0.18);
    color: var(--danger);
}
.modal {
    position: fixed;
    inset: 0;
    z-index: 100;
}
.modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(5, 6, 8, 0.72);
}
.modal-dialog {
    position: relative;
    width: min(980px, calc(100% - 28px));
    margin: 36px auto;
    max-height: calc(100vh - 72px);
    overflow: auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 22px 80px rgba(0, 0, 0, 0.35);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 0;
    background: rgba(17, 19, 24, 0.9);
    color: #fff;
    font-size: 1.8rem;
    cursor: pointer;
}
.modal-gallery {
    display: grid;
    gap: 10px;
    padding: 18px 18px 0;
}
.modal-gallery img {
    width: 100%;
    border-radius: 4px;
    max-height: 500px;
    object-fit: cover;
}
.modal-content {
    padding: 22px 24px 28px;
}
.modal-open {
    overflow: hidden;
}
.login-body,
.admin-body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(207, 31, 31, 0.14), transparent 24%),
        linear-gradient(180deg, #f7f8fa 0%, #eef1f5 100%);
}
.login-card {
    width: min(480px, calc(100% - 24px));
    margin: 72px auto;
    padding: 34px;
}
.login-brand img {
    width: 240px;
    margin: 0 auto 16px;
}
.login-note {
    margin-top: 20px;
    padding: 18px;
    border-radius: 18px;
    background: #f7f8fb;
    display: grid;
    gap: 4px;
}
.admin-topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    background: #111318;
    color: #fff;
    box-shadow: 0 10px 35px rgba(8, 9, 12, 0.2);
}
.admin-topbar-inner {
    min-height: 84px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}
.admin-brand {
    display: flex;
    align-items: center;
    gap: 16px;
}
.admin-brand img {
    width: 136px;
    background: #fff;
    padding: 8px;
    border-radius: 14px;
}
.admin-brand span {
    display: block;
    color: rgba(255, 255, 255, 0.68);
}
.admin-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-main {
    padding: 34px 0 80px;
}
.admin-hero {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
    margin-bottom: 24px;
}
.admin-stat {
    padding: 24px;
}
.admin-stat span {
    display: block;
    color: var(--text-soft);
    margin-bottom: 10px;
}
.admin-stat strong {
    font-size: clamp(1.4rem, 3vw, 2.2rem);
}
.admin-section {
    padding: 26px;
    margin-bottom: 24px;
}
.section-bar {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 24px;
}
.admin-project-list {
    display: grid;
    gap: 18px;
}
.admin-project-card {
    display: grid;
    grid-template-columns: 280px 1fr;
    overflow: hidden;
}
.admin-project-content {
    padding: 20px 22px;
}
.admin-project-actions {
    display: flex;
    gap: 12px;
    align-items: center;
    flex-wrap: wrap;
    margin-top: 18px;
}
.admin-form {
    padding: 0;
    display: grid;
    gap: 16px;
}
.admin-form small {
    color: var(--text-soft);
}
.form-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}
.form-actions {
    display: flex;
    gap: 14px;
    justify-content: flex-end;
    margin-top: 8px;
}
.table-scroll {
    overflow: auto;
}
.admin-table {
    width: 100%;
    border-collapse: collapse;
}
.admin-table th,
.admin-table td {
    padding: 14px 12px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    vertical-align: top;
}
.existing-gallery {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}
.existing-image-card {
    overflow: hidden;
    padding: 12px;
}
.checkbox {
    display: flex !important;
    align-items: center;
    gap: 10px;
}
.checkbox input {
    width: auto;
}
.checkbox-danger span {
    color: var(--danger);
}
@media (max-width: 1024px) {
    .hero-grid,
    .two-column,
    .contact-grid,
    .footer-grid,
    .project-grid,
    .cards-3,
    .steps,
    .admin-hero,
    .existing-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .hero-grid,
    .two-column,
    .contact-grid,
    .footer-grid {
        grid-template-columns: 1fr;
    }
    .project-grid,
    .cards-3,
    .steps,
    .admin-hero,
    .existing-gallery {
        grid-template-columns: 1fr 1fr;
    }
    .admin-project-card {
        grid-template-columns: 1fr;
    }
}
@media (max-width: 760px) {
    .nav-toggle {
        display: block;
    }
    .nav-links {
        position: absolute;
        top: 88px;
        left: 16px;
        right: 16px;
        display: none;
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 18px;
        background: #fff;
        border-radius: 6px;
        box-shadow: var(--shadow);
    }
    .nav-links.is-open {
        display: flex;
    }
    .stats,
    .project-grid,
    .cards-3,
    .steps,
    .footer-grid,
    .admin-hero,
    .form-grid,
    .existing-gallery {
        grid-template-columns: 1fr;
    }
    .steps {
        gap: 28px;
    }
    .steps::before {
        display: none;
    }
    .step-card {
        padding-left: 24px;
        border-left: 2px dashed rgba(207, 31, 31, 0.35);
    }
    .step-number {
        margin-left: -37px;
    }
    .cta-band-inner,
    .footer-bottom,
    .admin-topbar-inner,
    .section-bar,
    .admin-actions,
    .form-actions {
        flex-direction: column;
        align-items: stretch;
    }
    .hero {
        padding-top: 40px;
    }
    .section {
        padding: 64px 0;
    }
}


.recaptcha-wrap {
    margin-top: 6px;
}
.section-note {
    margin-bottom: 20px;
    padding: 14px 16px;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.04);
    color: var(--muted);
}
.checkbox-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 600;
}
.checkbox-row input {
    width: auto !important;
}
.checkbox-row.compact {
    font-weight: 500;
}
.helper-text {
    color: var(--muted);
    font-size: 0.96rem;
}
.admin-action-stack {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.admin-media-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 22px;
}
.media-card {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 20px;
    background: #fff;
    display: grid;
    gap: 14px;
}
.media-preview {
    border-radius: 18px;
    overflow: hidden;
    background: #f3f4f6;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.media-preview.landscape {
    min-height: 240px;
}
.media-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.gallery-page-hero {
    padding-bottom: 24px;
}
.gallery-page-head {
    display: flex;
    justify-content: space-between;
    gap: 24px;
    align-items: end;
}
.gallery-summary-card {
    min-width: 220px;
    padding: 22px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(178, 34, 34, 0.12), rgba(15, 23, 42, 0.06));
    border: 1px solid rgba(178, 34, 34, 0.12);
}
.gallery-summary-card strong {
    display: block;
    font-size: clamp(2rem, 5vw, 3rem);
    line-height: 1;
}
.gallery-summary-card span {
    color: var(--muted);
}
.gallery-toolbar {
    display: flex;
    gap: 18px;
    justify-content: space-between;
    align-items: end;
    margin-bottom: 24px;
    flex-wrap: wrap;
}
.gallery-filters {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.gallery-filter {
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
    padding: 10px 16px;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s ease;
}
.gallery-filter.is-active,
.gallery-filter:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}
.gallery-search {
    min-width: min(100%, 320px);
    display: grid;
    gap: 8px;
}
.gallery-search span {
    color: var(--muted);
    font-size: 0.95rem;
}
.gallery-search input {
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 14px 16px;
    font: inherit;
}
.project-image-button {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.gallery-empty-note {
    margin-top: 18px;
    color: var(--muted);
}
@media (max-width: 760px) {
    .admin-media-grid,
    .gallery-page-head {
        grid-template-columns: 1fr;
        display: grid;
    }
    .gallery-toolbar {
        align-items: stretch;
    }
}
