/**
 * Artist Projects CSS
 * Styling voor 3-stappen project weergave
 */

/* ==========================================================================
   Reset & Base
   ========================================================================== */
   body {
    background: black;
}
.artist-project-single {
    margin: 0;
    padding: 0;
    position: relative;
    background: #000000;
    min-height: 100vh;
}

/* Mobiel: geen horizontale scroll (lange woorden / flex); geen 100vw op body (scrollbar-bug) */
@media (max-width: 768px) {
    html {
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        max-width: 100%;
    }

    .artist-project-single,
    .sculptures-archive {
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }

    .detail-meta-row dd,
    .detail-title,
    .project-summary-text {
        overflow-wrap: anywhere;
        word-break: break-word;
    }

    .detail-layout,
    .detail-view,
    .project-detail-view,
    .project-gallery-layout {
        max-width: 100%;
        box-sizing: border-box;
    }
}

/* ==========================================================================
   STAP 1: Galerij weergave (20% samenvatting, 80% grid) - direct zichtbaar
   ========================================================================== */

.project-gallery {
    display: block;
    min-height: 100vh;
    padding: 40px 0;
    background: #000;
}

.project-gallery-layout {
    display: grid;
    grid-template-columns: 20% 80%;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .project-gallery-layout {
        grid-template-columns: 25% 75%;
    }
}

@media (max-width: 992px) {
    .project-gallery-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Links: Samenvatting sidebar */
.project-summary-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

@media (max-width: 992px) {
    .project-summary-sidebar {
        position: relative;
        top: 0;
    }
}

.project-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #fff;
}

.project-summary-text {
    font-size: 1.20rem;
    line-height: 1.7;
    color: #f9f9f9;
    margin-bottom: 30px;
}

.project-description-text {
    font-size: 1rem;
    line-height: 1.7;
    color: #555555;
}

/* Rechts: Galerij grid */
.project-gallery-grid-wrap {
    width: 100%;
}

/* Per-project kolommen: standaard 5, overschrijf met class project-gallery-grid-cols-X */
.project-gallery-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
	row-gap: 25px;
}

.project-gallery-grid-cols-1 { grid-template-columns: 1fr; }
.project-gallery-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
.project-gallery-grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
.project-gallery-grid-cols-4 { grid-template-columns: repeat(4, 1fr); }
.project-gallery-grid-cols-5 { grid-template-columns: repeat(5, 1fr); }
.project-gallery-grid-cols-6 { grid-template-columns: repeat(6, 1fr); }
.project-gallery-grid-cols-7 { grid-template-columns: repeat(7, 1fr); }

