.artist-header {
	display: flex;
	flex-direction: row;
	gap: 1rem;
	width: calc(100% - 40px);
	max-width: 1600px;
	margin-bottom: 40px;
	transition: opacity .3s;
}

.artist-photo-container {
	width: 430px;
	height: 430px;
	overflow: hidden;
	aspect-ratio: 1;
	flex-shrink: 0;
}

.artist-photo-container img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.artist-details h1 {
	font-size: 1.8rem;
	margin: 0.5rem 0;
	margin-bottom: 20px;
	font-weight: 600;
}

.artist-details p {
	white-space: pre-line;
	line-height: 1.7;
	font-family: system-ui;
	text-align: justify;
	margin: 0;
}

.artist-exhibitions-wrapper h2 {
    font-size: 1.5rem;
	margin-bottom: 0;
	margin-top: 0;
}

.artist-exhibitions {
    white-space: pre-line;
    line-height: 1.5;
}

.char-count {
    display: block;
    text-align: right;
    font-size: 12px;
    color: #999;
}

.collapsible-section {
    border: 1px solid #818181;
    border-bottom: none;
}

.last-coll-container {
	border-bottom: 1px solid #818181;
}

.collapsible-header {
    padding: 16px;
}

.collapsible-content {
    padding: 0 16px;
}


.collapsible-header {
    display: flex;
	justify-content: space-between;
	align-items: center;
	cursor: pointer;
	user-select: none;
	margin: 0;
	height: 25px;
	font-weight: 300;
}
.collapsible-header.open {
    border-bottom: none;
}

.collapsible-header .chevron {
    width: 10px;
    height: 10px;
    border-right: 2px solid #222;
    border-bottom: 2px solid #222;
    transform: rotate(45deg);
    transition: transform 0.3s ease;
}

.collapsible-header.open .chevron {
    transform: rotate(-135deg);
}

.collapsible-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height .45s ease, opacity .45s ease, padding-bottom .45s ease;
	font-family: system-ui;
}

.collapsible-content.open {
    max-height: 2000px;
	opacity: 1;
	padding-bottom: 16px;
}

.artwork-item {
	display: flex;
	flex-direction: column;
	border: 1px solid #ddd;
	justify-content: space-between;
    cursor: pointer;
    transition: border .3s;
	width: 100%;
}
.artwork-item:hover {
	border: 1px solid #444;
}

.artwork-item img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	background-color: #dddddd;
	max-height: 400px;
}

.artwork-info {
	font-family: system-ui;
	font-weight: 400;
	padding: 10px;
	display: flex;
	flex-direction: column;
}

.artwork-info p {
    margin: 0;
	text-overflow: ellipsis;
	display: -webkit-box;
	-webkit-line-clamp: 1;
	line-clamp: 1;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#artist-artworks {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
	gap: 40px;
	justify-items: center;
	width: calc(100% - 40px);
    margin: 20px;
}

.artwork-availability {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    margin: 4px 0;
    width: 100%;
}

.artwork-availability.available {
    color: #0a7a2f;
}

.artwork-availability.unavailable {
    color: #8a1f1f;
}

.artwork-action {
	margin-top: 10px;
	padding: 0 8px;
	background: #000;
	color: #fff;
	border: none;
	border-radius: 12px;
	cursor: pointer;
	font-weight: 600;
	width: fit-content;
	font-family: system-ui;
	height: 24px;
	font-size: 13px;
	margin-left: auto;
}

.artwork-action:hover {
    background: #333;
}

@media (max-width: 1300px) {
    .artist-details h1 {
        font-size: 1.2rem;
    }

    .artist-exhibitions-wrapper h2 {
        font-size: 1.1rem;
    }
    .artist-details p {
        font-size: 0.9rem;
    }

}

@media (max-width: 1000px) {
	.collapsible-header {
		font-size: 20px;
	}
	.artist-photo-container {
		width: 100%;
	}
	.artist-header {
		flex-direction: column;
	}
}

@media (max-width: 768px) {
	#artist-artworks {
		width: 100%;
		margin: 0;
		gap: 20px;
	}
}