/* =========================================================
   RESET
========================================================= */

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Playfair Display", serif;
    background: #FDECEF;
    color: #5B4B4B;

    transition:
        background .4s ease,
        color .4s ease;
}


/* =========================================================
   LAYOUT
========================================================= */

.container {
    display: flex;
    min-height: 100vh;
}

main {
    margin-left: 330px;
    width: calc(100% - 330px);
    padding: 60px;
}

section {
    margin-bottom: 90px;
}

h1,
h2,
h3 {
    font-family: "Playfair Display", serif;
}


/* =========================================================
   SIDEBAR
========================================================= */

.sidebar {
    position: fixed;

    left: 25px;
    top: 25px;

    width: 260px;
    height: calc(100vh - 50px);

    background: #FFF9FA;

    border-radius: 25px;

    padding: 35px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);

    display: flex;
    flex-direction: column;

    justify-content: space-between;

    transition: .4s;
}

.logo {
    color: #C96E96;

    text-align: center;

    line-height: 1.3;

    margin-bottom: 40px;
}


/* =========================================================
   NAVIGATION
========================================================= */

nav {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

nav a {
    text-decoration: none;

    color: #6D5555;

    padding: 14px 18px;

    border-radius: 15px;

    font-weight: 500;

    transition: .3s;
}

nav a:hover,
nav a.active {
    background: #F7D6E2;

    color: #B74C79;

    transform: translateX(5px);
}


/* =========================================================
   DROPDOWNS
========================================================= */

.dropdown {
    display: flex;
    flex-direction: column;
}

.dropdown-content {
    display: flex;
    flex-direction: column;

    gap: 8px;

    margin-left: 20px;
    margin-top: 5px;

    padding: 10px;

    border-radius: 15px;

    background: #FFF4F7;
}

.dropdown-content a {
    padding: 8px 12px;

    border-radius: 10px;

    font-size: .9rem;
}

.dropdown-content a:hover {
    background: #F7D6E2;

    color: #B74C79;
}


/* =========================================================
   SOCIAL
========================================================= */

.social a {
    display: flex;
    align-items: center;

    gap: 10px;

    text-decoration: none;

    color: #7A6565;

    margin-bottom: 12px;
}

.social i {
    width: 20px;

    text-align: center;

    font-size: 1.2rem;

    color: #C96E96;
}

.social a:hover {
    color: #C96E96;
}


/* =========================================================
   HEADINGS
========================================================= */

section h2 {
    font-size: 2.2rem;

    margin-bottom: 35px;

    color: #684A4A;
}


/* =========================================================
   WELCOME
========================================================= */

.Welcome {
    display: flex;
    align-items: center;

    justify-content: space-between;

    gap: 60px;
}

.Welcome-text {
    flex: 1;
}

.Welcome h1 {
    font-size: 3.5rem;

    color: #684A4A;
}

.Welcome h2 {
    color: #C96E96;
}

/* =========================================================
   FEATURED CREATIONS
========================================================= */

.featured-creations {
    display: grid;

    grid-template-columns: repeat(4, 1fr);

    gap: 30px;

    width: 100%;

    margin: 60px 0 80px;
}

.featured-creations .creation-card {
    background: white;

    border-radius: 25px;

    padding: 30px;

    text-align: center;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);

    transition: .3s;
}

.featured-creations .creation-card:hover {
    transform: translateY(-8px);
}

.creation-card h3 {
    color: #C96E96;

    margin-bottom: 20px;
}

.creation-card img {
    width: 100%;

    height: 350px;

    object-fit: contain;

    border-radius: 20px;

    margin-bottom: 15px;
}

.creation-card h4 {
    color: #684A4A;
}


/* =========================================================
   GENERAL CARDS
========================================================= */

.cards {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.card {
    background: white;

    border-radius: 25px;

    padding: 25px;

    text-align: center;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);

    transition: .3s;
}

.card:hover {
    transform: translateY(-8px);
}

.card h3 {
    color: #C96E96;
}

.card a {
    color: #C96E96;

    text-decoration: none;
}


/* =========================================================
   GENERAL BUTTONS
========================================================= */

.button,
.project-link {
    display: inline-block;

    background: #D98CAD;

    color: white !important;

    padding: 15px 35px;

    border-radius: 30px;

    text-decoration: none;

    transition: .3s ease;
}

