/* ===== RESET & BASE ===== */
@font-face {
    font-family: 'Great Vibes';
    src: url('../fonts/GreatVibes-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}
:root { color-scheme: light; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
    margin: 0; padding: 0;
    background: #fff; color: #111;
    font-family: 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
}
body { padding-bottom: 52px; }
a { color: inherit; }

/* ===== SPLASH ===== */
.splash {
    position: fixed; inset: 0; background: #fff;
    display: flex; align-items: center; justify-content: center;
    flex-direction: column; z-index: 999;
    transition: opacity 0.8s ease;
}
.splash .line {
    width: 0; height: 1px; background: #111;
    transition: width 1s cubic-bezier(.16,1,.3,1);
}
#line-top { margin-bottom: 32px; }
#line-bottom { margin-top: 24px; }
#word {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 56px; letter-spacing: 14px; color: #111; display: flex;
}
#word span {
    opacity: 0; transform: translateY(22px); filter: blur(8px);
    transition: opacity 0.7s cubic-bezier(.16,1,.3,1),
                transform 0.7s cubic-bezier(.16,1,.3,1),
                filter 0.7s cubic-bezier(.16,1,.3,1);
}
#byline {
    font-family: 'Great Vibes', cursive; font-size: 30px; color: #111;
    margin-top: 6px; opacity: 0; transform: translateY(10px); filter: blur(4px);
    transition: opacity 0.8s cubic-bezier(.16,1,.3,1),
                transform 0.8s cubic-bezier(.16,1,.3,1),
                filter 0.8s cubic-bezier(.16,1,.3,1);
}

