/* ================================================================
   PixyFoto Wetzlar – Photography Portfolio Styles
   ================================================================ */

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', system-ui, sans-serif;
    font-size: 16px;
    line-height: 1.65;
    color: oklch(0.52 0.035 145);
    background: #f0ece4;
    min-height: 100dvh;
    overflow-x: hidden;
}

/* ===== CSS Custom Properties ===== */
:root {
    --color-primary: oklch(0.52 0.035 145);
    --color-sage: oklch(0.75 0.025 140);
    --color-stone: oklch(0.82 0.01 180);
    --color-honey: oklch(0.78 0.08 90);
    --color-bg: #f0ece4;
    --color-text-light: oklch(0.98 0 0);
    --color-btn-text: oklch(0.25 0.04 145);

    --font-heading: 'Crimson Pro', Georgia, serif;
    --font-body: 'Inter', system-ui, sans-serif;

    --footer-height: 58px;

    --transition-reveal: 520ms;
    --transition-card: 260ms;
    --transition-button: 160ms;
}

/* ===== Typography ===== */
h1, h2, h3 {
    font-family: var(--font-heading);
    color: var(--color-primary);
    line-height: 1.2;
}

a {
    color: var(--color-primary);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===== Site Wrapper ===== */
.site-wrapper {
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    background: #f0ece4;
    outline: none;
    position: relative;
    padding-bottom: var(--footer-height);
}

/* ===== Site Content ===== */
.site-content {
    position: relative;
    flex: 1;
    display: flex;
    flex-direction: column;
}

/* ===== Landing Section ===== */
.landing {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: clamp(18px, 3vw, 44px);
    transition: transform var(--transition-reveal) ease, opacity var(--transition-reveal) ease;
    will-change: transform, opacity;
}

.landing--hidden {
    position: absolute;
    inset: 0;
    transform: translateY(-100%);
    opacity: 0;
    pointer-events: none;
}

/* ===== Site Header ===== */
.site-header {
    text-align: center;
    margin-bottom: clamp(24px, 4vw, 48px);
}

.site-logo-link {
    display: inline-block;
    text-decoration: none;
}

.site-logo {
    display: block;
    margin: 0 auto;
    height: clamp(80px, 12vw, 140px);
    width: auto;
    object-fit: contain;
}

.site-subtitle {
    font-family: var(--font-body);
    font-size: clamp(14px, 1.5vw, 18px);
    color: oklch(0.45 0.02 140);
    margin-top: 10px;
    font-weight: 400;
}

/* ===== Category Grid ===== */
.category-grid-wrapper {
    max-width: 960px;
    width: 100%;
}

@media (min-width: 781px) {
    .landing {
        height: calc(100dvh - var(--footer-height));
        padding: clamp(8px, 1.5vw, 16px);
        justify-content: flex-start;
        padding-top: clamp(10px, 2vh, 28px);
        overflow: hidden;
    }

    .site-header {
        margin-bottom: clamp(8px, 1.5vw, 16px);
    }

    .gallery-card {
        max-height: 38vh;
    }

    .gallery-card--wide {
        max-height: 22vh;
    }
}

/* ===== Gallery Card ===== */
.gallery-card {
    position: relative;
    width: 100%;
    aspect-ratio: 3 / 4;
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    background-size: cover;
    background-position: center;
    transition:
        transform var(--transition-card) ease,
        filter var(--transition-card) ease,
        box-shadow var(--transition-card) ease;
    outline: none;
    -webkit-user-select: none;
    user-select: none;
}

.gallery-card:focus-visible {
    outline: 3px solid var(--color-honey);
    outline-offset: 4px;
}

.gallery-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.55) 0%,
        rgba(0, 0, 0, 0.12) 45%,
        transparent 100%
    );
    transition: opacity var(--transition-card) ease;
    pointer-events: none;
}