.button:hover,
.project-link:hover {
    background: #C96E96;

    transform: translateY(-3px);
}


/* =========================================================
   FORMS
========================================================= */

input,
textarea {
    font-family: "Playfair Display", serif;

    padding: 15px;

    border-radius: 15px;

    border: 2px solid #F5D5DF;

    background: white;
}


/* =========================================================
   ABOUT
========================================================= */

.about {
    display: flex;

    align-items: center;

    gap: 60px;
}

.about-image img {
    width: 300px;

    border-radius: 25px;
}


/* =========================================================
   CRAFT CARDS
========================================================= */

.craft-scroll {
    display: flex;

    flex-direction: column;

    gap: 30px;
}

.craft-card {
    background: white;

    border-radius: 25px;

    padding: 25px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);
}

.craft-card h3 {
    color: #C96E96;
}

.craft-card img {
    width: 250px;

    max-width: 100%;

    border-radius: 20px;
}


/* =========================================================
   MINI PROJECTS
========================================================= */

.mini-project {
    background: #FFF4F7;

    border-radius: 15px;

    padding: 15px;

    margin-bottom: 15px;
}

.mini-project h4 {
    color: #684A4A;
}


/* =========================================================
   PATTERN CARDS
========================================================= */

.pattern-card,
.patterns .card {
    text-align: center;
}

.pattern-card img,
.patterns .card img {
    display: block;

    width: 280px;
    height: 280px;

    max-width: 100%;

    margin: 20px auto;

    object-fit: contain;

    border-radius: 20px;
}


/* =========================================================
   GALLERY
========================================================= */

.gallery-grid {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 30px;
}

.gallery-item {
    position: relative;

    background: white;

    border-radius: 25px;

    overflow: hidden;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);
}

.gallery-link {
    display: block;

    text-decoration: none;

    color: inherit;
}

.gallery-item img {
    width: 100%;

    display: block;

    border-radius: 25px;
}


/* =========================================================
   GALLERY OVERLAY
========================================================= */

.gallery-overlay {
    position: absolute;

    bottom: 0;
    left: 0;

    width: 100%;

    padding: 25px;

    background: rgba(0, 0, 0, .65);

    color: white;

    opacity: 0;

    transform: translateY(100%);

    transition: .3s ease;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.touch-device .gallery-overlay {
    opacity: 1;
    transform: translateY(0);
}

.gallery-overlay h3 {
    color: white;

    margin-bottom: 10px;
}

.gallery-overlay p {
    color: white;

    margin: 0;
}


/* =========================================================
   COMMENTS
========================================================= */

.comments {
    width: 100%;

    margin: 60px 0;
}

.comment-container {
    width: 100%;

    background: #FFF9FA;

    border: 2px solid #F5D5DF;

    border-radius: 25px;

    padding: 25px;
}

.comment-name-row input,
.comment-message-row textarea {
    width: 100%;

    background: transparent;

    border: none;

    outline: none;
}

.comment-divider {
    height: 1px;

    background: #F5D5DF;
}

#post-comment {
    margin-top: 15px;

    padding: 12px 30px;

    background: #E6A8C5;

    color: white;

    border: none;

    border-radius: 25px;

    font-family: "Playfair Display", serif;

    cursor: pointer;
}

#post-comment:hover {
    background: #C96E96;
}

/* =========================================================
   PROJECT PAGES
========================================================= */

.project-hero,
.project-welcome {
    background: #FFF9FA;

    border-radius: 30px;

    padding: 45px;

    margin-bottom: 40px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);
}

.project-hero h1,
.project-welcome h1 {
    color: #684A4A;

    font-size: 3.5rem;
}

.project-section {
    background: white;

    border-radius: 25px;

    padding: 35px;

    margin-bottom: 35px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);
}

.project-section h2 {
    color: #C96E96;
}


/* =========================================================
   PROJECT INFO
========================================================= */

.project-info {
    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 25px;

    margin: 30px 0 50px;
}

.project-info-box {
    background: #FFF9FA;

    border-radius: 25px;

    padding: 25px;

    text-align: center;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);

    transition: .3s;
}

.project-info-box:hover {
    transform: translateY(-8px);
}

