* {
	box-sizing: border-box;
}

body {
	margin: 0;
	padding: 0;
	font-family: Gill Sans WGL, Helvetica, PingFang SC, PingFang TC, sans-serif;
}

/* ============================================
intro
============================================ */
.intro {
	max-width: 100%;
	margin-top: 80px;
	padding: 0 80px;
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 60px;
}

.info-section {
	flex: 1;
}

.title {
	font-size: 32px;
	font-weight: 500;
	margin-bottom: 30px;
	letter-spacing: 0.5px;
	font-family: Gill Sans WGL, Helvetica, PingFang SC, PingFang TC, sans-serif;
}

.meta-data {
	font-size: 16px;
	line-height: 1.6;
	margin-bottom: 40px;
	color: #333;
}

.date, .location {
	margin-bottom: 10px;
}

.description {
	font-size: 18px;
	line-height: 1.8;
	color: #666;
	text-align: justify;
}

.press-release {
  all:unset;
}

.press-release-button {
  all:unset;
  border: 1px solid #333;
  padding: 4px 15px 5px 20px;
  border-radius: 30px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.press-release-button:hover {
  background: #333;
  color: white;
}

.image-section {
	flex: 1;
	display: flex;
	justify-content: flex-end;
}

.image-section img {
	max-width: 80%; 
	height: auto;
	display: block;
}

/* ============================================
gallery
============================================ */

.sec-title {
	font-size: 35px;
	font-weight: 400;
	letter-spacing: 2px;
	margin: 0;
}

/* 桌面端标题（默认显示） */
.desktop-title {
	display: block;
	margin-bottom: 20px;
}

/* 移动端元素默认隐藏 */
.mobile-only {
	display: none !important;
}

.gallery-wrapper {
	position: relative;
	max-width: 100%;
	margin-top: 80px;
	padding: 0 80px;
}

.main-carousel {
	overflow: hidden;
	margin-top: 60px;
	position: relative;
}

.carousel-track {
	display: flex;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.carousel-item {
	min-width: 100%; /* 将 1250px 改为 100% */
	display: flex;
	flex-direction: column;
	align-items: center;
}

.carousel-item img {
	width: auto;
	height: 500px;
	object-fit: cover;
	border-radius: 4px;
	cursor: zoom-in;
	display: block;
	box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

/* 轮播图文字说明 */
.slide-description {
	margin-top: 20px;
	font-size: 14px;
	color: #555;
	letter-spacing: 0.5px;
	text-align: center;
}

/* 桌面端导航按钮 */
.desktop-btn {
	all:unset;
	position: absolute;
	top: 250px; 
	transform: translateY(-50%);
	background: rgba(255, 255, 255, 0.9);
	border: 1px solid #eee;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	z-index: 10;
	transition: all 0.2s;
	font-size: 16px;
	color: #333;
}

.desktop-btn:hover {
	background: #fff;
	box-shadow: 0 2px 8px rgba(0,0,0,0.1);
	color: #000;
}

.desktop-btn.prev-btn { left: 5%; }
.desktop-btn.next-btn { right: 5%; }

/* 缩略图 */
.thumb-container {
	display: flex;
	justify-content: center;
	gap: 12px;
	margin-top: 25px;
}

.thumb {
	width: 45px;
/* 	height: 45px; */
	aspect-ratio: 1 / 1;
	object-fit: cover;
	cursor: pointer;
	opacity: 0.4;
	transition: 0.3s;
	box-sizing: border-box;
/* 	border-bottom: 2px solid transparent */
}

.thumb.active {
	opacity: 1;
	border-bottom: 2px solid #333;
}

/* 模态框 */
.image-modal {
	display: none;
	position: fixed;
	top: 0; 
	left: 0;
	width: 100%; 
	height: 100%;
	background: rgba(255, 255, 255, 0.98);
	z-index: 9999;
}

.image-modal.active {
	display: block;
}

.image-modal .modal-content {
	position: absolute;
	top: 50%; 
	left: 50%;
	transform: translate(-50%, -50%);
	max-width: 90%;
	max-height: 85%;
	box-shadow: 0 0 30px rgba(0,0,0,0.05);
}

.close-modal {
	position: absolute;
	top: 40px; 
	right: 40px;
	font-size: 50px;
	color: #333;
	cursor: pointer;
	z-index: 10000;
	line-height: 1;
}

/* ============================================
Artist
============================================ */

.artists {
    width: 100%;
    margin: 80px auto;
    padding: 0 80px;
}

.artist-item {
/*     margin-bottom: 60px;  */
    border-bottom: 1px solid #eee; 
    padding-top: 30px;
			padding-bottom: 30px;
			margin-left: 225px;
			margin-right: 225px
}

.artist-item:last-of-type {
    border-bottom: none;
}

.artist-display-name {
    font-size: 22px;
    color: #222;
    margin: 0 0 15px 0;
    font-weight: 500;
    letter-spacing: 1px;
}

.bio-content {
    font-size: 16px;
    line-height: 1.8;
    color: #555;
    text-align: justify;
    width: 100%;
}

.bio-content p {
    margin-bottom: 15px;
}

.bio-content p:last-of-type {
			margin-bottom: 0;
}


/* ============================================
移动端样式（修正版）
============================================ */

@media (max-width: 768px) {

	/* 显示/隐藏控制 */
	.mobile-only {
		display: flex !important;
	}
	.desktop-only, .desktop-title {
		display: none !important;
	}

	/* 基础容器 */
	.gallery-wrapper, .artists {
		width: 100%;
		margin: 40px auto;
		padding: 0 35px; 
		box-sizing: border-box;
	}

	.sec-title {
		font-size: 22px !important;
		font-weight: 500 !important;
		letter-spacing: 1px !important;
		margin: 0;
	}

	/* --- Intro 区域 - 图片在上，文字在下 --- */
	.intro {
		width: 100%;
		margin: 35px auto 40px;
		padding: 0 35px;
		display: flex;
		flex-direction: column;
		gap: 25px;
		box-sizing: border-box;
	}

	.image-section {
		order: -1;
		justify-content: center;
		width: 100%;
	}

	.image-section img {
		max-width: 100%;
		width: 100%;
		height: auto;
		display: block;
	}

	.info-section {
		flex: 1 1 100%;
	}

	.title {
		font-size: 26px;
		margin-bottom: 10px;
	}

	.meta-data {
		margin-bottom: 20px;
	}
	
	.date, .location {
		font-size: 14px;
		margin-bottom: 0;
	}

	.description {
		font-size: 14px;
		line-height: 1.4;
	}
	
	.press-release-button {
		font-size:14px;
		padding-left: 13px;
		padding-right: 13px;
	}

	/* --- 移动端画廊头部 --- */
	.gallery-header {
		display: flex;
		justify-content: space-between;
		align-items: center;
		margin-bottom: 15px;
		/* 移除 padding，继承 .gallery-wrapper 的 padding */
	}

	/* 导航控制区域 */
	.gallery-controls {
		display: flex;
		align-items: center;
		gap: 12px;
	}

	.page-indicator {
		font-size: 14px;
		color: #666;
		font-variant-numeric: tabular-nums;
		letter-spacing: 0.5px;
	}

	.nav-arrow {
		width: auto;
		height: auto;
		background: none;
		border: none;
		border-radius: 0;
		font-size: 16px;
		color: #333;
		display: flex;
		align-items: center;
		justify-content: center;
		cursor: pointer;
		padding: 8px;
		transition: color 0.2s;
	}

	.nav-arrow:active {
		color: #999;
	}

	/* --- 移动端轮播 --- */
	.main-carousel {
		/* 这里的偏移要和 wrapper 的 padding 对齐 */
		margin-left: -5px; 
		width: calc(100% + 10px);
	}

	.carousel-track {
		display: flex;
	}

	.carousel-item {
		/* 确保宽度一致 */
		width: calc(100vw - 70px); 
		min-width: calc(100vw - 70px);
		flex-shrink: 0;
		margin-right: 10px; /* 这个 10px 必须在 JS 里被加进 slideWidth */
		margin-left: 0;
	}

	.carousel-item:last-child {
		margin-right: 15px;
	}

	.carousel-item img {
		width: 100%;
		height: auto;           /* 核心：取消固定高度，让图片根据宽度自动伸缩 */
		max-height: 70vh;       /* 防止竖图太长超过手机屏幕高度 */
		object-fit: contain;    /* 核心：确保图片完整显示，不被裁切 */
		background: #f9f9f9;    /* 可选：给图片容器加个浅色底色 */
		border-radius: 4px;
		box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	}

	.carousel-item .slide-description {
		display: block !important;
		margin-top: 12px;
		font-size: 13px;
		color: #555;
		letter-spacing: 0.3px;
		padding-left: 2px;
	}

	.desktop-btn {
		display: none !important;
	}

	/* --- Artists 区域 --- */
	.artists {
		margin-top: 60px;
		padding: 0 35px;
	}

	.artist-item {
			margin-left: 0;
			margin-right: 0;
}
	
	.artist-display-name {
		font-size: 18px;
	}

	.bio-content p {
		font-size: 14px;
		line-height: 1.6;
	}
}