.gallery-card__label {
    position: absolute;
    bottom: 16px;
    left: 16px;
    right: 16px;
    font-family: var(--font-body);
    font-weight: 800;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: 0.01em;
    color: var(--color-text-light);
    z-index: 1;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

/* Card hover states – desktop only */
@media (min-width: 781px) {
    .gallery-card--active {
        transform: scale(1.06) translateY(-6px);
        filter: brightness(1.05);
        box-shadow:
            0px 12px 17px 2px rgba(0, 0, 0, 0.14),
            0px 5px 22px 4px rgba(0, 0, 0, 0.12),
            0px 7px 8px -4px rgba(0, 0, 0, 0.20),
            0 24px 64px rgba(0, 0, 0, 0.25);
        z-index: 2;
    }

    .gallery-card--active .gallery-card__overlay {
        opacity: 0.85;
    }

    .gallery-card--dimmed {
        filter: brightness(0.7);
        transform: scale(0.97);
    }
}

/* ===== Reveal Section ===== */
.reveal {
    flex: 1;
    padding: clamp(18px, 3vw, 44px);
    padding-top: clamp(24px, 4vw, 60px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 400ms ease 120ms;
    outline: none;
}

.reveal--visible {
    opacity: 1;
    pointer-events: auto;
}

.reveal:not(.reveal--visible) {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.reveal-inner {
    max-width: 900px;
    margin: 0 auto;
}

.reveal-title {
    font-weight: 600;
    font-size: clamp(32px, 4vw, 48px);
    letter-spacing: -0.03em;
    margin-bottom: 8px;
}

.reveal-subtitle {
    font-family: var(--font-body);
    font-size: clamp(16px, 2vw, 20px);
    color: oklch(0.55 0.03 140);
    font-weight: 600;
    margin-bottom: 18px;
}

.reveal-description {
    font-size: 16px;
    line-height: 1.65;
    max-width: 640px;
    margin-bottom: 36px;
    color: var(--color-primary);
}

/* ===== Back Button ===== */
.back-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    cursor: pointer;
    padding: 8px 16px 8px 12px;
    border-radius: 8px;
    margin-bottom: 24px;
    transition: background var(--transition-button) ease, transform var(--transition-button) ease;
}

.back-btn:hover {
    background: oklch(0.92 0.01 140);
    transform: translateY(-1px);
}

.back-btn:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 2px;
}

.back-btn svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

/* ===== Card Modifiers ===== */
.gallery-card--wide {
    aspect-ratio: 16 / 9;
}

.gallery-card--aboutme {
    background-image: var(--aboutme-banner, none);
}

.gallery-card--leistungen {
    cursor: pointer;
}

/* ===== Leistungen (Services) ===== */
.leistungen {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-top: 8px;
}

.leistungen-section {
    border-left: 3px solid var(--color-honey);
    padding-left: 18px;
}

.leistungen-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(18px, 2vw, 22px);
    color: var(--color-primary);
    margin-bottom: 10px;
}

.leistungen-list {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.leistungen-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.leistungen-list li strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

.leistungen-list li span {
    font-size: 14px;
    line-height: 1.55;
    color: oklch(0.45 0.02 140);
}

.leistungen-divider {
    border: none;
    border-top: 1px solid oklch(0.85 0.01 140);
    margin: 36px 0;
}

/* ===== Preisliste ===== */
.preisliste {
    display: flex;
    flex-direction: column;
    gap: 28px;
    margin-top: 12px;
}

.preisliste-section h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(16px, 1.8vw, 20px);
    color: var(--color-primary);
    margin-bottom: 10px;
}

.preisliste-section--aktion {
    border-left: 3px solid var(--color-honey);
    padding-left: 16px;
}

.preisliste-table {
    width: 100%;
    border-collapse: collapse;
}

.preisliste-table thead th {
    text-align: left;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: oklch(0.55 0.02 140);
    padding: 0 0 6px;
    border-bottom: 2px solid oklch(0.85 0.01 140);
}