.project-info-box h3 {
    color: #C96E96;
}

.project-info-box p {
    color: #5B4B4B;
}


/* =========================================================
   PROJECT IMAGES
========================================================= */

.project-image {
    display: block;

    width: 100%;

    max-width: 700px;

    max-height: 600px;

    height: auto;

    object-fit: contain;

    margin: 30px auto;

    border-radius: 20px;
}

.project-gallery {
    display: grid;

    grid-template-columns: repeat(2, 1fr);

    gap: 25px;
}

.project-gallery img {
    width: 100%;

    height: 350px;

    object-fit: contain;

    border-radius: 20px;
}
/* =========================================================
   IMAGE LIGHTBOX
========================================================= */

.image-lightbox {
    position: fixed;
    inset: 0;

    display: none;

    align-items: center;
    justify-content: center;

    z-index: 9999;

    background: rgba(0, 0, 0, 0.85);

    padding: 30px;
}

.image-lightbox.open {
    display: flex;
}

.lightbox-image {
    max-width: 90vw;
    max-height: 90vh;

    object-fit: contain;

    border-radius: 10px;

    box-shadow:
        0 10px 30px rgba(0, 0, 0, 0.4);
}


/* Close button */

.lightbox-close {
    position: absolute;

    top: 20px;
    right: 25px;

    font-size: 2.5rem;

    border: none;
    background: none;

    color: white;

    cursor: pointer;

    line-height: 1;
}


/* Previous / next */

.lightbox-prev,
.lightbox-next {
    position: absolute;

    top: 50%;

    transform: translateY(-50%);

    border: none;
    background: none;

    color: white;

    font-size: 4rem;

    cursor: pointer;

    padding: 10px 20px;
}

.lightbox-prev {
    left: 10px;
}

.lightbox-next {
    right: 10px;
}


/* Prevent page scrolling while open */

body.lightbox-open {
    overflow: hidden;
}

/* =========================================================
   RELATED PROJECTS
========================================================= */

.related-projects {
    display: grid;

    grid-template-columns: repeat(2, 2fr);

    gap: 25px;
}

.related-card {
    display: flex;

    align-items: center;

    gap: 20px;

    background: #FFF4F7;

    padding: 20px;

    border-radius: 25px;

    text-decoration: none;

    color: #5B4B4B;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .08);

    transition: .3s;
}

.related-card:hover {
    transform: translateY(-6px);
}

.related-card img {
    width: 120px;

    height: 120px;

    object-fit: contain;

    border-radius: 20px;
}

.related-card h3 {
    color: #C96E96;
}

.related-card p {
    line-height: 1.5;
}


/* =========================================================
   PATTERN FILTERS
========================================================= */

.pattern-filters {
    display: flex;

    flex-wrap: wrap;

    gap: 15px;

    margin-bottom: 40px;
}

.pattern-filters button {
    font-family: "Playfair Display", serif;

    background: #D98CAD;

    color: white;

    border: none;

    padding: 12px 25px;

    border-radius: 30px;

    cursor: pointer;

    font-size: 1rem;

    transition: .3s;
}

.pattern-filters button:hover {
    background: #C96E96;

    transform: translateY(-3px);
}

.pattern-filters button.active {
    background: #684A4A;

    color: white;
}


/* =========================================================
   DARK MODE
========================================================= */

html.dark-mode body {
    background: #2B1719;

    color: #F8E6E3;
}

html.dark-mode body main {
    color: #F8E6E3;
}

html.dark-mode body .sidebar {
    background: #3A2023;
}

html.dark-mode body nav a {
    color: #FFD0E0;
}

html.dark-mode body nav a:hover,
html.dark-mode body nav a.active {
    background: #6B3038;

    color: white;
}

html.dark-mode body .dropdown-content {
    background: #442629;
}

html.dark-mode body .dropdown-content a {
    color: #FFD0E0;
}

html.dark-mode body .dropdown-content a:hover {
    background: #6B3038;
}

html.dark-mode body .card,
html.dark-mode body .creation-card,
html.dark-mode body .craft-card,
html.dark-mode body .project-section,
html.dark-mode body .project-welcome,
html.dark-mode body .project-hero,
html.dark-mode body .gallery-item,
html.dark-mode body .comment-container {
    background: #442629;

    color: #F8E6E3;
}

