* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    background-color: #ffffff;
    display: flex;
    justify-content: center; /* Center content horizontally */
    align-items: flex-start; /* Align items at the top */
    flex-direction: column; /* Stack header and gallery vertically */
    min-height: 100vh;
    margin: 0;
}

.gallery-header {
    display: flex;
    justify-content: center; /* Center titles horizontally */
    align-items: center;
    width: 100%;
    padding: 20px 0;
	margin: 5rem auto 0rem;
	 width: 1240px; /* Fixed width of the gallery */
}

.title {
    font-size: 20px;
	font-family: cursive;
    font-weight: 400;
    text-transform: uppercase;
    margin: 0 40px; /* Adjust spacing between titles */
}

.gallery-container {
    display: flex; /* Use flex layout for horizontal gallery */
    flex-wrap: wrap; /* Allow items to wrap to the next line */
    gap: 1rem; /* Space between images */
    justify-content: flex-start; /* Align items to the left */
    width: 1200px; /* Fixed width of the gallery */
    padding: 20px .83333rem;
    margin: 0 auto; /* Center the gallery container horizontally */
}

.gallery-item {
    position: relative;
    flex: 1 1 0; /* Allow the item to grow and shrink, but base it on content */
    height: 100%;
    display: flex;
    flex-direction: column; /* Ensure the image and overlay are vertically stacked */
    justify-content: center; /* Vertically center the content within each item */
}

.gallery-item img {
    width: auto; /* Let the width be auto so that the image scales based on height */
    height: 100%; /* Ensure image fills the item height */
    object-fit: contain; /* Maintain the aspect ratio */
    transition: transform 0.3s ease;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Black transparent background */
    color: white;
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 20px;
	font-family: cormorantgaramond-semibold,cormorantgaramond,cormorant garamond,serif;;
    text-align: center;
    padding: 10px;
}

.gallery-item:hover .overlay {
    display: flex; /* Show the overlay on hover */
    opacity: 1;
}

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

/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    justify-content: center;
    align-items: center;
    z-index: 9999; /* 确保灯箱在最上层 */
}


.lightbox-content {
    display: flex; /* 使用flexbox布局 */
    justify-content: space-between; /* 文字和图片分开 */
    width: 80%; /* 灯箱宽度为80% */
    height: 80%; /* 灯箱高度为80% */
    max-width: 1200px; /* 最大宽度限制 */
    background: white;
    padding: 20px;
    border-radius: 8px;
    position: relative;
	gap: 30px;
}

.column-content h6{
	margin-top: 3rem;
}


#lightbox-img {
    max-width: 80%; /* 图片宽度最大为100% */
    margin: 0 auto; /* 水平居中 */
    display: block; /* 使图片成为块级元素，以便居中 */
}

.lightbox-text {
    width: 55%; /* 文字占45%宽度 */
    font-size: 1.5rem;
    color: #333;
    overflow-y: auto; /* 文字内容过长时显示滚动条 */
    padding-left: 20px; /* 添加左边距，保持与图片的间距 */
    text-align: left; /* 保证文字是左对齐 */
}

/* Lightbox Text Title (h2) */
.lightbox-text h2 {
    font-size: 1.5rem; /* 默认字体大小 */
    color: #333; /* 标题颜色 */
}

/* Lightbox Text Paragraph (p) */
.lightbox-text p {
    font-size: 1rem; /* 默认字体大小 */
    line-height: 1.5; /* 行高，增加可读性 */
    color: #666; /* 描述文字颜色 */
}

/* 响应式 - 平板设备及更小设备 */
@media (max-width: 900px) {
	.column-content h6{
		margin-top: 2rem;
	}
    .lightbox-text h2 {
        font-size: 0.75rem; /* 调整标题字体大小 */
		line-height:1.5rem;
    }

    .lightbox-text p {
        font-size: 0.6rem; /* 调整段落字体大小 */
        margin-bottom: 1.5rem; /* 增加段落底部间距，避免文字拥挤 */
    }
}