.preisliste-table thead th:not(:first-child) {
    text-align: right;
}

.preisliste-table tbody tr {
    border-bottom: 1px solid oklch(0.90 0.005 140);
    transition: background-color 0.2s ease;
}

.preisliste-table tbody tr:hover {
    background-color: oklch(0.88 0.01 140);
}

.preisliste-table tbody tr:last-child {
    border-bottom: none;
}

.preisliste-table td {
    padding: 10px 0;
    vertical-align: top;
}

.preisliste-table td:not(:first-child) {
    text-align: right;
    white-space: nowrap;
    font-weight: 700;
    font-size: 15px;
    color: var(--color-primary);
    padding-left: 16px;
}

.preisliste-table td strong {
    display: block;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

.preisliste-table td span {
    display: block;
    font-size: 13px;
    line-height: 1.4;
    color: oklch(0.50 0.02 140);
    margin-top: 2px;
}

.preisliste-aktionen {
    list-style: none;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.preisliste-aktionen li {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.preisliste-aktionen li strong {
    font-size: 15px;
    font-weight: 700;
    color: var(--color-primary);
}

.preisliste-aktionen li span {
    font-size: 14px;
    line-height: 1.55;
    color: oklch(0.45 0.02 140);
}

.preisliste-hinweis {
    margin-top: 24px;
    font-size: 13px;
    font-style: italic;
    color: oklch(0.50 0.02 140);
    line-height: 1.55;
}

.aboutme {
    width: 100%;
    max-width: 720px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
}

.aboutme-portrait {
    width: clamp(160px, 20vw, 220px);
    height: clamp(160px, 20vw, 220px);
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid oklch(0.90 0.01 140);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.aboutme-title {
    font-weight: 600;
    font-size: clamp(24px, 3vw, 36px);
    letter-spacing: -0.02em;
    text-align: center;
    margin-top: 6px;
}

.aboutme-text {
    text-align: center;
    font-size: 16px;
    line-height: 1.65;
    color: var(--color-primary);
    max-width: 560px;
}

.aboutme-album {
    width: 100%;
    margin-top: 12px;
}

/* ===== Albums ===== */
.albums {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.album-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: clamp(20px, 2.5vw, 28px);
    letter-spacing: -0.02em;
    margin-bottom: 14px;
}

.album-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
}

.album-thumb {
    aspect-ratio: 1 / 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: none;
    padding: 0;
    background-size: cover;
    background-position: center;
    transition: transform var(--transition-card) ease, box-shadow var(--transition-card) ease;
    outline: none;
}

.album-thumb:hover {
    transform: scale(1.04) translateY(-3px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.album-thumb:focus-visible {
    outline: 3px solid var(--color-honey);
    outline-offset: 2px;
}

.album-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}

.album-empty {
    color: var(--color-sage);
    font-style: italic;
    font-size: 14px;
}

.album-show-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 14px;
    padding: 10px 20px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 500;
    color: var(--color-primary);
    background: oklch(0.95 0.01 140 / 0.6);
    border: 1px solid oklch(0.85 0.02 140);
    border-radius: 8px;
    cursor: pointer;
    transition: background var(--transition-button) ease, transform var(--transition-button) ease;
}

.album-show-more:hover {
    background: oklch(0.92 0.015 140 / 0.8);
    transform: translateY(-1px);
}

.album-show-more:focus-visible {
    outline: 3px solid var(--color-honey);
    outline-offset: 2px;
}

/* ===== Footer ===== */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 18px clamp(18px, 3vw, 44px);
    border-top: 1px solid oklch(0.88 0.01 140);
    background: oklch(0.93 0.005 140 / 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10;
}

.footer-inner {
    max-width: 960px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 18px;
}

.footer-brand {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.footer-logo {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 16px;
    color: var(--color-primary);
}

.footer-copy {
    font-size: 12px;
    color: var(--color-sage);
}

.footer-links {
    display: flex;
    gap: 18px;
}

.footer-link {
    background: none;
    border: none;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    color: var(--color-primary);
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 6px;
    transition: background var(--transition-button) ease;
}

.footer-link:hover {
    background: oklch(0.90 0.01 140);
}

.footer-link:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 2px;
}

.footer-social {
    display: flex;
    justify-content: flex-end;
}

.social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    color: var(--color-primary);
    transition: background var(--transition-button) ease, transform var(--transition-button) ease;
}

.social-link:hover {
    background: oklch(0.90 0.01 140);
    transform: translateY(-1px);
    text-decoration: none;
}

.social-link:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 2px;
}

.social-link svg {
    width: 20px;
    height: 20px;
}

/* ===== Dialog / Modal ===== */
.dialog-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 100;
    padding: 18px;
    animation: fadeIn 200ms ease;
}

