/* Post Page */
/* Custom Pagination */
.navigation.posts-navigation{
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	justify-content: center;
	align-items: center;
	height: 55px;
}

.site-footer-wrap{
		display: flex;
   	align-content: space-between;
    justify-content: space-between;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
}
.site-footer-wrap > p {
	margin:0;
}
.posts-navigation .page-numbers{	
	padding:0 !important;
}
.page-numbers {
	width: max-content;
	text-align: center;
	margin: 0 20px; 
}

.posts-navigation a .meta-title, .post-navigation a .meta-title, .comment-navigation a .meta-title{
	font-size:1rem;
}

figure{
	margin:0;
}
.wp-block-table{
	margin:0;
}
.wp-block-table th{
	text-align:center;
}
.custome-table tr > th ,.custome-table tr > td{	
	white-space: nowrap;
}
/* Homepage testimonials */
.testimonial-post.uagb-post-grid .uagb-post__image img{
	object-fit:cover;
	width:200px;
	height:200px;
	margin-top:20px;
	border-radius:50%;
	border:3px solid white;
}
.home-page-classes{
	gap:5px;
}
.home-page-classes .wp-block-uagb-image--layout-overlay__inner > a{
	z-index: 1;
}
.home-page-classes .wp-block-uagb-image--layout-overlay__inner > .uagb-image-heading{
	z-index: 0;
}
.testimonial-post .uagb-post__inner-wrap{
	background:transparent;
}

.testimonial-post.uagb-post-grid .uagb-post__image a{
	text-align:-webkit-center;
}
/* Homepage news, posts button hover */
.uagb-post-grid .wp-block-button.uagb-post__text.uagb-post__cta .uagb-text-link.wp-block-button__link:hover{
	color:#26866d !important;
}
.home-page-post .uagb-post-grid .uagb-post-grid-byline,.home-page-post .uagb-post-grid .uagb-post__taxonomy{
	display: flex;
}
/* Homepage news, posts anchor hover */
.uagb-post-grid .uagb-post__title a:hover, .uagb-post-grid .uagb-post-grid-byline a:hover{
	color:#26866d;
}
/* Removed the dot after date */
.uagb-post-grid .uagb-post-grid-byline .uagb-post__date::after{
	display:none !important;
}
/* Search bar appear when click */
@media screen and (min-width: 50em){
	.main-navigation > .search-box-wrapper.toggled-on, .main-navigation .search-box-wrapper{
		max-width:none;
	}
	.search-box{		
		width: 50% !important;
		position: relative;
		top: -64px;
		float:right;
	}
	.search-box .search-field {
			width: calc(70% - 27px);
	}
	.search-box .search-submit {
			width: calc(30%);
	}
}

.site-branding{
	padding-right:0;
}


element.style {
}
.wp-block-latest-posts.wp-block-latest-posts__list {
    margin: 0;
}

div.uagb-tabs__body-wrap{
	padding-right:0px !important;
}
/* align text */
.page .is-layout-flex p{
	text-align:left;
}
.page p{
	text-align:justify;	
}
.page a{	
	word-break: break-all;
}
/* Header Title description */
.page p.site-description{
	text-align:left;
}
.card .entry-content > a span{
	text-align:justify;
}
.card .entry-content{
	height:23.1em;
}
/* footer */
.page .footer-widget-area p, .page footer p{
	text-align:left;
	font-size:12px;
}
.footer-widget-area .is-layout-flex{
	gap:1em;
}
.footer-widget-area .is-layout-flex > .wp-block-column .is-layout-flex{
	gap:10px;
}
.footer-address p{
	display:flex;
	gap:20px;
}
.footer-address p > span{
	display:flex;
	flex-direction:column;
}

/*fix the anchor color*/
main a:visited{
	color:#ce4639;
}
.wp-block-button__link{
	
	transition: all 0.5s; 
}
.wp-block-button__link:hover{
	background:#26866d;
}
main a.wp-block-button__link:visited{
	color:#fff;
}
.wp-block-button .wp-block-button__link.is-style-outline, .wp-block-button.is-style-outline>.wp-block-button__link:hover{
	border-color:#26866d;
	color:#26866d;
}
/*fix the anchor color on hover*/
main a:hover{
	color:#26866d;
}

/*fix the gallery last image to be same size*/
.wp-block-gallery.has-nested-images figure.wp-block-image{
	flex-grow:0;
}
/*custom the gallery */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){	
	overflow:hidden;
	width:100%;
}
/*custom the gallery */
.wp-block-gallery.has-nested-images figure.wp-block-image img{
	max-height:380px;
	min-height:380px;
	width:49%;
	transition: all 0.2s ease-in-out; /* Animation */
}
/*custom the gallery caption */
.wp-block-gallery.has-nested-images figure.wp-block-image figcaption.wp-element-caption{
	background: rgba(0,0,0,0.7);
}
/*custom the gallery on hover */
.wp-block-gallery.has-nested-images figure.wp-block-image img:hover{
	transform: scale(1.05);
	filter: brightness(70%);
}

