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

html {
    overflow-y: scroll;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE and Edge */
}
html::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

body {
    #font-family: 'Helvetica Neue', Arial, sans-serif;
    font-family: "Noto Sans JP", "Noto Sans", "Noto Sans CJK JP", sans-serif;
    line-height: 1.6;
    color: #333;
    min-height: 100vh;
}

/* Fixed pseudo-element background works on iOS/Android/desktop uniformly.
   background-attachment:fixed is broken on iOS Safari; a position:fixed ::before
   achieves the same "viewport-locked" effect without the iOS quirk. */
body::before {
    content: '';
    position: fixed;
    inset: 0;
    /* background-image: url('resources/bg-angelus.jpg'); */
    background-image: url('resources/bg-floating.jpg');
    /* background-image: url('resources/bg-earth.jpg'); */
    background-size: cover;
    background-position: center calc(50% + 40px);
    background-repeat: no-repeat;
    z-index: -1;
}


/* Navigation Bar */
.navbar {
    background-color: rgba(255, 255, 255, 0.95);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.nav-container {
    /* max-width: 1200px; */
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
    text-decoration: none;
    color: #333;
    font-weight: 500;
    padding: 0.5rem 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.logo:hover {
    background-color: #f0f0f0;
    color: #000;
}

.logo-name {
    font-size: 1.3rem;
    font-weight: bold;
}

.logo-title {
    font-size: 0.85rem;
    opacity: 0.75;
}

.nav-menu {
    display: flex;
    list-style: none;
    /* gap: 2rem; */
}

.nav-menu a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    font-size: 1rem;
    padding: 0.5rem 0.3rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.nav-menu a:hover {
    background-color: #f0f0f0;
    color: #000;
}

/* Portfolio dropdown */
.nav-dropdown {
    position: relative;
}

.dropdown-chevron {
    font-size: 0.65rem;
    vertical-align: middle;
    display: inline-block;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.12);
    border-radius: 4px;
    list-style: none;
    min-width: 200px;
    z-index: 1001;
    padding: 0.4rem 0;
}

.nav-dropdown-menu.active {
    display: block;
}

.nav-dropdown-menu li a {
    display: block;
    padding: 0.6rem 1.2rem;
    white-space: nowrap;
    border-radius: 0;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background-color: #333;
    margin: 3px 0;
    transition: 0.3s;
    border-radius: 3px;
}

/* Main Content */
main {
    padding: 2rem 0;
}

.section {
    background-color: rgba(255, 255, 255, 0.9);
    margin: 15rem auto; /* zone verticale non floutée entre les sections */
    padding: 3rem 2rem;
    /* max-width: 1200px; */
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    min-height: calc(100vh - 80px);
    scroll-margin-top: 80px;
}

.container {
    max-width: 900px;
    margin: 0 auto;
}

.section h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    /* color: #222; */
    color: #4b4b4b;
    text-align: center;
}

.section p {
    font-weight: bold;
    font-size: 1.5rem;
    line-height: 1.8;
    color: #4b4b4b;
}

/* Exhibitions Table */
.exhibitions-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 2rem;
    /* background-color: white; */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    border-radius: 8px;
}

.exhibitions-table thead {
    /* background-color: #f8f9fa; */
    /* border-bottom: 2px solid #dee2e6; */
    border-bottom: 2px solid #e9ecef;
}

.exhibitions-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: #333;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.exhibitions-table tbody tr {
    border-bottom: 1px solid #e9ecef;
    transition: background-color 0.2s ease;
}

.exhibitions-table tbody tr:hover {
    background-color: #f8f9fa;
}

.exhibitions-table tbody tr:last-child {
    border-bottom: none;
}

.exhibitions-table td {
    padding: 0.9rem 1rem;
    color: #555;
    font-size: 1.0rem;
    font-weight: bold;
}

.exhibitions-table td.period {
    font-weight: 600;
    color: #333;
    width: 10%;
}

.exhibitions-table td.label {
    width: 35%;
}

.exhibitions-table td.label a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
    position: relative;
}

