/*
 * Matrix Gallery - Free multi-page HTML/CSS image gallery template
 * Source: https://templates.inuno.app
 * Copyright (c) 2026 templates.inuno.app
 *
 * Free license note:
 * This free template may be used privately and commercially,
 * but the attribution/backlink to https://templates.inuno.app must remain.
 */

:root {
    --ink: #111111;
    --muted: #6e6a60;
    --paper: #f7f5ee;
    --panel: #ffffff;
    --line: rgba(17, 17, 17, 0.14);
    --accent: #f0ff4f;
    --shadow: 0 18px 58px rgba(30, 27, 20, 0.1);
    --radius: 8px;
    --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }

html {
    min-width: 320px;
    background: var(--paper);
    scroll-behavior: smooth;
}

body {
    margin: 0;
    color: var(--ink);
    background: var(--paper);
    font-family: var(--font);
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }

.site-header,
.brand,
.nav,
.site-footer,
.site-footer nav {
    display: flex;
    align-items: center;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    justify-content: space-between;
    gap: 18px;
    width: min(1440px, calc(100% - 32px));
    min-height: 74px;
    margin: 0 auto;
    background: color-mix(in srgb, var(--paper) 90%, transparent);
    backdrop-filter: blur(16px);
}

.brand {
    gap: 10px;
    margin-left: 8px;
    font-weight: 950;
}

.brand span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: var(--ink);
    color: var(--accent);
    font-size: 13px;
}

.nav {
    gap: 6px;
}

.nav a,
.back-link,
form button {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.72);
    font-weight: 900;
}

.nav a {
    padding: 11px 14px;
    color: var(--muted);
}

.nav a:hover,
.nav a[aria-current="page"],
.back-link:hover {
    background: var(--ink);
    color: #fff;
}

main,
.site-footer {
    width: min(1440px, calc(100% - 32px));
    margin: 0 auto;
}

.intro {
    display: grid;
    grid-template-columns: minmax(0, 0.44fr) minmax(0, 0.56fr);
    gap: 18px;
    align-items: center;
    padding: 18px 0 14px;
}

.intro p,
.photo-layout aside p,
.contact-layout p {
    margin: 0 0 10px;
    color: #788900;
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

h1,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 0;
    font-size: clamp(28px, 3.2vw, 44px);
    line-height: 1.02;
}

.intro span,
.photo-layout aside span,
.contact-layout span {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.55;
}

.matrix-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    max-width: none;
    margin: 0 auto;
    padding: 0 0 20px;
}

.matrix-grid a {
    position: relative;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.matrix-grid a::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 48%, rgba(0, 0, 0, 0.5));
    opacity: 0.9;
    transition: opacity 160ms ease;
}

.matrix-grid a:hover::after {
    opacity: 0.55;
}

.matrix-grid a:hover img {
    transform: scale(1.035);
}

.matrix-grid img {
    transition: transform 220ms ease;
}

.matrix-grid span {
    position: absolute;
    left: 12px;
    bottom: 12px;
    z-index: 1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.9);
    padding: 7px 9px;
    font-size: 13px;
    font-weight: 950;
}

.category-grid span {
    background: var(--accent);
}

.photo-layout,
.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(360px, 0.5fr);
    gap: 12px;
    min-height: calc(100vh - 112px);
    padding: 18px 0 20px;
}

.photo-layout figure,
.photo-layout aside,
.contact-layout > div,
.contact-layout form {
    margin: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.photo-layout figure {
    min-height: 700px;
}

.photo-layout aside,
.contact-layout > div,
.contact-layout form {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 54px);
}

.back-link {
    display: inline-grid;
    width: fit-content;
    min-height: 42px;
    place-items: center;
    margin-bottom: 22px;
    padding: 0 14px;
}

dl {
    display: grid;
    gap: 10px;
    margin: 24px 0 0;
}

dl div {
    display: flex;
    justify-content: space-between;
    gap: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--line);
}

dt {
    color: var(--muted);
    font-weight: 850;
}

dd {
    margin: 0;
    text-align: right;
    font-weight: 950;
}

form {
    gap: 14px;
}

form label {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-weight: 850;
}

form input,
form textarea {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--ink);
    padding: 13px 14px;
}

form button {
    width: fit-content;
    min-height: 44px;
    border: 0;
    background: var(--ink);
    color: #fff;
    padding: 0 16px;
}