/*custom the mega-menu on current page*/
#mega-menu-wrap-header #mega-menu-header > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-item > a.mega-menu-link, #mega-menu-wrap-header #mega-menu-header > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-parent > a,#mega-menu-wrap-header #mega-menu-header > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-item a.mega-menu-link, #mega-menu-wrap-header #mega-menu-header > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-ancestor > a, #mega-menu-wrap-header #mega-menu-header > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-parent > a:hover, #mega-menu-wrap-header #mega-menu-header > li.mega-menu-flyout ul.mega-sub-menu li.mega-menu-item.mega-current-menu-ancestor > a:hover{
	background: #26866d;
    color: #fff;
}

/* mega-menu same width */
#mega-menu-wrap-header #mega-menu-header > li.mega-menu-item > a.mega-menu-link{
	min-width:120px;	
	text-align:center;
}
/* mega-menu arrow  */
.main-navigation a span {
    float: right;
}
#mega-menu-wrap-header #mega-menu-header > li.mega-menu-item:last-child{
	border-right: 1px solid rgba(255, 255, 255, 0.1);
}

body .is-layout-flex{
	margin-bottom:2em;
}


.wp-block-button .wp-block-button__link.is-style-outline:not(.has-background), .wp-block-button.is-style-outline>.wp-block-button__link:not(.has-background):hover{
	color:#777 !important;
}

/* inner page padding */ 
@media screen and (min-width: 37.5em){
	.page .page .entry-content, .single .hentry:not(.post) .entry-content {
    padding: 27px 56px;
}
	.card .entry-content{
		height:19.8em;
	}

}
/* pages' size */ 
@media screen and (min-width: 50em){
		.header-image .site-header{
		min-height:65vh !important;
			margin-bottom:3em;
	}
	.header-image .site-header:before {
		    background: -webkit-linear-gradient(top, white 0%, rgba(240, 238, 236, 0.1) 40%) !important;
	}
}
@media screen and (min-width: 60em){
.header-wrap, .main-navigation, .site-content, .testimonials > *, .featured-content > *, .footer-widget-area .widget-area, .site-footer-wrap {
    max-width: 80em;
}

/*custom the gallery */
.wp-block-gallery.has-nested-images.is-cropped figure.wp-block-image:not(#individual-image){	
	width:49%;
}
}

/* tablepress */
#tablepress-6{
	border-collapse: separate;
    border-spacing: 10px 0;
}
#tablepress-6 tbody, #tablepress-6 tbody td{
	border:unset;
	text-wrap:nowrap;
	text-align:center;
    white-space: nowrap;
}
#tablepress-6 tbody .row-1 td{
	background:#abb8c3;
}
#tablepress-6 tbody .row-2 td{
	text-align:right;
	padding:0;
}

/*strip table background*/
.entry-content table tbody tr:nth-child(even) {
    background: #FCFeFc;
}

/* Ninja table search bar */ 
.footable .btn-primary {
    background-color: #000;
    border-color: #000;
}

.footable_title.table_title {
	margin:0.5em 0;
}

/* Ninja table paginate bar */
.footable .pagination>.active>a, .footable .pagination>.active>a:focus, .footable .pagination>.active>a:hover, .footable .pagination>.active>span, .footable .pagination>.active>span:focus, .footable .pagination>.active>span:hover {
    background-color: #000;
    border-color: #000;
}

.custom-ninja-table .footable.table>thead:first-child>tr:first-child>th {
	background-color:black;
	color:white;
}

.custom-ninja-table .semantic_ui .ui.celled.table tr td, .custom-ninja-table .semantic_ui .ui.celled.table tr th{
	text-align:center;
}


.text-center{
	text-align:center !important;
}
.footable .pagination>li>a, .footable .pagination>li>span {
    color: #000;
}

a:visited {
    color: #FFF
}

/* custom css class */
.custom-card{
	gap: 10px;
	margin: 0 !important;	 
}
.custom-card > div > p{
	text-align:left;
	margin:0;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}
.display-none{
	display:none;
}
.text-left{
	text-align:left !important;
}
.m-0{
	margin:0 !important;
}
.overflow-hidden{
	overflow:hidden;
}
.p-0{
	padding:0 !important;
}
 /*
.site-main {
margin:0px;
}*/

/*新聞 Box Frame*/
/* .uagb-post__inner-wrap
{
border-radius: 50px;
} */
.uagb-post__image
{
border-radius: 50px;
}

/*典藏计划 Button*/
.services-item {
    background-color: #222;
    padding: 25px 17px 17px;
    box-shadow: 0 4px 2px -2px #000000;
    z-index: 111;
    position: relative;
    top: 15px;
    transition: all 0.3s ease 0s;
}

.services-icon {
    height: 130px;
    width: 130px;
    background-color: #222;
    line-height: 88px;
    text-align: center;
    position: absolute;
    top: -50px;
    z-index: -1;
    font-size: 40px;
    border-radius: 50%;
    left: 0;
    right: 0;
    margin: 0 auto;
    color: #fff;
    transition: all 0.3s ease 0s;
}

.wp-block-image figcaption{
	text-align: center;
}

.services-desc {
    text-align: center;
    margin-top: 6px;
}

.services-desc .services-title {
    position: relative;
    font-size: 20px;
    margin-bottom: 7px;
    z-index: 10;
}

.menu-left{
	left: -75px;
	top: -55px;
}