.exhibitions-table td.label a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.exhibitions-table td.label a::after {
    content: ' ↗';
    font-size: 0.85em;
    opacity: 0.7;
}

.exhibitions-table td.location {
    width: 20%;
}

.exhibitions-table td.category {
    width: 15%;
    text-transform: capitalize;
}

.exhibitions-table td.domain {
    width: 20%;
    text-transform: capitalize;
}

.error {
    color: #dc3545;
    font-weight: 500;
    padding: 1rem;
    background-color: #f8d7da;
    border-radius: 4px;
    margin-top: 1rem;
}

.empty-message {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.8;
}

/* Work Items */
#work-content {
    margin-top: 2rem;
}

.work-item {
    margin-bottom: 3rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.work-item:last-child {
    margin-bottom: 0;
}

.work-image {
    width: 100%;
    max-width: 900px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.work-image:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.work-video {
    width: 100%;
    max-width: 900px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    background-color: #000;
}

.work-text {
    margin-top: 1.5rem;
    width: 100%;
    max-width: 900px;
    color: #4b4b4b;
    line-height: 1.8;
    font-size: 1rem;
}

.work-text-only {
    margin-top: 0;
    padding: 1.5rem;
    /* background-color: rgba(255, 255, 255, 0.95); */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.work-text p {
    margin-bottom: 1rem;
}

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

.work-text strong {
    font-weight: 600;
    color: #222;
}

.work-text em {
    font-style: italic;
}

.work-text a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.work-text a:hover {
    color: #0056b3;
    text-decoration: underline;
}

/* Headers in work text */
.work-text h1,
.work-text h2,
.work-text h3,
.work-text h4,
.work-text h5,
.work-text h6 {
    margin-top: 1.5rem;
    margin-bottom: 0.8rem;
    color: #4b4b4b;
    font-weight: 600;
    line-height: 1.3;
}

.work-text h1:first-child,
.work-text h2:first-child,
.work-text h3:first-child,
.work-text h4:first-child,
.work-text h5:first-child,
.work-text h6:first-child {
    margin-top: 0;
}

.work-text h1 { font-size: 2rem; }
.work-text h2 { font-size: 1.75rem; }
.work-text h3 { font-size: 1.5rem; }
.work-text h4 { font-size: 1.25rem; }
.work-text h5 { font-size: 1.1rem; }
.work-text h6 { font-size: 1rem; }

/* Lists in work text */
.work-text ul,
.work-text ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.work-text ul {
    list-style-type: disc;
}

.work-text ol {
    list-style-type: decimal;
}

.work-text li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.work-text li:last-child {
    margin-bottom: 0;
}

/* News Items */
#news-content {
    margin-top: 2rem;
}

.news-item {
    margin-bottom: 2.5rem;
    padding: 1.5rem;
    /* background-color: rgba(255, 255, 255, 0.95); */
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.news-item:last-child {
    margin-bottom: 0;
}

.news-date {
    font-size: 1.5rem;
    font-weight: 600;
    color: #4b4b4b;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    /* border-bottom: 2px solid #bbb; */
    border-bottom: 2px solid #e9ecef;

}

/* Contact Form */
.contact-form {
    margin-top: 2rem;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.contact-form input[type="text"],
.contact-form input[type="email"],
.contact-form textarea {
    width: 100%;
    padding: 0.9rem 1rem;
    font-size: 1rem;
    font-family: "Noto Sans JP", "Noto Sans", "Noto Sans CJK JP", sans-serif;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.95);
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.contact-form input[type="text"]:focus,
.contact-form input[type="email"]:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
}

.contact-form button {
    padding: 0.9rem 2rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: "Noto Sans JP", "Noto Sans", "Noto Sans CJK JP", sans-serif;
    color: white;
    background-color: #007bff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    align-self: flex-start;
}

.contact-form button:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

.contact-form button:active {
    transform: translateY(0);
}


#default-page,
#mon-travail,
#expositions,
#portfolio,
#explorations,
#news,
#contact
{
    /* background-color: transparent; */
    background-color: rgba(255, 255, 255, 0.3);
}


/* Default Page */
#default-page {
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    overflow-y: hidden;
    padding: 0;
    display: flex;
    visibility: hidden;
    align-items: center;
    justify-content: center;
}

#default-page .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

/* Portfolio Carousel */
#portfolio {
    min-height: calc(100vh - 80px);
    max-height: calc(100vh - 80px);
    height: calc(100vh - 80px);
    overflow-y: hidden;
    touch-action: pan-y;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;

}

#portfolio .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    transition: opacity 0.3s ease-in-out;
}

