:root {
    --sidebar-width: 292px;
    --primary-gold: #D4AF37;
    --accent-copper: #B87333;
    --text-primary: #1a1a1a;
    --text-secondary: #666;
    --bg-light: #fafaf8;
    --bg-card: #ffffff;
    --border-color: rgba(0,0,0,0.08);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.04);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
}

[data-bs-theme="dark"] {
    --primary-gold: #E5C158;
    --accent-copper: #C89A5E;
    --text-primary: #f0f0f0;
    --text-secondary: #aaa;
    --bg-light: #0f0f0f;
    --bg-card: #1a1a1a;
    --border-color: rgba(255,255,255,0.1);
    --shadow-sm: 0 2px 8px rgba(0,0,0,0.3);
    --shadow-md: 0 8px 24px rgba(0,0,0,0.4);
    --shadow-lg: 0 16px 48px rgba(0,0,0,0.5);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Bricolage Grotesque', sans-serif;
    min-height: 100vh;
    overflow: hidden;
    background: var(--bg-light);
    color: var(--text-primary);
    transition: background 0.4s ease, color 0.4s ease;
}

/* Sidebar Styles */
.sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: var(--sidebar-width);
    background: var(--bg-card);
    border-right: 1px solid var(--border-color);
    z-index: 1000;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: var(--shadow-md);
    overflow-y: auto;
    /* 2. Hide scrollbar for Chrome, Safari, and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    /* 3. Hide scrollbar for Firefox */
    scrollbar-width: none;

    /* 4. Hide scrollbar for IE and legacy Edge */
    -ms-overflow-style: none;
}

.sidebar.hide {
    transform: translateX(-100%);
}

.logo-section {
    padding: 3rem 2rem 2rem;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.logo-box {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 2.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    color: var(--primary-gold);
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    text-decoration: none;
}

.logo-tagline {
    font-size: 0.75rem;
    letter-spacing: 0.15em;
    color: var(--text-secondary);
    text-transform: uppercase;
    font-weight: 400;
}

.menu-section {
    padding: 2rem 2rem;
}

.menu-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
    text-transform: uppercase;
}

.nav-link {
    font-family: 'Bricolage Grotesque', serif;
    color: var(--text-primary);
    padding: 0.55rem 0;
    font-size: 1.0rem;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
    padding-left: 1rem;
    display: block;
    text-decoration: none;
}

.nav-link:hover,
.nav-link.active {
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(212,175,55,0.05) 0%, transparent 100%);
}

.nav-link.active {
    font-weight: 500;
}

.sidebar-footer {
    padding: 2rem;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
}

.social-links {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1rem;
}

.social-link {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
    text-decoration: none;
}

.social-link:hover {
    color: var(--primary-gold);
    border-color: var(--primary-gold);
    transform: translateY(-2px);
}

.copyright {
    text-align: center;
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 0.05em;
}

/* Main Content Area */
.main-content {
    margin-left: var(--sidebar-width);
    padding: 0;
    height: 100vh;
    background: var(--bg-light);
    transition: margin-left 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.main-content.expanded {
    margin-left: 0;
}

/* Gallery Container - Recessed Wall Effect */
.gallery-container {
    border: 55px solid var(--bg-card);
    padding: 2.5rem;
    background: var(--bg-light);
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    border-radius: 0;
    box-shadow:
            inset 0 2px 8px rgba(0,0,0,0.1),
            0 8px 24px rgba(0,0,0,0.08);
    position: relative;
    /* 2. Hide scrollbar for Chrome, Safari, and Opera */
    &::-webkit-scrollbar {
        display: none;
    }
    /* 3. Hide scrollbar for Firefox */
    scrollbar-width: none;

    /* 4. Hide scrollbar for IE and legacy Edge */
    -ms-overflow-style: none;
}

[data-bs-theme="dark"] .gallery-container {
    background: #262626;
    box-shadow:
            inset 0 2px 12px rgba(0,0,0,0.4),
            0 8px 24px rgba(0,0,0,0.3);
}

.gallery-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary-gold), transparent);
    opacity: 0.3;
}

.gallery-container::after {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    right: -50px;
    bottom: -50px;
    border-radius: 0;
    box-shadow:
            0 4px 12px rgba(0,0,0,0.05),
            0 12px 32px rgba(0,0,0,0.08);
    pointer-events: none;
    z-index: -1;
}

