/**
 * Portfolio Home Page Styles
 * Modern, minimal design with emphasis on artwork
 */

/* CSS Variables */
:root {
    --portfolio-bg: #ffffff;
    --portfolio-bg-secondary: #f5f5f5;
    --portfolio-text: #1a1a1a;
    --portfolio-text-muted: #888888;
    --portfolio-accent: #1a1a1a;
    --portfolio-overlay: rgba(255, 255, 255, 0.9);
    --portfolio-gap: clamp(8px, 2vw, 20px);
    --portfolio-radius: 0;
    --portfolio-transition: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --portfolio-max-width: 1600px;
    --font-heading: 'Cormorant Garamond', Georgia, serif;
    --font-body: 'Montserrat', -apple-system, sans-serif;
}

/* Hide default WordPress/Seedlet footer */
.site-footer,
#colophon,
.powered-by-wordpress,
.site-info {
    display: none !important;
}

/* Base Styles */
.portfolio-home {
    background-color: var(--portfolio-bg);
    color: var(--portfolio-text);
    min-height: 100vh;
    overflow-x: hidden;
    font-family: var(--font-body);
}

.portfolio-home h1,
.portfolio-home h2,
.portfolio-home h3,
.portfolio-home h4 {
    font-family: var(--font-heading);
}

/* Quick Navigation */
.quick-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
    transform: translateY(-100%);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.quick-nav.is-visible {
    transform: translateY(0);
    opacity: 1;
}

.quick-nav-inner {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.5rem;
    max-width: var(--portfolio-max-width);
    margin: 0 auto;
    padding: 0.75rem 1rem;
}

.quick-nav-btn {
    display: inline-block;
    padding: 0.5rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-decoration: none;
    color: var(--portfolio-text);
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    transition: all 0.3s ease;
}

.quick-nav-btn:hover,
.quick-nav-btn.active {
    color: var(--portfolio-bg);
    background: var(--portfolio-text);
    border-color: var(--portfolio-text);
}

@media (max-width: 480px) {
    .quick-nav-inner {
        gap: 0.35rem;
        padding: 0.6rem 0.75rem;
    }

    .quick-nav-btn {
        padding: 0.4rem 0.75rem;
        font-size: 0.7rem;
    }
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 2rem;
    overflow: hidden;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-overlay {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.3);
    pointer-events: none;
}

.hero-content {
    text-align: center;
    z-index: 2;
    max-width: 1100px;
}

.hero-logo {
    max-width: 1000px;
    width: 95%;
    height: auto;
    margin-bottom: 2rem;
    opacity: 0;
    transform: translateY(40px);
}

.hero-title {
    font-size: clamp(3rem, 10vw, 8rem);
    font-weight: 200;
    letter-spacing: -0.02em;
    line-height: 1;
    margin: 0 0 1rem;
    opacity: 0;
    transform: translateY(40px);
}

.hero-subtitle {
    font-size: clamp(1rem, 2vw, 1.5rem);
    font-weight: 300;
    color: var(--portfolio-text);
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    margin: 0 0 3rem;
    opacity: 0;
    transform: translateY(40px);
}

.scroll-indicator {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    opacity: 0;
    transform: translateY(40px);
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.scroll-indicator:hover {
    opacity: 0.7 !important;
}

.scroll-indicator span {
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 400;
}

.scroll-arrow {
    width: 18px;
    height: 18px;
    border-right: 2px solid rgba(255, 255, 255, 0.6);
    border-bottom: 2px solid rgba(255, 255, 255, 0.6);
    transform: rotate(45deg);
    animation: scrollBounce 2s ease-in-out infinite;
}

@keyframes scrollBounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(5px); }
}

.hero-bg-pattern {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at 50% 50%, rgba(0,0,0,0.02) 0%, transparent 50%);
    pointer-events: none;
}