.site-footer {
    justify-content: space-between;
    gap: 20px;
    padding: 26px 0 36px;
    color: var(--muted);
    font-size: 14px;
}

.site-footer div {
    display: grid;
    gap: 6px;
}

.site-footer strong,
.site-footer a {
    color: var(--ink);
    font-weight: 900;
}

.site-footer nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 12px;
}

.social-link {
    border-radius: 999px;
    background: var(--accent);
    padding: 8px 12px;
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    border-radius: var(--radius);
    background: var(--ink);
    color: #fff;
    padding: 12px 16px;
    font-weight: 900;
    transition: opacity 180ms ease, transform 180ms ease;
}

.toast.is-visible {
    transform: translateY(0);
    opacity: 1;
}

@media (max-width: 980px) {
    .intro,
    .photo-layout,
    .contact-layout {
        grid-template-columns: 1fr;
        min-height: 0;
    }

    .matrix-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .photo-layout figure {
        min-height: 520px;
    }
}

@media (max-width: 640px) {
    .site-header {
        display: grid;
        padding: 10px 0;
    }

    .nav {
        flex-wrap: wrap;
    }

    .matrix-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .site-footer {
        display: grid;
    }

    .site-footer nav {
        justify-content: flex-start;
    }
}

@media (max-width: 430px) {
    main,
    .site-footer,
    .site-header {
        width: min(100% - 20px, 1440px);
    }

    .matrix-grid {
        grid-template-columns: 1fr;
    }
}
/* Unified modern demo footer */
.demo-footer {
    align-items: center;
    gap: 18px;
}

.footer-brand-block {
    min-width: min(100%, 280px);
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
}

.footer-legal a {
    display: inline-grid;
    min-height: 36px;
    place-items: center;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: color-mix(in srgb, var(--panel, #fff) 78%, transparent);
    padding: 0 11px;
    font-weight: 900;
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}

.footer-social a {
    display: inline-grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: var(--ink, #111);
    color: var(--panel, #fff);
    transition: transform 160ms ease, background 160ms ease, color 160ms ease;
}

.footer-social a:hover {
    transform: translateY(-2px);
    background: var(--accent, var(--yellow, var(--lime, #dfff00)));
    color: var(--ink, #111);
}

.footer-social svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

@media (max-width: 760px) {
    .demo-footer,
    .footer-legal,
    .footer-social {
        justify-content: flex-start;
    }
}
/* Neutral footer support pages */
.info-page {
    display: grid;
    grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1fr);
    gap: 14px;
    min-height: calc(100vh - 180px);
    padding: 18px 0 28px;
}

.info-hero,
.info-list article,
.info-form {
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: var(--panel, rgba(255, 255, 255, 0.78));
    box-shadow: var(--shadow, 0 18px 58px rgba(0, 0, 0, 0.08));
}

.info-hero {
    display: flex;
    min-height: 420px;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 56px);
}

.info-hero p {
    margin: 0 0 12px;
    color: var(--accent, currentColor);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.info-hero h1 {
    max-width: 12ch;
    margin: 0 0 14px;
    font-size: clamp(34px, 5vw, 68px);
    line-height: 0.98;
}

.info-hero span,
.info-list p {
    color: var(--muted, #666);
    line-height: 1.65;
}

.info-list {
    display: grid;
    gap: 12px;
}

.info-list article {
    padding: clamp(20px, 3vw, 34px);
}

.info-list h2 {
    margin: 0 0 10px;
    font-size: clamp(20px, 2vw, 28px);
}

.info-list p {
    margin: 0;
}

.info-form {
    display: grid;
    align-content: center;
    gap: 16px;
    padding: clamp(22px, 4vw, 44px);
}

.info-form label {
    display: grid;
    gap: 8px;
    color: var(--muted, #666);
    font-weight: 850;
}

.info-form input,
.info-form textarea {
    width: 100%;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: color-mix(in srgb, var(--panel, #fff) 84%, white);
    color: var(--ink, #111);
    padding: 13px 14px;
}

.info-form button {
    width: fit-content;
    border: 1px solid var(--line, rgba(0, 0, 0, 0.14));
    border-radius: var(--radius, 8px);
    background: var(--ink, #111);
    color: var(--panel, #fff);
    padding: 13px 18px;
    font-weight: 950;
    cursor: pointer;
}

@media (max-width: 820px) {
    .info-page {
        grid-template-columns: 1fr;
        min-height: auto;
    }

    .info-hero {
        min-height: auto;
    }
}