[data-bs-theme="dark"] .gallery-container::after {
    box-shadow:
            0 4px 12px rgba(0,0,0,0.3),
            0 12px 32px rgba(0,0,0,0.4);
}

/* Custom Scrollbar */
.gallery-container::-webkit-scrollbar {
    width: 8px;
}

.gallery-container::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-container::-webkit-scrollbar-thumb {
    background: var(--primary-gold);
    border-radius: 4px;
    transition: background 0.3s ease;
}

.gallery-container::-webkit-scrollbar-thumb:hover {
    background: var(--accent-copper);
}

/* Gallery Header */
.gallery-header {
    margin-bottom: 3rem;
    text-align: center;
    animation: fadeInUp 0.8s ease;
}

.gallery-title {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 3rem;
    font-weight: 300;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    letter-spacing: 0.05em;
}

.gallery-subtitle {
    font-size: 0.9rem;
    color: var(--text-secondary);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.gallery-caption {
    color: rgb(4 4 4 / 0.68);
}

/* Masonry Grid Layout - Using Masonry.js */
.masonry-grid {
    margin: -0.7rem;
}

.masonry-grid::after {
    content: '';
    display: block;
    clear: both;
}

.grid-sizer,
.photo-card {
    width: calc(33.333% - 1.4rem);
    margin: 0.7rem;
}

@media (max-width: 1200px) {
    .grid-sizer,
    .photo-card {
        width: calc(33.333% - 1.4rem);
    }
}

@media (max-width: 768px) {
    .grid-sizer,
    .photo-card {
        width: calc(50% - 1.4rem);
    }
}

@media (max-width: 576px) {
    .grid-sizer,
    .photo-card {
        width: calc(100% - 1.4rem);
    }
}

/* Photo Cards - Framed Wall Effect */
.photo-card {
    border-radius: 3px;
    overflow: hidden;
    transition: all 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
    box-shadow:
            0 4px 12px rgba(0,0,0,0.1),
            0 8px 24px rgba(0,0,0,0.08),
            0 1px 3px rgba(0,0,0,0.05);
    animation: fadeInUp 0.6s ease backwards;
    border:1px solid #ffffff;
}

[data-bs-theme="dark"] .photo-card {
    box-shadow:
            0 4px 12px rgba(0,0,0,0.3),
            0 8px 24px rgba(0,0,0,0.25),
            0 1px 3px rgba(0,0,0,0.2);
    border:1px solid #262626;
}

.photo-card:nth-child(1) { animation-delay: 0.1s; }
.photo-card:nth-child(2) { animation-delay: 0.15s; }
.photo-card:nth-child(3) { animation-delay: 0.2s; }
.photo-card:nth-child(4) { animation-delay: 0.25s; }
.photo-card:nth-child(5) { animation-delay: 0.3s; }
.photo-card:nth-child(6) { animation-delay: 0.35s; }
.photo-card:nth-child(7) { animation-delay: 0.4s; }
.photo-card:nth-child(8) { animation-delay: 0.45s; }
.photo-card:nth-child(9) { animation-delay: 0.5s; }
.photo-card:nth-child(10) { animation-delay: 0.55s; }

.photo-card:hover {
    transform: translateY(-12px) scale(1.02) !important;
    box-shadow:
            0 12px 32px rgba(0,0,0,0.15),
            0 24px 64px rgba(0,0,0,0.12),
            0 2px 6px rgba(0,0,0,0.08);
    z-index: 10;
}

[data-bs-theme="dark"] .photo-card:hover {
    box-shadow:
            0 12px 32px rgba(0,0,0,0.4),
            0 24px 64px rgba(0,0,0,0.35),
            0 2px 6px rgba(0,0,0,0.3);
}

.photo-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
    display: block;
}

.photo-card:hover img {
   /* transform: scale(1.1);*/
}

.photo-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.4) 50%, transparent 100%);
    color: white;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

.photo-image-wrap {
    position: relative;
   /* overflow: hidden;*/
}

.photo-exif {
    padding: 0.6rem 1rem;
    background: var(--bg-card);
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.03em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-top: 1px solid var(--border-color);
}

.photo-title {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 1.3rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.photo-category {
    font-size: 0.75rem;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--primary-gold);
}