/* 响应式 - 手机设备 */
@media (max-width: 600px) {
	.column-content h6{
		margin-top: 1.5rem;
	}
    .lightbox-text h2 {
        font-size: 0.5rem; /* 调整标题字体大小 */
		line-height:0.75rem;
    }

    .lightbox-text p {
        font-size: 0.35rem; /* 调整段落字体大小 */
        margin-bottom: 1rem; /* 增加段落底部间距 */
    }
}

.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: white;
    font-size: 2rem;
    cursor: pointer;
    z-index: 1000;
}

#prev {
    left: 0px;
	color: #000000;
}

#next {
    right: 0px;
	color: #000000;
}

/* Close Button */
.close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    font-size: 2rem;
    color: #333;
    cursor: pointer;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.8);
    border: none;
    padding: 5px;
    border-radius: 50%;
}
/* Ensure responsive design */
@media screen and (max-width: 1024px) {
	.gallery-header{
		width: 756px;
	}
    .gallery-container {
		width: 756px;
        justify-content: center; /* Center the items on medium screens */
    }
}

@media screen and (max-width: 768px) {
	.gallery-header{
		width: 456px;
	}
    .gallery-container {
		width: 456px;
        justify-content: center; /* Center the items on small screens */
    }
}

@media screen and (max-width: 480px) {
	.gallery-header{
		width: 356px;
	}
	.gallery-container {
		width: 356px;
	    justify-content: center; /* Center the items on small screens */
	}
}

/* 设置gallery-footer的宽度为1200px */
.gallery-footer {
    display: flex;
    justify-content: space-between; /* 让盒子分别分布在最左、最右、居中 */
    align-items: center; /* 垂直居中 */
    width: 1200px; /* 设置宽度为1200px */
    margin: 0 auto; /* 将gallery-footer水平居中 */
    padding: 50px 0;
}

/* 左右图片盒子样式（再小一倍） */
.gallery-footer .image-box.small {
    position: relative;
    width: 80px; /* 宽度再缩小一倍 */
    height: 80px; /* 高度再缩小一倍 */
    overflow: hidden;
    border-radius: 10px;
    cursor: pointer; /* 鼠标为小手 */
}

/* 中间视频盒子样式（宽152px，高101px） */
.gallery-footer .image-box.large {
    position: relative;
    width: auto;
    height: 100px;
    overflow: hidden;
    border-radius: 10px;
    cursor: default; /* 鼠标为默认箭头 */
	background-color:white
}
@media screen and (max-width: 1024px){
	.gallery-footer{
		width: 756px;
	}
}

@media screen and (max-width: 768px){
	.gallery-footer{
		width: 456px;
	}
}
@media screen and (max-width: 480px){
	.gallery-footer{
		width: 356px;
	}
}

/* 视频样式 */
.gallery-footer .image-box.large video {
    width: 100%; /* 视频占满容器宽度 */
    height: 100%; /* 视频占满容器高度 */
    object-fit: cover; /* 确保视频按比例填充 */
}

/* 默认所有图片的样式 */
.gallery-footer .image-box img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* 保持图片比例，并填充容器 */
    transition: opacity 0.3s ease;
}

/* Hover效果：隐藏默认图片，显示hover图片 */
.gallery-footer .image-box .image2 {
    opacity: 0; /* 默认隐藏hover图片 */
}

.gallery-footer .image-box:hover .image1 {
    opacity: 0; /* 鼠标悬停时隐藏default图片 */
}

.gallery-footer .image-box:hover .image2 {
    opacity: 1; /* 鼠标悬停时显示hover图片 */
}