/* Portfolio Section */
.portfolio-section {
    padding: clamp(4rem, 8vw, 6rem) 0 0 0;
    max-width: 100%;
    margin: 0 auto;
    background: linear-gradient(180deg, #fafafa 0%, #f0f1f3 30%, #e8eaed 70%, #f0f1f3 100%);
}

.portfolio-header {
    text-align: center;
    margin-bottom: clamp(4rem, 8vw, 7rem);
}

.section-title {
    font-size: clamp(2.5rem, 6vw, 5rem);
    font-weight: 200;
    letter-spacing: 0.1em;
    margin: 0;
    text-transform: uppercase;
}

/* Filter Buttons */
.portfolio-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
}

.filter-btn {
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--portfolio-text-muted);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    border-radius: 100px;
    cursor: pointer;
    transition: var(--portfolio-transition);
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.filter-btn:hover,
.filter-btn.active {
    background: var(--portfolio-text);
    color: var(--portfolio-bg);
    border-color: var(--portfolio-text);
}

/* Section Subtitle */
.section-subtitle {
    font-size: 1rem;
    color: var(--portfolio-text-muted);
    margin-top: 0.5rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
}

/* ================================
   IMMERSIVE CENTERED LAYOUT - LIGHT
   ================================ */

.artwork-section {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    overflow: hidden;
}

/* Centered Image Container */
.artwork-bg {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100vh;
    padding: clamp(6rem, 10vw, 10rem) clamp(4rem, 8vw, 8rem);
}

.artwork-bg-image {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 12px;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 1s ease, transform 1s ease;
    cursor: pointer;
}

.artwork-section.is-visible .artwork-bg-image {
    opacity: 1;
    transform: scale(1);
}

.artwork-overlay {
    display: none;
}

/* Content - Top Bar */
.artwork-content {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 2;
    padding: clamp(1.5rem, 4vw, 2.5rem) clamp(1.5rem, 4vw, 2.5rem) clamp(2.5rem, 5vw, 4rem);
    background: linear-gradient(to bottom,
        rgba(240, 241, 243, 1) 0%,
        rgba(240, 241, 243, 0.95) 40%,
        rgba(240, 241, 243, 0.7) 70%,
        rgba(240, 241, 243, 0) 100%
    );
}

/* Mobile: Mehr Platz für Custom Fields, damit sie nicht ins Bild ragen */
@media (max-width: 767px) {
    .artwork-bg {
        padding-top: clamp(14rem, 30vw, 18rem);
    }

    .artwork-content {
        padding: 1rem 1rem 1.5rem;
        background: linear-gradient(to bottom,
            rgba(240, 241, 243, 1) 0%,
            rgba(240, 241, 243, 1) 60%,
            rgba(240, 241, 243, 0.9) 80%,
            rgba(240, 241, 243, 0) 100%
        );
    }

    .artwork-number {
        font-size: 0.6rem;
        margin-bottom: 0.25rem;
    }

    .artwork-title {
        font-size: clamp(1.3rem, 3.5vw, 1.6rem);
        margin-bottom: 0.15rem;
    }

    .artwork-subtitle {
        font-size: clamp(0.85rem, 2vw, 1rem);
        margin-bottom: 0.35rem;
    }

    .artwork-details {
        gap: 0.1rem;
        margin-bottom: 0.35rem;
    }

    .detail-item {
        font-size: 0.8rem;
    }
}

@media (min-width: 768px) {
    .artwork-content {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: clamp(1.5rem, 4vw, 2rem) clamp(2rem, 5vw, 4rem);
    }
}

/* Tablet/kleine Desktop: 768px - 1828px */
@media (min-width: 768px) and (max-width: 1828px) {
    .artwork-bg {
        padding-top: clamp(14rem, 25vw, 18rem);
    }

    .artwork-content {
        background: linear-gradient(to bottom,
            rgba(240, 241, 243, 1) 0%,
            rgba(240, 241, 243, 1) 50%,
            rgba(240, 241, 243, 0.85) 75%,
            rgba(240, 241, 243, 0) 100%
        );
    }

    .artwork-title {
        font-size: clamp(1.5rem, 3vw, 2.5rem);
    }

    .artwork-subtitle {
        font-size: clamp(1rem, 1.8vw, 1.3rem);
    }

    .detail-item {
        font-size: clamp(0.85rem, 1.2vw, 1rem);
    }
}