html.dark-mode body .project-info-box {
    background: #442629;
}

html.dark-mode body .project-info-box p {
    color: #F8E6E3;
}

html.dark-mode body h1,
html.dark-mode body h2,
html.dark-mode body h3,
html.dark-mode body h4 {
    color: #FFD0D0;
}

html.dark-mode body a {
    color: #FFD6E7;
}

html.dark-mode body a:hover {
    color: white;
}

html.dark-mode body input,
html.dark-mode body textarea {
    background: #3A2023;

    color: #F8E6E3;

    border-color: #7A3D45;
}

html.dark-mode body .related-card {
    background: #5A3035;

    color: #F8E6E3;
}

html.dark-mode .gallery-item {
    background: #442629;
}

html.dark-mode body #comments-list .comment {
    background: #5A3035;
}

html.dark-mode body .comment-text {
    color: #F8E6E3;
}


/* Pattern filters in dark mode */

html.dark-mode body .pattern-filters button {
    background: #A34F5B;

    color: white;
}

html.dark-mode body .pattern-filters button:hover {
    background: #C96E7A;
}

html.dark-mode body .pattern-filters button.active {
    background: #F2A6A6;

    color: #2B1719;
}


/* =========================================================
   SITE SEARCH
========================================================= */

.site-search {
    display: flex;

    gap: 15px;

    width: 100%;

    margin-bottom: 40px;
}

#site-search-input {
    flex: 1;

    padding: 15px 20px;

    border: 2px solid #F5D5DF;

    border-radius: 30px;

    font-family: "Playfair Display", serif;

    font-size: 1rem;

    background: white;

    color: #5B4B4B;

    outline: none;
}

#site-search-input:focus {
    border-color: #D98CAD;
}

#site-search-button {
    border: none;

    background: #C96E7A;

    color: white;

    padding: 12px 25px;

    border-radius: 30px;

    font-family: "Playfair Display", serif;

    font-size: 1rem;

    cursor: pointer;

    transition: .3s;
}

#site-search-button:hover {
    background: #B85C68;

    transform: translateY(-2px);
}


/* =========================================================
   SEARCH RESULTS
========================================================= */

#search-results {
    display: flex;

    flex-direction: column;

    gap: 20px;
}

.search-result {
    background: #FFF4F7;

    border-radius: 20px;

    padding: 25px;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, .06);
}

.search-result h3 {
    margin-bottom: 10px;
}

.search-result h3 a {
    color: #C96E96;

    text-decoration: none;
}

.search-result h3 a:hover {
    color: #B74C79;
}

.search-result p {
    line-height: 1.6;
}

.search-result mark {
    background: #F7D6E2;

    color: #684A4A;

    border-radius: 4px;

    padding: 2px 4px;
}

.search-no-results {
    background: #FFF4F7;

    border-radius: 20px;

    padding: 25px;
}

.search-highlight {
    animation: searchHighlight 2.5s ease;
}

@keyframes searchHighlight {

    0% {
        box-shadow: 0 0 0 5px #C96E96;
    }

    100% {
        box-shadow: 0 0 0 0 transparent;
    }

}
/* =========================================================
   SEARCH HIGHLIGHT
========================================================= */

.search-highlight {
    outline: 3px solid currentColor;
    outline-offset: 8px;
    border-radius: 10px;
    transition: outline 0.3s ease;
}
/* =========================================================
   SEARCH — DARK MODE
========================================================= */

html.dark-mode #site-search-input {
    background: #3A2023;

    color: #F8E6E3;

    border-color: #7A3D45;
}

html.dark-mode .search-result,
html.dark-mode .search-no-results {
    background: #5A3035;

    color: #F8E6E3;
}

html.dark-mode .search-result h3 a {
    color: #F2A6A6;
}

html.dark-mode .search-result mark {
    background: #7A3D45;

    color: #FFD0D0;
}


/* =========================================================
   SIDEBAR SEARCH
========================================================= */

.sidebar-search {
    display: flex;

    flex-direction: column;

    gap: 10px;

    width: 100%;

    margin: 10px 0 25px;
}