/* 图库排列样式 */
.Each-row{
	display: flex; flex-direction: row;gap:1rem
}
.the-first-row-box1{
	width: 100%;height:24.2rem;
}
.the-first-row-box2{
	width: 100%;height:11.9rem;display: flex; flex-direction: column;
}
.the-first-row-box3{
	width: 100%;height:7.75rem;display: flex; flex-direction: column;
}
.the-first-row-box4{
	width: 100%;height:24.2rem;
}
.the-second-row-box1{
	width: 100%;height: 21.5rem;
}
.the-third-row-box1{
	width: 100%;height:31.8rem;
}
.the-fourth-row-box1{
	width: 100%;height:21.78rem;
}
.recent-first-row-box1{
	width: auto;height: 20.23rem;
}
.recent-second-row-box1{
	width: auto;height: 23.38rem;
}
@media screen and (max-width: 1024px){
	.overlay p{
		font-size: 1rem;
	}
	.gallery-footer{
		width: 756px;
		padding:25px 15px;
	}
	.the-first-row-box1{
		width: 100%;height:16.8rem;
	}
	.the-first-row-box2{
		width: 100%;height:8.15rem;display: flex; flex-direction: column;
	}
	.the-first-row-box3{
		width: 100%;height:5.26rem;display: flex; flex-direction: column;
	}
	.the-first-row-box4{
		width: 100%;height:16.8rem;
	}
	.the-second-row-box1{
		width: 100%;height: 14.8rem;
	}
	.the-third-row-box1{
		width: 100%;height:22.2rem;
	}
	.the-fourth-row-box1{
		width: 100%;height:15rem;
	}
	.recent-first-row-box1{
		width: auto;height: 12.2rem;
	}
	.recent-second-row-box1{
		width: auto;height: 14.38rem;
	}
}
@media screen and (max-width: 768px){
	.title{
		font-size: 15px;
	}
	.overlay p{
		font-size: 0.35rem;
	}
	.gallery-footer{
		width: 456px;
		padding:20px;
	}
	.gallery-footer .image-box.large{
		width: auto;
		height: 70px;
	}
	.gallery-footer .image-box.small{
		width: 40px;
		height: 40px;
	}
	.the-first-row-box1{
		width: 100%;height:8.3rem;
	}
	.the-first-row-box2{
		width: 100%;height:3.9rem;display: flex; flex-direction: column;
	}
	.the-first-row-box3{
		width: 100%;height:2.43rem;display: flex; flex-direction: column;
	}
	.the-first-row-box4{
		width: 100%;height:8.3rem;
	}
	.the-second-row-box1{
		width: 100%;height: 7.16rem;
	}
	.the-third-row-box1{
		width: 100%;height:11.27rem;
	}
	.the-fourth-row-box1{
		width: 100%;height:7.27rem;
	}
	.recent-first-row-box1{
		width: auto;height: 6.75rem;
	}
	.recent-second-row-box1{
		width: auto;height: 8.27rem;
	}
}
@media screen and (max-width: 480px){
	.gallery-footer{
		width: 356px;
		padding:25px 15px;
	}
	.title{
		font-size: 10px;
	}
	.gallery-header{
		margin: 1rem auto 0;
	}
	.gallery-footer .image-box.small{
		width: 40px;
		height: 40px;
	}
	.gallery-footer .image-box.large{
		width: auto;
		height: 70px;
	}
	.overlay p{
		font-size: 0.25rem;
	}
	.the-first-row-box1{
		width: 100%;height:6.12rem;
	}
	.the-first-row-box2{
		width: 100%;height:2.81rem;display: flex; flex-direction: column;
	}
	.the-first-row-box3{
		width: 100%;height:1.71rem;display: flex; flex-direction: column;
	}
	.the-first-row-box4{
		width: 100%;height:6.12rem;
	}
	.the-second-row-box1{
		width: 100%;height:5.22rem;
	}
	.the-third-row-box1{
		width: 100%;height:8.48rem;
	}
	.the-fourth-row-box1{
		width: 100%;height:5.3rem;
	}
	.recent-first-row-box1{
		width: auto;height: 4.98rem;
	}
	.recent-second-row-box1{
		width: auto;height: 6.3rem;
	}
}