/* Artwork Info */
.artwork-info {
    color: var(--portfolio-text);
    max-width: 700px;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.8s ease 0.3s, transform 0.8s ease 0.3s;
}

.artwork-section.is-visible .artwork-info {
    opacity: 1;
    transform: translateY(0);
}

.artwork-number {
    display: inline-block;
    font-size: 0.7rem;
    letter-spacing: 0.3em;
    color: var(--portfolio-text-muted);
    margin-bottom: 0.5rem;
    font-family: var(--font-body);
}

.artwork-title {
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    margin: 0 0 0.25rem;
    line-height: 1.15;
    letter-spacing: 0.02em;
    color: var(--portfolio-text);
}

.artwork-subtitle {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 300;
    font-style: italic;
    margin: 0 0 0.75rem;
    color: var(--portfolio-text-muted);
    letter-spacing: 0.02em;
}

.artwork-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    margin-bottom: 0.75rem;
}

.detail-item {
    font-size: 1rem;
    color: var(--portfolio-text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.artwork-description {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: #666;
    max-width: 500px;
}

.artwork-description p {
    margin: 0;
}

/* Expand Button */
.expand-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.15);
    color: var(--portfolio-text);
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.75rem;
}

@media (min-width: 768px) {
    .expand-btn {
        margin-top: 0;
        margin-left: 2rem;
    }
}

.expand-btn:hover {
    background: var(--portfolio-text);
    border-color: var(--portfolio-text);
    color: #fff;
}

/* Main Artwork Carousel */
.artwork-carousel {
    width: 100%;
    height: 100%;
}

.artwork-carousel .swiper-wrapper {
    align-items: center;
}

.artwork-carousel .swiper-slide {
    display: flex;
    align-items: center;
    justify-content: center;
}

.artwork-carousel .swiper-slide img {
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    object-fit: contain;
}

/* Swiper Navigation Buttons */
.artwork-carousel .swiper-button-prev,
.artwork-carousel .swiper-button-next {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
}

.artwork-carousel .swiper-button-prev:hover,
.artwork-carousel .swiper-button-next:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.1);
}

.artwork-carousel .swiper-button-prev::after,
.artwork-carousel .swiper-button-next::after {
    font-size: 18px;
    font-weight: bold;
    color: #1a1a1a;
}

.artwork-carousel .swiper-button-prev {
    left: 20px;
}

.artwork-carousel .swiper-button-next {
    right: 20px;
}

/* Mobile: Remove button effect from carousel arrows */
@media (max-width: 767px) {
    .artwork-carousel .swiper-button-prev,
    .artwork-carousel .swiper-button-next {
        width: 40px;
        height: 40px;
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
        border: none !important;
    }

    .artwork-carousel .swiper-button-prev::before,
    .artwork-carousel .swiper-button-next::before,
    .artwork-carousel .swiper-button-prev::after,
    .artwork-carousel .swiper-button-next::after {
        background: transparent !important;
        background-color: transparent !important;
        box-shadow: none !important;
        border-radius: 0 !important;
    }

    .artwork-carousel .swiper-button-prev::after,
    .artwork-carousel .swiper-button-next::after {
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    }

    .artwork-carousel .swiper-button-prev:hover,
    .artwork-carousel .swiper-button-next:hover {
        background: transparent !important;
        background-color: transparent !important;
        transform: none;
    }

    .artwork-carousel .swiper-button-prev {
        left: 10px;
    }

    .artwork-carousel .swiper-button-next {
        right: 10px;
    }
}