.sidebar-search input {
    display: block;

    width: 100%;

    height: 42px;

    padding: 10px 14px;

    border: 2px solid #F5D5DF;

    border-radius: 20px;

    background: white;

    color: #5B4B4B;

    font-family: "Playfair Display", serif;

    font-size: .9rem;

    outline: none;
}

.sidebar-search input:focus {
    border-color: #C96E7A;
}

.sidebar-search input::placeholder {
    color: #9A7777;

    opacity: 1;
}

.sidebar-search button {
    display: block;

    width: 100%;

    height: 40px;

    padding: 9px 15px;

    border: none;

    border-radius: 20px;

    background: #C96E7A;

    color: white;

    font-family: "Playfair Display", serif;

    font-size: .9rem;

    cursor: pointer;

    transition: .3s;
}

.sidebar-search button:hover {
    background: #B85C68;

    transform: translateY(-2px);
}


/* =========================================================
   SIDEBAR SEARCH — DARK MODE
========================================================= */

html.dark-mode .sidebar-search input {
    background: #3A2023;

    color: #F8E6E3;

    border-color: #7A3D45;
}

html.dark-mode .sidebar-search input::placeholder {
    color: #DDBFC4;
}

html.dark-mode .sidebar-search button {
    background: #A34F5B;

    color: #F8E6E3;
}

html.dark-mode .sidebar-search button:hover {
    background: #C96E7A;
}


/* =========================================================
   THEME BUTTON
========================================================= */

/*
   DAY MODE
   🌙 Night Mode
   MUST match Search button
*/

#theme-toggle {
    display: block;

    width: 100%;

    height: 40px;

    box-sizing: border-box;

    padding: 9px 15px;

    margin: 10px 0 0;

    border: none;

    border-radius: 20px;

    background: #C96E7A !important;

    color: white !important;

    font-family: "Playfair Display", serif;

    font-size: .9rem;

    cursor: pointer;

    transition:
        background .3s ease,
        transform .3s ease;
}

#theme-toggle:hover {
    background: #B85C68 !important;

    transform: translateY(-2px);
}


/*
   NIGHT MODE
   ☀️ Day Mode
*/

html.dark-mode #theme-toggle {
    background: #A34F5B !important;

    color: #F8E6E3 !important;
}

html.dark-mode #theme-toggle:hover {
    background: #C96E7A !important;

    transform: translateY(-2px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    .container {
        display: flex;
        flex-direction: column;
    }

    /* MOBILE MENU BUTTON */

   #mobile-menu-button {
    display: none;

    width: calc(100% - 30px);
    margin: 15px;

    padding: 14px 20px;

    border: none;
    border-radius: 20px;

    background: #C96E96;
    color: white;

    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: bold;

    box-shadow:
        0 8px 20px rgba(0, 0, 0, .08);

    cursor: url("Images/Clickable Cursor.png") 0 0, pointer !important;

    transition:
        background .3s ease,
        transform .3s ease;
}

#mobile-menu-button:hover {
    background: #B74C79;

    transform: translateY(-2px);
}
html.dark-mode #mobile-menu-button {
    background: #A34F5B;
    color: #F8E6E3;
}

html.dark-mode #mobile-menu-button:hover {
    background: #C96E7A;
}
    /* SIDEBAR */

    .sidebar {
        position: relative !important;

        left: auto !important;
        top: auto !important;

        width: calc(100% - 30px) !important;
        height: auto !important;

        margin: 0 15px !important;
        padding: 25px !important;

        overflow-y: visible !important;

        display: none;
    }


    /* OPEN SIDEBAR */

    .sidebar.mobile-sidebar-open {
        display: block;
    }


    /* MAIN CONTENT */

    main {
        margin-left: 0 !important;

        width: 100% !important;

        padding: 30px 20px !important;
    }


    /* STACK EVERYTHING */

    .featured-creations,
    .cards,
    .project-gallery,
    .related-projects,
    .gallery-grid,
    .project-info {
        grid-template-columns: 1fr !important;
    }


    /* WELCOME */

    .Welcome {
        flex-direction: column;
        gap: 30px;
    }

    .Welcome h1 {
        font-size: 2.5rem;
    }


    /* ABOUT */

    .about {
        flex-direction: column;
        gap: 30px;
    }

    .about-image img {
        width: 100%;
        max-width: 300px;
    }


    /* PROJECT HEADINGS */

    .project-hero h1,
    .project-welcome h1 {
        font-size: 2.5rem;
    }


    /* PROJECT BOXES */

    .project-hero,
    .project-welcome,
    .project-section {
        padding: 25px;
    }


    /* SEARCH */

    .site-search {
        flex-direction: column;
    }
}
/* =========================================================
   FINAL BUTTON COLORS

   DAY MODE
========================================================= */