#portfolio .container.fading {
    opacity: 0;
}

.portfolio-subtitle {
    font-size: 1.1rem;
    color: #4b4b4b;
    text-align: center;
    font-style: italic;
    margin-bottom: 0.5rem;
    width: 100%;
}

.portfolio-header {
    padding-top: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.75rem;
    width: 100%;
}

.portfolio-header h1 {
    margin: 0;
    flex-shrink: 0;
}

.carousel-controls {
    display: none;
}

.nav-btn {
    width: 50px;
    height: 50px;
    background-color: rgba(255, 255, 255, 0.9);
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nav-btn:hover:not(:disabled) {
    background-color: #007bff;
    color: white;
    border-color: #007bff;
    transform: scale(1.1);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background-color: #f8f9fa;
}

.first-btn,
.last-btn {
    color: #000;
}

.first-btn:hover:not(:disabled),
.last-btn:hover:not(:disabled) {
    color: white;
}

.artwork-display {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    overflow: hidden;
    width: 100%;
    max-width: calc(100% - 24px);        

}

.portfolio-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease;
    cursor: pointer;
}

.portfolio-image:hover {
    transform: scale(1.02);
}

.image-tooltip {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.85);
    color: white;
    padding: 1rem 1.5rem;
    border-radius: 8px;
    font-size: 0.95rem;
    text-align: center;
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
    max-width: 90%;
}

.image-tooltip.show {
    opacity: 1;
}

.artwork-info {
    text-align: center;
    max-width: 900px;
    width: 100%;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;    
}

.artwork-title {
    font-size: 1rem;
    font-weight: 600;
    /* color: #222; */
    color: #4b4b4b;
    /* margin-bottom: 0.3rem; */
}

.image-index,
.artwork-materials,
.artwork-themes {
    font-size: 1rem;
    /* color: #666; */
    color: #4b4b4b;
    line-height: 1.6;
    /* margin-bottom: 0.3rem; */
}

.artwork-materials {
    font-style: italic;
}


/* Selection Modal */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.active {
    display: flex;
}

.modal-box {
    background: white;
    border-radius: 8px;
    padding: 2rem;
    width: 90%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.25);
}

.modal-close-btn {
    position: absolute;
    top: 0.75rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.6rem;
    line-height: 1;
    cursor: pointer;
    color: #999;
    transition: color 0.2s ease;
}

.modal-close-btn:hover {
    color: #333;
}

.modal-title {
    font-size: 1.4rem;
    font-weight: 600;
    color: #4b4b4b;
    margin-bottom: 0.5rem;
    text-align: left;
}

.modal-hint {
    font-size: 0.85rem;
    color: #888;
    font-weight: normal;
    line-height: 1.5;
    margin-bottom: 1.25rem;
}

.filter-group {
    margin-bottom: 0.9rem;
    position: relative;
}

.filter-group label {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #4b4b4b;
    margin-bottom: 0.3rem;
}

.filter-group input {
    width: 100%;
    padding: 0.55rem 0.8rem;
    font-size: 1rem;
    font-family: "Noto Sans JP", "Noto Sans", "Noto Sans CJK JP", sans-serif;
    border: 2px solid #e9ecef;
    border-radius: 6px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.filter-group input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
}

.filter-count {
    font-size: 0.85rem;
    font-weight: normal;
    color: #aaa;
    text-align: right;
    margin: 0.4rem 0 0 0;
    min-height: 1.2em;
}

.filter-count-zero {
    color: #dc3545;
    font-weight: 600;
}