/* Pagination dots */
.artwork-carousel .swiper-pagination {
    bottom: 20px;
}

.artwork-carousel .swiper-pagination-bullet {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 1;
}

.artwork-carousel .swiper-pagination-bullet-active {
    background: rgba(255, 255, 255, 1);
}

/* Legacy Gallery Thumbnails (keeping for compatibility) */
.artwork-gallery {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    opacity: 0;
    transform: translateY(15px);
    transition: opacity 0.8s ease 0.5s, transform 0.8s ease 0.5s;
}

@media (min-width: 768px) {
    .artwork-gallery {
        margin-top: 0;
        margin-left: auto;
        padding-right: 1rem;
    }
}

.artwork-section.is-visible .artwork-gallery {
    opacity: 1;
    transform: translateY(0);
}

.artwork-gallery .gallery-thumb {
    width: 45px;
    height: 45px;
    margin: 0;
    overflow: hidden;
    cursor: pointer;
    border: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

@media (min-width: 768px) {
    .artwork-gallery .gallery-thumb {
        width: 55px;
        height: 55px;
    }
}

.artwork-gallery .gallery-thumb:hover {
    border-color: rgba(0, 0, 0, 0.3);
    transform: scale(1.05);
}

.artwork-gallery .gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Scroll Progress Indicator */
.scroll-progress {
    position: absolute;
    left: clamp(1rem, 3vw, 2rem);
    top: 50%;
    transform: translateY(-50%);
    width: 2px;
    height: 50px;
    background: rgba(0, 0, 0, 0.08);
    z-index: 3;
}

.scroll-progress::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 0%;
    background: var(--portfolio-text);
    transition: height 0.3s ease;
}

.artwork-section.is-visible .scroll-progress::after {
    height: 100%;
    transition: height 1.2s ease;
}

/* Hide divider */
.artwork-divider {
    display: none;
}

/* Artwork Grid - Professional gallery masonry layout */
.artwork-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: clamp(3rem, 8vw, 6rem);
}

@media (min-width: 768px) {
    .artwork-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: clamp(2rem, 5vw, 4rem);
    }
}

@media (min-width: 1200px) {
    .artwork-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Artwork Item */
.artwork-item {
    position: relative;
    opacity: 0;
    transform: translateY(60px);
}

/* Alternate sizing for visual interest */
@media (min-width: 768px) {
    .artwork-item:nth-child(3n+1) {
        grid-column: span 1;
    }

    .artwork-item:nth-child(5n+1) {
        transform-origin: center;
    }
}

.artwork-image-wrapper {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #fafafa;
}

.artwork-image {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                filter 0.6s ease;
    filter: grayscale(0%);
}

.artwork-item:hover .artwork-image {
    transform: scale(1.03);
}

.artwork-placeholder {
    width: 100%;
    aspect-ratio: 3/4;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #f8f8f8 0%, #f0f0f0 100%);
    color: var(--portfolio-text-muted);
    font-size: 1rem;
    font-style: italic;
}

/* Artwork Overlay - Minimal elegant style */
.artwork-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(0, 0, 0, 0.6) 0%,
        rgba(0, 0, 0, 0) 50%
    );
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 2rem;
    opacity: 0;
    transition: opacity 0.5s ease;
}

.artwork-item:hover .artwork-overlay {
    opacity: 1;
}

.artwork-view {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.25em;
    color: #ffffff;
    padding: 0.875rem 2rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    background: transparent;
    text-decoration: none;
    transition: all 0.3s ease;
    display: inline-block;
}

.artwork-view:hover {
    background: #ffffff;
    color: #000000;
    border-color: #ffffff;
}

/* Artwork Info - Elegant typography */
.artwork-info {
    padding: 1.5rem 0 0 0;
}

.artwork-name {
    font-size: 1.25rem;
    font-weight: 300;
    margin: 0 0 0.5rem;
    color: var(--portfolio-text);
    letter-spacing: 0.02em;
}