/* Theme / Night Mode button */

#theme-toggle {
    background: #C96E96 !important;
    color: white !important;
}

#theme-toggle:hover {
    background: #B74C79 !important;
}


/* Sidebar Search button */

.sidebar-search button {
    background: #C96E96 !important;
    color: white !important;
}

.sidebar-search button:hover {
    background: #B74C79 !important;
}


/* =========================================================
   NIGHT MODE
========================================================= */

/* Theme / Day Mode button */

html.dark-mode #theme-toggle {
    background: #A34F5B !important;
    color: #F8E6E3 !important;
}

html.dark-mode #theme-toggle:hover {
    background: #C96E7A !important;
}


/* Sidebar Search button */

html.dark-mode .sidebar-search button {
    background: #A34F5B !important;
    color: #F8E6E3 !important;
}

html.dark-mode .sidebar-search button:hover {
    background: #C96E7A !important;
}

/* =========================================================
   FINAL SIDEBAR FIX
   Keep sidebar identical on every page
========================================================= */

.sidebar {
    position: fixed !important;

    left: 25px !important;
    top: 25px !important;

    width: 260px !important;
    height: calc(100vh - 50px) !important;

    padding: 35px !important;

    background: #FFF9FA !important;

    border-radius: 25px !important;

    box-shadow:
        0 10px 25px rgba(0, 0, 0, 0.08) !important;

    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;

    overflow-y: auto;
}


/* Sidebar content */

.sidebar-content {
    width: 100%;
}


/* Logo */

.sidebar .logo {
    width: 100%;
    text-align: center;
    color: #C96E96;
}


/* Theme button */

.sidebar #theme-toggle {
    display: block !important;

    width: 100% !important;
    height: 40px !important;

    box-sizing: border-box !important;

    margin: 10px 0 0 !important;

    padding: 9px 15px !important;

    border: none !important;
    border-radius: 20px !important;
}


/* Sidebar search */

.sidebar .sidebar-search {
    display: flex !important;

    flex-direction: column !important;

    width: 100% !important;

    gap: 10px !important;

    margin: 10px 0 25px !important;
}


/* Search input */

.sidebar .sidebar-search input {
    display: block !important;

    width: 100% !important;
    height: 42px !important;

    box-sizing: border-box !important;
}


/* Search button */

.sidebar .sidebar-search button {
    display: block !important;

    width: 100% !important;
    height: 40px !important;

    box-sizing: border-box !important;
}


/* Navigation */

.sidebar nav {
    width: 100%;
}


/* Social section */

.sidebar .social {
    width: 100%;
}


/* =========================================================
   SIDEBAR — NIGHT MODE
========================================================= */

html.dark-mode .sidebar {
    background: #3A2023 !important;
}


/* =========================================================
   LOGO — NIGHT MODE
========================================================= */

html.dark-mode .logo {
    color: #D8A0A8;
}


/* =========================================================
   CUSTOM CURSOR
========================================================= */

html,
body {
    cursor: url("Images/cursor.png"), auto;
}

/* Clickable cursor */
button,
a {
    cursor: url("Images/Clickable Cursor.png") 0 0, pointer !important;
}

/* Text fields */
input,
textarea,
select {
    cursor: url("Images/cursor.png"), text;
}

/* =========================================================
   MOBILE RESPONSIVE — FINAL
========================================================= */