#filter-apply-btn:disabled {
    background-color: #ccc;
    cursor: not-allowed;
}

#filter-apply-btn:disabled:hover {
    background-color: #ccc;
}

.modal-actions {
    display: flex;
    justify-content: flex-end;
    gap: 0.75rem;
    margin-top: 1.5rem;
}

.modal-actions button {
    padding: 0.65rem 1.4rem;
    font-size: 1rem;
    font-family: "Noto Sans JP", "Noto Sans", "Noto Sans CJK JP", sans-serif;
    font-weight: 600;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

#filter-reset-btn {
    background-color: #f0f0f0;
    color: #333;
}

#filter-reset-btn:hover {
    background-color: #e0e0e0;
}

#filter-apply-btn {
    background-color: #007bff;
    color: white;
}

#filter-apply-btn:hover {
    background-color: #0056b3;
}

/* Autocomplete dropdown */
.autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 2px solid #007bff;
    border-top: none;
    border-radius: 0 0 6px 6px;
    list-style: none;
    margin: 0;
    padding: 0;
    max-height: 180px;
    overflow-y: auto;
    z-index: 3000;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.15);
}

.autocomplete-dropdown.active {
    display: block;
}

.autocomplete-dropdown li {
    padding: 0.4rem 0.8rem;
    cursor: pointer;
    font-size: 0.9rem;
    color: #333;
    border-bottom: 1px solid #f0f0f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.autocomplete-dropdown li:last-child {
    border-bottom: none;
}

.autocomplete-dropdown li:hover,
.autocomplete-dropdown li.ac-highlighted {
    background-color: #e8f0fe;
    color: #007bff;
}

/* Refresh button in nav */
.nav-refresh-item {
    display: flex;
    align-items: center;
}

.nav-refresh-link {
    color: #aaa !important;
    font-size: 1.25rem;
    line-height: 1;
    padding: 0.5rem 0.4rem !important;
}

.nav-refresh-link:hover {
    color: #555 !important;
    background-color: #f0f0f0 !important;
}

.nav-refresh-label {
    display: none;
}

.ma-selection-link {
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    margin-top: 0.2rem;
    padding-top: 0.2rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        left: -100%;
        top: 80px;
        flex-direction: column;
        background-color: rgba(255, 255, 255, 0.98);
        width: 100%;
        text-align: center;
        transition: 0.3s;
        box-shadow: 0 10px 27px rgba(0, 0, 0, 0.05);
        gap: 0;
        padding: 1rem 0;
    }

    .nav-menu.active {
        left: 0;
    }

    .nav-menu li {
        padding: 0.5rem 0;
    }

    .nav-menu a {
        display: block;
        width: 100%;
        padding: 1rem;
    }

    /* Dropdown on mobile: inline, toggled by JS */
    .nav-dropdown:hover .nav-dropdown-menu {
        display: none;
    }

    .nav-dropdown-menu {
        position: static;
        background-color: rgba(0, 0, 0, 0.035);
        box-shadow: none;
        border-radius: 0;
        padding: 0.2rem 0;
        min-width: unset;
        width: 100%;
    }

    .nav-dropdown > .nav-dropdown-menu.active {
        display: block;
    }

    .nav-dropdown-menu li {
        padding: 0;
    }

    .nav-dropdown-menu li a {
        padding: 0.55rem 1.5rem 0.55rem 2.5rem;
        font-size: 0.88rem;
        font-weight: 400;
        color: #777;
        text-align: left;
        border-top: 1px solid rgba(0, 0, 0, 0.04);
    }

    .nav-dropdown-menu li a::before {
        content: "› ";
        color: #bbb;
    }

    .nav-refresh-item {
        border-top: 1px solid rgba(0, 0, 0, 0.07);
        margin-top: 0.3rem;
        padding-top: 0.3rem;
        justify-content: center;
    }

    .nav-refresh-link {
        font-size: 1rem !important;
        display: flex;
        align-items: center;
        gap: 0.5rem;
        color: #999 !important;
        padding: 0.75rem 1rem !important;
    }

    .nav-refresh-label {
        display: inline;
    }

    .section {
        /* margin: 1rem; */
        padding: 2rem 1rem;
    }

    .section h1 {
        font-size: 2rem;
    }

    .section p {
        font-size: 1rem;
    }

    /* Responsive table */
    .exhibitions-table {
        font-size: 0.85rem;
    }

    .exhibitions-table th,
    .exhibitions-table td {
        padding: 0.7rem 0.5rem;
    }

    .exhibitions-table th {
        font-size: 0.8rem;
    }

    /* Work items responsive */
    .work-text {
        font-size: 0.95rem;
    }

    .work-text-only {
        padding: 1.2rem;
    }

    .work-text h1 { font-size: 1.75rem; }
    .work-text h2 { font-size: 1.5rem; }
    .work-text h3 { font-size: 1.25rem; }
    .work-text h4 { font-size: 1.1rem; }

    /* News items responsive */
    .news-item {
        padding: 1.2rem;
    }

    .news-date {
        font-size: 1.2rem;
    }

    /* Contact form responsive */
    .contact-form {
        max-width: 100%;
    }

    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 0.95rem;
    }

    .contact-form button {
        font-size: 0.95rem;
    }

    /* Portfolio carousel responsive */
    .portfolio-header {
        padding-top: 48px;
        gap: 1rem;
    }

    .nav-btn {
        width: 45px;
        height: 45px;
        font-size: 1rem;
    }

    .image-index,
    .artwork-title,
    .artwork-materials,
    .artwork-themes {
        font-size: 0.95rem;
    }
}