.artwork-material {
    font-size: 0.75rem;
    color: var(--portfolio-text-muted);
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    font-weight: 400;
}

/* Artwork Lightbox Trigger */
.artwork-item .lightbox-trigger {
    position: absolute;
    top: 1.5rem;
    right: 1.5rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: all 0.3s ease;
}

.artwork-item:hover .lightbox-trigger {
    opacity: 1;
    transform: translateY(0);
}

/* No posts message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 6rem 2rem;
    color: var(--portfolio-text-muted);
    font-size: 1.125rem;
    font-style: italic;
}

/* Legacy Portfolio Grid - keeping for compatibility */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: var(--portfolio-gap);
}

@media (min-width: 768px) {
    .portfolio-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .portfolio-item:nth-child(6n+1) { grid-row: span 2; }
    .portfolio-item:nth-child(6n+4) { grid-row: span 2; }
}

@media (min-width: 1200px) {
    .portfolio-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .portfolio-item:nth-child(8n+1) { grid-row: span 2; }
    .portfolio-item:nth-child(8n+5) { grid-row: span 2; }
    .portfolio-item:nth-child(8n+3) { grid-row: span 1; }
}

/* Portfolio Item */
.portfolio-item {
    position: relative;
    border-radius: var(--portfolio-radius);
    overflow: hidden;
    opacity: 0;
    transform: translateY(60px);
}

.portfolio-item.is-hidden {
    display: none;
}

.portfolio-link {
    display: block;
    text-decoration: none;
    color: inherit;
    height: 100%;
}

.portfolio-image-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 280px;
    overflow: hidden;
    background: var(--portfolio-bg-secondary);
}

.portfolio-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.portfolio-placeholder {
    width: 100%;
    height: 100%;
    min-height: 280px;
    background: linear-gradient(135deg, #e8e8e8 0%, #f0f0f0 100%);
}

/* Portfolio Overlay */
.portfolio-overlay {
    position: absolute;
    inset: 0;
    background: var(--portfolio-overlay);
    display: flex;
    align-items: flex-end;
    padding: 2rem;
    opacity: 0;
    transition: var(--portfolio-transition);
}

.portfolio-item:hover .portfolio-overlay {
    opacity: 1;
}

.overlay-content {
    transform: translateY(20px);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.1s;
}

.portfolio-item:hover .overlay-content {
    transform: translateY(0);
}

.portfolio-title {
    font-size: 1.5rem;
    font-weight: 400;
    margin: 0 0 0.5rem;
    line-height: 1.2;
    color: var(--portfolio-text);
}

.portfolio-category {
    display: inline-block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--portfolio-text-muted);
    margin-bottom: 1rem;
}

.view-project {
    display: inline-block;
    font-size: 0.875rem;
    color: var(--portfolio-text);
    border-bottom: 1px solid var(--portfolio-text);
    padding-bottom: 2px;
}

/* Lightbox Trigger Button */
.lightbox-trigger {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.8);
    transition: var(--portfolio-transition);
    z-index: 10;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.lightbox-trigger svg {
    width: 18px;
    height: 18px;
    color: #1a1a1a;
}

.portfolio-item:hover .lightbox-trigger {
    opacity: 1;
    transform: scale(1);
}

.lightbox-trigger:hover {
    background: rgba(0, 0, 0, 0.1);
}

/* About Section */
.about-section {
    padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
    background: var(--portfolio-bg-secondary);
}

.about-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.about-content p {
    font-size: clamp(1rem, 2vw, 1.125rem);
    line-height: 1.8;
    color: var(--portfolio-text-muted);
    margin: 0 0 0.5rem;
}

.about-section .section-title {
    margin-bottom: 2.5rem;
}

/* About Intro - Portrait + Vita side by side */
.about-intro {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    margin-bottom: 3rem;
    text-align: center;
}

@media (min-width: 768px) {
    .about-intro {
        flex-direction: row;
        align-items: flex-start;
        text-align: left;
        gap: 3rem;
    }
}