/* Aspect Ratio Variations */
.tall-card {
    aspect-ratio: 3/4;
}

.wide-card {
    aspect-ratio: 2/1;
}

.square-card {
    aspect-ratio: 1/1;
}

.portrait-card {
    aspect-ratio: 3/4;
}

/* Modal Styles */
.image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.92);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.3s ease, background 0.3s ease;
}

[data-bs-theme="light"] .image-modal {
    background: rgba(250, 250, 248, 0.98);
}

.image-modal.active {
    display: flex;
    opacity: 1;
}

.modal-content-wrapper {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: 1800px;
    margin: auto;
    padding: 2rem;
    gap: 2rem;
}

.modal-image-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--bg-card);
    border-radius: 4px;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
}

.modal-image-container img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: 4px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}

[data-bs-theme="dark"] .modal-image-container img {
    box-shadow: 0 8px 32px rgba(0,0,0,0.6);
}

.modal-sidebar {
    width: 380px;
    background: var(--bg-card);
    border-radius: 4px;
    padding: 2rem;
    overflow-y: auto;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    box-shadow: var(--shadow-lg);
}

.modal-sidebar::-webkit-scrollbar {
    display: none; /* Chrome, Edge, Safari */
}

.modal-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: var(--primary-gold);
    color: white;
    transform: rotate(90deg);
}

/* Modal Navigation Buttons */
.modal-nav-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10;
    opacity: 0.9;
}

.modal-nav-btn:hover {
    background: var(--primary-gold);
    color: white;
    transform: translateY(-50%) scale(1.1);
    opacity: 1;
}

.modal-nav-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
    pointer-events: none;
}

.modal-prev {
    left: 2rem;
}

.modal-next {
    right: 2rem;
}

/* Hide nav buttons on small screens to avoid overlap */
@media (max-width: 768px) {
    .modal-nav-btn {
        width: 48px;
        height: 48px;
    }

    .modal-prev {
        left: 1rem;
    }

    .modal-next {
        right: 1rem;
    }
}

@media (max-width: 576px) {
    .modal-nav-btn {
        width: 44px;
        height: 44px;
        font-size: 1.2rem;
    }

    .modal-prev {
        left: 0.5rem;
    }

    .modal-next {
        right: 0.5rem;
    }
}

.modal-title {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
}

.modal-category {
    font-size: 0.85rem;
    color: var(--primary-gold);
    text-transform: uppercase;
    letter-spacing: 0.15em;
    margin-bottom: 2rem;
    font-weight:bold;
}

.metadata-section {
    margin-bottom: 2rem;
}

.metadata-title {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.metadata-item {
    display: flex;
    justify-content: space-between;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border-color);
}

.metadata-item:last-child {
    border-bottom: none;
}

