@import "nav.css";

body {background-color: white;color: #ccc;font-family: Arial-BoldMT;padding: 0;background-repeat: no-repeat;background-position: center 0;line-height: 170%;margin-bottom: 0;}
h1 {
	font-size: 36px;
	margin-top: 50px;
	margin-bottom: 40px;
	line-height: 130%;
}
h3.alert {
	font-size: 22px;
	color: #ce4d47;
	margin-bottom: 15px;
	width: 85%;
	margin-left: auto;
	margin-right: auto;
	line-height: 140%;
}
.hero {
	background-image: url(images/xmuseum-hero-img.jpg);background-position: center center;background-size: cover;width: 100%;max-width: 1800px;height: 490px;margin: 0 auto 0 auto;
}
.main-container {
	width: 90%;max-width: 800px;border: 1px solid #555;border-radius: 15px;margin: 40px auto 0 auto;background-color: white;text-align: center;padding: 0 40px 30px 40px;box-sizing: border-box;
}
.main-container.align-left {
	text-align: left;
}
.main-title {
	width: 90%;margin-top: 50px;margin-bottom: 60px;max-width: 320px;margin-left: auto;margin-right: auto;display: block;opacity: 0.8;
}
.main-desc {
	width: 90%;margin-left: auto;margin-right: auto;text-align: left;line-height: 170%;font-size: 24px;padding-bottom: 30px;max-width: 650px;color: #555;
}
p {margin-bottom: 25px;padding-left: 0;padding-right: 0;box-sizing: border-box;font-family: Arial;font-size: 18px;}
ul {
	font-family: Arial;font-size: 18px;
}
#contactFormTable td #cemail {
	min-height: 22px;border-radius: 16px;padding-left: 15px;margin-right: 10px;margin-bottom: 10px;
}
br.hide-by-default {
	display: none;
}
@media screen and (max-width: 700px) {
	.main-desc {
		font-size: 21px;
	}
	.hero {
		background-position: 80% center;
	}
}
@media screen and (max-width: 413px) {
	#contactFormTable td #cemail {
		width: 150px;
	}
}
@media screen and (max-width: 320px) {
	br.hide-by-default {
		display: inline;
	}
	#contactFormTable tr td.rws-f-container {
		text-align: center;
	}
	#contactFormTable td #cemail {
		margin-right: 0;
	}
}

/** prereleases **/
a, a:visited {
	color: #6288ca;
}
h2 {
	font-size: 26px;
	margin-bottom: 45px;
	margin-top: 45px;
	line-height: 130%;
	text-align: center;
}
body {
	color: #555;
}
ol {
	font-size: 20px;
	max-width: 80%;
	text-align: left;
	line-height: 150%;	
	margin-left: auto;
	margin-right: auto;
}



/** Footer **/
footer {
	color: gray;
	text-align: center;
	font-size: 18px;
	font-weight: normal;
	margin: 60px auto 20px auto;
	border-top: 1px solid #dadada;
	padding-top: 27px;
	padding-bottom: 10px;
	width: 80%;
	max-width: 1024px;
}

/** Content page layout **/
.page-content { border-top: 0px;border-right: 0px;border-left: 0px; }
.page-content.green { background-color: #899c8f; }
.page-content.blue { background-color: #7995a9; }
.page-content.red { background-color: #a78a94; }
.page-content.green, .page-content.blue, .page-content.red { color: white; }
#highlights { display: block;padding-top: 0;padding-bottom: 3rem;border-bottom: 1px solid #e6e6e6; }
.decorated-title { margin: 0;padding: 0 0 3rem 0; }
.content-container-flex { width: 100%;max-width: 1000px;margin: auto;display: flex; }
@media (max-width: 660px) {
	.content-container-flex { flex-direction: column; }
	#unity-container.unity-mobile { position: relative; }
	#scene-cover { position: static; }
	.content-container-flex .card-title { font-size: 28px; }
}

.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 4rem 2rem;
    max-width: 1200px;
    margin: auto;
}
.card {
    position: relative;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-direction: column;
    flex-direction: column;
    min-width: 0;
    word-wrap: break-word;

    background-color: #fff;
    background-clip: border-box;

    border: 1px solid rgba(0,0,0,.125);
    border-radius: 8px; /* 用你的設定，取代 0.25rem (~4px) */
    overflow: hidden;

    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}
.gallery .card {
	width: 300px;
    margin-left: auto;
    margin-right: auto;
}
.card-image-container {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    margin-left: auto;
    margin-right: auto;
}
.card-image-container.wide {
	aspect-ratio: 4 / 3;
}
.card-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transform: scale(1);
    transition: transform 0.3s ease;;
}
.card-image-container img:hover {
	transform: scale(1.1);
}
.hover-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.6);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    font-size: 0.95rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    line-height: 160%;
    overflow: auto;
    display: -webkit-box;
}
.card-title {
    padding: 1rem;
    font-weight: bold;
    text-align: center;
    line-height: 120%;
    margin-bottom: 0;
}