/* ===== NAVIGATION ===== */
.nav {
    position: fixed; top: 0; left: 0; right: 0; z-index: 100;
    display: flex; align-items: center; justify-content: space-between;
    padding: 1.5rem 3rem;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
    border-bottom: 1px solid #eee;
}
.brand {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: 1.25rem; letter-spacing: 3px; color: #111; text-decoration: none;
}
.links {
    display: flex; align-items: center; gap: 1.75rem;
}
.links a {
    display: inline-flex; align-items: center;
    color: #111; text-decoration: none; font-size: 0.85rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    line-height: 1; opacity: 0.75; transition: opacity 0.2s ease; flex-shrink: 0;
}
.links a:hover { opacity: 1; }
.dropdown { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.dropdown-menu {
    position: absolute; top: 100%; left: 50%;
    padding: 1.6rem 0.6rem 0.6rem; margin-top: 0;
    background: #fff; box-shadow: 0 18px 40px rgba(0,0,0,0.12);
    min-width: 220px; opacity: 0; visibility: hidden; pointer-events: none;
    transform: translate(-50%, 0); transition: opacity 0.2s ease;
    z-index: 10; border-radius: 10px; overflow: hidden;
}
.dropdown:hover .dropdown-menu,
.dropdown:focus-within .dropdown-menu {
    opacity: 1; visibility: visible; pointer-events: auto;
}
.dropdown-group { padding: 0.15rem 0; }
.dropdown-group > a {
    display: block; padding: 0.5rem 0.75rem;
    font-size: 0.95rem;
    letter-spacing: 0; text-transform: none; opacity: 1; line-height: 1.2;
}
.dropdown-group > a:hover { background: #f5f5f5; opacity: 1; }
.dropdown-sub { display: flex; flex-direction: column; margin: 0.1rem 0 0.35rem; }
.dropdown-sub a {
    display: block; padding: 0.4rem 0.75rem 0.4rem 1.5rem;
    font-size: 0.78rem; letter-spacing: 0; text-transform: none;
    opacity: 0.6; line-height: 1.2;
}
.dropdown-sub a:hover { opacity: 1; background: #f5f5f5; }
.menu-toggle {
    display: none; flex-direction: column; justify-content: center;
    gap: 5px; width: 28px; height: 28px;
    background: none; border: none; cursor: pointer; padding: 0;
}
.menu-toggle span { display: block; width: 100%; height: 1px; background: #111; }

/* ===== HERO ===== */
.hero { position: relative; overflow: hidden; }
.hero-split {
    position: relative;
    display: flex; align-items: stretch;
    padding: 5.5rem 3rem 3rem;
    max-width: 1600px; margin: 0 auto;
}
.hero-text {
    max-width: 380px; position: relative; z-index: 2;
    padding: 2rem 0;
}
.hero .kicker {
    font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 0 0 1.5rem;
}
.hero h1 {
    font-family: Georgia, 'Times New Roman', serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
    line-height: 1.1; letter-spacing: 1px; margin: 0 0 1.5rem; color: #111;
}
.hero .sub { max-width: 400px; color: #555; line-height: 1.7; margin: 0 0 2rem; }
.hero .cta {
    color: #111; text-decoration: none; font-size: 0.85rem;
    letter-spacing: 2px; text-transform: uppercase;
    border-bottom: 1px solid #111; padding-bottom: 4px;
}

/* Hero Photos Marquee */
.hero-photos {
    position: absolute; top: 5.5rem; left: 30%; right: 0; bottom: 3rem;
    overflow: hidden; display: flex; align-items: stretch;
}
.hero-photos::before {
    content: ''; position: absolute; top: 0; left: 0; bottom: 0;
    width: 200px; z-index: 1;
    background: linear-gradient(to right, #fff 30%, rgba(255,255,255,0) 100%);
    pointer-events: none;
}
.hero-marquee { width: 100%; height: 100%; overflow: hidden; display: flex; align-items: stretch; }
.hero-marquee__track {
    display: flex; gap: 12px; height: 100%;
    will-change: transform;
}
.hero-marquee__item {
    flex-shrink: 0; width: 260px; height: 100%; overflow: hidden;
}
.hero-marquee__item img {
    width: 100%; height: 100%; object-fit: cover; display: block;
}

.scroll-cue {
    position: absolute; bottom: 2.5rem; left: 50%;
    transform: translateX(-50%); color: #aaa; text-decoration: none;
    font-size: 1.1rem; z-index: 2; animation: bob 2.4s ease-in-out infinite;
}
@keyframes bob {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

@media (max-width: 900px) {
    .hero-split {
        display: block; padding: 7rem 1.5rem 2rem;
    }
    .hero-text { max-width: 100%; }
    .hero-photos {
        position: relative; left: 0; width: 100%; height: 280px;
        margin: 2rem -1.5rem 0; width: calc(100% + 3rem);
    }
    .hero-photos::before { width: 80px; }
    .hero-marquee__item { width: 180px; }
}
@media (max-width: 560px) {
    .hero-marquee__item { width: 140px; }
    .hero-photos { height: 220px; }
}
footer {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 90;
    display: flex; align-items: center; justify-content: space-between;
    padding: 0.75rem 3rem;
    background: rgba(255,255,255,0.9); backdrop-filter: blur(6px);
    border-top: 1px solid #eee;
}
footer .signature {
    font-family: 'Great Vibes', cursive; font-size: 1.15rem; color: #111; margin: 0;
}
footer .visits, .visit-counter {
    display: inline-flex; align-items: center; gap: 2px;
    margin-left: 6px; vertical-align: middle; opacity: 0.4;
    transition: opacity 0.2s ease; cursor: default;
}
.visit-counter:hover { opacity: 1; }
.odometer {
    display: inline-flex; gap: 2px; align-items: center;
}
.odometer .digit, .visit-counter span {
    display: inline-flex; align-items: center; justify-content: center;
    width: 12px; height: 16px;
    background: #111; color: #fff;
    font-size: 8px; font-weight: 500;
    border-radius: 2px;
}
footer .copyright { color: #999; font-size: 0.72rem; margin: 0; }

/* ===== GALLERY SECTION (homepage) ===== */
.gallery { padding: 5rem 3rem 6rem; width: 100%; }
.gallery .heading, .services .heading { text-align: center; margin-bottom: 3rem; }
.gallery .heading .kicker, .services .heading .kicker {
    font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 0 0 0.75rem;
}
.gallery .heading h2, .services .heading h2 {
    font-size: 2rem; margin: 0; color: #111; font-weight: 700;
}
.grid { column-count: 4; column-gap: 1.5rem; }
#gallery-grid figure {
    margin: 0 0 1.5rem; position: relative; overflow: hidden;
    background: #f4f4f4; break-inside: avoid;
}
#gallery-grid figure img {
    width: 100%; height: auto; display: block; transition: transform 0.6s ease;
}
#gallery-grid figure:hover img { transform: scale(1.04); }
#gallery-grid .watermark, .photo-grid .watermark {
    position: absolute; bottom: 8px; right: 12px;
    font-family: 'Great Vibes', cursive; font-size: clamp(14px, 4vw, 22px);
    color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.55);
    pointer-events: none; user-select: none; line-height: 1;
}
#gallery-grid .see-more {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 0.5rem; aspect-ratio: 4/5; background: #f4f4f4;
    color: #111; text-decoration: none; font-size: 0.85rem;
    letter-spacing: 1.5px; text-transform: uppercase;
    transition: background 0.3s ease; margin: 0 0 1.5rem; break-inside: avoid;
}
#gallery-grid .see-more:hover { background: #eaeaea; }
#gallery-grid .see-more .arrow { font-size: 1.2rem; transition: transform 0.3s ease; }
#gallery-grid .see-more:hover .arrow { transform: translateX(4px); }

/* ===== ABOUT SECTION ===== */
.about {
    display: grid; grid-template-columns: 0.9fr 1.1fr;
    gap: 4rem; align-items: center;
    max-width: 1600px; margin: 0 auto; padding: 3rem 3rem;
}
.about .copy { max-width: 640px; }
.about .portrait {
    width: 100%; aspect-ratio: 4/5; background: #f4f4f4;
    object-fit: cover; display: block; border-radius: 10px;
}
.about .kicker {
    font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 0 0 0.75rem;
}
.about h2 {
    font-size: 2.1rem; margin: 0 0 1.25rem; color: #111; font-weight: 700;
}
.about .copy p { color: #555; line-height: 1.8; margin: 0 0 1.1rem; max-width: 460px; }
.about .signature-text {
    font-family: 'Great Vibes', cursive; font-size: 1.9rem; color: #111; margin-top: 1.5rem;
}

/* ===== SERVICES SECTION ===== */
.services { padding: 5rem 3rem 6rem; max-width: 1600px; margin: 0 auto; }
.services-grid {
    display: flex; flex-wrap: wrap; justify-content: center; gap: 1.5rem;
}
.services .card {
    border: 1px solid #eee; padding: 2rem 1.5rem; text-align: center; border-radius: 10px;
    flex: 0 1 280px; max-width: 320px;
}
.services .card h3 {
    font-size: 1.15rem; margin: 0 0 0.75rem; color: #111; font-weight: 600;
}
.services .card p { color: #666; font-size: 0.9rem; line-height: 1.6; margin: 0; }

/* ===== CONTACT SECTION ===== */
.contact { text-align: center; padding: 6rem 1.5rem 4rem; border-top: 1px solid #eee; }
.contact .kicker {
    font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 0 0 0.75rem;
}
.contact h2 {
    font-size: 2.1rem; margin: 0 0 1rem; color: #111; font-weight: 700;
}
.contact .sub { color: #555; margin: 0 0 1.5rem; }
.contact .email {
    display: inline-block; color: #111; text-decoration: none;
    font-size: 1.1rem; border-bottom: 1px solid #111;
    padding-bottom: 4px; margin-bottom: 2.5rem;
}
.social { display: flex; justify-content: center; gap: 1.5rem; align-items: center; }
.social a {
    color: #111; text-decoration: none;
    display: flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: 50%;
    border: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.social a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }

/* ===== PHOTO GRID (gallery page) ===== */
.photo-grid { column-count: 4; column-gap: 1.5rem; }
.photo-grid figure {
    margin: 0 0 1.5rem; position: relative; background: #f4f4f4;
    overflow: hidden; break-inside: avoid;
}
.photo-grid img {
    width: 100%; height: auto; display: block; transition: transform 0.5s ease;
    cursor: zoom-in;
}
.photo-grid figure:hover img { transform: scale(1.04); }

/* ===== GALLERY PAGE LAYOUT ===== */
.gallery-layout {
    display: grid; grid-template-columns: 220px minmax(0, 1fr);
    gap: 3.5rem; align-items: start;
    max-width: 1600px; margin: 0 auto; padding: 8rem 3rem 6rem;
}
.gallery-page { min-width: 0; }
.gallery-page .heading { margin-bottom: 4rem; }
.gallery-page .kicker {
    font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 0 0 0.75rem;
}
.gallery-page h1 {
    font-size: 2.6rem; letter-spacing: 2px; margin: 0 0 0.75rem; color: #111;
    font-weight: 700; text-transform: capitalize;
}
.gallery-page .sub { color: #555; margin: 0; }
.category { margin-bottom: 4.5rem; scroll-margin-top: 96px; }
.category h2 {
    font-size: 1.6rem; color: #111; margin: 0 0 1.5rem; font-weight: 600;
    text-transform: capitalize;
    padding-bottom: 1rem; border-bottom: 1px solid #eee;
}
.subcategory { margin: 2.5rem 0; scroll-margin-top: 96px; }
.subcategory h3 {
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    color: #999; margin: 0 0 1rem;
}
.empty { color: #888; }
.empty code { font-size: 0.9em; background: #f4f4f4; padding: 0.1rem 0.4rem; }

/* ===== GALLERY SIDEBAR ===== */
.sidebar {
    position: sticky; top: 96px;
    display: flex; flex-direction: column;
    align-self: start;
    z-index: 1;
    padding-right: 0.5rem;
}
.sidebar .kicker {
    font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 0 0 0.5rem;
}
.sidebar .total {
    font-size: 1.05rem; color: #111; margin: 0 0 2rem; font-weight: 600;
}
}
.category-nav { display: flex; flex-direction: column; gap: 1.5rem; }
.category-link {
    display: block;
    color: #111; text-decoration: none; font-size: 1rem; margin-bottom: 0.6rem;
}
.category-link span, .category-nav li span { color: #aaa; font-size: 0.8rem; }
.category-nav ul {
    list-style: none; margin: 0; padding-left: 0.9rem;
    border-left: 1px solid #eee; display: flex; flex-direction: column; gap: 0.6rem;
}
.category-nav li a {
    display: block; color: #777; text-decoration: none; font-size: 0.85rem;
}
.category-nav li a::before { content: '–'; margin-right: 0.4rem; color: #ccc; }
.category-nav li a:hover { color: #111; }

/* ===== BLOG LAYOUT ===== */
.blog-layout {
    display: grid; grid-template-columns: 220px minmax(0, 1fr) 260px;
    gap: 3.5rem; align-items: start;
    max-width: 1600px; margin: 0 auto; padding: 8rem 3rem 6rem;
}
.blog-layout .content { min-width: 0; }
.blog-layout .heading { margin-bottom: 4rem; }
.blog-layout .heading h1 {
    font-size: 2.6rem; letter-spacing: 2px; margin: 0 0 0.75rem; color: #111;
    font-weight: 700; text-transform: capitalize;
}
.blog-layout .heading .kicker {
    font-size: 0.8rem; letter-spacing: 3px; text-transform: uppercase;
    color: #888; margin: 0 0 0.75rem;
}
.blog-layout .heading .sub { color: #555; margin: 0; }
.year-heading {
    font-size: 1.8rem; color: #111; margin: 3.5rem 0 1.5rem; font-weight: 700;
    padding-top: 2rem; border-top: 1px solid #eee;
}
.year-section:first-of-type .year-heading { margin-top: 0; padding-top: 0; border-top: none; }
.month-heading {
    font-size: 0.8rem; letter-spacing: 2px; text-transform: uppercase;
    color: #999; margin: 0 0 1rem;
}
.posts { list-style: none; padding: 0; margin: 0 0 2.5rem; }
.posts li { border-bottom: 1px solid #eee; }
.post-card {
    display: grid; grid-template-columns: 180px 1fr; gap: 1.75rem;
    align-items: center; padding: 1.75rem 0; text-decoration: none; color: inherit;
}
.post-card .thumb {
    width: 180px; aspect-ratio: 4/3; background: #f4f4f4; overflow: hidden;
}
.post-card .thumb img {
    width: 100%; height: 100%; object-fit: cover; display: block;
    transition: transform 0.5s ease;
}
.post-card:hover .thumb img { transform: scale(1.05); }
.post-card .meta { max-width: 640px; }
.post-card .date {
    font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase;
    color: #999; margin: 0 0 0.5rem;
}
.post-card .meta h4 {
    font-size: 1.3rem; margin: 0 0 0.5rem; color: #111; font-weight: 600;
    text-transform: capitalize;
}
.post-card .desc { color: #666; font-size: 0.9rem; line-height: 1.6; margin: 0 0 0.75rem; }
.post-card .read {
    font-size: 0.8rem; letter-spacing: 1px; text-transform: uppercase; color: #888;
}

/* Blog archive sidebar */
.archive-nav { display: flex; flex-direction: column; gap: 1.5rem; }
.year-link {
    display: block;
    font-size: 1.05rem; color: #111; text-decoration: none; margin-bottom: 0.5rem;
    font-weight: 600;
}
.year-link span, .archive-nav li span { color: #aaa; font-size: 0.8rem; }
.archive-nav ul {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 0.5rem;
}
.archive-nav li a { color: #666; text-decoration: none; font-size: 0.85rem; }
.archive-nav li a:hover { color: #111; }

/* ===== BLOG POST (single) ===== */
.blog-layout .post { max-width: 680px; min-width: 0; }
.blog-layout .post .back {
    display: inline-block; font-size: 0.8rem; letter-spacing: 1px;
    text-transform: uppercase; color: #888; text-decoration: none; margin-bottom: 3rem;
}
.blog-layout .post .back:hover { color: #111; }
.blog-layout .post .cover { margin: 0 0 2.5rem; background: #f4f4f4; }
.blog-layout .post .cover img {
    width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block;
}
.blog-layout .post .post-heading { margin-bottom: 2.5rem; }
.blog-layout .post .date {
    font-size: 0.78rem; letter-spacing: 1px; text-transform: uppercase;
    color: #999; margin: 0 0 0.75rem;
}
.blog-layout .post h1 {
    font-size: 2.2rem; letter-spacing: 1px; margin: 0 0 1rem; color: #111;
    font-weight: 700; text-transform: capitalize;
}
}
.blog-layout .post .deck { color: #555; line-height: 1.7; margin: 0; }
.blog-layout .post article { line-height: 1.8; color: #222; font-size: 1.05rem; }
.blog-layout .post article p { margin: 0 0 1rem; }
.blog-layout .post article p:empty { display: none; }
.blog-layout .post article img { max-width: 20%; width: auto; height: auto; display: block; margin: 0.75rem 0; border-radius: 4px; }
.blog-layout .post article h2 {
    margin: 1.5rem 0 0.75rem; font-weight: 600; text-transform: capitalize;
}

/* ===== RIGHT RAIL ===== */
.right-rail {
    position: sticky; top: 96px;
    display: flex; flex-direction: column; gap: 2rem;
    align-self: start;
    z-index: 1;
}
.right-rail .widget { border-top: 1px solid #eee; padding-top: 1.5rem; }
.right-rail .widget:first-child { border-top: none; padding-top: 0; }
.right-rail .widget-title {
    font-size: 0.78rem; letter-spacing: 1.5px; text-transform: uppercase;
    color: #999; margin: 0 0 0.75rem;
}
.right-rail .avatar {
    width: 56px; height: 56px; border-radius: 50%; background: #eee;
    display: block; margin-bottom: 1rem;
}
.right-rail .author h4 {
    font-size: 1.05rem; margin: 0 0 0.5rem; color: #111; font-weight: 600;
}
.right-rail .author p { color: #666; font-size: 0.88rem; line-height: 1.6; margin: 0 0 0.75rem; }
.right-rail .author a, .right-rail .widget a {
    color: #111; font-size: 0.85rem; text-decoration: none;
    border-bottom: 1px solid #111; padding-bottom: 2px;
}
.follow-links { display: flex; gap: 1.25rem; }
.follow-links a { border-bottom: none !important; }

/* ===== LIGHTBOX ===== */
.lightbox {
    position: fixed; inset: 0; z-index: 1000;
    background: rgba(0,0,0,0.92);
    display: flex; align-items: center; justify-content: center;
}
.lightbox[hidden] { display: none; }
.lightbox-frame {
    position: relative; display: inline-flex;
    max-width: 90vw; max-height: 90vh;
}
.lightbox-frame img {
    max-width: 90vw; max-height: 90vh; object-fit: contain;
    display: block; -webkit-user-drag: none;
}
.lightbox .watermark {
    position: absolute; bottom: 14px; right: 18px;
    font-family: 'Great Vibes', cursive; font-size: clamp(18px, 3vw, 28px);
    color: rgba(255,255,255,0.85); text-shadow: 0 1px 4px rgba(0,0,0,0.6);
    pointer-events: none; user-select: none;
}
.lightbox-close {
    position: absolute; top: 24px; right: 24px;
    background: none; border: none; color: #fff;
    font-size: 22px; line-height: 1; cursor: pointer; padding: 8px;
}
.photo-grid img, #gallery-grid figure img { cursor: zoom-in; }

/* ===== RESPONSIVE ===== */
@media (max-width: 1200px) {
    .grid, .photo-grid { column-count: 3; }
}
@media (max-width: 900px) {
    .grid, .photo-grid { column-count: 2; }
    .gallery { padding: 4rem 1.5rem; }
    .services-grid { justify-content: center; }
    .services { padding: 4rem 1.5rem; }
    .about {
        grid-template-columns: 1fr; padding: 4rem 1.5rem;
        gap: 2rem; text-align: center;
    }
    .about .copy p { margin-left: auto; margin-right: auto; }
    .gallery-layout {
        grid-template-columns: 1fr; padding: 7rem 1.5rem 4rem; gap: 2.5rem;
    }
    .blog-layout {
        grid-template-columns: 1fr; padding: 7rem 1.5rem 4rem; gap: 2.5rem;
    }
    .sidebar { position: static; max-height: none; overflow-y: visible; }
    .sidebar, .right-rail { position: static; }
    .category-nav { flex-direction: row; flex-wrap: wrap; gap: 1.5rem 2rem; }
    .archive-nav { flex-direction: row; flex-wrap: wrap; gap: 1.5rem 2rem; }
    .post-card { grid-template-columns: 1fr; gap: 1rem; }
    .post-card .thumb { width: 100%; }
}
@media (max-width: 780px) {
    .nav { padding: 1.25rem 1.5rem; }
    .links {
        position: fixed; top: 66px; left: 0; right: 0;
        background: #fff; flex-direction: column; align-items: center;
        gap: 1.75rem; padding: 2rem 0; border-bottom: 1px solid #eee;
        transform: translateY(-8px); opacity: 0; pointer-events: none;
        transition: opacity 0.25s ease, transform 0.25s ease;
    }
    .links.open { opacity: 1; transform: translateY(0); pointer-events: auto; }
    .menu-toggle { display: flex; }
    .dropdown { display: flex; flex-direction: column; align-items: center; }
    .dropdown-menu {
        position: static; opacity: 1; visibility: visible; transform: none;
        box-shadow: none; padding: 0.5rem 0 0; min-width: 0; margin-top: 0.5rem;
    }
    .dropdown-group { align-items: center; text-align: center; }
    .dropdown-sub { align-items: center; border-left: none; padding-left: 0; }
}
@media (max-width: 600px) {
    body { padding-bottom: 46px; }
    footer { padding: 0.65rem 1.25rem; }
    footer .signature { font-size: 1rem; }
    footer .visits { display: none; }
    #word { font-size: 32px; letter-spacing: 8px; }
    #byline { font-size: 22px; }
}
@media (max-width: 560px) {
    .grid, .photo-grid { column-count: 1; }
    .services-grid { flex-direction: column; align-items: center; }
}

/* ===== 404 ===== */
.not-found { text-align: center; padding: 10rem 2rem; }
.not-found h1 { font-size: 2rem; font-weight: 700; }
.not-found a { color: #111; }

/* ===== LOGIN LINK ===== */
.login-link { opacity: 0.5 !important; }

/* Active category in gallery sidebar */
.category-nav a.active { color: #111; font-weight: 600; }
.category-nav li a.active { color: #111; }

/* ===== STICKY SOCIAL SIDEBAR ===== */
.social-sticky {
    position: fixed; right: 0; top: 50%; transform: translateY(-50%);
    z-index: 80; display: flex; flex-direction: column; gap: 0;
}
.social-sticky a {
    display: flex; align-items: center; justify-content: center;
    width: 40px; height: 40px;
    background: #fff; color: #111;
    border-left: 1px solid #eee; border-top: 1px solid #eee; border-bottom: 1px solid #eee;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    text-decoration: none;
}
.social-sticky a:first-child { border-radius: 8px 0 0 0; border-top: 1px solid #eee; }
.social-sticky a:last-child { border-radius: 0 0 0 8px; }
.social-sticky a:only-child { border-radius: 8px 0 0 8px; }
.social-sticky a:hover { transform: translateX(-3px); box-shadow: -2px 0 8px rgba(0,0,0,0.1); }

@media (max-width: 600px) {
    .social-sticky { display: none; }
}

/* ===== SCROLL TO TOP ===== */
.scroll-top {
    position: fixed; bottom: 70px; right: 20px; z-index: 85;
    width: 40px; height: 40px; border-radius: 50%;
    background: #111; color: #fff; border: none;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; opacity: 0.7;
    transition: opacity 0.2s ease, transform 0.2s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}
.scroll-top:hover { opacity: 1; transform: translateY(-2px); }
.scroll-top[hidden] { display: none; }

/* Right rail avatar image */
.right-rail .avatar-img {
    width: 56px; height: 56px; border-radius: 50%; object-fit: cover;
    display: block; margin-bottom: 1rem;
}
.right-rail .follow-links a {
    display: inline-flex; align-items: center; justify-content: center;
    width: 32px; height: 32px; border-radius: 50%; border: 1px solid #eee;
    transition: transform 0.2s ease;
    border-bottom: none !important;
}
.right-rail .follow-links a:hover { transform: translateY(-2px); }