@media screen and (max-width: 480px) {
    body {
        background-position: center calc(50% + 35px);
    }

    .section {
        scroll-margin-top: 70px;
    }

    .nav-container {
        height: 70px;
        padding: 0 15px;
    }

    .nav-menu {
        top: 70px;
    }

    .section h1 {
        font-size: 1.75rem;
    }

    .section {
        padding: 1.5rem 1rem;
    }

    /* Make table scrollable on small screens */
    #exhibitions-table {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .exhibitions-table {
        font-size: 0.75rem;
        min-width: 600px;
    }

    .exhibitions-table th,
    .exhibitions-table td {
        padding: 0.6rem 0.4rem;
    }

    /* Work items responsive */
    .work-item {
        margin-bottom: 2rem;
    }

    .work-text {
        font-size: 0.9rem;
        margin-top: 1rem;
    }

    .work-text-only {
        padding: 1rem;
        font-size: 0.9rem;
    }

    .work-text h1 { font-size: 1.5rem; }
    .work-text h2 { font-size: 1.35rem; }
    .work-text h3 { font-size: 1.2rem; }
    .work-text h4 { font-size: 1.05rem; }

    .work-text ul,
    .work-text ol {
        padding-left: 1.5rem;
    }

    /* News items responsive */
    .news-item {
        margin-bottom: 2rem;
        padding: 1rem;
    }

    .news-date {
        font-size: 1.1rem;
    }

    /* Contact form responsive */
    .contact-form input[type="text"],
    .contact-form input[type="email"],
    .contact-form textarea {
        font-size: 0.9rem;
        padding: 0.8rem;
    }

    .contact-form button {
        font-size: 0.9rem;
        padding: 0.8rem 1.5rem;
        width: 100%;
        align-self: stretch;
    }

    /* Portfolio carousel responsive */
    .portfolio-header {
        padding-top: 24px;
        gap: 0.3rem;
    }

    /* .portfolio-header h1 {
        font-size: 1.5rem;
    } */

    .nav-btn {
        width: 35px;
        height: 35px;
        font-size: 0.85rem;
    }

    .artwork-display {
        justify-content: center;
        /* max-width: calc(100% - 24px);         */
        width: 100%;
    }

    #portfolio {
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
    }

    #default-page {
        min-height: calc(100vh - 70px);
        max-height: calc(100vh - 70px);
    }

    .image-index,
    .artwork-title,
    .artwork-materials,
    .artwork-themes {
        font-size: 0.9rem;
    }
}