.about-portrait {
    flex-shrink: 0;
}

.about-portrait img {
    width: 100%;
    max-width: 260px;
    height: auto;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

@media (min-width: 768px) {
    .about-portrait img {
        max-width: 300px;
    }
}

.about-vita {
    flex: 1;
}

.about-vita h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    margin: 0 0 1rem;
    color: var(--portfolio-text);
}

.about-vita p {
    margin: 0 0 0.5rem;
}

.about-block {
    margin-bottom: 2.5rem;
}

.about-block h3 {
    font-family: var(--font-heading);
    font-size: clamp(1.25rem, 3vw, 1.75rem);
    font-weight: 400;
    margin: 0 0 1rem;
    color: var(--portfolio-text);
}

.about-credit {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.about-credit p {
    font-size: 0.9rem;
    color: var(--portfolio-text-muted);
}

.about-credit a {
    color: var(--portfolio-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.3s ease;
}

.about-credit a:hover {
    border-bottom-color: var(--portfolio-text);
}

/* Contact Section */
.contact-section {
    padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
    text-align: center;
}

.contact-content {
    max-width: 600px;
    margin: 0 auto;
}

.contact-email a {
    font-size: clamp(1.25rem, 3vw, 2rem);
    color: var(--portfolio-text);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: var(--portfolio-transition);
}

.contact-email a:hover {
    border-bottom-color: var(--portfolio-text);
}

/* Contact Form */
.contact-form {
    max-width: 500px;
    margin: 2rem auto 0;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
}

@media (max-width: 600px) {
    .form-row {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

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

.form-group label {
    display: block;
    font-family: var(--portfolio-font-secondary);
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
    color: var(--portfolio-text);
}

.form-group .required {
    color: #c00;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    font-family: var(--portfolio-font-primary);
    font-size: 1rem;
    color: var(--portfolio-text);
    background: var(--portfolio-bg);
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 2px;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--portfolio-text);
    box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.05);
}

.form-group input.error,
.form-group textarea.error {
    border-color: #c00;
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Honeypot field - hidden from users */
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}

.form-actions {
    text-align: center;
    margin-top: 0.5rem;
}

.submit-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 180px;
    padding: 1rem 2rem;
    font-family: var(--portfolio-font-secondary);
    font-size: 0.9rem;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--portfolio-bg);
    background: var(--portfolio-text);
    border: 2px solid var(--portfolio-text);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
    color: var(--portfolio-text);
    background: transparent;
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.submit-btn .btn-loading {
    display: none;
}

.submit-btn.is-loading .btn-text {
    display: none;
}

.submit-btn.is-loading .btn-loading {
    display: inline;
}

.form-message {
    margin-top: 1.5rem;
    padding: 0;
    text-align: center;
    font-family: var(--portfolio-font-primary);
    font-size: 0.95rem;
    opacity: 0;
    transform: translateY(-10px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.form-message.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.form-message.success {
    color: #2e7d32;
}

.form-message.error {
    color: #c00;
}

/* Legal Pages (Impressum, Datenschutz) */
.legal-page-section {
    min-height: calc(100vh - 100px);
    padding: clamp(4rem, 10vw, 8rem) clamp(1rem, 4vw, 4rem);
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.legal-page-content {
    max-width: 700px;
    width: 100%;
}

.legal-page-content .section-title {
    font-family: var(--font-heading);
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 300;
    margin-bottom: 2rem;
    opacity: 1;
    transform: none;
}

.legal-page-body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.8;
    color: var(--portfolio-text);
}

.legal-page-body h2,
.legal-page-body h3,
.legal-page-body h4 {
    font-family: var(--font-heading);
    font-weight: 400;
    margin-top: 2rem;
    margin-bottom: 1rem;
}

.legal-page-body h2 {
    font-size: 1.5rem;
}

.legal-page-body h3 {
    font-size: 1.25rem;
}

.legal-page-body p {
    margin-bottom: 1rem;
}

.legal-page-body a {
    color: var(--portfolio-text);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.legal-page-body a:hover {
    opacity: 0.6;
}

.legal-page-body ul,
.legal-page-body ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.legal-page-body li {
    margin-bottom: 0.5rem;
}

.legal-page-back {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
}

.back-link {
    font-family: var(--font-body);
    font-size: 0.9rem;
    color: var(--portfolio-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.6;
}

/* Portfolio Footer */
.portfolio-footer {
    padding: 2rem 1rem;
    text-align: center;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    background: var(--portfolio-bg);
}

.footer-content {
    max-width: var(--portfolio-max-width);
    margin: 0 auto;
}

.footer-links {
    margin-bottom: 0.75rem;
}

.footer-links a {
    font-family: var(--font-body);
    font-size: 0.85rem;
    color: var(--portfolio-text);
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.footer-links a:hover {
    opacity: 0.6;
}

.footer-divider {
    margin: 0 0.75rem;
    color: var(--portfolio-text-muted);
}

.footer-copyright {
    font-family: var(--font-body);
    font-size: 0.8rem;
    color: var(--portfolio-text-muted);
    margin: 0;
}

/* PhotoSwipe Custom Styles - Light Theme */
.pswp {
    --pswp-bg: rgba(255, 255, 255, 0.98);
    --pswp-placeholder-bg: #f5f5f5;
    --pswp-icon-color: #1a1a1a;
    --pswp-icon-color-secondary: #666;
    --pswp-error-text-color: #1a1a1a;
    visibility: hidden;
    opacity: 0;
}

.pswp--open {
    visibility: visible;
    opacity: 1;
}

.pswp__bg {
    background: var(--pswp-bg) !important;
}

/* Top bar styling */
.pswp__top-bar {
    background: transparent !important;
}

/* Button styling */
.pswp__button {
    color: var(--pswp-icon-color) !important;
    opacity: 0.85;
    transition: opacity 0.2s ease;
}

.pswp__button:hover {
    opacity: 1;
}

.pswp__button--close,
.pswp__button--zoom {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    width: 44px !important;
    height: 44px !important;
    margin: 8px !important;
}

/* Arrow buttons */
.pswp__button--arrow {
    background: rgba(255, 255, 255, 0.9) !important;
    border-radius: 50%;
    width: 50px !important;
    height: 50px !important;
}

.pswp__button--arrow--prev {
    left: 20px !important;
}

.pswp__button--arrow--next {
    right: 20px !important;
}

/* Counter styling */
.pswp__counter {
    color: var(--pswp-icon-color) !important;
    font-family: var(--font-body);
    font-size: 0.875rem;
    opacity: 0.7;
}

/* Custom caption */
.pswp__custom-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    font-family: var(--font-body);
    font-size: 0.95rem;
    color: #333;
    max-width: 90%;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 6px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    z-index: 10;
    pointer-events: none;
    white-space: nowrap;
    overflow: visible;
}

.pswp__custom-caption:empty {
    display: none;
}

/* Image styling */
.pswp__img {
    border-radius: 8px;
}

/* Zoom indicator */
.pswp__zoom-wrap {
    will-change: transform;
}

/* Mobile adjustments */
@media (max-width: 767px) {
    .pswp__button--close,
    .pswp__button--zoom {
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .pswp__button--arrow {
        width: 40px !important;
        height: 40px !important;
        background: transparent !important;
        border-radius: 0 !important;
        box-shadow: none !important;
    }

    .pswp__button--arrow--prev {
        left: 10px !important;
    }

    .pswp__button--arrow--next {
        right: 10px !important;
    }

    .pswp__custom-caption {
        font-size: 0.85rem;
        bottom: 16px;
        padding: 8px 16px;
    }
}

/* Ensure caption container doesn't clip */
.pswp__container {
    overflow: visible !important;
}

/* Animation States */
[data-animate] {
    opacity: 0;
    transform: translateY(40px);
}

[data-animate].is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* No Posts Message */
.no-posts-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    color: var(--portfolio-text-muted);
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Hide default WordPress styles on portfolio home */
.portfolio-home .site-header,
.portfolio-home .site-footer {
    display: none;
}

/* Mobile Adjustments */
@media (max-width: 767px) {
    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .portfolio-item:nth-child(n) {
        grid-row: span 1;
    }

    .portfolio-image-wrapper {
        min-height: 250px;
    }

    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev,
    .lightbox-next {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }

    .lightbox-prev { left: 0.75rem; }
    .lightbox-next { right: 0.75rem; }
}

/* ================================
   ARTWORK DETAIL PAGE
   ================================ */

.artwork-detail {
    background: #ffffff;
    min-height: 100vh;
    font-family: var(--font-body);
}

.artwork-detail h1,
.artwork-detail h2 {
    font-family: var(--font-heading);
}

/* Back Navigation */
.artwork-nav {
    padding: 2rem clamp(1.5rem, 5vw, 4rem);
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    z-index: 100;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 0.75rem;
    color: #1a1a1a;
    text-decoration: none;
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    transition: opacity 0.3s ease;
}

.back-link:hover {
    opacity: 0.6;
}

/* Artwork Header */
.artwork-header {
    text-align: center;
    padding: 3rem clamp(1.5rem, 5vw, 4rem) 4rem;
    max-width: 900px;
    margin: 0 auto;
}

.artwork-detail-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 300;
    margin: 0 0 1rem;
    letter-spacing: 0.05em;
}

.artwork-detail-category {
    font-size: 0.875rem;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    color: #888;
    margin: 0;
}

/* Main Image */
.artwork-main-image {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.artwork-main-image .main-image {
    width: 100%;
    height: auto;
    display: block;
}

/* Description */
.artwork-description {
    max-width: 700px;
    margin: 4rem auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
    font-size: 1.125rem;
    line-height: 1.9;
    color: #444;
}

.artwork-description p {
    margin-bottom: 1.5rem;
}

/* Gallery Section */
.artwork-gallery {
    max-width: 1400px;
    margin: 5rem auto;
    padding: 0 clamp(1.5rem, 5vw, 4rem);
}

.gallery-title {
    font-size: 1.5rem;
    font-weight: 300;
    text-align: center;
    margin-bottom: 3rem;
    letter-spacing: 0.1em;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 2rem;
    }
}

.gallery-item {
    margin: 0;
}

.gallery-link {
    display: block;
    overflow: hidden;
}

.gallery-link img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.6s ease;
}

.gallery-link:hover img {
    transform: scale(1.03);
}

/* Artwork Meta */
.artwork-footer-meta {
    max-width: 900px;
    margin: 4rem auto;
    padding: 3rem clamp(1.5rem, 5vw, 4rem);
    border-top: 1px solid #eee;
}

.meta-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3rem;
    margin: 0;
}

.meta-item {
    text-align: center;
}

.meta-item dt {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 0.5rem;
}

.meta-item dd {
    font-size: 1.125rem;
    color: #1a1a1a;
    margin: 0;
}

/* Pagination */
.artwork-pagination {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid #eee;
}

.pagination-link {
    display: flex;
    flex-direction: column;
    padding: 2.5rem clamp(1.5rem, 5vw, 4rem);
    text-decoration: none;
    color: #1a1a1a;
    transition: background 0.3s ease;
}

.pagination-link:hover {
    background: #f9f9f9;
}

.pagination-link.next {
    text-align: right;
    border-left: 1px solid #eee;
}

.pagination-link.disabled {
    pointer-events: none;
}

.pagination-label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: #888;
    margin-bottom: 0.5rem;
}

.pagination-title {
    font-family: var(--font-heading);
    font-size: 1.25rem;
    font-weight: 300;
}