.dialog-wrapper {
    position: relative;
    max-width: 560px;
    width: 100%;
}

.dialog-panel {
    background: var(--color-bg);
    border-radius: 16px;
    width: 100%;
    max-height: 85dvh;
    overflow-y: auto;
    position: relative;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.2);
    animation: dialogSlideUp 300ms ease;
}

.dialog-panel--album {
    max-width: 820px;
}

.dialog-panel--wide {
    max-width: 720px;
}

/* ===== Album Popup Trigger ===== */
.album-popup-trigger {
    display: inline;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-body);
    font-size: inherit;
    font-weight: 700;
    color: var(--color-primary);
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: var(--color-honey);
    text-underline-offset: 3px;
    text-decoration-thickness: 2px;
    transition: color var(--transition-button) ease, text-decoration-color var(--transition-button) ease;
}

.album-popup-trigger:hover {
    color: oklch(0.42 0.04 145);
    text-decoration-color: var(--color-primary);
}

.album-popup-trigger:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 2px;
    border-radius: 3px;
}

.dialog-close {
    position: absolute;
    top: -14px;
    right: -14px;
    background: oklch(0.92 0.01 140);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    transition: background var(--transition-button) ease;
    z-index: 1;
}

.dialog-close:hover {
    background: oklch(0.86 0.02 140);
}

.dialog-close:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 2px;
}

.dialog-body {
    padding: 12px 32px 32px;
}

.dialog-body h2 {
    font-weight: 600;
    font-size: clamp(24px, 3vw, 32px);
    letter-spacing: -0.02em;
    margin-bottom: 18px;
}

.dialog-body p {
    margin-bottom: 12px;
}

.dialog-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin-top: 18px;
    margin-bottom: 8px;
}

/* ===== Contact Info Grid ===== */
.kontakt-grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
    margin-top: 20px;
}

.kontakt-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    background: oklch(0.97 0.003 140);
    border-radius: 10px;
    border: 1.5px solid oklch(0.90 0.01 140);
    transition: border-color 200ms ease, box-shadow 200ms ease;
}

.kontakt-item:hover {
    border-color: var(--color-honey);
    box-shadow: 0 4px 16px oklch(0.78 0.08 90 / 0.15);
}

.kontakt-item .mud-icon-root,
.kontakt-item .kontakt-icon-svg {
    color: var(--color-primary);
    flex-shrink: 0;
    margin-top: 2px;
}

.kontakt-item div {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.kontakt-item strong {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: var(--color-primary);
}

.kontakt-item a,
.kontakt-item span {
    font-size: 15px;
    color: oklch(0.45 0.02 140);
    text-decoration: none;
}

.kontakt-item a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* ===== Contact Form (legacy) ===== */
.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.02em;
    margin-bottom: 6px;
    color: var(--color-primary);
}

.form-input {
    width: 100%;
    padding: 10px 14px;
    border: 1.5px solid oklch(0.82 0.01 140);
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    color: var(--color-primary);
    background: oklch(0.97 0.003 140);
    transition: border-color 200ms ease, box-shadow 200ms ease;
    outline: none;
}

