- Add FadeIn component (IntersectionObserver scroll-reveal + load animation) - Add dark/light theme toggle (useSyncExternalStore + localStorage) - Add scroll-to-top button (appears after 300px scroll) - Add configurable footer with social links (gallery.yaml) - Add crosshair cursor on photo grid items - Add 'X photos' count badge on subpage cover images - Add light theme color palette in tokens.css
662 lines
13 KiB
CSS
662 lines
13 KiB
CSS
@import url('./tokens.css');
|
|
|
|
/* ── Header / Navigation ──────────────────────────── */
|
|
.header {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 100;
|
|
background: rgba(10, 10, 10, 0.9);
|
|
backdrop-filter: blur(20px);
|
|
-webkit-backdrop-filter: blur(20px);
|
|
border-bottom: 1px solid var(--border-subtle);
|
|
padding: 0 24px;
|
|
}
|
|
|
|
[data-theme='light'] .header {
|
|
background: rgba(250, 250, 250, 0.9);
|
|
}
|
|
|
|
.header__nav {
|
|
display: flex;
|
|
align-items: center;
|
|
gap: 0;
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
overflow-x: auto;
|
|
scrollbar-width: none;
|
|
-ms-overflow-style: none;
|
|
}
|
|
|
|
.header__nav::-webkit-scrollbar {
|
|
display: none;
|
|
}
|
|
|
|
.header__nav-link {
|
|
padding: 18px 16px;
|
|
font-family: var(--font-sans);
|
|
font-size: 0.7rem;
|
|
font-weight: 500;
|
|
letter-spacing: 0.12em;
|
|
text-transform: uppercase;
|
|
color: var(--text-secondary);
|
|
white-space: nowrap;
|
|
transition: color var(--transition-fast);
|
|
border-bottom: 2px solid transparent;
|
|
margin-bottom: -1px;
|
|
}
|
|
|
|
.header__nav-link:hover,
|
|
.header__nav-link.active {
|
|
color: var(--text-primary);
|
|
border-bottom-color: var(--text-primary);
|
|
}
|
|
|
|
/* ── Main Content ─────────────────────────────────── */
|
|
.main {
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
padding: 48px 24px 96px;
|
|
}
|
|
|
|
/* Homepage hero + About page use full bleed — override main padding */
|
|
.main:has(.hero),
|
|
.main:has(.about) {
|
|
max-width: none;
|
|
padding: 0;
|
|
}
|
|
|
|
/* ── Hero Split Layout (Homepage) ────────────────── */
|
|
.hero {
|
|
display: grid;
|
|
grid-template-columns: 1fr 1fr;
|
|
min-height: calc(100vh - 56px);
|
|
}
|
|
|
|
.hero__left {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 64px 48px;
|
|
background: var(--bg-primary);
|
|
}
|
|
|
|
.hero__content {
|
|
text-align: center;
|
|
max-width: 400px;
|
|
}
|
|
|
|
.hero__title {
|
|
font-family: var(--font-serif);
|
|
font-size: 3rem;
|
|
font-weight: 600;
|
|
letter-spacing: 0.04em;
|
|
margin-bottom: 8px;
|
|
}
|
|
|
|
.hero__subtitle {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.8rem;
|
|
font-weight: 300;
|
|
letter-spacing: 0.2em;
|
|
text-transform: lowercase;
|
|
color: var(--text-muted);
|
|
font-style: italic;
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.hero__nav {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 6px;
|
|
align-items: center;
|
|
}
|
|
|
|
.hero__nav-link {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.85rem;
|
|
font-weight: 300;
|
|
color: var(--text-secondary);
|
|
text-decoration: underline;
|
|
text-underline-offset: 3px;
|
|
text-decoration-color: rgba(255, 255, 255, 0.2);
|
|
transition:
|
|
color var(--transition-fast),
|
|
text-decoration-color var(--transition-fast);
|
|
padding: 4px 0;
|
|
}
|
|
|
|
.hero__nav-link:hover {
|
|
color: var(--text-primary);
|
|
text-decoration-color: var(--text-primary);
|
|
}
|
|
|
|
.hero__right {
|
|
position: relative;
|
|
overflow: hidden;
|
|
}
|
|
|
|
.hero__image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
}
|
|
|
|
.hero__image-placeholder {
|
|
width: 100%;
|
|
height: 100%;
|
|
background: var(--bg-secondary);
|
|
}
|
|
|
|
/* ── Hero Carousel Crossfade ────────────────────── */
|
|
.hero__carousel-image {
|
|
object-fit: cover;
|
|
opacity: 0;
|
|
transition: opacity 1.2s ease-in-out;
|
|
}
|
|
|
|
.hero__carousel-image--active {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ── Section Labels ──────────────────────────────── */
|
|
.section-label {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.75rem;
|
|
font-weight: 500;
|
|
text-transform: uppercase;
|
|
letter-spacing: 0.15em;
|
|
color: var(--text-muted);
|
|
margin-top: 48px;
|
|
margin-bottom: 20px;
|
|
}
|
|
|
|
.section-label:first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
/* ── Subpage Album Grid (2-column, edge-to-edge) ─── */
|
|
.subpage-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(2, 1fr);
|
|
gap: 4px;
|
|
}
|
|
|
|
.subpage-grid__item {
|
|
position: relative;
|
|
overflow: hidden;
|
|
aspect-ratio: 3 / 2;
|
|
cursor: pointer;
|
|
display: block;
|
|
}
|
|
|
|
.subpage-grid__item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition:
|
|
transform var(--transition-slow),
|
|
filter var(--transition-slow);
|
|
}
|
|
|
|
.subpage-grid__item:hover img {
|
|
transform: scale(1.03);
|
|
filter: brightness(0.75);
|
|
}
|
|
|
|
.subpage-grid__item-overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 20px;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, transparent 50%);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-normal);
|
|
}
|
|
|
|
.subpage-grid__item:hover .subpage-grid__item-overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.subpage-grid__item-title {
|
|
font-family: var(--font-serif);
|
|
font-size: 1.2rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.03em;
|
|
}
|
|
|
|
.subpage-grid__item-count {
|
|
font-size: 0.8rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 300;
|
|
margin-top: 2px;
|
|
}
|
|
|
|
/* ── Album Grid (Homepage) ────────────────────────── */
|
|
.album-grid {
|
|
display: grid;
|
|
grid-template-columns: repeat(auto-fill, minmax(380px, 1fr));
|
|
gap: 20px;
|
|
}
|
|
|
|
.album-card {
|
|
position: relative;
|
|
overflow: hidden;
|
|
border-radius: var(--radius-md);
|
|
aspect-ratio: 3 / 2;
|
|
cursor: pointer;
|
|
background: var(--bg-card);
|
|
border: 1px solid var(--border-subtle);
|
|
transition:
|
|
border-color var(--transition-normal),
|
|
transform var(--transition-normal);
|
|
}
|
|
|
|
.album-card:hover {
|
|
border-color: var(--border-hover);
|
|
transform: translateY(-2px);
|
|
}
|
|
|
|
.album-card__image {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
transition:
|
|
transform var(--transition-slow),
|
|
filter var(--transition-slow);
|
|
}
|
|
|
|
.album-card:hover .album-card__image {
|
|
transform: scale(1.03);
|
|
filter: brightness(0.7);
|
|
}
|
|
|
|
.album-card__overlay {
|
|
position: absolute;
|
|
inset: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
justify-content: flex-end;
|
|
padding: 24px;
|
|
background: linear-gradient(to top,
|
|
rgba(0, 0, 0, 0.8) 0%,
|
|
rgba(0, 0, 0, 0.3) 40%,
|
|
transparent 100%);
|
|
opacity: 0;
|
|
transition: opacity var(--transition-normal);
|
|
}
|
|
|
|
.album-card:hover .album-card__overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.album-card__title {
|
|
font-family: var(--font-serif);
|
|
font-size: 1.5rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.03em;
|
|
margin-bottom: 4px;
|
|
}
|
|
|
|
.album-card__count {
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* ── Photo Grid (Album Detail) ────────────────────── */
|
|
.album-header {
|
|
margin-bottom: 40px;
|
|
}
|
|
|
|
.album-header__back {
|
|
display: inline-flex;
|
|
align-items: center;
|
|
gap: 8px;
|
|
font-size: 0.85rem;
|
|
color: var(--text-secondary);
|
|
margin-bottom: 16px;
|
|
transition: color var(--transition-fast);
|
|
}
|
|
|
|
.album-header__back:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
.album-header__back svg {
|
|
width: 16px;
|
|
height: 16px;
|
|
}
|
|
|
|
.album-header__title {
|
|
font-family: var(--font-serif);
|
|
font-size: 2.5rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.02em;
|
|
}
|
|
|
|
.album-header__meta {
|
|
margin-top: 8px;
|
|
font-size: 0.9rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 300;
|
|
}
|
|
|
|
.photo-grid {
|
|
column-count: var(--grid-columns, 3);
|
|
column-gap: var(--grid-gap, 12px);
|
|
}
|
|
|
|
/* Uniform layout: CSS Grid with fixed aspect ratio */
|
|
.photo-grid--uniform {
|
|
display: grid;
|
|
grid-template-columns: repeat(var(--grid-columns, 3), 1fr);
|
|
gap: var(--grid-gap, 12px);
|
|
column-count: unset;
|
|
}
|
|
|
|
.photo-grid__item {
|
|
break-inside: avoid;
|
|
margin-bottom: var(--grid-gap, 12px);
|
|
border-radius: var(--radius-sm);
|
|
overflow: hidden;
|
|
cursor: pointer;
|
|
position: relative;
|
|
aspect-ratio: var(--grid-aspect-ratio, 1);
|
|
}
|
|
|
|
.photo-grid--uniform .photo-grid__item {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.photo-grid__item img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: cover;
|
|
display: block;
|
|
transition:
|
|
filter var(--transition-normal),
|
|
transform var(--transition-slow);
|
|
}
|
|
|
|
.photo-grid__item:hover img {
|
|
filter: brightness(0.85);
|
|
transform: scale(1.02);
|
|
}
|
|
|
|
/* EXIF hover overlay */
|
|
.photo-grid__item-exif {
|
|
position: absolute;
|
|
bottom: 0;
|
|
left: 0;
|
|
right: 0;
|
|
padding: 20px 10px 8px;
|
|
background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 100%);
|
|
color: rgba(255, 255, 255, 0.85);
|
|
font-size: 0.65rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.03em;
|
|
white-space: nowrap;
|
|
overflow: hidden;
|
|
text-overflow: ellipsis;
|
|
pointer-events: none;
|
|
opacity: 0;
|
|
transition: opacity var(--transition-normal);
|
|
z-index: 2;
|
|
}
|
|
|
|
.photo-grid__item:hover .photo-grid__item-exif {
|
|
opacity: 1;
|
|
}
|
|
|
|
/* ── Loading States ───────────────────────────────── */
|
|
.skeleton {
|
|
background: linear-gradient(90deg,
|
|
var(--bg-card) 0%,
|
|
var(--bg-card-hover) 50%,
|
|
var(--bg-card) 100%);
|
|
background-size: 200% 100%;
|
|
animation: skeleton-shimmer 1.5s infinite;
|
|
border-radius: var(--radius-sm);
|
|
}
|
|
|
|
@keyframes skeleton-shimmer {
|
|
0% {
|
|
background-position: 200% 0;
|
|
}
|
|
|
|
100% {
|
|
background-position: -200% 0;
|
|
}
|
|
}
|
|
|
|
/* ── Fade-In Animations ────────────────────────────── */
|
|
.fade-in {
|
|
opacity: 0;
|
|
transition: opacity 0.6s ease, transform 0.6s ease;
|
|
}
|
|
|
|
.fade-in--up {
|
|
transform: translateY(20px);
|
|
}
|
|
|
|
.fade-in--visible {
|
|
opacity: 1;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
@media (prefers-reduced-motion: reduce) {
|
|
.fade-in {
|
|
opacity: 1;
|
|
transform: none;
|
|
transition: none;
|
|
}
|
|
}
|
|
|
|
/* ── Custom Cursor (Photo Grid) ─────────────────── */
|
|
.photo-grid__item {
|
|
cursor: crosshair;
|
|
}
|
|
|
|
/* ── Scroll-to-Top Button ────────────────────────── */
|
|
.scroll-to-top {
|
|
position: fixed;
|
|
bottom: 32px;
|
|
right: 32px;
|
|
z-index: 90;
|
|
width: 40px;
|
|
height: 40px;
|
|
border-radius: 50%;
|
|
border: 1px solid var(--border-subtle);
|
|
background: var(--bg-card);
|
|
color: var(--text-secondary);
|
|
font-size: 1.1rem;
|
|
font-weight: 300;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
cursor: pointer;
|
|
opacity: 0;
|
|
pointer-events: none;
|
|
transform: translateY(8px);
|
|
transition:
|
|
opacity var(--transition-normal),
|
|
transform var(--transition-normal),
|
|
background var(--transition-fast),
|
|
border-color var(--transition-fast),
|
|
color var(--transition-fast);
|
|
}
|
|
|
|
.scroll-to-top--visible {
|
|
opacity: 1;
|
|
pointer-events: auto;
|
|
transform: translateY(0);
|
|
}
|
|
|
|
.scroll-to-top:hover {
|
|
background: var(--bg-card-hover);
|
|
border-color: var(--border-hover);
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ── Theme Toggle ────────────────────────────────── */
|
|
.theme-toggle {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
padding: 8px;
|
|
background: none;
|
|
border: none;
|
|
color: var(--text-secondary);
|
|
cursor: pointer;
|
|
border-radius: var(--radius-sm);
|
|
transition: color var(--transition-fast);
|
|
margin-left: auto;
|
|
}
|
|
|
|
.theme-toggle:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ── Footer ──────────────────────────────────────── */
|
|
.footer {
|
|
border-top: 1px solid var(--border-subtle);
|
|
padding: 32px 24px;
|
|
max-width: var(--max-width);
|
|
margin: 0 auto;
|
|
}
|
|
|
|
.footer__inner {
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
gap: 20px;
|
|
flex-wrap: wrap;
|
|
}
|
|
|
|
.footer__name {
|
|
font-family: var(--font-sans);
|
|
font-size: 0.75rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.1em;
|
|
text-transform: uppercase;
|
|
color: var(--text-muted);
|
|
}
|
|
|
|
.footer__links {
|
|
display: flex;
|
|
gap: 12px;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer__link {
|
|
color: var(--text-muted);
|
|
transition: color var(--transition-fast);
|
|
display: flex;
|
|
align-items: center;
|
|
}
|
|
|
|
.footer__link:hover {
|
|
color: var(--text-primary);
|
|
}
|
|
|
|
/* ── Image Count Badge (Subpage Covers) ─────────── */
|
|
.subpage-grid__item-badge {
|
|
position: absolute;
|
|
top: 12px;
|
|
right: 12px;
|
|
z-index: 2;
|
|
padding: 4px 10px;
|
|
border-radius: 100px;
|
|
background: rgba(0, 0, 0, 0.55);
|
|
backdrop-filter: blur(6px);
|
|
-webkit-backdrop-filter: blur(6px);
|
|
font-family: var(--font-sans);
|
|
font-size: 0.65rem;
|
|
font-weight: 400;
|
|
letter-spacing: 0.05em;
|
|
color: rgba(255, 255, 255, 0.85);
|
|
pointer-events: none;
|
|
}
|
|
|
|
/* ── Error / Empty States ─────────────────────────── */
|
|
.empty-state {
|
|
text-align: center;
|
|
padding: 96px 24px;
|
|
}
|
|
|
|
.empty-state__icon {
|
|
font-size: 3rem;
|
|
margin-bottom: 16px;
|
|
opacity: 0.3;
|
|
}
|
|
|
|
.empty-state__text {
|
|
font-size: 1.1rem;
|
|
color: var(--text-secondary);
|
|
font-weight: 300;
|
|
}
|
|
|
|
/* ── Responsive ───────────────────────────────────── */
|
|
@media (max-width: 1024px) {
|
|
.photo-grid {
|
|
--grid-columns: 2;
|
|
}
|
|
|
|
.album-grid {
|
|
grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
|
|
}
|
|
}
|
|
|
|
@media (max-width: 640px) {
|
|
.hero {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.hero__right {
|
|
order: -1;
|
|
max-height: 40vh;
|
|
}
|
|
|
|
.hero__left {
|
|
padding: 40px 24px;
|
|
}
|
|
|
|
.hero__title {
|
|
font-size: 2rem;
|
|
}
|
|
|
|
.photo-grid {
|
|
--grid-columns: 1;
|
|
}
|
|
|
|
.album-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.subpage-grid {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
|
|
.main {
|
|
padding: 24px 16px 64px;
|
|
}
|
|
|
|
.header__nav-link {
|
|
padding: 14px 10px;
|
|
font-size: 0.6rem;
|
|
}
|
|
|
|
.album-header__title {
|
|
font-size: 1.8rem;
|
|
}
|
|
|
|
.album-card__overlay {
|
|
opacity: 1;
|
|
}
|
|
|
|
.subpage-grid__item-overlay {
|
|
opacity: 1;
|
|
}
|
|
} |