@media (max-width: 700px) {

    /* PAGE */
    html,
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        display: flex;
        flex-direction: column;
        width: 100%;
    }


    /* =====================================================
       SIDEBAR
    ===================================================== */

    .sidebar {
        position: relative !important;

        left: auto !important;
        top: auto !important;

        width: calc(100% - 30px) !important;
        height: auto !important;

        margin: 15px !important;
        padding: 25px !important;

        overflow: visible !important;

        border-radius: 25px;
    }


    /* =====================================================
       MAIN
    ===================================================== */

    main {
        margin-left: 0 !important;

        width: 100% !important;

        padding: 30px 20px !important;
    }


    /* =====================================================
       HEADINGS
    ===================================================== */

    .Welcome h1 {
        font-size: 2.5rem;
    }

    .project-hero h1,
    .project-welcome h1 {
        font-size: 2.5rem;
    }

    section h2 {
        font-size: 1.8rem;
    }


    /* =====================================================
       WELCOME
    ===================================================== */

    .Welcome {
        flex-direction: column;
        align-items: stretch;

        gap: 30px;
    }


    /* =====================================================
       ABOUT
    ===================================================== */

    .about {
        flex-direction: column;

        gap: 30px;
    }

    .about-image {
        width: 100%;
        text-align: center;
    }

    .about-image img {
        width: 100%;
        max-width: 300px;
    }


    /* =====================================================
       GRIDS → ONE COLUMN
    ===================================================== */

    .featured-creations,
    .cards,
    .gallery-grid,
    .project-gallery,
    .related-projects,
    .project-info {
        grid-template-columns: 1fr !important;
    }


    /* =====================================================
       FEATURED CREATIONS
    ===================================================== */

    .creation-card img {
        height: auto;
        max-height: 350px;
    }


    /* =====================================================
       PROJECTS
    ===================================================== */

    .project-hero,
    .project-welcome,
    .project-section {
        padding: 25px;
    }

    .project-gallery img {
        height: auto;
        max-height: 350px;
    }


    /* =====================================================
       RELATED PROJECTS
    ===================================================== */

    .related-card {
        flex-direction: column;

        text-align: center;
    }

    .related-card img {
        width: 150px;
        height: 150px;
    }


    /* =====================================================
       SEARCH
    ===================================================== */

    .site-search {
        flex-direction: column;
    }

    #site-search-button {
        width: 100%;
    }


    /* =====================================================
       PATTERN FILTERS
    ===================================================== */

    .pattern-filters {
        justify-content: center;
    }

 .pattern-filters button {
    width: 100%;
    flex: 0 0 100%;
}


    /* =====================================================
       GALLERY
    ===================================================== */

    /*
       No hover   */

    .gallery-overlay {
        opacity: 1;
        transform: translateY(0);
    }


    /* =====================================================
       BUTTONS
    ===================================================== */

    button,
    .button,
    .project-link,
    nav a {
        min-height: 44px;
    }


    /* =====================================================
       TEXT / IMAGES
    ===================================================== */

    img {
        max-width: 100%;
        height: auto;
    }

    p {
        line-height: 1.6;
    }
}
    /* =====================================================
       Download
    ===================================================== */

.download-pattern {
    display: inline-block;
    margin-top: 15px;
    padding: 12px 20px;
    border: 2px solid #684a4a;
    border-radius: 10px;
    text-decoration: none;
    font-weight: bold;
    color: #5b4b4b;
    background: transparent;
    transition: transform 0.2s ease;
    cursor: pointer;
}

.download-pattern:hover {
    transform: translateY(-2px);
}

/* Night mode */
.dark-mode .download-pattern {
    border-color: #ffd0d0;
    color: #f8e6e3;
}

/* =========================================================
   BACK TO TOP BUTTON
========================================================= */

#back-to-top {
    position: fixed;

    right: 25px;
    bottom: 25px;

    width: 55px;
    height: 55px;

    padding: 0;

    border: none;
    border-radius: 50%;

    background: transparent;

    cursor: url("Images/Clickable Cursor.png") 0 0, pointer !important;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transform: translateY(10px);

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease,
        transform 0.3s ease;

    z-index: 10000;
}

#back-to-top.show {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;

    transform: translateY(0);
}


/* Back-to-top image */

#back-to-top img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: contain;

    border-radius: 50%;
}


/* Hover */

#back-to-top:hover {
    transform: translateY(-3px);
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 700px) {

    #back-to-top {
        right: 15px;
        bottom: 15px;

        width: 50px;
        height: 50px;
    }

}


/* =========================================================
   SHARE BUTTONS
========================================================= */

.share-section {
    text-align: center;
}

.share-buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 15px;
}

