﻿@charset "utf-8";
/*CSS Info ======================================================================
File Name: gallery.css
Editor: Yeats
CreateDate:2025/08/05
Last Editor: Rebecca
Version: 1.0
---------------------------
【 Table of Contents 】
	DIV XHTML頁面
	Free Style
	使用jQuery
=================================================================================*/

/*===============================================================================
                         Default Style Setting
=================================================================================*/

.selectAtea{
	margin-bottom:1rem;
}
	.selectAtea select {
		font-size: 1.6rem;
		font-weight: bold;
	}

.frtTitle {
	margin: 0.5rem;
	font-size: 2rem;
	font-weight: bold;
}
	.frtTitle:before {
		content: "";
		display: inline-block;
		width: 1.6rem;
		height: 1.6rem;
		border-radius: 6px;
		background: #9CCC7B;
		margin-right: 1rem;
	}
	.subtitle {
		margin: 1rem 0;
		font-size: 1.2rem;
		font-weight: bold;
		padding: 0.5rem 1rem;
		display: inline-block;
		border-radius: 50px
	}
.lowerGrade.subtitle {
	background: #FFEDBB;
	border: 3px solid #fff;
}

.middleGrade.subtitle {
	background: #ACE6FF;
	border: 3px solid #fff;
}

.upperGrades.subtitle {
	background: #FFCFE5;
	border: 3px solid #fff;
}

.gradeTab .subtitle {
    cursor: pointer;
    transition: all 0.3s ease-in-out;
    opacity: 0.5;
}
	.gradeTab .subtitle:hover {
		opacity:1;
	}

	.gradeTab .subtitle.select {
		opacity: 1;
	}

.lowerGrade.subtitle.select {
	border: 3px solid #F4BA19;
}
.middleGrade.subtitle.select {
	border: 3px solid #21A4DE;
}
.upperGrades.subtitle.select {
	border: 3px solid #E75297;
}

section {
	margin-top: 1rem;
	margin-bottom: 2rem;
}
.picArea {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(4,1fr);
	margin-bottom:1rem;
}
.pic {
	height: 280px;
	overflow: hidden;
	display: flex;
	justify-items: center;
	align-items: center;
	box-shadow: 0 3px 6px rgba(0, 0, 0, .2);
	border-radius: 10px;
	margin-bottom: 1rem;
	position: relative;

}
.upperGrades .pic {
    border: 2px solid #E75297
}
.middleGrade .pic {
	border: 2px solid #21A4DE;
}
.lowerGrade .pic {
	border: 2px solid #F4BA19;
}

    .pic:before {
        content: "L O A D I N G ......";
        display: block;
        position: absolute;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
        text-align: center;
        line-height: 280px;
        color: #60A63F;
        font-size: 1.6rem;
        font-weight: bold;
        z-index: -1;
		background:#fff;
    }

.picArea img {
	width: 100%;
	border-radius: 0.5rem;
	transition: all 0.3s ease-in-out;
}

.upperGrades .pic:after {
	content: "高 年 級";
	color: #FF4A9E;
}

.middleGrade .pic:after {
	content: "中 年 級";
	color: #00B1FF;
}

.lowerGrade .pic:after {
	content: "低 年 級";
	color: #F4BA19;
}

.pic:after {
    display: block;
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    line-height: 280px;
    font-size: 2rem;
    font-weight: bold;
    z-index: 1;
    background: rgba(0,0,0,.7);
    transition: all 0.3s ease-in-out;
    opacity: 0;
}

.pic:hover:after {
    opacity: 1;
    cursor: pointer;
}
.pic:hover img {
    transform: scale(1.2);
    cursor: pointer;
}


/*LightBox*/
.overlay {
	display: none;
	position: fixed;
	top: 0;
	left: 0;
	width: 100vw;
	height: 100vh;
	background: rgba(0,0,0,0.85);
	justify-content: center;
	align-items: center;
	flex-direction: column;
	z-index: 9999;
	color: #fff;
	font-size: 18px;
	position: fixed;
}

	.overlay.active {
		display: flex;
		flex-direction: row;
	}

.picPopup {
	width: 100%;
	display: flex;
	max-height: 80vh;
	justify-content: center;
	flex: 1;
}
.popupPicBox {

}
.picPopup img {
	height: 80vh;
	width: unset;
	flex: 0;
}

	.picPopup .infoBox {
		margin-left: 1rem;
		overflow-y: auto;
		flex: 0 16%;
	}
	.picPopup p {
		padding-left: 0.5rem;
		padding-right: 0.5rem;
	}

	.picPopup p, .picPopup p span {
		margin-top: 0.5rem;
		color: #ffffff;
	}
	.picPopup .picMainInfo p {
		font-size: 1.4rem;
		font-weight: bold;
	}

	.picPopup .picMainInfo {
		border-bottom: 1px solid rgba(255,255,255,0.7);
		padding-bottom: 0.5rem;
	}

    .picPopup .picInfoScorll {
        overflow-y: auto;
        max-height: calc(80vh - 80px);
    }

	.picPopup p:last-child span {
		display: block;
	}

	.close-btn {
		background: #fff;
		width: 40px;
		line-height: 40px;
		text-align: center;
		position: absolute;
		top: 20px;
		right: 30px;
		font-size: 1.6rem;
		font-weight: bold;
		cursor: pointer;
		color: #60A63F;
		z-index: 10001;
		border-radius: 50%;
		opacity: 0.8;
	}
	.close-btn i{
		padding:0;
	}

    .close-btn:hover {
        opacity: 1;
    }
