/*
 * Shadow 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: #f7f7ef;
    --muted: #b8b8ad;
    --paper: #050505;
    --panel: #101010;
    --soft: #181818;
    --line: rgba(255, 255, 255, 0.16);
    --blue: #d9ff00;
    --green: #9dff00;
    --coral: #ffffff;
    --yellow: #d9ff00;
    --shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    --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;
    min-height: 100vh;
    background:
        linear-gradient(110deg, rgba(217, 255, 0, 0.13), transparent 34%),
        linear-gradient(140deg, #000000, #070707 48%, #141900);
    color: var(--ink);
    font-family: var(--font);
    letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { color: inherit; cursor: pointer; }

.page {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
}

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

.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    justify-content: space-between;
    gap: 16px;
    min-height: 74px;
    padding: 10px 0;
    background: color-mix(in srgb, var(--paper) 88%, transparent);
    backdrop-filter: blur(18px);
}

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

.brand-mark {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--yellow), var(--green));
    color: #050505;
    font-size: 13px;
}

.nav { gap: 4px; }

.nav a, .header-action, .secondary, .toolbar button, .album-card a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255,255,255,0.07);
    font-weight: 900;
}

.nav a {
    padding: 10px 12px;
    color: var(--muted);
    font-size: 14px;
}

.nav a:hover, .nav a[aria-current="page"], .toolbar button:hover, .toolbar button.is-active {
    background: var(--yellow);
    color: #050505;
}

.header-action, .primary, .secondary, .album-card a {
    display: inline-grid;
    min-height: 44px;
    place-items: center;
    padding: 0 16px;
}

.hero, .stats-strip, .preview-grid, .compact-title, .image-grid, .album-grid, .submit-layout, .photo-detail, .related-strip {
    display: grid;
    gap: 16px;
}

.hero {
    grid-template-columns: minmax(0, 0.82fr) minmax(420px, 1fr);
    min-height: 650px;
    padding: 14px 0 16px;
}

.hero-copy, .hero-mosaic, .stats-strip > div, .preview-card, .compact-title, .image-card, .album-card, .submit-copy, .submit-form, .photo-stage, .photo-panel, .related-card {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: color-mix(in srgb, var(--panel) 88%, transparent);
    box-shadow: var(--shadow);
}

.hero-copy, .compact-title, .submit-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 5vw, 70px);
}

.hero-mosaic, .preview-card, .image-thumb, .album-card, .upload-preview, .photo-stage, .related-card {
    background-image:
        linear-gradient(135deg, rgba(0,0,0,0.28), rgba(0,0,0,0.62)),
        url("../img/shadow-gallery-photos.webp");
    background-repeat: no-repeat;
    background-size: 180%;
}

.hero-mosaic {
    position: relative;
    min-height: 620px;
    background-size: cover;
    background-position: center;
}

.score-card {
    position: absolute;
    right: 20px;
    bottom: 20px;
    width: 230px;
    padding: 18px;
    border-radius: var(--radius);
    background: rgba(5,5,5,0.88);
    box-shadow: 0 18px 44px rgba(0,0,0,0.45);
}

.score-card strong {
    display: block;
    font-size: 54px;
}

.eyebrow, .stats-strip span, .preview-card span, .image-info span, .submit-form span, .score-card span {
    display: inline-flex;
    width: fit-content;
    margin-bottom: 16px;
    color: var(--blue);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

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

h1 {
    max-width: 860px;
    margin-bottom: 18px;
    font-size: clamp(46px, 6.5vw, 88px);
    line-height: 0.94;
}

h2 {
    margin-bottom: 10px;
    font-size: clamp(26px, 4vw, 46px);
    line-height: 1;
}

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

.actions {
    flex-wrap: wrap;
    gap: 10px;
}

.primary {
    border: 0;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--yellow), var(--green));
    color: #050505;
    font-weight: 950;
}

.stats-strip { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats-strip > div { padding: 24px; }
.stats-strip strong { display: block; margin-bottom: 8px; font-size: clamp(32px, 4vw, 56px); }

.preview-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 16px; }
.preview-card { min-height: 390px; display: flex; flex-direction: column; justify-content: end; padding: 24px; color: #fff; overflow: hidden; }
.preview-card p, .preview-card span { color: rgba(255,255,255,0.88); }
.preview-card h2 { color: #fff; }

.compact-title {
    min-height: 330px;
    margin: 14px 0 16px;
}

.toolbar {
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 16px;
}

.toolbar button {
    min-height: 42px;
    padding: 0 14px;
}

.image-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: start;
    margin-bottom: 16px;
}

.image-card {
    overflow: hidden;
}

.image-card.is-hidden { display: none; }

.image-thumb {
    display: block;
    min-height: 230px;
    border-bottom: 1px solid var(--line);
}

.image-info {
    padding: 18px 18px 8px;
}

.image-info h2 {
    font-size: 26px;
}

.rating {
    display: flex;
    gap: 3px;
    padding: 0 18px 18px;
}

.rating button {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: #111;
    color: #777;
    font-size: 20px;
    line-height: 1;
}

.rating button.is-active {
    background: var(--yellow);
    color: #050505;
    border-color: transparent;
}

.album-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-bottom: 16px;
}

.album-card {
    min-height: 300px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 22px;
    color: #fff;
    overflow: hidden;
}

.album-card span {
    margin-bottom: 8px;
    color: rgba(255,255,255,0.86);
    font-weight: 900;
}

.album-card h2 {
    color: #fff;
}

.album-card a {
    width: fit-content;
    background: #fff;
    color: var(--ink);
}

.submit-layout {
    grid-template-columns: minmax(0, 0.9fr) minmax(340px, 0.55fr);
    min-height: 620px;
    padding: 14px 0 16px;
}

.upload-preview {
    min-height: 260px;
    margin-top: 20px;
}

.submit-form {
    display: grid;
    align-content: start;
    gap: 14px;
    padding: 24px;
}

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

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

.photo-detail {
    grid-template-columns: minmax(0, 1.25fr) minmax(360px, 0.55fr);
    align-items: stretch;
    min-height: 680px;
    padding: 14px 0 16px;
}

.photo-stage {
    position: relative;
    min-height: 680px;
    background-size: 280%;
    overflow: hidden;
}

.photo-stage.crop-travel {
    background-position: 0 0;
}

.photo-back {
    position: absolute;
    left: 18px;
    top: 18px;
    display: inline-grid;
    min-height: 42px;
    place-items: center;
    padding: 0 14px;
    border: 1px solid rgba(217, 255, 0, 0.72);
    border-radius: var(--radius);
    background: rgba(5, 5, 5, 0.82);
    color: var(--yellow);
    font-weight: 950;
}

.photo-panel {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(24px, 4vw, 42px);
}

.photo-panel h1 {
    font-size: clamp(46px, 6vw, 74px);
}

.rating-large {
    padding: 0 0 20px;
}

.rating-large button {
    width: 40px;
    height: 40px;
    font-size: 24px;
}

.photo-meta {
    display: grid;
    gap: 10px;
    margin: 4px 0 22px;
}

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

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

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

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

.related-card {
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    padding: 20px;
    color: #fff;
    overflow: hidden;
}

.related-card span {
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 950;
    text-transform: uppercase;
}

.related-card strong {
    font-size: 28px;
}

.crop-travel { background-position: 0 0; }
.crop-city { background-position: 34% 0; }
.crop-food { background-position: 100% 0; }
.crop-nature { background-position: 0 48%; }
.crop-interior { background-position: 42% 46%; }
.crop-abstract { background-position: 71% 48%; }
.crop-mountain { background-position: 0 100%; }
.crop-night { background-position: 62% 100%; }

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

.site-footer a {
    color: var(--yellow);
    font-weight: 900;
}
.site-footer > div {
    display: grid;
    gap: 6px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
    justify-content: flex-end;
}



@media (max-width: 620px) {
    .footer-links {
        justify-content: flex-start;
    }
}

.toast {
    position: fixed;
    right: 18px;
    bottom: 18px;
    transform: translateY(16px);
    opacity: 0;
    pointer-events: none;
    border-radius: var(--radius);
    background: var(--yellow);
    color: #050505;
    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) {
    .image-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
    .site-header, .hero, .submit-layout, .photo-detail { display: grid; grid-template-columns: 1fr; }
    .nav { flex-wrap: wrap; }
    .hero { min-height: 0; }
    .hero-mosaic { min-height: 420px; }
    .stats-strip, .preview-grid, .album-grid, .related-strip { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
    .page { width: min(100% - 20px, 1280px); }
    .hero-copy, .compact-title, .submit-copy { padding: 24px; }
    h1 { font-size: 40px; }
    .image-grid { grid-template-columns: 1fr; }
    .hero-mosaic { min-height: 320px; }
    .image-thumb { min-height: 250px; }
    .photo-stage { min-height: 430px; }
    .photo-panel { padding: 24px; }
    .photo-meta div { display: grid; }
    .photo-meta 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;
    }
}
