/* RESET */
body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #020617;
    color: #ffffff;
}

body {
    overflow-x: hidden;
}

/* HEADER */
header {
    text-align: center;
    padding: 40px 20px 10px;
}

header h1 {
    font-size: 48px;
    margin: 0;
}

header p {
    font-size: 14px;
    opacity: 0.7;
}

/* GRID */
.home-grid {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 15px;
    padding: 15px;
    max-width: 1400px;
    margin: 0 auto;
    box-sizing: border-box;
}

@media (max-width: 900px) {
    .home-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.home-item {
    min-width: 0;
}

/* ITEM */
.home-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    min-width: 0;
}

.home-item img {
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

/* IMAGE */
.home-item img {
    width: 100%;
    height: auto;
    display: block;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.home-item img:hover {
    transform: scale(1.05);
}

/* INFO BLOK */
.art-info {
    width: 100%;
    padding: 8px 5px 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

/* TITEL */
.art-title {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* BUTTON */
.buy-btn {
    display: inline-block;
    padding: 6px 12px;
    font-size: 12px;
    text-decoration: none;
    transition: all 0.2s ease;
    white-space: nowrap;
    border-radius: 4px;
    font-weight: 500;
}

/* AVAILABLE */
.buy-btn.available {
    background: #ff6a00;
    color: #fff;
    border: 1px solid #ff6a00;
}

/* RESERVED */
.buy-btn.reserved {
    background: #2ecc71;
    color: #000;
    border: 1px solid #2ecc71;
}

/* SOLD */
.buy-btn.sold {
    background: gold;
    color: #000;
    border: 1px solid gold;
}
.buy-btn.reserved,
.buy-btn.sold {
    cursor: default;
}

/* hover */
.buy-btn:hover {
    opacity: 0.85;
}

.refresh-btn {
    background: #ff6600;
    color: #fff;
    border: none;
    padding: 10px 14px;
    font-size: 14px;
    cursor: pointer;
    border-radius: 4px;
    margin-left: 10px;
    transition: opacity 0.2s ease;
}

.refresh-btn:hover {
    opacity: 0.85;
}

/* MODAL (POPUP) */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    justify-content: center;
    align-items: center;
	touch-action: auto;
}
#modal-img {
    width: 500px;
    height: 500px;
    object-fit: contain;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

/* POPUP IMAGE */
#modal-img {
    width: 500px;
    height: 500px;
    object-fit: contain;
}

/* HEADER FIX */
.home-header {
    width: 100%;
    padding: 20px 15px 10px;
}

.home-header h1 {
    width: 100%;
    font-size: 26px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.logo-wrap img {
    height: 50px;
}

.insta-link {
    display: inline-flex;
    align-items: center;
}

.insta-icon {
    width: 28px;
    height: 28px;
}

.subtext {
    font-size: 14px;
    opacity: 0.7;
    margin-top: 10px;
    text-align: center;
    width: 100%;
}


.modal-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.modal-info {
    margin-top: 10px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.nav {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    user-select: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;           /* 🔥 boven alles */
}

.prev {
    left: 0;
}

.next {
    right: 0;
}

.modal-close {
    position: fixed;          /* belangrijk: niet absolute */
    top: 15px;
    right: 15px;
    font-size: 30px;
    color: white;
    cursor: pointer;
    user-select: none;
    z-index: 10002;           /* boven alles */
    background: rgba(0,0,0,0.4);
    padding: 6px 10px;
    border-radius: 6px;
}
}

/* MOBILE HEADER FIX */
@media (max-width: 700px) {

    .home-header h1 {
        font-size: 26px;
        flex-direction: row;
        flex-wrap: nowrap;
        justify-content: center;
        gap: 8px;
    }

    .logo-wrap img {
        height: 28px;
    }

    .insta-icon {
        width: 20px;
        height: 20px;
    }

    .subtext {
        font-size: 12px;
        padding: 0 10px;
    }

}

.home-header h1 {
    width: 100%;
    font-size: 26px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: center;   /* CENTEREN */
    gap: 10px;
    flex-wrap: nowrap;         /* 🔥 GEEN REGELBREUK */
}

.title-text {
    white-space: nowrap;
}
/* IMAGE WRAPPER */
.art-image-wrapper {
    position: relative;
    width: 100%;
}

/* OVERLAY BASIS */
.art-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 18px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 2px;

    background: rgba(0,0,0,0.7);
    font-size: 20px;
    letter-spacing: 3px;
	
	}

	/* SOLD */
	.art-overlay.sold {
    background: rgba(0,0,0,0.3);
    color: rgba(255, 215, 0, 0.8);
		opacity: 0.6;
	}

	/* RESERVED */
	.art-overlay.reserved {
	background: rgba(0,0,0,0.3);
	color: rgba(46, 204, 113, 0.8);
		opacity: 0.7;
	}

.controls select {
    padding: 6px 12px;
    background: #ff6a00;
    color: #fff;
    border: 1px solid #ff6a00;
    border-radius: 4px;
    font-size: 12px;
    cursor: pointer;
}
.controls {
    max-width: 1400px;
    margin: 10px auto;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    gap: 10px;
}
/* INTRO */
.intro-block {
    max-width: 1200px;
    margin: 40px auto 30px;
    padding: 0 20px;

    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 40px;
    align-items: center;
}

/* LINKS (TEKST) */
.intro-left {
    font-size: 15px;
    line-height: 1.3; 
    opacity: 0.85;
}
.intro-left p {
    margin: 6px 0;
}

.intro-left h2 {
    font-size: 22px;
    margin-bottom: 15px;
}

/* VISUAL GRID */
.intro-right {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}


/* IMAGES */
.intro-right img {
    width: 100%;
    max-width: 160px;
    aspect-ratio: 1 / 1;
    object-fit: cover;

    border-radius: 6px;
    transition: transform 0.2s ease;
}

.intro-right img:hover {
    transform: scale(1.05);
}
/* CENTER VISUAL BLOCK */
.intro-right {
    justify-content: center;
}

/* MOBILE */
@media (max-width: 700px) {

    .intro-block {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .intro-right {
        margin-top: 20px;
        justify-content: center;
    }

}
/* GROTERE SCHERMEN */
@media (min-width: 1200px) {
    .intro-right img {
        max-width: 180px;
    }
}