/*#影片頁面(暫)*/
#resultContainer.videoBlock {
	text-align: center;
	}

/*----------------- RWD -----------------*/
@media only screen and (min-width: 76.25em) and (max-width: 86.1875em) {
	/*1220~1379*/
	.picArea {
		grid-template-columns: repeat(3, 1fr);
	}
	.picPopup.landscape img {
		height: 70vh;
	}
}

@media only screen and (min-width: 61.0525em) and (max-width: 76.1875em) { /*977~1219*/
	.pic {
		height: 160px;
	}

		.pic:before, .pic:after {
			line-height: 160px;
			font-size: 1.4rem;
		}
        .pic:after {
            font-size: 1.8rem;
        }


			.picPopup.landscape img {
				height: 40vh;
			}
}

@media only screen and (min-width: 48em) and (max-width:61em) { /*768~976*/
	.picArea {
		grid-template-columns: repeat(3, 1fr);
	}

	.pic {
		height: 166px;
	}

		.pic:before, .pic:after {
			line-height: 166px;
			font-size: 1.2rem;
		}
        .pic:after {
            font-size: 1.4rem;
        }
			.overlay {
				justify-content: start;
			}
		.overlay.active {
			flex-direction: column;
		}

	.picPopup {
		display: block;
		max-height: unset;
		justify-content: start;
		margin-top: 5rem;

	}
	.picPopup.portrait {
		width: 50%;
	}
    .picPopup.landscape {
    	width: 80%;
    }

		.picPopup img {
			height: unset;
			width: 100%;
		}

		.picPopup .infoBox {
			margin-left: 0;
		}

		.picPopup.portrait .picInfoScorll {
			max-height: 24vh;
		}

		.picPopup.landscape .picInfoScorll {
			max-height: 30vh;
		}
	/*#影片頁面(暫)*/
	#resultContainer .videoBox {
		position: relative;
		width: 100%;
		padding-bottom: 56.25%; /* 16:9 比例 = 9/16 = 0.5625 */
		height: 0;
		overflow: hidden;
	}


		#resultContainer .videoBox iframe {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}
}

@media only screen and (max-width: 47.9375em) {
	section{
		gap: 0.5rem;
		grid-template-columns: repeat(2,1fr);
	}
	.overlay.active {
		flex-direction:column ;
	}
	.picArea {
		grid-template-columns: repeat(2, 1fr);
	}
	.pic {
		height: 120px;
	}
		.pic:before, .pic:after {
			line-height: 120px;
			font-size: 1rem;
		}
        .pic:after {
            font-size: 1.2rem;
        }

			.overlay {
				justify-content: start;
			}

	.close-btn {
		background: #fff;
		width: 30px;
		line-height: 30px;
		top: 20px;
		right: 20px;
		font-size: 1.4rem;
	}

	.picPopup {
		display: block;
		max-height: unset;
		justify-content: start;
		margin-top: 5rem;
		width: 90%;
	}
	.popupPicBox {
		width: 100%;
		margin: auto;
	}
	.picPopup img {
		height: unset;
		width: 100%;
	}
		.picPopup .infoBox {
			margin-left: 0;
			width:100%;
			margin:auto;
		}

	/* 直式圖片 */
	.picPopup.portrait .picInfoScorll {
		max-height: 20vh;
	}
	/* 橫式圖片 */
	.picPopup.landscape .picInfoScorll {
		max-height: 45vh;
	}

		.picPopup .picMainInfo p{
			font-size: 1.2rem;
		}
	/*#影片頁面(暫)*/
	#resultContainer .videoBox {
		position: relative;
		width: 100%;
		padding-bottom: 56.25%; /* 16:9 比例 = 9/16 = 0.5625 */
		height: 0;
		overflow: hidden;
	}


		#resultContainer .videoBox iframe {
			position: absolute;
			top: 0;
			left: 0;
			width: 100%;
			height: 100%;
		}

}

@media only screen and (max-width: 375px) {
	.picPopup {
		margin-top: 3.5rem;
	}
	/* 直式圖片 */
	.picPopup.portrait .popupPicBox {
		width: 70%;
	}
	/* 直式圖片 */
    .picPopup.portrait .picInfoScorll {
    	max-height: 25vh;
    }
    /* 橫式圖片 */
    .picPopup.landscape .picInfoScorll {
    	max-height: 35vh;
    }
}