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

html,
body {
    height: 100%;
}

body {
    font-family:
        "Space Grotesk",
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Oxygen,
        Ubuntu,
        Cantarell,
        sans-serif;
    background: #ffffff;
    color: #1a1a1a;
    line-height: 1.6;
    display: flex;
    flex-direction: column;
}

#wrapper-main {
    flex: 1;
}

/* ==========================================================================
   TYPOGRAPHY
   ========================================================================== */
h1 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2.5rem;
    font-weight: 500;
    margin-bottom: 0.5rem;
    letter-spacing: -0.02em;
}

h1.page-title {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

h2 {
    font-family: "Space Grotesk", sans-serif;
    font-size: 2rem;
    font-weight: 500;
    margin-bottom: 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 1rem;
}

h2.section-title-no-border {
    margin-bottom: 0;
    padding-bottom: 0;
    border: none;
}

p {
    margin-bottom: 1rem;
    text-align: justify;
    color: #333;
    line-height: 1.8;
    font-weight: 400;
}

p:first-of-type {
    margin-top: 0;
}

.subtitle {
    color: #666;
    font-size: 1.2rem;
    font-weight: 400;
}

.work-subtitle {
    font-size: 0.9rem;
    color: #666;
    margin-bottom: 1.5rem;
    font-style: italic;
}

/* ==========================================================================
   LAYOUT & CONTAINERS
   ========================================================================== */
.container {
    max-width: 900px;
    margin: 0 auto;
}

main {
    max-width: 900px;
    margin: 0 auto;
    padding: 3rem 2rem;
}

section {
    margin-bottom: 2rem;
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-menu {
    position: relative;
    background-color: #ffffff;
    border-bottom: 1px solid #e0e0e0;
    padding: 0 2rem;
}

.nav-menu.hidden {
    opacity: 1;
    transform: none;
    pointer-events: all;
}

.nav-menu ul {
    list-style: none;
    display: flex;
    gap: 2rem;
    align-items: center;
    justify-content: center;
    max-width: 900px;
    margin: 0 auto;
    padding: 0;
}

.nav-menu a {
    color: #999;
    text-decoration: none;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0;
    font-size: 0.95rem;
    transition: color 0.2s ease;
    padding: 1rem 0;
    position: relative;
    display: block;
}

.nav-menu a:hover {
    color: #333;
}

.nav-menu a.active {
    font-weight: 400;
    color: #000000;
}

.nav-menu a.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background-color: #000000;
}

.hamburger {
    display: none;
    flex-direction: column;
    cursor: pointer;
    gap: 0.4rem;
    position: absolute;
    right: 2rem;
    top: 50%;
    transform: translateY(-50%);
}

.hamburger span {
    width: 1.5rem;
    height: 2px;
    background-color: #000;
    transition: all 0.3s ease;
}

.hamburger.active span:nth-child(1) {
    transform: rotate(45deg) translate(0.5rem, 0.5rem);
}

.hamburger.active span:nth-child(2) {
    opacity: 0;
}

.hamburger.active span:nth-child(3) {
    transform: rotate(-45deg) translate(0.3rem, -0.3rem);
}

/* ==========================================================================
   LINKS (Main Content)
   ========================================================================== */
main a {
    color: #000;
    text-decoration: none;
    cursor: pointer;
    transition:
        color 0.2s ease,
        background-size 0.3s ease;
    font-weight: 600;
    background-image: linear-gradient(#000, #000);
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    padding-bottom: 1px;
}

main a:hover {
    color: #666;
    background-size: 100% 1px;
}

.back-link {
    display: inline-block;
    margin-top: 2rem;
    color: #000;
    text-decoration: none;
    font-weight: 600;
    transition:
        color 0.2s ease,
        background-size 0.3s ease;
    background-image: linear-gradient(#000, #000);
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    padding-bottom: 1px;
}

.back-link:hover {
    color: #666;
    background-size: 100% 1px;
}

.event-link {
    display: inline-block;
    margin-top: 1rem;
    color: #000;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9rem;
    transition:
        color 0.2s ease,
        background-size 0.3s ease;
    background-image: linear-gradient(#000, #000);
    background-position: 50% 100%;
    background-repeat: no-repeat;
    background-size: 0% 1px;
    padding-bottom: 1px;
}

.event-link:hover {
    color: #666;
    background-size: 100% 1px;
}

/* ==========================================================================
   FOOTER
   ========================================================================== */
footer {
    border-top: 1px solid #e0e0e0;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 0.8rem;
    margin-top: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

footer p {
    font-size: 0.8rem;
    color: #bbb;
    text-align: center;
    font-weight: 400;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    flex-wrap: wrap;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

.cc-icon {
    max-width: 1em;
    max-height: 1em;
    margin-left: 0.2em;
    vertical-align: middle;
}

/* ==========================================================================
   HOME PAGE SPECIFIC
   ========================================================================== */
header {
    border-bottom: 1px solid #e0e0e0;
    padding: 3rem 2rem 1.5rem;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
}

.content-wrapper {
    display: flex;
    gap: 3rem;
    align-items: flex-start;
}

.text-content {
    flex: 1;
}

.image-content {
    flex: 0 0 350px;
    margin-top: 3.5rem;
}

.content-separator {
    border: none;
    height: 1px;
    background-color: #e0e0e0;
    margin: 0 0 1.5rem 0;
}

.portrait-image {
    width: 100%;
    background-color: #f0f0f0;
    border: 1px solid #e0e0e0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-size: 0.9rem;
    overflow: hidden;
}

.portrait-image img {
    width: 100%;
    height: auto;
    display: block;
}

/* ==========================================================================
   ABOUT PAGE SPECIFIC
   ========================================================================== */
.about-section-row {
    display: flex;
    gap: 4rem;
    align-items: center;
    margin-bottom: 4rem;
}

.about-section-row.reverse {
    flex-direction: row-reverse;
}

.about-section-content {
    flex: 1;
}

.about-section-image {
    flex: 0 0 350px;
}

.portrait-container {
    width: 100%;
}

.portrait-image.landscape {
    aspect-ratio: 3/2;
    margin-bottom: 1rem;
}

.portrait-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-with-copyright {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.bio-downloads {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
}

.bio-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.6rem 1.2rem;
    border: 1px solid #e0e0e0;
    background: none;
    color: #666;
    text-decoration: none;
    font-size: 0.9rem;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.bio-btn:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.bio-btn i {
    font-size: 0.9rem;
}

/* ==========================================================================
   AGENDA PAGE SPECIFIC
   ========================================================================== */
.event-type-filter {
    display: flex;
    gap: 1rem;
    margin: 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.event-type-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #666;
    border-radius: 0.25rem;
    font-family: inherit;
}

.event-type-btn:hover,
.event-type-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.year-filter {
    display: none;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 2rem 0;
    padding: 1rem 0;
    border-bottom: 1px solid #e0e0e0;
}

.year-filter.active {
    display: flex;
}

.year-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
    color: #666;
    border-radius: 0.25rem;
    font-family: inherit;
}

.year-btn:hover,
.year-btn.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.year-section {
    margin-bottom: 3rem;
}

.year-header {
    font-family: "Space Grotesk", sans-serif;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1.5rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.event-card {
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 0.25rem;
    transition: box-shadow 0.2s;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.event-card:hover {
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

.event-card.past-event {
    opacity: 0.7;
    background-color: #f9f9f9;
}

.event-card.past-event::after {
    content: "Past Event";
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: #666;
    color: white;
    font-size: 0.7rem;
    padding: 4px 8px;
    border-radius: 3px;
    font-weight: 500;
}

.event-card h3 {
    font-size: 1.1rem;
    font-weight: 400;
    margin-bottom: 0.8rem;
}

.event-card p {
    font-size: 0.95rem;
    text-align: left;
    flex-grow: 1;
}

.no-events {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem;
}

/* ==========================================================================
   CONTACT PAGE SPECIFIC
   ========================================================================== */
.contact-form {
    max-width: 600px;
    margin: 2rem auto;
}

.form-group {
    margin-bottom: 1.5rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

input,
textarea {
    width: 100%;
    padding: 0.8rem;
    border: 1px solid #d0d0d0;
    font-family: inherit;
    font-size: 1rem;
    transition: border-color 0.2s;
}

input:focus,
textarea:focus {
    outline: none;
    border-color: #000;
}

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

button,
input[type="submit"],
.audio-download-btn,
.event-type-btn,
.year-btn {
    background: none;
    border: 1px solid #e0e0e0;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.95rem;
    color: #666;
    border-radius: 0.25rem;
    font-family: inherit;
}

button:hover,
input[type="submit"]:hover,
.audio-download-btn:hover,
.event-type-btn:hover,
.year-btn:hover {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.audio-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    width: fit-content;
}

/* ==========================================================================
   PHOTOGRAPHY PAGE SPECIFIC
   ========================================================================== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    margin: 2rem 0;
}

.gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border: 1px solid #e0e0e0;
    transition:
        transform 0.3s ease,
        box-shadow 0.3s ease;
    cursor: pointer;
    content-visibility: auto;
    contain-intrinsic-size: 250px;
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
}

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

.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    animation: fadeIn 0.3s ease;
}

.lightbox.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

.lightbox-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
    transition: filter 0.3s ease;
}

.lightbox-image.loading {
    filter: blur(10px);
}

.lightbox-close {
    position: absolute;
    top: -40px;
    right: 0;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.lightbox-close:hover {
    color: #ccc;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    padding: 0 1rem;
    user-select: none;
    transition: color 0.2s;
}

.lightbox-nav:hover {
    color: #ccc;
}

.lightbox-prev {
    left: -60px;
}
.lightbox-next {
    right: -60px;
}

.lightbox-download {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: none;
    border: none;
    color: #fff;
    cursor: pointer;
    font-size: 1.2rem;
    transition:
        opacity 0.2s,
        color 0.2s;
    padding: 0.5rem;
    opacity: 0.7;
}

.lightbox-download:hover {
    opacity: 1;
    color: #ccc;
}

/* ==========================================================================
   WORKS LIST PAGE SPECIFIC
   ========================================================================== */
.works-list {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem 0;
}

/* Works List Item */
.work-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.work-item .work-description {
    margin-bottom: 0;
    padding-bottom: 0;
    border-bottom: none;
    font-size: 0.95rem;
}

.work-item .work-note {
    margin-bottom: 0;
}

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

.work-item.hidden {
    display: none;
}

.work-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #000;
}

.work-year {
    font-size: 0.85rem;
    color: #999;
}

.work-description {
    font-size: 0.95rem;
    color: #666;
    font-style: italic;
}

.work-category {
    font-size: 0.75rem;
    color: #aaa;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-top: 0.5rem;
}

.work-note {
    font-size: 0.625rem; /* 10px */
    margin: 0.25rem 0 0 0;
}

.tags-container {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    margin-bottom: 2rem;
}

.tag {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #e0e0e0;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.9rem;
}

.tag:hover {
    background-color: #e0e0e0;
    color: #000;
}

.tag.active {
    background-color: #000;
    color: #fff;
    border-color: #000;
}

.work-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-top: 0.8rem;
}

.work-tag {
    display: inline-block;
    padding: 0.3rem 0.7rem;
    background-color: #f5f5f5;
    color: #999;
    border-radius: 15px;
    font-size: 0.8rem;
    cursor: pointer;
    transition: all 0.2s ease;
}

.work-tag:hover {
    background-color: #e0e0e0;
    color: #000;
}

.under-construction {
    text-align: center;
    padding: 3rem 2rem;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 3rem 0;
    border: 1px solid #e0e0e0;
}

.construction-icon {
    font-size: 3rem;
    color: #666;
    margin-bottom: 1.5rem;
    animation: pulse 2s infinite;
}

.under-construction h3 {
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: 1rem;
    color: #333;
}

.under-construction p {
    font-size: 1rem;
    color: #666;
    max-width: 600px;
    margin: 0 auto 1.5rem;
    text-align: center;
}

.construction-progress {
    width: 100%;
    max-width: 300px;
    height: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    margin: 1.5rem auto;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    width: 60%;
    background-color: #000;
    border-radius: 2px;
    animation: progress 3s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes progress {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(400%);
    }
}

/* ==========================================================================
   WORK DETAIL PAGES SPECIFIC
   ========================================================================== */
.work-title-compact {
    margin-bottom: 0.2rem;
}

.work-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 2rem;
    color: #999;
    font-size: 0.95rem;
}

.work-description {
    font-size: 1rem;
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #e0e0e0;
}

.pdf-wrapper {
    position: relative;
    margin: 2rem 0;
}

.pdf-container {
    width: 100%;
    height: 600px;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
}

.pdf-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.pdf-fullscreen-btn {
    position: absolute;
    bottom: -35px;
    right: 0;
    background: none;
    color: #999;
    border: none;
    padding: 0.4rem;
    border-radius: 0;
    cursor: pointer;
    font-size: 0;
    transition: color 0.2s;
    display: flex;
    align-items: center;
    gap: 0;
    z-index: 10;
}

.pdf-fullscreen-btn:hover {
    color: #000;
    background: none;
}

.pdf-fullscreen-btn i {
    font-size: 1rem;
}

.pdf-modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
}

.pdf-modal.active {
    display: flex;
    flex-direction: column;
}

.pdf-modal-header {
    background-color: #1a1a1a;
    padding: 0.3rem 0.8rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-hint {
    color: #fff;
    font-size: 0.9rem !important;
}

.pdf-modal-close {
    background: none;
    border: none;
    color: #fff;
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.2s;
}

.pdf-modal-close:hover {
    color: #ccc;
}

.pdf-modal-content {
    flex: 1;
    display: flex;
}

.pdf-modal-content iframe {
    width: 100%;
    height: 100%;
    border: none;
}

.work-text {
    margin-top: 2rem;
    color: #333;
    line-height: 1.8;
}

.work-text p {
    margin-bottom: 1rem;
    text-align: justify;
    font-weight: 400;
}

.audio-player-card {
    background-color: #fcfcfc;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 2rem;
    margin: 2rem 0;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.audio-visual-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    height: 40px;
    width: 100%;
    margin-bottom: 0.5rem;
}

.audio-visual-placeholder span {
    display: block;
    width: 4px;
    background-color: #e0e0e0;
    border-radius: 2px;
    transition: background-color 0.3s ease;
}

.audio-player-card:hover .audio-visual-placeholder span {
    background-color: #999;
}

.audio-player-card audio {
    width: 100%;
    max-width: 100%;
    height: 40px;
}

.audio-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

.audio-info-text {
    font-size: 0.9rem;
    color: #999;
}

.audio-player-container {
    margin: 1.5rem 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

audio {
    width: 100%;
    max-width: 500px;
    margin-bottom: 0.5rem;
}

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 768px) {
    .nav-menu {
        display: flex;
        align-items: center;
        padding: 1rem 2rem;
    }

    .hamburger {
        display: flex;
    }

    .nav-menu ul {
        display: none;
        position: fixed;
        top: 60px;
        left: 0;
        right: 0;
        flex-direction: column;
        gap: 0;
        background-color: #fff;
        border-bottom: 1px solid #e0e0e0;
        padding: 1rem 2rem;
        margin: 0;
        width: 100%;
        max-width: none;
        justify-content: flex-start;
        z-index: 999;
    }

    .nav-menu ul.active {
        display: flex;
    }

    .nav-menu a {
        padding: 1rem 0;
        border-bottom: none;
    }

    .nav-menu li {
        width: 100%;
    }

    .nav-menu a.active::after {
        display: none;
    }

    .nav-menu a.active {
        font-weight: 600;
    }

    main {
        padding: 2rem 1rem;
    }

    h1.page-title {
        font-size: 2.5rem;
    }

    h1 {
        font-size: 1.8rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    header {
        padding: 4rem 1rem 2rem;
    }

    .about-section-row,
    .about-section-row.reverse {
        flex-direction: column;
        gap: 2rem;
        margin-bottom: 3rem;
    }

    .about-section-image {
        flex: 1;
        width: 100%;
    }

    .content-wrapper {
        flex-direction: column;
    }

    .image-content {
        flex: 1;
        width: 100%;
    }

    .portraits-grid,
    .events-grid {
        grid-template-columns: 1fr;
    }

    .event-type-filter,
    .year-filter {
        justify-content: center;
        flex-wrap: wrap;
    }

    .gallery-grid {
        grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
        gap: 1rem;
    }

    .lightbox-prev {
        left: -40px;
    }
    .lightbox-next {
        right: -40px;
    }

    .pdf-container {
        height: 400px;
    }

    .work-meta {
        flex-direction: column;
        gap: 0.5rem;
    }

    .pdf-fullscreen-btn {
        padding: 0.5rem 0.7rem;
        font-size: 0.8rem;
    }

    .under-construction {
        padding: 2rem 1rem;
    }

    .construction-icon {
        font-size: 2.5rem;
    }

    .under-construction h3 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    h1.page-title {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    header {
        padding: 3rem 1rem 1.5rem;
    }
}
