Files
immich-redaktions-plugin/src/app/globals.css
T

2524 lines
46 KiB
CSS

@import "tailwindcss";
@theme {
--color-primary-50: #eef2ff;
--color-primary-100: #e0e7ff;
--color-primary-200: #c7d2fe;
--color-primary-300: #a5b4fc;
--color-primary-400: #818cf8;
--color-primary-500: #6366f1;
--color-primary-600: #4f46e5;
--color-primary-700: #4338ca;
--color-primary-800: #3730a3;
--color-primary-900: #312e81;
--color-background: var(--bg-main);
--color-foreground: var(--text-main);
--color-card: var(--bg-card);
--color-card-foreground: var(--text-card);
--color-border: var(--border-color);
--font-sans: "Inter", "Helvetica Neue", Arial, sans-serif;
}
:root {
/* Legacy Vars */
--paper: #ffffff;
--ink: #050505;
--graphite: #242424;
--contact-sheet: #ececec;
--metadata: #6b6b6b;
--muted: var(--metadata);
--line: #d8d8d8;
--soft: #f3f3f3;
/* New Design System Vars */
--bg-main: #f8fafc;
--text-main: #0f172a;
--bg-card: #ffffff;
--text-card: #1e293b;
--border-color: #e2e8f0;
color-scheme: light;
}
.dark {
/* Legacy Vars - Adjusted for Dark Mode */
--paper: #09090b;
--ink: #fafafa;
--graphite: #d4d4d8;
--contact-sheet: #18181b;
--metadata: #a1a1aa;
--muted: var(--metadata);
--line: #27272a;
--soft: #27272a;
/* New Design System Vars */
--bg-main: #020617;
--text-main: #f8fafc;
--bg-card: #0f172a;
--text-card: #f1f5f9;
--border-color: #1e293b;
color-scheme: dark;
}
* {
box-sizing: border-box;
}
html {
background: var(--paper);
}
body {
min-height: 100vh;
margin: 0;
background: var(--paper);
color: var(--ink);
font-family: Inter, "Helvetica Neue", Arial, sans-serif;
font-synthesis: none;
}
a {
color: inherit;
transition: all 0.2s ease;
}
:focus-visible {
outline: 3px solid var(--ink);
outline-offset: 4px;
}
.landing {
display: grid;
min-height: 100vh;
grid-template-rows: auto 1fr auto;
padding: clamp(1.25rem, 3vw, 2.75rem);
}
.masthead {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 2rem;
padding-bottom: 1rem;
border-bottom: 1px solid var(--line);
}
.wordmark {
font-size: 0.8125rem;
font-weight: 700;
letter-spacing: -0.01em;
text-transform: uppercase;
}
.section-label,
.eyebrow,
.landing-footer {
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.09em;
text-transform: uppercase;
}
.intro {
display: grid;
align-content: center;
max-width: 70rem;
padding-block: clamp(5rem, 14vh, 10rem);
}
.eyebrow {
margin: 0 0 1.5rem;
}
.intro h1 {
max-width: 12ch;
margin: 0;
font-size: clamp(3rem, 9vw, 8.5rem);
font-weight: 600;
letter-spacing: -0.065em;
line-height: 0.88;
}
.lede {
max-width: 37rem;
margin: clamp(2rem, 5vw, 4rem) 0 0;
font-size: clamp(1rem, 1.6vw, 1.25rem);
line-height: 1.55;
}
.primary-action {
display: inline-block;
width: fit-content;
margin-top: 2.25rem;
padding: 0.9rem 1.25rem;
border: 1px solid var(--ink);
background: var(--ink);
color: var(--paper);
font-size: 0.875rem;
font-weight: 650;
text-decoration: none;
transition: background-color 140ms ease, color 140ms ease;
}
.primary-action:hover {
background: var(--paper);
color: var(--ink);
}
.landing-footer {
padding-top: 1rem;
border-top: 1px solid var(--line);
}
.landing-footer p {
margin: 0;
}
@media (max-width: 40rem) {
.masthead {
align-items: flex-start;
flex-direction: column;
gap: 0.5rem;
}
.intro h1 {
letter-spacing: -0.055em;
}
}
@media (prefers-reduced-motion: reduce) {
.primary-action {
transition: none;
}
}
.mobile-portal-menu-panel {
animation: mobile-portal-menu-enter 150ms ease-out;
}
.mobile-portal-menu-active {
background: var(--ink);
color: var(--paper);
}
@keyframes mobile-portal-menu-enter {
from {
opacity: 0;
transform: translateY(-0.5rem);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@media (prefers-reduced-motion: reduce) {
.mobile-portal-menu-panel {
animation: none;
}
}
.public-account-page {
display: grid;
min-height: 100vh;
grid-template-rows: auto 1fr auto;
padding: clamp(1.25rem, 3vw, 2.75rem);
}
.account-panel {
width: min(100%, 37rem);
align-self: center;
padding-block: clamp(4rem, 10vh, 7rem);
}
.account-panel-wide {
width: min(100%, 48rem);
}
.account-panel h1 {
max-width: 12ch;
margin: 0;
font-size: clamp(2.6rem, 6vw, 5.5rem);
font-weight: 600;
letter-spacing: -0.06em;
line-height: 0.92;
}
.account-panel .lede {
margin-top: 1.75rem;
}
.account-form {
display: grid;
gap: 1.25rem;
margin-top: 2.5rem;
}
.account-form label,
.acknowledgements legend {
display: grid;
gap: 0.5rem;
font-size: 0.8125rem;
font-weight: 650;
letter-spacing: 0.01em;
}
.account-form input:not([type="checkbox"]) {
width: 100%;
min-height: 3.1rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
font: inherit;
font-weight: 400;
padding: 0.75rem;
}
.form-grid {
display: grid;
grid-template-columns: repeat(2, minmax(0, 1fr));
gap: 1rem;
}
.acknowledgements {
display: grid;
gap: 0.75rem;
margin: 0;
padding: 1.25rem 0;
border: 0;
border-top: 1px solid var(--line);
border-bottom: 1px solid var(--line);
}
.acknowledgements legend {
font-weight: 500;
margin-bottom: 0.75rem;
}
.acknowledgements a {
text-decoration: underline;
text-decoration-thickness: 1px;
text-underline-offset: 2px;
}
.checkbox-label {
grid-template-columns: 1rem minmax(0, 1fr);
align-items: start;
font-weight: 400 !important;
line-height: 1.45;
}
.checkbox-label input {
width: 1rem;
height: 1rem;
margin: 0.12rem 0 0;
accent-color: var(--ink);
}
.checkbox-label a,
.account-links a,
.public-footer a,
.legal-link {
text-underline-offset: 0.17em;
}
.field-error {
margin: -0.25rem 0 0;
color: #9d0e0e;
font-size: 0.875rem;
line-height: 1.4;
}
.form-note {
max-width: 44rem;
margin: 0;
color: var(--muted);
font-size: 0.875rem;
line-height: 1.55;
}
.account-links,
.public-footer {
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1.25rem;
margin-top: 1rem;
font-size: 0.875rem;
}
.public-footer {
padding-top: 1rem;
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.legal-footer {
display: flex;
flex-wrap: wrap;
gap: 0.75rem 1.25rem;
padding: 1.5rem clamp(1.25rem, 4vw, 5rem);
border-top: 1px solid var(--line);
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-transform: uppercase;
transition: all 0.2s ease;
}
.legal-footer a:hover {
color: var(--ink);
}
.audit-filters {
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: flex-end;
margin: 1.5rem 0;
}
.audit-filters label {
display: flex;
flex-direction: column;
gap: 0.25rem;
}
.audit-filters input {
padding: 0.4rem 0.6rem;
border: 1px solid var(--line);
font: inherit;
font-size: 0.875rem;
}
.audit-filters button {
padding: 0.4rem 1rem;
border: 1px solid var(--ink);
background: var(--ink);
color: var(--paper);
font: inherit;
font-size: 0.875rem;
cursor: pointer;
}
.audit-table {
width: 100%;
border-collapse: collapse;
font-size: 0.8125rem;
}
.audit-table th,
.audit-table td {
padding: 0.5rem 0.75rem;
text-align: left;
border-bottom: 1px solid var(--line);
vertical-align: top;
}
.audit-table th {
color: var(--muted);
font-size: 0.75rem;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.audit-metadata {
margin: 0;
max-width: 32rem;
overflow-x: auto;
font-size: 0.75rem;
line-height: 1.4;
white-space: pre-wrap;
color: var(--muted);
}
.audit-pagination {
margin-top: 1.5rem;
}
@media (max-width: 40rem) {
.form-grid {
grid-template-columns: 1fr;
}
}
.editorial-shell {
min-height: 100vh;
background: var(--paper);
}
.portal-masthead {
display: flex;
align-items: center;
justify-content: space-between;
gap: 2rem;
min-height: 5.25rem;
padding: 0.9rem clamp(1.25rem, 4vw, 5rem);
background: var(--ink);
color: var(--paper);
}
.portal-brand {
display: inline-flex;
align-items: center;
min-width: 0;
}
.brand-logo {
display: block;
width: min(10rem, 35vw);
height: auto;
max-height: 2.5rem;
object-fit: contain;
transition: opacity 0.2s ease;
}
.brand-logo-dark { display: none; }
.dark .brand-logo-light { display: none; }
.dark .brand-logo-dark { display: block; }
.brand-logo:hover {
opacity: 0.8;
}
.portal-masthead-meta,
.portal-masthead nav {
display: flex;
align-items: center;
gap: clamp(1rem, 2.2vw, 2.25rem);
}
.portal-masthead-meta {
color: #d4d4d4;
font-size: 0.6875rem;
font-weight: 600;
letter-spacing: 0.1em;
text-transform: uppercase;
}
.portal-masthead nav a {
color: var(--paper);
text-decoration: none;
}
.portal-masthead nav a:hover {
text-decoration: underline;
text-underline-offset: 0.28em;
}
.portal-signout {
border: 1px solid #d4d4d4;
border-radius: 0;
background: transparent;
color: var(--paper);
cursor: pointer;
font: inherit;
font-size: 0.6875rem;
font-weight: 600;
letter-spacing: 0.1em;
padding: 0.4rem 0.8rem;
text-transform: uppercase;
transition: background-color 140ms ease, color 140ms ease;
}
.portal-signout:hover:not(:disabled) {
background: var(--paper);
color: var(--ink);
}
.portal-signout:disabled {
cursor: wait;
opacity: 0.6;
}
.portal-masthead :focus-visible {
outline-color: var(--paper);
}
.editorial-work-surface {
width: min(100%, 108rem);
margin: 0 auto;
padding: clamp(2rem, 5vw, 5.5rem) clamp(1.25rem, 4vw, 5rem) 5rem;
}
.editorial-section {
max-width: 100%;
}
.editorial-kicker {
margin: 0 0 1rem;
color: var(--metadata);
font-size: 0.6875rem;
font-weight: 700;
letter-spacing: 0.12em;
text-transform: uppercase;
}
.editorial-title-row {
display: flex;
align-items: end;
justify-content: space-between;
gap: 2rem;
margin-bottom: clamp(2rem, 4vw, 3.5rem);
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--ink);
}
.editorial-title-row h1,
.editorial-state h1,
.editorial-section > h1 {
max-width: 15ch;
margin: 0;
font-size: clamp(2.5rem, 5vw, 5.5rem);
font-weight: 600;
letter-spacing: -0.065em;
line-height: 0.9;
}
.editorial-title-row > p {
max-width: 27rem;
margin: 0;
color: var(--graphite);
font-size: 0.95rem;
line-height: 1.5;
}
.album-title-row {
align-items: center;
}
.quiet-link {
flex: none;
color: var(--graphite);
font-size: 0.8125rem;
font-weight: 650;
text-underline-offset: 0.2em;
}
/* --- Album overview: grid of cover tiles in the photo-gallery aesthetic ---
Cover images use object-fit: cover with a consistent 4/3 tile (album
summaries don't carry EXIF, so no native per-cover aspect ratio), a
persistent bottom gradient with album name + photo count, and a hover
zoom. Clicking opens the album. Mirrors the photo grid's hover language. */
.album-gallery {
display: grid;
gap: clamp(0.75rem, 1.5vw, 1.25rem);
padding: 0;
list-style: none;
grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr));
}
.album-tile {
display: block;
color: inherit;
text-decoration: none;
}
.album-tile-frame {
position: relative;
margin: 0;
overflow: hidden;
background: var(--contact-sheet);
aspect-ratio: 4 / 3;
}
.album-tile-image {
display: block;
width: 100%;
height: 100%;
object-fit: cover;
background: var(--contact-sheet);
transition: transform 200ms ease-out;
}
.album-tile-missing {
display: grid;
place-items: center;
width: 100%;
height: 100%;
color: var(--metadata);
font-size: 0.7rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.album-tile:hover .album-tile-image,
.album-tile:focus-visible .album-tile-image {
transform: scale(1.03);
}
/* Persistent overlay (unlike the photo grid's hover-only overlay) — album
names need to be readable at a glance so editors can pick one. */
.album-tile-overlay {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
padding: 0.75rem;
background: linear-gradient(
to top,
rgb(0 0 0 / 85%) 0%,
rgb(0 0 0 / 30%) 55%,
rgb(0 0 0 / 0%) 85%
);
pointer-events: none;
}
/* --- Photo overview: masonry grid + hover overlay + lightbox --------------
Replaces the old contact-sheet (forced 3:2 tiles, object-fit: contain,
permanent monospace caption strips). Each photo keeps its native aspect
ratio via an inline `aspect-ratio` set from EXIF dimensions; the grid uses
CSS columns for a dense masonry layout. Captions and actions appear on
hover/focus, and a full-screen lightbox opens on click. */
.photo-gallery {
columns: 4 17rem;
column-gap: clamp(0.75rem, 1.5vw, 1.25rem);
padding: 0;
list-style: none;
}
@media (max-width: 64rem) {
.photo-gallery { columns: 3 14rem; }
}
@media (max-width: 48rem) {
.photo-gallery { columns: 2 9rem; }
}
.photo-tile {
break-inside: avoid;
margin: 0 0 clamp(0.75rem, 1.5vw, 1.25rem);
}
.photo-tile-frame {
position: relative;
margin: 0;
overflow: hidden;
background: var(--contact-sheet);
}
.photo-tile-trigger {
display: block;
width: 100%;
margin: 0;
padding: 0;
border: 0;
background: var(--contact-sheet);
cursor: zoom-in;
line-height: 0;
}
.photo-tile-image {
display: block;
width: 100%;
height: auto;
min-height: 6rem;
object-fit: cover;
background: var(--contact-sheet);
transition: transform 200ms ease-out;
}
.photo-tile-trigger:hover .photo-tile-image,
.photo-tile-trigger:focus-visible .photo-tile-image {
transform: scale(1.02);
}
.photo-tile-overlay {
position: absolute;
inset: 0;
display: flex;
flex-direction: column;
justify-content: flex-end;
gap: 0.5rem;
padding: 0.75rem;
background: linear-gradient(
to top,
rgb(0 0 0 / 78%) 0%,
rgb(0 0 0 / 38%) 40%,
rgb(0 0 0 / 0%) 70%
);
opacity: 0;
transition: opacity 160ms ease-out;
pointer-events: none; /* let clicks reach the image; buttons re-enable below */
}
.photo-tile-frame:hover .photo-tile-overlay,
.photo-tile-frame:focus-within .photo-tile-overlay {
opacity: 1;
}
.photo-tile-caption {
display: flex;
flex-direction: column;
gap: 0.125rem;
color: #fff;
}
.photo-tile-name {
font-size: 0.8rem;
font-weight: 600;
letter-spacing: 0.01em;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.photo-tile-album {
font-size: 0.65rem;
letter-spacing: 0.06em;
text-transform: uppercase;
opacity: 0.8;
}
.photo-tile-date {
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.625rem;
letter-spacing: 0.03em;
opacity: 0.85;
}
.photo-tile-actions {
display: flex;
align-items: center;
gap: 0.5rem;
pointer-events: auto;
}
/* Compact the full-width `.download-trigger` so it fits in the overlay row. */
.photo-tile-actions .download-trigger,
.lightbox-actions .download-trigger {
width: auto;
min-height: 2rem;
padding: 0 0.75rem;
border: 1px solid #fff;
border-top: 1px solid #fff;
background: rgb(255 255 255 / 12%);
color: #fff;
backdrop-filter: blur(4px);
}
.photo-tile-actions .download-trigger:hover,
.lightbox-actions .download-trigger:hover {
background: #fff;
color: var(--ink);
}
/* Base icon-button shape for the merken toggle (no base style existed). */
.lightbox-toggle-btn {
display: inline-flex;
align-items: center;
justify-content: center;
width: 2.5rem;
height: 2.5rem;
padding: 0;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
cursor: pointer;
}
.lightbox-toggle-btn:hover {
background: var(--ink);
color: var(--paper);
}
.lightbox-toggle-btn.in-lightbox {
background: var(--ink);
color: var(--paper);
}
.lightbox-toggle-btn:disabled {
opacity: 0.6;
cursor: progress;
}
/* Recolor the lightbox toggle for dark overlays. */
.photo-tile-actions .lightbox-toggle-btn,
.lightbox-actions .lightbox-toggle-btn {
width: 2rem;
height: 2rem;
color: #fff;
background: rgb(255 255 255 / 12%);
border: 1px solid #fff;
backdrop-filter: blur(4px);
}
.photo-tile-actions .lightbox-toggle-btn:hover,
.lightbox-actions .lightbox-toggle-btn:hover {
background: #fff;
color: var(--ink);
}
.photo-search {
display: grid;
gap: 0.55rem;
width: min(100%, 42rem);
margin-bottom: 1.25rem;
}
.photo-search label {
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.photo-search-controls {
display: flex;
align-items: stretch;
}
.photo-search input {
min-width: 0;
flex: 1;
min-height: 3rem;
border: 1px solid var(--ink);
border-right: 0;
border-radius: 0;
background: var(--paper);
color: var(--ink);
font: inherit;
padding: 0.7rem 0.8rem;
}
.photo-search button {
min-height: 3rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--ink);
color: var(--paper);
cursor: pointer;
font: inherit;
font-size: 0.8125rem;
font-weight: 700;
padding-inline: 1rem;
}
.photo-search button:hover {
background: var(--graphite);
}
.result-summary {
margin: 0 0 1.5rem;
color: var(--metadata);
font-size: 0.8125rem;
}
.catalog-empty,
.editorial-state > p:not(.editorial-kicker) {
max-width: 38rem;
color: var(--graphite);
font-size: 1rem;
line-height: 1.55;
}
.photo-pagination {
display: flex;
justify-content: space-between;
gap: 1rem;
margin-top: 2.5rem;
padding-top: 1rem;
border-top: 1px solid var(--ink);
font-size: 0.8125rem;
font-weight: 650;
}
/* Album search form — editorial styling (sharp ink borders, paper ground),
aligned with the portal's browsing surface instead of the shadcn rounded
card used elsewhere. */
.album-search-form {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 1rem;
margin: 0 0 1.5rem;
padding: 1rem;
border: 1px solid var(--ink);
background: var(--paper);
}
.album-search-input {
flex: 1 1 20rem;
display: flex;
flex-direction: column;
gap: 0.35rem;
}
.album-search-label {
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--metadata);
}
.album-search-input input[type="search"] {
width: 100%;
min-height: 2.75rem;
padding: 0.5rem 0.75rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
font: inherit;
font-size: 0.95rem;
}
.album-search-filters {
display: flex;
flex-wrap: wrap;
align-items: flex-end;
gap: 1rem;
}
.album-search-select {
display: flex;
flex-direction: column;
gap: 0.35rem;
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
color: var(--metadata);
}
.album-search-select select {
min-height: 2.75rem;
padding: 0.5rem 0.75rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
font: inherit;
font-size: 0.9rem;
text-transform: none;
letter-spacing: 0;
cursor: pointer;
}
.album-search-form button[type="submit"] {
min-height: 2.75rem;
padding: 0 1.25rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--ink);
color: var(--paper);
font: inherit;
font-size: 0.8125rem;
font-weight: 700;
letter-spacing: 0.04em;
cursor: pointer;
}
.album-search-form button[type="submit"]:hover {
background: var(--graphite);
}
/* Full-screen photo lightbox. */
.photo-lightbox {
position: fixed;
inset: 0;
z-index: 100;
display: grid;
grid-template-rows: 1fr auto;
align-items: center;
justify-items: center;
gap: 1rem;
padding: clamp(1rem, 4vw, 3rem);
background: rgb(0 0 0 / 92%);
backdrop-filter: blur(6px);
animation: lightbox-fade-in 160ms ease-out;
}
@keyframes lightbox-fade-in {
from { opacity: 0; }
to { opacity: 1; }
}
.lightbox-figure {
margin: 0;
display: flex;
flex-direction: column;
align-items: center;
gap: 0.75rem;
max-height: 100%;
}
.lightbox-image {
max-height: 84vh;
max-width: 90vw;
width: auto;
height: auto;
object-fit: contain;
background: rgb(255 255 255 / 4%);
}
.lightbox-caption {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 0.75rem;
color: #fff;
text-align: center;
}
.lightbox-caption .photo-tile-name {
font-size: 0.9rem;
}
.lightbox-actions {
display: flex;
align-items: center;
gap: 0.75rem;
}
.lightbox-close {
position: absolute;
top: clamp(0.75rem, 2vw, 1.5rem);
right: clamp(0.75rem, 2vw, 1.5rem);
width: 2.5rem;
height: 2.5rem;
border: 1px solid #fff;
border-radius: 0;
background: rgb(255 255 255 / 12%);
color: #fff;
font-size: 1.1rem;
cursor: pointer;
}
.lightbox-close:hover {
background: #fff;
color: var(--ink);
}
.lightbox-nav {
position: absolute;
top: 50%;
transform: translateY(-50%);
width: 3rem;
height: 3rem;
border: 1px solid #fff;
border-radius: 0;
background: rgb(255 255 255 / 12%);
color: #fff;
font-size: 1.75rem;
line-height: 1;
cursor: pointer;
}
.lightbox-nav:hover {
background: #fff;
color: var(--ink);
}
.lightbox-prev { left: clamp(0.5rem, 2vw, 1.5rem); }
.lightbox-next { right: clamp(0.5rem, 2vw, 1.5rem); }
@media (max-width: 48rem) {
.lightbox-nav { width: 2.5rem; height: 2.5rem; font-size: 1.4rem; }
}
.editorial-section dl {
display: grid;
grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
gap: 0.85rem 1.5rem;
max-width: 48rem;
margin: 2rem 0 0;
padding-top: 1.25rem;
border-top: 1px solid var(--ink);
}
.editorial-section dt {
color: var(--metadata);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.editorial-section dd {
margin: 0;
line-height: 1.45;
}
@media (max-width: 44rem) {
.portal-masthead {
align-items: flex-start;
flex-direction: column;
gap: 0.8rem;
}
.portal-masthead-meta {
width: 100%;
flex-wrap: wrap;
row-gap: 1rem;
justify-content: space-between;
}
.portal-signout {
margin-left: auto;
}
.editorial-title-row {
align-items: flex-start;
flex-direction: column;
gap: 1.25rem;
}
.editorial-section dl,
.content-section dl {
grid-template-columns: 1fr;
gap: 0.25rem;
}
.editorial-section dd,
.content-section dd {
margin-bottom: 0.75rem;
}
}
@media (prefers-reduced-motion: reduce) {
.album-tile-image,
.photo-tile-image,
.photo-tile-overlay {
transition: none;
}
}
.download-trigger {
width: 100%;
min-height: 2.45rem;
border: 0;
border-top: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
cursor: pointer;
font: inherit;
font-size: 0.7rem;
font-weight: 750;
letter-spacing: 0.07em;
text-transform: uppercase;
}
.download-trigger:hover {
background: var(--ink);
color: var(--paper);
}
.usage-dialog {
width: min(calc(100% - 2rem), 46rem);
max-height: calc(100vh - 2rem);
padding: 0;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
}
.usage-dialog::backdrop {
background: rgb(0 0 0 / 70%);
}
.usage-dialog form {
display: grid;
gap: 1.5rem;
padding: clamp(1.25rem, 4vw, 2.5rem);
}
.usage-dialog-heading {
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--ink);
}
.usage-dialog-heading h2 {
margin: 0;
font-size: clamp(2rem, 6vw, 4rem);
font-weight: 600;
letter-spacing: -0.055em;
line-height: 0.95;
}
.usage-dialog-heading > p:last-child {
max-width: 38rem;
margin: 1rem 0 0;
color: var(--graphite);
line-height: 1.5;
}
.usage-options {
display: grid;
gap: 0;
margin: 0;
padding: 0;
border: 0;
}
.usage-options legend,
.usage-purpose {
margin-bottom: 0.6rem;
font-size: 0.7rem;
font-weight: 750;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.usage-option {
display: grid;
grid-template-columns: auto minmax(0, 1fr) auto;
align-items: center;
gap: 0.9rem;
padding: 0.9rem 0;
border-top: 1px solid var(--line);
cursor: pointer;
}
.usage-option:last-child {
border-bottom: 1px solid var(--line);
}
.usage-option input {
width: 1.05rem;
height: 1.05rem;
accent-color: var(--ink);
}
.usage-option span {
display: grid;
gap: 0.2rem;
min-width: 0;
}
.usage-option strong,
.usage-option b {
font-size: 0.875rem;
}
.usage-option small {
overflow: hidden;
color: var(--metadata);
font-size: 0.7rem;
text-overflow: ellipsis;
white-space: nowrap;
}
.usage-purpose {
display: grid;
gap: 0.5rem;
margin: 0;
}
.usage-purpose textarea {
width: 100%;
resize: vertical;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
font: inherit;
padding: 0.75rem;
}
.usage-purpose textarea:disabled {
border-color: var(--line);
background: var(--soft);
}
.usage-dialog [role="alert"] {
margin: 0;
color: #8d1010;
font-size: 0.875rem;
}
.usage-dialog-actions {
display: flex;
justify-content: flex-end;
gap: 0.75rem;
}
.usage-dialog-actions button {
min-height: 2.8rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
cursor: pointer;
font: inherit;
font-size: 0.8rem;
font-weight: 700;
padding-inline: 1rem;
}
.usage-dialog-actions .download-confirm {
background: var(--ink);
color: var(--paper);
}
.usage-dialog-actions button:disabled {
cursor: wait;
opacity: 0.55;
}
.usage-history-empty {
max-width: 38rem;
}
.usage-history-empty p {
color: var(--graphite);
line-height: 1.55;
}
.usage-ledger,
.usage-attempts {
margin: 0;
padding: 0;
list-style: none;
}
.usage-ledger {
display: grid;
gap: 2.5rem;
}
.usage-ledger-entry {
border-top: 2px solid var(--ink);
}
.usage-ledger-entry > header {
display: flex;
align-items: baseline;
justify-content: space-between;
gap: 1rem;
padding: 0.8rem 0;
border-bottom: 1px solid var(--line);
}
.usage-ledger-entry > header p {
margin: 0;
color: var(--metadata);
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
font-size: 0.65rem;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.usage-ledger-entry h2 {
overflow-wrap: anywhere;
margin: 0;
font-size: clamp(1.35rem, 3vw, 2.25rem);
font-weight: 600;
letter-spacing: -0.035em;
}
.usage-snapshot {
display: grid !important;
grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
gap: 1rem !important;
max-width: none !important;
margin: 0 !important;
padding: 1rem 0 !important;
border-top: 0 !important;
}
.usage-snapshot div {
min-width: 0;
}
.usage-snapshot dd {
overflow-wrap: anywhere;
margin-top: 0.25rem;
}
.usage-attempts {
border-top: 1px solid var(--ink);
}
.usage-attempt-history {
margin-top: 3rem;
}
.usage-attempt-history h2 {
margin: 0 0 1rem;
font-size: clamp(1.3rem, 3vw, 2rem);
letter-spacing: -0.03em;
}
.usage-attempts li {
display: grid;
grid-template-columns: minmax(9rem, 1.2fr) minmax(11rem, 1.5fr) minmax(8rem, 1fr) 0.7fr 0.7fr;
gap: 1rem;
align-items: baseline;
padding: 0.7rem 0;
border-bottom: 1px solid var(--line);
font-size: 0.75rem;
}
.usage-attempts time,
.usage-attempts span {
color: var(--metadata);
}
.usage-attempts b {
text-align: right;
}
.usage-attempt-context {
display: grid;
gap: 0.2rem;
}
.usage-attempt-context strong {
overflow-wrap: anywhere;
color: var(--ink);
}
.usage-attempt-context small {
line-height: 1.35;
}
.usage-attempt-price {
display: grid;
gap: 0.2rem;
text-align: right;
}
.usage-attempt-price small {
color: var(--metadata);
white-space: nowrap;
}
.usage-attempt-empty {
margin: 0;
padding: 1rem 0;
border-top: 1px solid var(--line);
color: var(--metadata);
font-size: 0.8rem;
}
@media (max-width: 52rem) {
.usage-snapshot {
grid-template-columns: 1fr !important;
}
.usage-attempts li {
grid-template-columns: 1fr auto;
}
.usage-attempts li > :nth-child(3),
.usage-attempts li > :nth-child(4) {
display: none;
}
}
@media (max-width: 40rem) {
.usage-dialog-actions {
flex-direction: column-reverse;
}
.usage-dialog-actions button {
width: 100%;
}
.usage-ledger-entry > header {
align-items: flex-start;
flex-direction: column-reverse;
}
}
/* Billing selection */
.content-section {
width: min(100%, 108rem);
margin: 0 auto;
padding: clamp(2rem, 5vw, 5.5rem) clamp(1.25rem, 4vw, 5rem) 5rem;
}
.content-section h1 {
max-width: 15ch;
margin: 0 0 1.5rem;
font-size: clamp(2.5rem, 5vw, 5.5rem);
font-weight: 600;
letter-spacing: -0.065em;
line-height: 0.9;
}
.content-section > p {
max-width: 44rem;
margin: 0 0 2rem;
color: var(--graphite);
font-size: 0.95rem;
line-height: 1.5;
}
/* Mirrors `.editorial-section dl` so the admin detail page's `<dl>` (which
lives under `.content-section`, not `.editorial-section`) gets the same
grid + metadata treatment without duplicating markup. */
.content-section dl {
display: grid;
grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
gap: 0.85rem 1.5rem;
max-width: 48rem;
margin: 2rem 0 0;
padding-top: 1.25rem;
border-top: 1px solid var(--ink);
}
.content-section dt {
color: var(--metadata);
font-size: 0.75rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.content-section dd {
margin: 0;
line-height: 1.45;
}
/* Mirrors `.billing-editorial-list` — reused by the admin "Redaktionen"
list so it reads like the billing index without a parallel class. */
.editorial-list {
display: grid;
gap: 1.25rem;
padding: 0;
list-style: none;
}
.editorial-list li {
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--line);
}
.editorial-list a {
font-size: 1.15rem;
font-weight: 650;
text-decoration: none;
}
.editorial-list a:hover {
text-decoration: underline;
text-underline-offset: 0.2em;
}
.editorial-list p {
margin: 0.35rem 0 0;
color: var(--metadata);
font-size: 0.85rem;
}
.billing-editorial-list {
display: grid;
gap: 1.25rem;
padding: 0;
list-style: none;
}
.billing-editorial-list li {
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--line);
}
.billing-editorial-list a {
font-size: 1.15rem;
font-weight: 650;
text-decoration: none;
}
.billing-editorial-list a:hover {
text-decoration: underline;
text-underline-offset: 0.2em;
}
.billing-editorial-list p {
margin: 0.35rem 0 0;
color: var(--metadata);
font-size: 0.85rem;
}
.billing-period-selector {
display: flex;
flex-wrap: wrap;
align-items: end;
gap: 1rem;
margin-bottom: 2rem;
padding-bottom: 1.25rem;
border-bottom: 1px solid var(--ink);
}
.billing-period-selector label {
display: grid;
gap: 0.35rem;
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.06em;
text-transform: uppercase;
}
.billing-period-selector select {
min-width: 8rem;
min-height: 2.8rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
font: inherit;
font-size: 0.875rem;
padding: 0.4rem 0.6rem;
}
.billing-period-selector button {
min-height: 2.8rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--ink);
color: var(--paper);
cursor: pointer;
font: inherit;
font-size: 0.8rem;
font-weight: 700;
padding-inline: 1rem;
}
.billing-period-selector button:hover {
background: var(--graphite);
}
.billing-period-selector a {
align-self: center;
font-size: 0.8125rem;
font-weight: 650;
text-underline-offset: 0.2em;
}
.billing-selection-controls {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-bottom: 1.5rem;
}
.billing-selection-controls button {
min-height: 2.6rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
cursor: pointer;
font: inherit;
font-size: 0.8rem;
font-weight: 700;
padding-inline: 1rem;
}
.billing-selection-controls button:hover:not(:disabled) {
background: var(--ink);
color: var(--paper);
}
.billing-selection-controls button:disabled {
border-color: var(--line);
color: var(--metadata);
cursor: not-allowed;
}
.billing-nav-link {
display: inline-flex;
align-items: center;
min-height: 2.6rem;
border: 1px solid var(--ink);
border-radius: 0;
background: var(--paper);
color: var(--ink);
font: inherit;
font-size: 0.8rem;
font-weight: 700;
padding-inline: 1rem;
text-decoration: none;
}
.billing-nav-link:hover {
background: var(--ink);
color: var(--paper);
}
.billing-period-label {
margin: 0 0 1.5rem;
color: var(--metadata);
font-size: 0.8125rem;
font-weight: 650;
letter-spacing: 0.04em;
text-transform: uppercase;
}
.billing-empty {
max-width: 38rem;
color: var(--graphite);
font-size: 1rem;
line-height: 1.55;
}
.billing-table {
width: 100%;
border-collapse: collapse;
font-size: 0.85rem;
}
.billing-caption {
margin-bottom: 0.75rem;
color: var(--metadata);
font-size: 0.7rem;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase;
text-align: left;
caption-side: top;
}
.billing-table thead th {
padding: 0.6rem 0.5rem;
border-bottom: 1px solid var(--ink);
color: var(--metadata);
font-size: 0.65rem;
font-weight: 700;
letter-spacing: 0.08em;
text-align: left;
text-transform: uppercase;
}
.billing-table tbody td {
padding: 0.65rem 0.5rem;
border-bottom: 1px solid var(--line);
vertical-align: top;
}
.billing-table tbody tr.billing-row-billed {
background: var(--soft);
color: var(--metadata);
}
.billing-row-billed td {
color: var(--metadata);
}
.billing-row-billed .billing-status {
font-style: italic;
}
.billing-report-ref {
display: block;
margin-top: 0.15rem;
font-size: 0.7rem;
font-style: normal;
}
.billing-price {
text-align: right;
white-space: nowrap;
font-variant-numeric: tabular-nums;
}
.billing-status {
font-size: 0.75rem;
font-weight: 650;
}
.billing-repeat-section {
margin-top: 3rem;
padding-top: 1.5rem;
border-top: 1px solid var(--ink);
}
.billing-repeat-section h2 {
margin: 0 0 0.5rem;
font-size: 1.15rem;
font-weight: 650;
letter-spacing: -0.02em;
}
.billing-table-repeat {
margin-top: 1rem;
}
.billing-summary {
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 1rem;
margin-top: 2rem;
padding: 1rem 0;
border-top: 2px solid var(--ink);
font-size: 0.875rem;
}
.billing-summary p {
margin: 0;
}
.billing-summary-total {
font-size: 1.1rem;
font-variant-numeric: tabular-nums;
}
.billing-summary strong {
font-weight: 700;
}
.billing-actions {
display: flex;
flex-wrap: wrap;
gap: 0.75rem;
margin-top: 1.5rem;
}
.billing-actions button {
font: inherit;
font-size: 0.875rem;
padding: 0.5rem 1.25rem;
border: 2px solid var(--ink);
background: var(--paper);
color: var(--ink);
cursor: pointer;
border-radius: 0;
transition: background 0.15s, color 0.15s;
}
.billing-actions button:hover:not(:disabled) {
background: var(--ink);
color: var(--paper);
}
.billing-actions button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.billing-actions .billing-action-primary {
background: var(--ink);
color: var(--paper);
}
.billing-actions .billing-action-primary:hover:not(:disabled) {
background: var(--paper);
color: var(--ink);
}
.billing-status-message {
margin-top: 0.75rem;
padding: 0.5rem 0.75rem;
font-size: 0.8125rem;
border: 2px solid var(--ink);
}
.billing-status-message[role="alert"] {
border-color: var(--ink);
background: var(--ink);
color: var(--paper);
}
.billing-reports-section {
margin-top: 2.5rem;
padding-top: 1.5rem;
border-top: 2px solid var(--ink);
}
.billing-reports-section h2 {
font-size: 1.05rem;
margin: 0 0 0.75rem;
}
.billing-reports-list {
list-style: none;
padding: 0;
margin: 0;
display: flex;
flex-direction: column;
gap: 0.75rem;
}
.billing-reports-list li {
padding: 0.75rem;
border: 1px solid var(--ink);
font-size: 0.875rem;
}
.billing-reports-list .billing-report-meta {
display: flex;
flex-wrap: wrap;
gap: 0.5rem 1.5rem;
margin-bottom: 0.5rem;
}
.billing-reports-list .billing-report-meta span {
font-variant-numeric: tabular-nums;
}
.billing-cancel-form {
margin-top: 0.5rem;
padding-top: 0.5rem;
border-top: 1px solid var(--muted-ink, #ccc);
display: flex;
flex-direction: column;
gap: 0.5rem;
}
.billing-cancel-form label {
display: flex;
flex-direction: column;
gap: 0.25rem;
font-size: 0.8125rem;
}
.billing-cancel-form textarea {
font: inherit;
font-size: 0.875rem;
padding: 0.375rem 0.5rem;
border: 1px solid var(--ink);
background: var(--paper);
color: var(--ink);
resize: vertical;
min-height: 3rem;
}
.billing-cancel-form .billing-cancel-controls {
display: flex;
flex-wrap: wrap;
align-items: center;
gap: 0.5rem;
}
.billing-cancel-form .billing-cancel-controls label {
flex-direction: row;
align-items: center;
gap: 0.375rem;
}
.billing-cancel-form button {
font: inherit;
font-size: 0.8125rem;
padding: 0.375rem 0.875rem;
border: 2px solid var(--ink);
background: var(--paper);
color: var(--ink);
cursor: pointer;
border-radius: 0;
}
.billing-cancel-form button:hover:not(:disabled) {
background: var(--ink);
color: var(--paper);
}
.billing-cancel-form button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
@media (max-width: 48rem) {
.billing-table {
display: block;
overflow-x: auto;
}
.billing-period-selector {
flex-direction: column;
align-items: stretch;
}
.billing-period-selector a {
align-self: flex-start;
}
.billing-actions {
flex-direction: column;
align-items: stretch;
}
}
/* ------------------------------------------------------------------ */
/* Admin Album Grid */
/* ------------------------------------------------------------------ */
.album-grid-search {
display: block;
width: 100%;
max-width: 24rem;
margin-bottom: 2rem;
padding: 0.75rem 1rem;
border: 1px solid var(--ink);
background: var(--paper);
color: var(--ink);
font: inherit;
font-size: 0.875rem;
border-radius: 0;
}
.album-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
gap: 1rem;
margin: 0;
padding: 0;
list-style: none;
}
.album-card {
display: flex;
flex-direction: column;
background: var(--paper);
border: 1px solid var(--line);
transition: background-color 150ms ease;
}
.album-card[data-granted="true"] {
border-left: 3px solid var(--ink);
}
.album-card-image-container {
aspect-ratio: 4/3;
width: 100%;
border-bottom: 1px solid var(--line);
}
.album-card-image {
width: 100%;
height: 100%;
object-fit: cover;
}
.album-card-placeholder {
display: flex;
align-items: center;
justify-content: center;
width: 100%;
height: 100%;
background: var(--contact-sheet);
color: var(--metadata);
font-size: 0.75rem;
letter-spacing: 0.08em;
text-transform: uppercase;
}
.album-card-body {
display: flex;
flex-direction: column;
flex: 1;
padding: 1rem;
}
.album-card-name {
margin: 0 0 0.5rem 0;
font-size: 0.875rem;
font-weight: 700;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.album-card-count {
margin: 0 0 0.75rem 0;
font-size: 0.75rem;
color: var(--muted);
}
.album-card-status {
display: flex;
align-items: center;
gap: 0.5rem;
margin: 0 0 1.25rem 0;
font-size: 0.75rem;
font-weight: 600;
}
.album-card-status::before {
content: "";
display: block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--line);
}
.album-card-status--granted::before {
background: var(--ink);
}
.album-card-action {
margin-top: auto;
width: 100%;
padding: 0.75rem;
font: inherit;
font-size: 0.75rem;
font-weight: 600;
cursor: pointer;
border: 1px solid var(--ink);
border-radius: 0;
transition: all 150ms ease;
}
.album-card-action:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.album-card-action--grant {
background: var(--ink);
color: var(--paper);
}
.album-card-action--grant:hover:not(:disabled) {
background: var(--graphite);
}
.album-card-action--revoke {
background: transparent;
color: var(--metadata);
border-color: var(--line);
}
.album-card-action--revoke:hover:not(:disabled) {
border-color: var(--ink);
color: var(--ink);
}
@media (max-width: 639px) {
.album-grid {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
}
.billing-report-download {
display: inline-block;
margin-top: 1rem;
padding: 0.5rem 0.75rem;
border: 1px solid var(--line);
background: transparent;
color: var(--ink);
font-size: 0.75rem;
font-weight: 650;
text-decoration: none;
text-transform: uppercase;
letter-spacing: 0.05em;
transition: all 150ms ease;
}
.billing-report-download:hover {
border-color: var(--ink);
background: var(--soft);
}
/* ------------------------------------------------------------------ */
/* Danger Zone & Status Actions */
/* ------------------------------------------------------------------ */
.danger-banner {
padding: 0.75rem 1rem;
border: 1px solid #c44;
color: #922;
font-weight: 600;
font-size: 0.875rem;
margin: 1rem 0;
}
.action-button {
padding: 0.5rem 1.25rem;
background: var(--ink);
color: var(--paper);
border: 1px solid var(--ink);
font-size: 0.8125rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
margin-top: 0.5rem;
}
.action-button:hover {
opacity: 0.85;
}
.action-button:disabled {
opacity: 0.4;
cursor: not-allowed;
}
.action-button--warning {
background: #b45309;
border-color: #b45309;
}
.action-button--danger {
background: #b91c1c;
border-color: #b91c1c;
}
.danger-zone {
margin-top: 3rem;
padding-top: 2rem;
border-top: 2px solid #b91c1c;
}
.danger-zone h2 {
color: #b91c1c;
font-size: 1rem;
text-transform: uppercase;
letter-spacing: 0.08em;
}
.danger-zone p {
color: var(--metadata);
font-size: 0.875rem;
margin: 0.5rem 0 1rem;
}
.danger-zone label {
display: block;
margin-bottom: 1rem;
}
.danger-zone label span {
display: block;
font-size: 0.8125rem;
color: var(--metadata);
margin-bottom: 0.25rem;
}
.danger-zone-input {
width: 100%;
max-width: 24rem;
padding: 0.5rem 0.75rem;
border: 1px solid var(--line);
font-family: inherit;
font-size: 0.875rem;
}
.danger-zone-input:focus {
border-color: #b91c1c;
outline: 2px solid #b91c1c;
outline-offset: 1px;
}
/* Global search form on album overview */
.global-search-form {
display: flex;
gap: 0.5rem;
margin-bottom: 2rem;
max-width: 36rem;
}
.global-search-form input[type="search"] {
flex: 1;
padding: 0.625rem 0.875rem;
border: 1px solid var(--line);
font-size: 0.875rem;
font-family: inherit;
}
.global-search-form button {
padding: 0.625rem 1.25rem;
background: var(--ink);
color: var(--paper);
border: 1px solid var(--ink);
font-size: 0.8125rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
letter-spacing: 0.02em;
}
.auto-rules-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.auto-rule-item {
display: flex; align-items: center; gap: 1rem;
padding: 0.75rem 0;
border-bottom: 1px solid var(--line);
}
.auto-rule-keyword {
font-weight: 600;
flex: 1;
}
.auto-rule-date {
color: var(--muted);
font-size: 0.8125rem;
}
.auto-rule-delete {
background: transparent;
border: 1px solid var(--line);
padding: 0.25rem 0.75rem;
font-size: 0.75rem;
cursor: pointer;
color: var(--metadata);
font-family: inherit;
}
.auto-rule-delete:hover {
border-color: var(--ink);
color: var(--ink);
}
/* ------------------------------------------------------------------ */
/* Admin Album Grid */
/* ------------------------------------------------------------------ */
.album-grid-search {
width: 100%;
max-width: 30rem;
padding: 0.625rem 0.875rem;
border: 1px solid var(--line);
font-size: 0.875rem;
font-family: inherit;
margin-bottom: 1.5rem;
transition: all 0.2s ease;
}
.album-grid-search:focus {
outline: 2px solid var(--ink);
outline-offset: 2px;
}
.album-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(14rem, 1fr));
gap: 1.5rem;
list-style: none;
padding: 0;
margin: 0;
}
.album-card {
display: flex;
flex-direction: column;
background: var(--paper);
border: 1px solid var(--line);
transition: all 0.2s ease;
overflow: hidden;
}
.album-card[data-granted="true"] {
border-left: 3px solid var(--ink);
}
.album-card:hover {
transform: translateY(-2px);
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}
.album-card-image-container {
width: 100%;
aspect-ratio: 4 / 3;
background: var(--contact-sheet);
overflow: hidden;
}
.album-card-image {
width: 100%;
height: 100%;
object-fit: contain; /* Fix for portrait images getting cut off */
background: var(--contact-sheet);
transition: transform 0.3s ease;
}
.album-card:hover .album-card-image {
transform: scale(1.02);
}
.album-card-placeholder {
display: grid;
place-items: center;
height: 100%;
color: var(--metadata);
font-size: 0.75rem;
text-transform: uppercase;
letter-spacing: 0.05em;
}
.album-card-body {
padding: 1rem;
display: flex;
flex-direction: column;
flex: 1;
}
.album-card-name {
margin: 0 0 0.25rem 0;
font-size: 0.875rem;
font-weight: 600;
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
.album-card-count {
margin: 0 0 0.75rem 0;
font-size: 0.75rem;
color: var(--muted);
}
.album-card-status {
display: flex;
align-items: center;
gap: 0.375rem;
font-size: 0.75rem;
font-weight: 500;
margin: 0 0 1rem 0;
}
.album-card-status::before {
content: "";
display: block;
width: 8px;
height: 8px;
border-radius: 50%;
background: var(--line);
}
.album-card-status--granted::before {
background: #10b981; /* Green dot for granted */
}
.album-card-action {
width: 100%;
padding: 0.5rem;
font-size: 0.75rem;
font-weight: 600;
font-family: inherit;
cursor: pointer;
transition: all 0.2s ease;
margin-top: auto;
}
.album-card-action--grant {
background: var(--ink);
color: var(--paper);
border: 1px solid var(--ink);
}
.album-card-action--grant:hover:not(:disabled) {
background: var(--graphite);
}
.album-card-action--revoke {
background: transparent;
color: var(--metadata);
border: 1px solid var(--line);
}
.album-card-action--revoke:hover:not(:disabled) {
border-color: var(--ink);
color: var(--ink);
}
.album-card-action:disabled {
opacity: 0.5;
cursor: not-allowed;
}
button {
transition: all 0.2s ease;
}