.form-input:focus {
    border-color: var(--color-honey);
    box-shadow: 0 0 0 3px oklch(0.78 0.08 90 / 0.2);
}

textarea.form-input {
    resize: vertical;
    min-height: 100px;
}

.form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 18px;
}

.form-checkbox {
    width: 18px;
    height: 18px;
    margin-top: 3px;
    accent-color: var(--color-primary);
    flex-shrink: 0;
    cursor: pointer;
}

.form-check label {
    font-size: 13px;
    line-height: 1.5;
    color: var(--color-primary);
    cursor: pointer;
}

.form-error {
    color: oklch(0.55 0.2 25);
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    background: var(--color-honey);
    color: var(--color-btn-text);
    border: none;
    border-radius: 8px;
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    cursor: pointer;
    transition: transform var(--transition-button) ease, box-shadow var(--transition-button) ease;
}

.submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px oklch(0.78 0.08 90 / 0.3);
}

.submit-btn:active {
    transform: translateY(0);
}

.submit-btn:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.form-success {
    text-align: center;
    padding: 24px 0;
}

.form-success p {
    font-size: 16px;
    color: var(--color-primary);
}

/* ===== Image Viewer ===== */
.viewer-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 24px;
    animation: fadeIn 200ms ease;
    outline: none;
}

.viewer-image {
    max-width: 90vw;
    max-height: 85dvh;
    border-radius: 8px;
    object-fit: contain;
    animation: viewerZoomIn 300ms ease;
}

.viewer-close {
    position: absolute;
    top: 18px;
    right: 18px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    font-size: 22px;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-button) ease;
}

.viewer-close:hover {
    background: rgba(255, 255, 255, 0.25);
}

.viewer-close:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 2px;
}

/* Viewer navigation buttons */
.viewer-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.12);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-button) ease, transform var(--transition-button) ease;
    z-index: 1;
}

.viewer-nav:hover {
    background: rgba(255, 255, 255, 0.25);
}

.viewer-nav:focus-visible {
    outline: 2px solid var(--color-honey);
    outline-offset: 2px;
}

.viewer-nav--prev {
    left: 18px;
}

.viewer-nav--next {
    right: 18px;
}

.viewer-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.05em;
}

/* ===== Toast Notification ===== */
.toast-notification {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--color-primary);
    color: var(--color-text-light);
    padding: 14px 28px;
    border-radius: 10px;
    font-family: var(--font-body);
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.2);
    z-index: 300;
    animation: toastSlideUp 350ms ease;
}

/* ===== Animations ===== */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes dialogSlideUp {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes viewerZoomIn {
    from {
        opacity: 0;
        transform: scale(0.92);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes toastSlideUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* ===== Responsive – Mobile ===== */
@media (max-width: 780px) {
    :root {
        --footer-height: 110px;
    }

    .gallery-card {
        aspect-ratio: 1 / 1;
        background-position: top center;
    }

    .gallery-card--wide {
        aspect-ratio: 4 / 3;
    }

    .gallery-card--aboutme {
        background-image: var(--aboutme-portrait, none);
        background-position: top center;
    }

    .landing {
        justify-content: flex-start;
        padding-top: clamp(40px, 8vw, 80px);
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
        text-align: left;
        gap: 8px;
    }

    .footer-brand {
        order: 1;
        align-items: flex-start;
    }

    .footer-social {
        order: 2;
        justify-content: flex-end;
        align-items: center;
    }

    .footer-links {
        order: 3;
        grid-column: 1 / -1;
        justify-content: center;
        flex-wrap: nowrap;
        gap: 12px;
    }

    .footer-link {
        font-size: 13px;
        padding: 4px 6px;
    }

    .album-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .dialog-body {
        padding: 12px 20px 24px;
    }

    .dialog-panel {
        max-height: 70dvh;
    }
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
    }
}

/* ===== Error UI ===== */
.blazor-error-boundary {
    background: #b32121;
    padding: 1rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred.";
}
