.carousel-item{
	height: auto!important;
}

.gallery-item {
	position: relative;
	overflow: hidden;
	cursor: pointer;
	border-radius: 0;
}

.gallery-item {
	aspect-ratio: 2.35 / 1;
}

.gallery-image {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: opacity 0.5s ease;
	z-index: 1;
}

.gallery-video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 0.3s ease;
	z-index: 2;
}

.gallery-item img{
	transition: all 1s ease;
}
.gallery-item:hover img {
	transform: scale(1.1);
}

.slide-panel {
	position: fixed;
	top: 0;
	right: -100%;
	width: 100%;
	height: 100vh;
	background: #000;
	z-index: 991050;
	transition: right 0.3s ease;
	overflow-y: auto;
}
.slide-panel.active {
	right: 0;
}
.slide-content {
	display: flex;
	flex-direction: column;
	height: 100vh;
	background: #fff;
}
.video-section {
	background: #000;
	color: white;
	flex: 1;
	display: flex;
	flex-direction: column;
	justify-content: center;
	align-items: center;
	position: relative;
	padding: 45px 0;
}
.content-section {
	background: white;
	color: black;
	padding-top: 45px;
	transition: transform 0.3s ease;
	position: relative;
	z-index: 10;
}
.content-section.expanded {
	transform: translateY(-30vh);
}
.close-btn {
	background: none;
	border: none;
	color: white;
	font-size: 16px;
	cursor: pointer;
}
.video-container {
	position: relative;
	width: 100%;
	max-width: 1200px;
	height: auto;
	padding-bottom: 0; /* 16:9 aspect ratio */
	margin-bottom: 45px;
	top: 0;
}
.video-container video {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.carousel-container {
	position: relative;
	width: 100%;
	max-width: none;
	height: auto;
	top: 0;
	padding: 0; /* 為箭頭預留空間 */
	height: auto!important;
	overflow:inherit!important;
}

.carousel-container .carousel {
	width: 100%;
}

.carousel-container .carousel-item {
	position: relative;

}

.carousel-container .carousel-item img {
	width: 100%;

}

.carousel-container .gallery-video-container {
	width: 100%;
}

.carousel-control-prev,
.carousel-control-next {
	position: absolute;
	width: 50px;
	height: 50px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.carousel-control-prev {
	left: -60px;
}

.carousel-control-next {
	right: -60px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
	background-color: transparent;
	border-radius: 50%;
	width: 50px;
	height: 50px;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: background-color 0.3s ease;
}

.carousel-control-prev:hover .carousel-control-prev-icon,
.carousel-control-next:hover .carousel-control-next-icon {
	background-color: transparent;
}

.carousel-indicators {
	bottom: -50px;
	margin-top: 30px;
	margin-bottom: 0;
	display: none;
	z-index: 100;
}

.carousel-indicators button {
	background-color: rgba(255, 255, 255, 0.5);
	border: none;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	margin: 0 5px;
}

.carousel-indicators button.active {
	background-color: white;
}
.video-title {
	text-align: center;
}
.video-title h1 {
	font-size: 2.5rem;
	margin-bottom: 10px;
}
.video-title p {
	font-size: 1.2rem;
	opacity: 0.8;
}
.toggle-content {
	text-align: center;
}
.toggle-btn {
	background: none;
	border: none;
	color: black;
	font-size: 16px;
	cursor: pointer;
	margin-bottom: 15px;
	font-weight: 700;
}
.toggle-btn i{
	padding-left: 20px;
}
.content-details {
	line-height: 1.6;
	text-align: left;

	transition: all 0.3s ease;

}
.content-details h5{
	font-size: 22px;
	margin-bottom:20px;
}
.content-details p{
	margin-bottom:20px;
}
.content-details section{
	margin-bottom:20px;
}
.content-details section p{
	margin-bottom:0;
}
.content-details.show {
	opacity: 1;
	height: inherit;
    padding-bottom: 45px;
}
.tags-container{
	margin-top: 40px;
}
.hashtag {
	color: #1d2765;
	text-decoration: none;
	cursor: pointer;
    font-size: 16px;
	font-weight: 700;
	margin-right: 20px;
}
.hashtag:last-child{
	margin-right: 0;
}
.hashtag:hover {
	text-decoration: underline;
}
.load-more-btn {
	color: #000000;
	border: none;
	padding: 20px 0;
	border-radius: 0;
	font-size: 16px;
	cursor: pointer;
    background-color: transparent;
    position: relative;
	font-weight: 700;
}
.load-more-btn:after{
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 5px !important;
    background-color: #000000;
    transition: width 0.3s ease;
}
.load-more-btn:hover:after {
	width: 100%;
}
.load-more-btn:disabled {
	background: #6c757d;
	cursor: not-allowed;
}
.gallery-item-overlay {
	position: absolute;
	bottom: 40px;
	left: 40px;
	right: 0;
	z-index: 3;
}
.gallery-item-overlay h3{
	text-shadow: 0 0 9px rgba(0,0,0,0.6);
	color: #fff!important;
}

@media (max-width: 768px) {
.video-section {
	padding: 15px;
}
.content-section {
	padding: 20px;
}
.content-section.expanded {
	transform: translateY(0);
}
.video-title h1 {
	font-size: 1.8rem;
}
.video-title p {
	font-size: 1rem;
}
.close-btn{
	position: absolute;
    top: 20px;
    right: 20px;
}
.gallery-item-overlay{
	bottom: 20px;
	left: 20px;
}

/* Slide panel carousel mobile styles */
.slide-panel-carousel .carousel-container {
	padding: 0;
	margin: 0;
	width: 100vw;
	margin-left: calc(-50vw + 50%);
}

.slide-panel-carousel .carousel-item {
	height: 300px;
}

.slide-panel-carousel .carousel-control-prev,
.slide-panel-carousel .carousel-control-next {
	display: none;
}

.slide-panel-carousel .carousel-indicators {
	bottom: 15px;
	z-index: 30;
	pointer-events: auto;
}

.slide-panel-carousel .carousel-indicators button {
	width: 100px;
	height: 10px;
	margin: 0 8px;
	background-color: rgba(255, 255, 255, 0.8);
	border: none;
	border-radius: 0;
	pointer-events: auto;
	cursor: pointer;
	touch-action: manipulation;
}

.slide-panel-carousel .carousel-indicators button.active {
	background-color: white;
}
}

.gallery-video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}
.gallery-video-container iframe {
  position: absolute;
  top: 50%; left: 50%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: none;
  background: #000;
  /*transform: translate(0, -20%);*/
}
.gallery-item .gallery-video-container iframe {
	transform: translate(0, -20%);
}

/* Slide panel carousel specific styles */
.slide-panel-carousel .carousel-item.active img,
.slide-panel-carousel .carousel-item.active video {
	animation: none !important;
	transform: none !important;
}

.slide-panel-carousel .carousel-container {
	padding: 0;
	max-width: none;
	width: 100%;
}

.slide-panel-carousel .carousel-item {
	height: 400px;
}

/* Override for info page - let carousel adapt to content */
.info-page .slide-panel-carousel .carousel-item {
	height: auto !important;
	min-height: auto !important;
	aspect-ratio: 16/9;
	background: #000;
}

.slide-panel-carousel .carousel-item img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.slide-panel-carousel .gallery-video-container {
	width: 100%;
	height: 100%;
}

.slide-panel-carousel .gallery-video-container iframe {
	width: 100%;
	height: 100%;
	transform: none !important;
	position: absolute;
	top: 0;
	left: 0;
}

.slide-panel-carousel .carousel-control-prev,
.slide-panel-carousel .carousel-control-next {
	position: absolute;
	width: 50px;
	height: 50px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 20;
	background: none;
	border: none;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
}

.slide-panel-carousel .carousel-control-prev {
	left: 20px;
}

.slide-panel-carousel .carousel-control-next {
	right: 20px;
}

.slide-panel-carousel .carousel-indicators {
	z-index: 100;
	pointer-events: auto;
}

.slide-panel-carousel .carousel-indicators button {
	pointer-events: auto;
	cursor: pointer;
}

/* Desktop specific styles */
@media (min-width: 769px) {
	.slide-panel-carousel .carousel-control-prev,
	.slide-panel-carousel .carousel-control-next {
		display: flex;
	}
}
@media (max-width: 768px) {
	.slide-panel-carousel .carousel-indicators {
		top: 100%;
	}
	.slide-panel-carousel .carousel-control-prev, .slide-panel-carousel .carousel-control-next{
		display: none;
	}
	.carousel-container{
		margin-bottom: 70px;
	}
	.carousel-indicators {
		display: flex;
	}
}

/* Info page specific full-width video styles */
.info-page .video-section {
	
}

.info-page .carousel-container {
	max-width: none !important;
	width: 1200px;
	margin-left: calc(-50vw + 50%);

}



.info-page .slide-panel-carousel .gallery-video-container {
	width: 100% !important;
	height: 100% !important;
	aspect-ratio: 16/9;
	position: relative;
}

.info-page .slide-panel-carousel .gallery-video-container iframe {
	width: 100% !important;
	height: 100% !important;
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	transform: none !important;
	border: none !important;
}

/* For info page carousel video, make sure native controls are visible */
.info-page .video-frame video {
	width: 100%;
	height: 100%;
	object-fit: contain;
}
#contentType{
	margin-bottom: 15px;
}
#contentType a{
	font-size: 12px;
	color: #000000;
	text-decoration: none;
}
.vh-60{
	min-height: 60vh;
}
/* Info page mobile full-width styles */
@media (max-width: 768px) {
	.info-page .video-section {
		
	}


	
	.info-page .carousel-container {
		width: 100vw !important;
		margin-left: calc(-50vw + 50%);
		margin-bottom: 45px;
	}
	
	.info-page .slide-panel-carousel .carousel-item {
		height: auto !important;
		min-height: auto !important;
		aspect-ratio: 16/9;
	}
	
	.info-page .slide-panel-carousel .gallery-video-container {
		width: 100% !important;
		height: 100% !important;
	}
	
	.info-page .slide-panel-carousel .gallery-video-container iframe {
		border: none !important;
	}
}

