/*
 * Tile 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: #14120f;
    --muted: #736d62;
    --paper: #f6f3ed;
    --panel: #fffdf8;
    --line: rgba(20, 18, 15, 0.14);
    --accent: #d8ff2f;
    --accent-dark: #8aa700;
    --shadow: 0 18px 60px rgba(34, 30, 24, 0.11);
    --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:
        linear-gradient(90deg, rgba(216, 255, 47, 0.22), transparent 28%),
        var(--paper);
    font-family: var(--font);
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, 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: 72px;
    margin: 0 auto;
    background: color-mix(in srgb, var(--paper) 88%, 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,
.text-link,
.back-link,
.contact-form button {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.66);
    font-weight: 900;
}

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

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

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

.hero-tiles {
    display: grid;
    grid-template-columns: 1.1fr 0.75fr 0.9fr 0.85fr;
    grid-auto-rows: minmax(170px, 23vh);
    gap: 12px;
    min-height: calc(100vh - 96px);
    padding: 16px 0;
}

.tile,
.intro-panel,
.image-card,
.category-card,
.contact-copy,
.contact-form,
.photo-view,
.photo-info,
.related-grid a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--panel);
    box-shadow: var(--shadow);
    overflow: hidden;
}

.tile,
.category-card,
.related-grid a {
    position: relative;
}

.tile::after,
.category-card::after,
.related-grid a::after {
    position: absolute;
    inset: 0;
    content: "";
    background: linear-gradient(180deg, transparent 42%, rgba(0, 0, 0, 0.48));
    pointer-events: none;
}

.tile span,
.category-card span,
.related-grid span {
    position: absolute;
    left: 14px;
    bottom: 14px;
    z-index: 1;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    color: var(--ink);
    padding: 8px 10px;
    font-size: 13px;
    font-weight: 950;
}

.tile-large { grid-column: span 2; grid-row: span 2; }
.tile-tall { grid-row: span 2; }
.tile-wide { grid-column: span 2; }

.intro-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(18px, 2.4vw, 32px);
}

.intro-panel p,
.section-head p,
.page-title p,
.contact-copy p,
.photo-info > p {
    margin: 0 0 12px;
    color: var(--accent-dark);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

h1,
h2,
h3,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 18px;
    font-size: clamp(36px, 5vw, 72px);
    line-height: 0.96;
}

.intro-panel h1 {
    margin-bottom: 14px;
    font-size: clamp(28px, 3.4vw, 48px);
    line-height: 1.02;
}

h2 {
    max-width: 920px;
    margin-bottom: 0;
    font-size: clamp(28px, 4vw, 54px);
    line-height: 1.02;
}

h3 {
    margin-bottom: 0;
    font-size: 26px;
}

p {
    color: var(--muted);
    font-size: 17px;
    line-height: 1.62;
}

.text-link,
.back-link,
.contact-form button {
    display: inline-grid;
    width: fit-content;
    min-height: 44px;
    place-items: center;
    padding: 0 16px;
}

.section-head,
.page-title {
    padding: 66px 0 18px;
}

.collection-grid,
.category-grid,
.related-grid {
    display: grid;
    gap: 12px;
}

.collection-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    padding-bottom: 18px;
}

.image-card {
    min-height: 390px;
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
}

.image-card div {
    padding: 18px;
}

.image-card span,
.category-card strong {
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.category-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 20px;
}

.category-card {
    min-height: 330px;
}

.category-card strong {
    position: absolute;
    right: 14px;
    bottom: 14px;
    z-index: 1;
    margin: 0;
    border-radius: var(--radius);
    background: var(--accent);
    color: var(--ink);
    padding: 8px 10px;
}

.contact-layout,
.photo-layout {
    display: grid;
    gap: 12px;
    min-height: calc(100vh - 110px);
    padding: 16px 0;
}

.contact-layout {
    grid-template-columns: minmax(0, 0.95fr) minmax(360px, 0.65fr);
}

.contact-copy,
.contact-form,
.photo-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 58px);
}

.contact-list {
    display: grid;
    gap: 12px;
    margin-top: 26px;
    color: var(--muted);
    font-weight: 850;
}

.contact-list a {
    color: var(--ink);
}

.contact-form {
    gap: 14px;
}

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

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

.contact-form button {
    border: 0;
    background: var(--ink);
    color: #fff;
}

.photo-layout {
    grid-template-columns: minmax(0, 1.3fr) minmax(360px, 0.58fr);
}

.photo-view {
    min-height: 680px;
}

.caption {
    font-size: 19px;
}

dl {
    display: grid;
    gap: 10px;
    margin: 16px 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;
}

.related-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding-bottom: 18px;
}

.related-grid a {
    min-height: 240px;
}

.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;
}

.site-footer nav > a:not(.social-link) {
    display: inline-grid;
    min-height: 34px;
    place-items: center;
}

.social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.64);
    padding: 4px 10px 4px 4px;
    transition: background 160ms ease, color 160ms ease, transform 160ms ease;
}

.social-link span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 6px;
    background: var(--accent);
    color: var(--ink);
    font-size: 11px;
    font-weight: 950;
}

.social-link:hover {
    transform: translateY(-1px);
    background: var(--ink);
    color: #fff;
}

.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: 1050px) {
    .hero-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(180px, 28vw); }
    .collection-grid, .category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-layout, .photo-layout { grid-template-columns: 1fr; min-height: 0; }
}

@media (max-width: 720px) {
    .site-header { display: grid; padding: 10px 0; }
    .nav { flex-wrap: wrap; }
    .hero-tiles, .collection-grid, .category-grid, .related-grid { grid-template-columns: 1fr; }
    .tile-large, .tile-tall, .tile-wide { grid-column: auto; grid-row: auto; }
    .tile, .category-card, .related-grid a { min-height: 260px; }
    .intro-panel { min-height: 310px; }
    .photo-view { min-height: 430px; }
    .site-footer { display: grid; }
    .site-footer nav { justify-content: flex-start; }
}

@media (max-width: 480px) {
    main, .site-footer, .site-header { width: min(100% - 20px, 1440px); }
    h1 { font-size: 38px; }
    .contact-copy, .contact-form, .photo-info { padding: 24px; }
    dl div { display: grid; }
    dd { text-align: left; }
}
/* 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;
    }
}