.metadata-label {
    font-size: 0.9rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.metadata-value {
    font-size: 0.9rem;
    color: var(--text-primary);
    font-weight: 500;
}

.metadata-icon {
    color: var(--primary-gold);
    font-size: 1rem;
}

/* Responsive Modal */
@media (max-width: 992px) {
    .modal-content-wrapper {
        flex-direction: column;
        padding: 1rem;
    }

    .modal-sidebar {
        width: 100%;
        max-height: 40vh;
    }

    .modal-image-container {
        max-height: 50vh;
    }

    .modal-close {
        top: 1rem;
        right: 1rem;
        width: 44px;
        height: 44px;
    }
}

@media (max-width: 576px) {
    .modal-title {
        font-size: 1.5rem;
    }

    .modal-sidebar {
        padding: 1.5rem;
    }
}

/* Theme Toggle */
.theme-toggle {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    z-index: 1050;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    color: var(--primary-gold);
}

.theme-toggle:hover {
    transform: scale(1.1) rotate(10deg);
    box-shadow: var(--shadow-lg);
}

.menu-toggle {
    position: fixed;
    top: 2rem;
    left: 2rem;
    z-index: 1051;
    display: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    color: var(--primary-gold);
    transition: all 0.3s ease;
}

.menu-toggle:hover {
    transform: scale(1.1);
    box-shadow: var(--shadow-lg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 992px) {
    :root {
        --sidebar-width: 260px;
    }

    .gallery-title {
        font-size: 2.5rem;
    }
}

@media (max-width: 768px) {
    .sidebar {
        transform: translateX(-100%);
    }

    .sidebar.show {
        transform: translateX(0);
    }

    .main-content {
        margin-left: 0;
        padding: 0;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .gallery-container {
        padding: 1.5rem;
        height: 100vh;
        border-width: 20px;
    }

    .gallery-title {
        font-size: 2rem;
    }

    .theme-toggle {
        bottom: 1.5rem;
        right: 1.5rem;
        width: 50px;
        height: 50px;
    }
}

@media (max-width: 576px) {
    .main-content {
        padding: 0;
    }

    .gallery-container {
        padding: 1rem;
        height: 100vh;
        border-width: 16px;
    }

    .gallery-header {
        margin-bottom: 2rem;
    }

    .gallery-title {
        font-size: 1.75rem;
    }

    .theme-toggle {
        bottom: 1rem;
        right: 1rem;
        width: 48px;
        height: 48px;
    }

    .menu-toggle {
        top: 1rem;
        left: 1rem;
    }
}

/* Gears accordion — brand groups with collapsible model lists */
.brand-group {
    margin-bottom: 0.15rem;
}

.brand-toggle {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: none;
    border: none;
    border-left: 2px solid transparent;
    font-size: 1.1rem;
    color: var(--text-primary);
    padding: 0.75rem 1rem 0.75rem 1rem;
    cursor: pointer;
    text-align: left;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.brand-toggle:hover {
    color: var(--primary-gold);
    border-left-color: var(--primary-gold);
    padding-left: 1.5rem;
    background: linear-gradient(90deg, rgba(212,175,55,0.05) 0%, transparent 100%);
}

.brand-toggle[aria-expanded="true"] {
    color: var(--primary-gold);
}

.brand-caret {
    font-size: 0.75rem;
    margin-right: -1rem;
    transition: transform 0.3s ease;
}

.brand-toggle[aria-expanded="true"] .brand-caret {
    transform: rotate(180deg);
}

.brand-models {
    display: flex;
    flex-direction: column;
    padding-top: 0.25rem;
    padding-bottom: 0.25rem;
}

.brand-models .model-link {
    font-size: 1rem;
    padding-left: 1.75rem;
}

.brand-models .model-link:hover,
.brand-models .model-link.active {
    padding-left: 2.25rem;
}

.gallery-subtitle.breadcrumb {
    display: block;
    text-align: left;
    padding-left: 0;
    color: var(--primary-gold);
    font-weight: bold;
}

@media (max-width: 768px) {
    .gallery-subtitle.breadcrumb {
        display: flex;
        justify-content: center;
        text-align: center;
        padding-left: 0;
        padding-top: 0.5rem;
        color: var(--primary-gold);
        font-weight: bold;
    }
}

.about-me-grid {
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    margin-top: 1rem;
}

.about-text {
    flex: 2;
    border-radius: 4px;
    padding: 1.0rem 0;
}

[data-bs-theme="dark"] .about-text {

}

.about-heading {
    font-family: 'Cormorant Garamond', serif;
    font-size: 2rem;
    font-weight: 500;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.about-text p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.about-text p:last-child {
    margin-bottom: 0;
}

.about-photo {
    flex: 1;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
            0 4px 12px rgba(0,0,0,0.1),
            0 8px 24px rgba(0,0,0,0.08),
            0 1px 3px rgba(0,0,0,0.05);
}

.about-photo {
   /* filter: grayscale(1);*/
    position: relative;
    border-radius: 4px;
    overflow: hidden;
    box-shadow:
            0 4px 12px rgba(0,0,0,0.1),
            0 8px 24px rgba(0,0,0,0.08),
            0 1px 3px rgba(0,0,0,0.05);
}

[data-bs-theme="dark"] .about-photo {
    box-shadow:
            0 4px 12px rgba(0,0,0,0.3),
            0 8px 24px rgba(0,0,0,0.25),
            0 1px 3px rgba(0,0,0,0.2);
}

.about-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Stack vertically on smaller screens */
@media (max-width: 768px) {
    .about-me-grid {
        flex-direction: column;
    }

    .about-text,
    .about-photo {
        flex: 1 1 auto;
        width: 100%;
    }

    .about-photo {
        max-height: 400px;
    }
}

@font-face {
    font-family: 'signature';
    src: url('/fonts/brigther-moment.regular.ttf') format('opentype');
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* Keeps text visible while loading */
}

.about-signature {
    font-family: signature;
    float: right;
   /* padding: 2.5rem;*/
    height: 8rem;
    width: 24rem;
    font-size: 5rem;
}

@media (max-width: 768px) {
    .about-signature {
        float: right;
       /* padding: 2.5rem;*/
        height: 8rem;
        width: 18rem;
        font-size: 4rem;
    }
}

.about-link {
    color: var(--primary-gold);
    text-decoration: none;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.about-link:hover {
    color: var(--accent-copper);
    border-bottom-color: var(--accent-copper);
}

.online-profiles {
    margin-top: 3rem;
}

.profiles-title {
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 1.25rem;
}

.profiles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 1rem 1.25rem;
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 0.85rem;
    padding: 1rem 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-bottom: 2px solid transparent;
    border-radius: 6px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

[data-bs-theme="dark"] .profile-card {
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.profile-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0,0,0,0.08);
    color: var(--text-primary);
}

.profile-icon {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
}

.profile-linkedin  .profile-icon-badge { background: #0A66C2; }

.profile-github    .profile-icon-badge { background: #181717; }

.profile-facebook  .profile-icon-badge { background: #1877F2; }

.profile-instagram .profile-icon-badge {
    background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
}

.profile-twitter   .profile-icon-badge { background: #000; }

.modal-image-container {
    position: relative;
}

.modal-image-container.loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    margin: -22px 0 0 -22px;
    border: 3px solid var(--border-color);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    z-index: 5;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.modal-image-container img {
    transition: opacity 0.2s ease;
}


.word-definition {
  /*  margin-top: 2rem;*/
    padding-top: 2rem;
}

.word-heading {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.35rem;
}

.word-term {
    font-family: 'Bricolage Grotesque', sans-serif;
    font-size: 1.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.word-phonetic {
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.word-pos {
    font-size: 0.85rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: 1rem;
}

.word-origin {
    font-style: normal;
}

.word-meaning {
    font-size: 1rem;
    line-height: 1.6;
    color: var(--text-primary);
    margin-bottom: 1.25rem;
}

.word-example {
    margin: 0;
    padding-left: 1rem;
    border-left: 3px solid var(--primary-gold);
    font-size: 0.95rem;
    font-style: italic;
    color: var(--text-secondary);
}

.empty-state {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--text-muted);
}

.download-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.75rem 1rem;
    background: var(--primary-gold);
    color: #1a1a1a;
    border: none;
    border-radius: 4px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
}

.download-btn:hover {
    background: var(--accent-copper);
    color: white;
    transform: translateY(-1px);
}

.download-btn:disabled {
    opacity: 0.6;
    cursor: wait;
    transform: none;
}

.share-icons {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.share-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: all 0.2s ease;
    cursor: pointer;
    background: none;
}

.share-icon:hover {
    color: white;
    transform: translateY(-2px);
}

.share-facebook:hover  { background: #1877F2; border-color: #1877F2; }
.share-twitter:hover   { background: #000;    border-color: #000; }
.share-whatsapp:hover  { background: #25D366; border-color: #25D366; }
.share-pinterest:hover { background: #E60023; border-color: #E60023; }

.modal-nav-btn.loading {
    cursor: wait;
}

.modal-nav-btn.loading i {
    visibility: hidden;
}

.modal-nav-btn.loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-top-color: var(--primary-gold);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.category-cloud {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.1rem;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    text-decoration: none;
    color: var(--text-primary);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.category-pill:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-gold);
    color: var(--primary-gold);
}

.category-pill .count {
    font-size: 0.75rem;
    color: var(--text-secondary);
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 0.1rem 0.5rem;
}

.category-pill:hover .count {
    color: var(--accent-copper);
    border-color: var(--accent-copper);
}

.photo-page-layout {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
}

@media (max-width: 992px) {
    .photo-page-layout {
        flex-direction: column;
    }
}

.meraki-signature {
    font-family: 'Bricolage Grotesque', serif;
    font-size: 1.3rem;
    font-weight: 500;
    color: var(--primary-gold);
    text-align: left;
    letter-spacing: 0.08em;
    margin-top: 1rem;
}