@media (max-width: 1200px) {
    .project-gallery-grid-cols-6,
    .project-gallery-grid-cols-7 {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 992px) {
    .project-gallery-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .project-gallery-grid-cols-1 { grid-template-columns: 1fr; }
    .project-gallery-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .project-gallery-grid-cols-3,
    .project-gallery-grid-cols-4,
    .project-gallery-grid-cols-5,
    .project-gallery-grid-cols-6,
    .project-gallery-grid-cols-7 {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .project-gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .project-gallery-grid-cols-1 { grid-template-columns: 1fr; }
    .project-gallery-grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .project-gallery-grid-cols-3,
    .project-gallery-grid-cols-4,
    .project-gallery-grid-cols-5,
    .project-gallery-grid-cols-6,
    .project-gallery-grid-cols-7 {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 576px) {
    .project-gallery-grid,
    .project-gallery-grid-cols-1,
    .project-gallery-grid-cols-2,
    .project-gallery-grid-cols-3,
    .project-gallery-grid-cols-4,
    .project-gallery-grid-cols-5,
    .project-gallery-grid-cols-6,
    .project-gallery-grid-cols-7 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.gallery-item-no-image {
    width: 100%;
    height: 100%;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
    font-size: 0.85rem;
}

.no-installations {
    text-align: center;
    font-size: 1.1rem;
    color: #666666;
    padding: 60px 20px;
}

/* ==========================================================================
   STAP 2: Detail / product weergave
   ========================================================================== */

.project-detail-view {
    position: relative;
    background: #000000;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.detail-view {
    display: none;
    min-height: 100vh;
    padding: 15px 0px;
    background: #000;
	width: 100%;
    max-width: 1100px;
	justify-self: center;
}

.detail-view.visible {
    display: block;
}

.detail-close, a.detail-close {
    filter: drop-shadow(0 0 .2px #fff);
    cursor: pointer;
    background: transparent;
    z-index: 100;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}


/* Installatie navigatie: mobiel pijlen naast meta; desktop pijlen onder .detail-metadata-list */
.detail-meta-installation-nav {
    display: none;
}

.detail-meta-nav-left-column {
    flex-shrink: 0;
    font-size: 1rem;
    box-sizing: border-box;
}

/* Eén rij: terug + vorige/volgende installatie (icoonknoppen naast elkaar); .detail-meta staat in de shell daaronder gecentreerd */
.detail-meta-nav-controls {
    display: -webkit-flex;
    display: flex;
    -webkit-flex-direction: row;
    flex-direction: row;
    -webkit-flex-wrap: nowrap;
    flex-wrap: nowrap;
    -webkit-align-items: center;
    align-items: center;
    -webkit-justify-content: center;
    justify-content: center;
    gap: 10px 18px;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-meta-nav-controls .detail-close,
.detail-meta-nav-controls a.detail-close {
    position: static;
    left: auto;
    right: auto;
    top: auto;
    border: none;
    padding: 0;
    margin: 0;
    flex-shrink: 0;
}

.detail-meta-nav-controls .detail-close img,
.detail-meta-nav-controls a.detail-close img {
    display: block;
    width: 75px;
    height: 66px;
    max-width: 75px;
    max-height: 66px;
    object-fit: contain;
}

.detail-meta-nav-shell {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 20px 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.detail-meta-nav-shell .detail-meta {
    flex: 0 1 auto;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    align-self: center;
    box-sizing: border-box;
}

/* Geen margin-left:auto op installatie-pijl: in WebKit/Safari breekt dat de flex-rij (wrap / verkeerde plek). */

.detail-meta-nav-controls > * {
    flex: 0 0 auto;
}

@media (min-width: 993px) {
    /* Pijlen staan in .detail-meta-nav-controls; placeholder in .detail-meta-installation-nav blijft leeg */
    .detail-meta-installation-nav {
        display: none !important;
    }

    .detail-meta-nav-shell {
        gap: 24px 0;
		max-width: 85vw;
        align-self: center;
    }

    .detail-meta-nav-controls {
        gap: 16px 24px;
    }
}

/* Vaste knop- en icoonmaat: voorkomt verschuivende pijlen bij wisselende titel/video */
.installation-nav-prev,
.installation-nav-next {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    box-sizing: border-box;
    width: 75px;
    height: 66px;
    min-width: 75px;
    min-height: 66px;
    max-height: 66px;
    padding: 0;
    margin: 0;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    transition: transform 0.2s ease, opacity 0.2s ease;
    align-self: center;
    -webkit-tap-highlight-color: transparent;
}

a.installation-nav-link.installation-nav-prev,
a.installation-nav-link.installation-nav-next {
    text-decoration: none;
}

.installation-nav-placeholder.installation-nav-prev,
.installation-nav-placeholder.installation-nav-next {
    visibility: hidden;
    pointer-events: none;
    cursor: default;
}

.installation-nav-prev img,
.installation-nav-next img {
    display: block;
    width: 75px;
    height: 66px;
    max-width: 75px;
    max-height: 66px;
    object-fit: contain;
    flex-shrink: 0;
}

.installation-nav-prev:not(.installation-nav-placeholder):hover,
.installation-nav-next:not(.installation-nav-placeholder):hover {
    transform: scale(1.05);
}

.installation-nav-prev svg,
.installation-nav-next svg {
    flex-shrink: 0;
}

@media (max-width: 992px) {


    .detail-meta-nav-controls {
        gap: 6px 10px;
    }

    .detail-meta-nav-controls .detail-close img,
    .detail-meta-nav-controls a.detail-close img {
        width: 44px;
        height: 44px;
        max-width: 44px;
        max-height: 44px;
    }

    .installation-nav-prev span,
    .installation-nav-next span {
        display: none;
    }

    .installation-nav-prev,
    .installation-nav-next {
        width: 44px;
        height: 44px;
        min-width: 44px;
        min-height: 44px;
        max-height: 44px;
    }

    .installation-nav-prev img,
    .installation-nav-next img {
        width: 44px;
        height: 44px;
        max-width: 44px;
        max-height: 44px;
    }
}

/* Standalone sculptures: zelfde .installation-nav-* als project (geen .sculpture-navigation meer) */

.detail-layout {
    display: grid;
    grid-template-columns: 25% 75%;
    gap: 60px;
    margin: 0 auto;
    align-items: start;
}

@media (max-width: 992px) {
    .detail-layout {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Links: Metadata */
.detail-meta {
    align-self: center;
}

/**
 * Detail titel + metadata gecentreerd op smalle schermen (gestapelde layout).
 * Hoge specificiteit + !important: veel thema's zetten .entry-content h2 / dl naar links.
 */
@media (max-width: 992px) {
    .artist-project-single .project-detail-view .detail-view .detail-layout .detail-meta {
        position: relative;
        top: 0;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: center !important;
        width: 100%;
        max-width: 100%;
        margin-left: auto !important;
        margin-right: auto !important;
        box-sizing: border-box;
    }

    .artist-project-single .project-detail-view .detail-view .detail-layout .detail-title {
        text-align: center !important;
        width: 100%;
        max-width: 100%;
        justify-self: unset;
        margin-left: auto !important;
        margin-right: auto !important;
    }


    .artist-project-single .project-detail-view .detail-view .detail-layout .detail-meta-row {
        display: flex !important;
    }

    .artist-project-single .project-detail-view .detail-view .detail-layout .detail-meta-row dt,
    .artist-project-single .project-detail-view .detail-view .detail-layout .detail-meta-row dd {
        margin: 0 !important;
        text-align: center !important;
        float: none !important;
		min-width: 25px;
    }
	.lightbox-close {
	  background: none;
	  border: none;
	  padding: 0;

	  /* BELANGRIJK voor mobile */
	  -webkit-tap-highlight-color: transparent;
	}

	.lightbox-close:focus {
	  outline: none;
	}

	.lightbox-close:focus-visible {
	  outline: none; /* of custom zoals hieronder */
	}
    .artist-project-single .project-detail-view .detail-view .detail-layout .detail-meta .videoimg {
        justify-self: unset;
        margin-left: auto !important;
        margin-right: auto !important;
    }
}

/* Vaste ruimte (108px ≈ video-icoon) zodat pagina’s met/zonder video dezelfde hoogte hebben */
.videoimg {
	justify-self: center;
	margin-bottom: 25px;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-sizing: border-box;
}

/* Minimaal 2 tekstregels gereserveerd: minder verspringen tussen korte en lange titels */
.detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
    color: #ffffff;
	justify-self: center;
    min-height: calc(1.2em * 2);
    box-sizing: border-box;
}

.detail-metadata-list {
    margin: 0 0 40px 0;
    border-top: 2px solid #000000;
    box-sizing: border-box;
}

@media (min-width: 993px) {
    .detail-metadata-list {
        min-height: 10rem;
    }
}

@media (max-width: 992px) {
    .detail-metadata-list {
        min-height: 6rem;
    }
}

.detail-meta-row {
    display: grid;
    grid-template-columns: 45px 1fr;
    gap: 20px;
    padding: 0px 0;
}

.detail-meta-row dt {
    font-weight: 700;
    color: #f9f9f9;
    font-size: 1.5rem;
}

.detail-meta-row dd {
    margin: 0;
    color: #f9f9f9;
    font-size: 1.5rem;
}

.detail-description {
    font-size: 1rem;
    line-height: 1.8;
    color: #f9f9f9;
}

/* Foto navigatie: pijlen + rondjes */
.photo-navigation {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.2);
}
.installation-nav-prev img {
    transform: rotate(180deg);
}
.photo-nav-prev,
.photo-nav-next {
    background: transparent;
    color: #ffffff;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.photo-nav-prev:hover,
.photo-nav-next:hover {
    transform: scale(1.2);
}

.photo-nav-prev:disabled,
.photo-nav-next:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.photo-nav-prev:disabled:hover,
.photo-nav-next:disabled:hover {
    background: transparent;
    color: #ffffff;
    transform: scale(1);
}

.photo-dots {
    display: flex;
    gap: 12px;
    align-items: center;
}

.photo-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid #ffffff;
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: all 0.3s ease;
}

.photo-dot:hover {
    transform: scale(1.2);
    background: rgba(255,255,255,0.3);
}

.photo-dot.active {
    background: #ffffff;
    transform: scale(1.3);
}

@media (max-width: 992px) {
    .photo-navigation {
        gap: 15px;
    }
    
    .photo-nav-prev,
    .photo-nav-next {
        width: 36px;
        height: 36px;
    }
    
    .photo-dots {
        gap: 10px;
    }
    
    .photo-dot {
        width: 10px;
        height: 10px;
    }
	.detail-image-area {
		align-self: center;
	}
}

/* Rechts: Afbeeldingen area */
.detail-image-area {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Thumbnails boven grote afbeelding */
.detail-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.detail-thumb {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.detail-thumb:hover {
    transform: scale(1.05);
}

.detail-thumb.active {
    border-color: #ffffff;
}

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

/* Grote afbeelding */
.detail-main-image {
    position: relative;
    width: 100%;
    min-height: 300px;
    max-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image-picture {
    display: none;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 140px);
    cursor: pointer;
}

.detail-image-picture.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.detail-image {
    display: none;
    width: 100%;
    height: auto;
    max-height: calc(100vh - 140px);
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.detail-image.active {
    display: block;
}

/* Standalone images (without picture wrapper) */
.detail-main-image > .detail-image {
    cursor: pointer;
}

.detail-image:hover,
.detail-image-picture:hover .detail-image {
    transform: scale(1.02);
}

/* Responsive aanpassingen voor verschillende schermhoogtes */
@media (max-height: 800px) {
    .detail-main-image {
        max-height: calc(100vh - 120px);
		min-height: 500px;
    }
    
    .detail-image-picture {
        max-height: calc(100vh - 120px);
		min-height: 500px;
    }
    
    .detail-image {
        max-height: calc(100vh - 320px);
		min-height: 500px;
    }
}

@media (max-height: 600px) {
    .detail-main-image {
        max-height: calc(100vh - 100px);
    }
    
    .detail-image-picture {
        max-height: calc(100vh - 100px);
    }
    
    .detail-image {
        max-height: calc(100vh - 100px);
    }
}

/* ==========================================================================
   STAP 3: Lightbox (volledig scherm)
   ========================================================================== */

.project-lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    min-height: -webkit-fill-available;
    background: rgba(0,0,0,0.95);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

/* Voorkomt dubbele/wegsneden hoofdfoto: detail-laag onder lightbox op iOS (100vh) */
body.artist-projects-lightbox-open .detail-view.visible .detail-main-image {
    visibility: hidden !important;
}

.project-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.lightbox-image-container {
    max-width: 90%;
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.lightbox-image {
    max-width: 100%;
    max-height: 85vh;
    max-height: 85dvh;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 4px;
    display: block;
}

/* Lightbox close button (geen witte drop-shadow: WebKit toont dat als harde rand/halo) */
.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    -webkit-appearance: none;
    appearance: none;
    z-index: 10000;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.lightbox-close:hover {
    transform: rotate(90deg);
}

/* Lightbox navigatie pijlen */
.lightbox-prev,
.lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 20px;
    border-radius: 4px;
	background: transparent;
    transition: background 0.3s ease;
    z-index: 10000;
}


.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

@media (max-width: 992px) {
    .lightbox-prev {
        left: 10px;
        padding: 15px;
    }
    
    .lightbox-next {
        right: 10px;
        padding: 15px;
    }
    
    .lightbox-close {
        top: 20px;
        right: 20px;
    }
}

/* ==========================================================================
   Video Lightbox
   ========================================================================== */

.video-lightbox {
    display: flex;
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    min-height: 100vh;
    min-height: 100dvh;
    background: rgba(0,0,0,0.95);
    z-index: 9999999;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    box-sizing: border-box;
    padding-bottom: env(safe-area-inset-bottom, 0px);
}

.video-lightbox.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.video-lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    cursor: pointer;
    padding: 10px;
    -webkit-appearance: none;
    appearance: none;
    z-index: 10000;
    transition: transform 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.video-lightbox-close:hover {
    transform: rotate(90deg);
}

.video-lightbox-container {
    width: 80vw;
    max-width: 1200px;
    max-height: 85vh;
    max-height: 85dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}

.video-lightbox-player {
    width: 100%;
    height: auto;
    max-height: 85vh;
    max-height: 85dvh;
    border-radius: 4px;
    display: block;
    outline: none;
    background: #000;
}

@media (max-width: 992px) {
    .video-lightbox-close {
        top: max(20px, env(safe-area-inset-top));
        right: 20px;
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    .video-lightbox-container {
        width: 95vw;
    }
}

/* ==========================================================================
   Installation Single Page (blijft zoals het was)
   ========================================================================== */

.artist-installation-single {
    padding: 40px 0 80px 0;
}

.installation-content-wrap {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.installation-breadcrumbs {
    font-size: 0.9rem;
    margin-bottom: 30px;
    color: #666666;
}

.installation-breadcrumbs a {
    color: #666666;
    text-decoration: none;
    transition: color 0.3s ease;
}

.installation-breadcrumbs a:hover {
    color: #000000;
}

.breadcrumb-separator {
    margin: 0 10px;
}

.breadcrumb-current {
    color: #000000;
    font-weight: 600;
}

.installation-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .installation-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.installation-header {
    margin-bottom: 30px;
}

.installation-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
    color: #000000;
}

.installation-metadata {
    margin: 0 0 40px 0;
    border-top: 2px solid #000000;
    border-bottom: 1px solid #e0e0e0;
}

.installation-meta-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.installation-meta-row:last-child {
    border-bottom: none;
}

.installation-meta-row dt {
    font-weight: 700;
    color: #000000;
}

.installation-meta-row dd {
    margin: 0;
    color: #333333;
}

.installation-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 40px;
}

.installation-project-link {
    margin-bottom: 40px;
}

.installation-project-link h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000000;
}

.project-link-card {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 15px;
    background: #f8f8f8;
    border-radius: 8px;
    text-decoration: none;
    color: inherit;
    transition: background 0.3s ease, transform 0.3s ease;
}

.project-link-card:hover {
    background: #eeeeee;
    transform: translateX(5px);
}

.project-link-image {
    flex-shrink: 0;
}

.project-link-image img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
}

.project-link-content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.project-link-content strong {
    font-size: 1.05rem;
    color: #000000;
}

.project-link-arrow {
    font-size: 1.5rem;
    color: #666666;
}

.installation-related h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000000;
}

.related-installations-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.related-installations-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.related-installations-list li:last-child {
    border-bottom: none;
}

.related-installations-list a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.related-installations-list a:hover {
    color: #000000;
    text-decoration: underline;
}

.installation-image-column {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

.installation-figure {
    margin: 0;
    width: 100%;
}

.installation-figure img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.installation-no-image {
    width: 100%;
    min-height: 400px;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.installation-no-image p {
    color: #999999;
}

/* ==========================================================================
   Installation Archive Page (Sculptures) - 20% sidebar, 80% grid
   ========================================================================== */

.sculptures-archive {
    background: #000000;
    min-height: 100vh;
    padding: 60px 0;
}

.archive-layout {
    display: grid;
    grid-template-columns: 100%;
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px;
}

@media (max-width: 1200px) {
    .archive-layout {
        grid-template-columns: 25% 75%;
    }
}

@media (max-width: 992px) {
    .archive-layout {
        grid-template-columns: 1fr;
        gap: 30px;
    }
}

/* Links: 20% sidebar met intro */
.archive-sidebar {
    position: sticky;
    top: 40px;
    align-self: start;
}

@media (max-width: 992px) {
    .archive-sidebar {
        position: relative;
        top: 0;
    }
}

.sculptures-archive .archive-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    line-height: 1.2;
    color: #fff;
}

.archive-intro-text {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #f9f9f9;
    margin-bottom: 40px;
}

.archive-intro-text p {
    margin: 0 0 15px 0;
}

/* Filters in sidebar */
.sculptures-filters {
    background: rgba(255,255,255,0.05);
    padding: 25px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.1);
}

.sculptures-filters .filters-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.sculptures-filters .filter-group {
    display: flex;
    flex-direction: column;
}

.sculptures-filters .filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #f9f9f9;
    font-size: 0.95rem;
}

.sculptures-filters .filter-group select {
    padding: 10px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-size: 1rem;
    background: rgba(0,0,0,0.3);
    color: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.sculptures-filters .filter-group select:focus {
    outline: none;
    border-color: rgba(255,255,255,0.5);
}

.sculptures-filters .filter-group select option {
    background: #1a1a1a;
    color: #ffffff;
}

.sculptures-filters .filter-actions {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.sculptures-filters .filter-submit {
    padding: 12px 20px;
    background: rgba(255,255,255,0.9);
    color: #000000;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.sculptures-filters .filter-submit:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

.sculptures-filters .filter-reset {
    padding: 10px 20px;
    color: #f9f9f9;
    text-decoration: none;
    text-align: center;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sculptures-filters .filter-reset:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.4);
}

/* Rechts: 80% grid */
.archive-grid-wrap {
    width: 100%;
}

.sculptures-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
    row-gap: 25px;
    margin-bottom: 40px;
}

@media (max-width: 1400px) {
    .sculptures-grid {
        grid-template-columns: repeat(5, 1fr) !important;
    }
}

@media (max-width: 1200px) {
    .sculptures-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 992px) {
    .sculptures-grid {
        grid-template-columns: repeat(4, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .sculptures-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }
}

@media (max-width: 576px) {
    .sculptures-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

.sculpture-item {
    overflow: hidden;
    border-radius: 4px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sculpture-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(255,255,255,0.15);
}

.sculpture-link {
    display: block;
    text-decoration: none;
}

.sculpture-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.sculpture-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.5s ease;
}

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

.sculpture-no-image {
    width: 100%;
    aspect-ratio: 1;
    background: rgba(255,255,255,0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.3);
    font-size: 0.85rem;
}

/* Pagination voor sculptures */
.sculptures-pagination {
    margin-top: 40px;
}

.sculptures-pagination .pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.sculptures-pagination .pagination-list li a,
.sculptures-pagination .pagination-list li span {
    display: block;
    padding: 10px 15px;
    border: 2px solid rgba(255,255,255,0.2);
    border-radius: 6px;
    text-decoration: none;
    color: #f9f9f9;
    font-weight: 600;
    transition: all 0.3s ease;
}

.sculptures-pagination .pagination-list li a:hover {
    background: rgba(255,255,255,0.9);
    color: #000000;
    border-color: rgba(255,255,255,0.9);
}

.sculptures-pagination .pagination-list li .current {
    background: rgba(255,255,255,0.9);
    color: #000000;
    border-color: rgba(255,255,255,0.9);
}

.no-sculptures-found {
    text-align: center;
    padding: 80px 20px;
}

.no-sculptures-found p {
    font-size: 1.2rem;
    color: #f9f9f9;
    margin-bottom: 20px;
}

.reset-filters-link {
    display: inline-block;
    padding: 12px 30px;
    background: rgba(255,255,255,0.9);
    color: #000000;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-filters-link:hover {
    background: #ffffff;
    transform: translateY(-2px);
}

/* ==========================================================================
   Installation Archive Page (oude stijl - behouden voor backwards compatibility)
   ========================================================================== */

.installations-archive {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 40px;
}

.archive-header {
    text-align: center;
    margin-bottom: 60px;
}

.archive-title {
    font-size: 3rem;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #000000;
}

.archive-description {
    max-width: 700px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.6;
    color: #666666;
}

.installations-filters {
    background: #f8f8f8;
    padding: 30px;
    border-radius: 12px;
    margin-bottom: 60px;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    font-weight: 600;
    margin-bottom: 8px;
    color: #333333;
    font-size: 0.95rem;
}

.filter-group select {
    padding: 10px 15px;
    border: 2px solid #dddddd;
    border-radius: 6px;
    font-size: 1rem;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.3s ease;
}

.filter-group select:focus {
    outline: none;
    border-color: #667eea;
}

.filter-actions {
    display: flex;
    gap: 10px;
    align-items: center;
}

.filter-submit {
    padding: 10px 30px;
    background: #667eea;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.filter-submit:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

.filter-reset {
    padding: 10px 20px;
    color: #666666;
    text-decoration: none;
    border: 2px solid #dddddd;
    border-radius: 6px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.filter-reset:hover {
    background: #eeeeee;
    border-color: #cccccc;
}

.installations-grid-archive {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.installation-archive-item {
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.installation-archive-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 30px rgba(0,0,0,0.15);
}

.installation-archive-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.installation-archive-image {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
}

.installation-archive-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.installation-archive-item:hover .installation-archive-image img {
    transform: scale(1.1);
}

.installation-archive-no-image {
    width: 100%;
    aspect-ratio: 1;
    background: #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999999;
}

.installation-archive-content {
    padding: 20px;
}

.installation-archive-title {
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0 0 10px 0;
    color: #000000;
}

.installation-archive-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 0.9rem;
}

.installation-archive-year,
.installation-archive-project {
    padding: 5px 12px;
    background: #f0f0f0;
    border-radius: 20px;
    color: #666666;
}

.installations-pagination {
    margin-top: 60px;
}

.pagination-list {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination-list li a,
.pagination-list li span {
    display: block;
    padding: 10px 15px;
    border: 2px solid #dddddd;
    border-radius: 6px;
    text-decoration: none;
    color: #333333;
    font-weight: 600;
    transition: all 0.3s ease;
}

.pagination-list li a:hover {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.pagination-list li .current {
    background: #667eea;
    color: #ffffff;
    border-color: #667eea;
}

.no-installations-found {
    text-align: center;
    padding: 80px 20px;
}

.no-installations-found p {
    font-size: 1.2rem;
    color: #666666;
    margin-bottom: 20px;
}

.reset-filters-link {
    display: inline-block;
    padding: 12px 30px;
    background: #667eea;
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.reset-filters-link:hover {
    background: #5568d3;
    transform: translateY(-2px);
}

/* ==========================================================================
   Installation within Project Context
   ========================================================================== */

.artist-installation-in-project {
    padding: 40px 0 80px 0;
}

.installation-in-project-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
}

.back-to-project {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    background: #f0f0f0;
    color: #333333;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 600;
    margin-bottom: 30px;
    transition: all 0.3s ease;
}

.back-to-project:hover {
    background: #e0e0e0;
    transform: translateX(-5px);
    color: #000000;
}

.installation-detail-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 60px;
    margin-top: 40px;
}

@media (max-width: 992px) {
    .installation-detail-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

.installation-detail-title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0 0 30px 0;
    line-height: 1.2;
    color: #000000;
}

.installation-detail-metadata-list {
    margin: 0 0 40px 0;
    border-top: 2px solid #000000;
    border-bottom: 1px solid #e0e0e0;
}

.installation-detail-meta-row {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 20px;
    padding: 20px 0;
    border-bottom: 1px solid #e0e0e0;
}

.installation-detail-meta-row:last-child {
    border-bottom: none;
}

.installation-detail-meta-row dt {
    font-weight: 700;
    color: #000000;
}

.installation-detail-meta-row dd {
    margin: 0;
    color: #333333;
}

.installation-detail-description {
    font-size: 1.05rem;
    line-height: 1.8;
    color: #333333;
    margin-bottom: 40px;
}

.other-installations {
    margin-top: 40px;
}

.other-installations h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0 0 15px 0;
    color: #000000;
}

.other-installations-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.other-installations-list li {
    padding: 10px 0;
    border-bottom: 1px solid #e0e0e0;
}

.other-installations-list li:last-child {
    border-bottom: none;
}

.other-installations-list a {
    color: #333333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.other-installations-list a:hover {
    color: #000000;
    text-decoration: underline;
}

.installation-main-image {
    position: relative;
    width: 100%;
    margin-bottom: 20px;
}

.installation-image {
    display: none;
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    cursor: pointer;
    transition: transform 0.3s ease;
}

.installation-image.active {
    display: block;
}

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

.installation-thumbnails {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.installation-thumb {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border: 3px solid transparent;
    border-radius: 4px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.installation-thumb:hover {
    transform: scale(1.05);
}

.installation-thumb.active {
    border-color: #000000;
}

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

/* Simple Lightbox */
.simple-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0,0,0,0.95);
    z-index: 9999999;
    align-items: center;
    justify-content: center;
}

.simple-lightbox.active {
    display: flex;
}

.simple-lightbox .lightbox-image {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
}

.simple-lightbox .lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    background: transparent;
    border: none;
    color: #ffffff;
    font-size: 50px;
    cursor: pointer;
    line-height: 1;
    padding: 10px;
}

.simple-lightbox .lightbox-prev,
.simple-lightbox .lightbox-next {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    border: none;
    color: #ffffff;
    font-size: 60px;
    cursor: pointer;
    padding: 20px;
    border-radius: 4px;
    line-height: 1;
    transition: background 0.3s ease;
}

.simple-lightbox .lightbox-prev:hover,
.simple-lightbox .lightbox-next:hover {
    background: rgba(255,255,255,0.3);
}

.simple-lightbox .lightbox-prev {
    left: 30px;
}

.simple-lightbox .lightbox-next {
    right: 30px;
}

/* ==========================================================================
   Mobile (768px): project, detail, lightbox, overige templates
   ========================================================================== */

@media (max-width: 992px) {
    .project-intro-no-image .project-title {
        font-size: 2.5rem;
    }

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

    .installation-meta-row {
        grid-template-columns: 1fr;
        gap: 10px;
    }

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

    .filters-form {
        grid-template-columns: 1fr;
    }

    .installations-grid-archive {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .gallery-item {
        min-height: 120px;
    }

    .project-gallery {
        padding: 24px 0;
        padding-top: max(24px, env(safe-area-inset-top));
    }

    .project-gallery-layout {
        padding: 0 20px;
        gap: 24px;
    }

    .project-title {
        font-size: 1.75rem;
        margin-bottom: 16px;
    }

    .project-summary-text,
    .project-description-text {
        font-size: 0.95rem;
    }

    .project-gallery-grid {
        gap: 12px;
        row-gap: 16px;
    }

    .detail-view {
        padding: 24px 0 40px;
        padding-top: max(70px, calc(env(safe-area-inset-top) + 50px));
    }

    .detail-close,
    a.detail-close {
        -webkit-tap-highlight-color: transparent;
    }

    .detail-layout {
        padding: 0 20px;
        gap: 32px;
        display: flex !important;
        flex-direction: column-reverse;
    }

    .detail-title {
        font-size: 1.6rem;
        margin-bottom: 20px;
    }

    .project-detail-view .detail-close {
		color: white !important;
		width: 44px;
		max-width: 44px;
		min-height: 44px;
        max-height: 44px;
		opacity: 0.9;
		margin-top: 5px;
    }

    .detail-meta-row dt,
    .detail-meta-row dd {
        font-size: 1.2rem;
    }

    .detail-metadata-list {
        margin-bottom: 24px;
    }

    .detail-description {
        font-size: 0.95rem;
    }

    .detail-thumb {
        width: 56px;
        height: 56px;
    }

    .detail-thumbnails {
        gap: 8px;
    }

    .photo-navigation {
        gap: 12px;
        margin: 20px 0;
        padding: 16px 0;
    }

    .detail-main-image {
        max-height: 400px !important;
        min-height: 400px !important;
		min-width: 85vw !important;
    }

    .detail-image,
    .detail-image-picture {
        max-height: 400px !important;
        min-height: 400px !important;
    }

    .lightbox-close {
        top: max(20px, env(safe-area-inset-top));
        right: 20px;
        padding: 12px;
        min-width: 44px;
        min-height: 44px;
        -webkit-tap-highlight-color: transparent;
    }

    /* Alleen swipe + sluitknop; geen pijlknoppen */
    .lightbox-prev,
    .lightbox-next {
        display: none !important;
    }

    .lightbox-image-container,
    .lightbox-image {
        max-height: 85dvh;
        max-height: 85vh;
    }
}

@media (max-width: 480px) {
    .project-gallery {
        padding: 20px 0;
    }
    
    .project-gallery-layout {
        padding: 0 16px;
        gap: 20px;
    }
    
    .project-title {
        font-size: 1.5rem;
    }
    
    .project-gallery-grid,
    .project-gallery-grid-cols-1,
    .project-gallery-grid-cols-2,
    .project-gallery-grid-cols-3,
    .project-gallery-grid-cols-4,
    .project-gallery-grid-cols-5,
    .project-gallery-grid-cols-6,
    .project-gallery-grid-cols-7 {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        row-gap: 12px;
    }
    
    .detail-view {
        padding: 20px 0 32px;
    }
    
    .detail-layout {
        padding: 0 16px;
        gap: 24px;
    }
    
    .detail-title {
        font-size: 1.35rem;
    }
    
    .detail-meta-row dt,
    .detail-meta-row dd {
        font-size: 1rem;
    }
    
    .detail-thumb {
        width: 48px;
        height: 48px;
    }
    
    .detail-close,
    a.detail-close {
        right: 16px;
    }
    
    .sculptures-archive {
        padding: 40px 0;
    }
    
    .archive-layout {
        padding: 0 16px;
    }
    
    .sculptures-filters {
        padding: 20px 16px;
    }
}