.share-button {
    display: inline-block;

    padding: 12px 22px;

    border: 2px solid #684A4A;
    border-radius: 10px;

    background: transparent;

    color: #5B4B4B;

    font-family: "Playfair Display", serif;
    font-size: 1rem;
    font-weight: bold;

    text-decoration: none;

    cursor: url("Images/Clickable Cursor.png") 0 0, pointer !important;

    transition:
        transform 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.share-button:hover {
    background: #684A4A;
    color: white;

    transform: translateY(-2px);
}

.copy-message {
    margin-top: 15px;

    min-height: 1.5em;

    color: #684A4A;
}


/* =========================================================
   SHARE BUTTONS — NIGHT MODE
========================================================= */

html.dark-mode .share-button {
    border-color: #FFD0D0;
    color: #F8E6E3;
}

html.dark-mode .share-button:hover {
    background: #FFD0D0;
    color: #2B1719;
}

html.dark-mode .copy-message {
    color: #F8E6E3;
}
.pattern-buttons-top,
.share-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.pattern-buttons {
    text-align: center;
}


/* PHONE */

@media (max-width: 700px) {

    .pattern-buttons-top,
    .share-row {
        flex-direction: column;
        gap: 10px;
    }

}


/* TABLET */

@media (min-width: 701px) and (max-width: 1100px) {

    .pattern-buttons-top,
    .share-row {
        flex-direction: row;
        gap: 10px;
    }

    .share-row {
        margin-top: 25px;
    }

}


/* DESKTOP */

@media (min-width: 1101px) {

    .pattern-buttons-top,
    .share-row {
        flex-direction: row;
        gap: 10px;
    }

}

/* =========================================================
   MOBILE SIDEBAR — FINAL
========================================================= */

@media (max-width: 700px) {

    .project-welcome > .download-pattern,
    .project-welcome > #copy-link-button {
        margin-top: 10px;
        margin-bottom: 10px;
    }

    .project-welcome > .download-pattern {
        display: block;
        width: fit-content;
        margin: 20px auto 10px auto;
    }

    .project-welcome > .share-button[href="#pattern"] {
        display: block;
        width: fit-content;
        margin-left: auto;
        margin-right: auto;
    }

    .sidebar {
        display: none !important;
    }

    .sidebar.mobile-sidebar-open {
        display: flex !important;
    }

    .pattern-filters {
        padding: 12px;
        border: 2px solid rgb(217, 140, 173);
        border-radius: 14px;
        margin-bottom: 15px;
    }

    .dark-mode .pattern-filters {
        border-color: rgb(163, 79, 91);
    }

}


/* =========================================================
   MOBILE MENU
========================================================= */

#mobile-menu-button {
    display: none;
}

@media (max-width: 700px) {

    #mobile-menu-button {
        display: block;
    }

}



/* =========================================================
   PHONE — BUTTON SPACING
========================================================= */

@media (max-width: 700px) {

    .pattern-buttons {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .pattern-buttons-top {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 10px;
    }

    .pattern-buttons-top .share-button,
    .pattern-buttons-top .download-pattern {
        margin-top: 0;
        margin-bottom: 0;
    }

    .pattern-buttons .share-row {
        display: flex !important;
        flex-direction: column;
        align-items: center;
        gap: 10px;
        margin-top: 0;
    }

    .pattern-buttons .share-row .share-button {
        margin-top: 0;
        margin-bottom: 0;
    }

}



/* =========================================================
   PATTERN BUTTONS — TABLET + DESKTOP
========================================================= */

@media (min-width: 701px) {

    .pattern-buttons {
        text-align: center;
    }

    .pattern-buttons-top {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 10px;
    }

    .pattern-buttons-top .download-pattern {
        margin-top: 0;
    }

    .pattern-buttons .share-row {
        display: flex !important;
        justify-content: center;
        align-items: center;
        gap: 10px;
        margin-top: 30px;
    }

}


/* =========================================================
   DESKTOP — ALL BUTTONS IN ONE ROW, LEFT ALIGNED
========================================================= */

@media (min-width: 1101px) {

    .pattern-buttons {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        gap: 10px;
        flex-wrap: nowrap;
    }

    .pattern-buttons-top {
        display: contents;
    }

    .pattern-buttons .share-row {
        display: contents !important;
    }

    .pattern-buttons-top .download-pattern {
        margin-top: 0;
    }

}


