/*
	Theme Name: Cookie child
	Theme URI: http://demo.agnidesigns.com/cookie/
	Author: AgniDesigns	
	Version: 1.0.1
	Description: Creative Multipurpose WordPress theme
	Author URI: http://themeforest.net/user/AgniHD	
	Template: cookie
*/
@import url("../cookie/style.css");
@import url("../cookie/css/responsive.css");
.page-default {
    padding: 37px 0;
}
body {
	font-family: Arial, "Noto Sans TC", "Noto Sans SC", sans-serif;
	font-size: 15px;
	line-height: 1.6;
	letter-spacing: .02em;
	color: #54474f;
	background-color: #fff;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

.header-navigation-menu:not(.side-header-menu) .tab-nav-menu{
    background-color: rgba(128,128,128,0.5);
	margin-top: 60px;
}
.header-navigation-menu:not(.side-header-menu) .tab-nav-menu ul{
    background: #FFFFFF;
	top: 0px;
	text-align: left;
	padding-bottom: 20px;
}
.header-navigation-menu:not(.side-header-menu) .tab-nav-menu ul li{
    padding: 10px 0px;
}
.header-navigation-menu:not(.side-header-menu) .tab-nav-menu ul a{
    color: #54474f;
	font-family: Arial, "Noto Sans TC", "Noto Sans SC", sans-serif;
	font-size: 18px;
}
.header-navigation-menu:not(.side-header-menu) .tab-nav-menu ul li.current-menu-item a{
    font-weight: bold;
    text-decoration: underline;
}
.header-navigation-menu:not(.side-header-menu) .tab-nav-menu ul li.lang-item{
    display: inline-block;
	padding: 0;
	padding-right: 10px;
}
.header-navigation-menu:not(.side-header-menu) li.menu-item:nth-child(6) >a{
    border-right: 1px solid #54474f;
	line-height: 20px;
    padding-right: 10px;
    margin-right: -10px;
}
.header-navigation-menu:not(.side-header-menu) li.menu-item:nth-child(7){
    padding-left: 10px;
}


.no_margin  {
	margin:0px !important;
}

.event-card__link {
	font-weight:bold;
	font-size:22px;
}

.event_subtitle, .event-card__meta, .event-card__year {
	font-size:22px;	
}

.event-card__title  {
	font-size:24px;	
}

.events-section-2 .event-card__title  {
	font-size:22px;	
	margin-top:5px;
}

.events-section-1 .event-card {
	margin-bottom:50px;
}
.events-section-1 .event-card:last-child {
	margin-bottom:0px;
}
.event-cards.event-cards--section2 {
	margin-top:20px;
}
.event-card.event-card--section2 {
    width: 32%;
    display: inline-block;
    margin-right: 2%;
}
.event-card.event-card--section2:nth-child(3n) {
	margin-right: 0;
}

.event-filter-form .field input, .event-filter-form .field button{
	border-color: #b3b3b3;
}

.event-filter-form .field.fullwidth input{
    width: 100%;
    height: 50px;
    text-align: center;
    border-radius: 8px;
	    
}
.event-filter-form .field.fullwidth button {
	position: absolute;
	right: 15px;
		border: none;
		top: 6px;
		padding: 0;
}

.ui-widget-header.ui-corner-all.ui-multiselect-header.ui-helper-clearfix {
	display: none;
}
.ui-multiselect.ui-widget.ui-state-default.ui-corner-all.ui-state-active {
	color:#333;
	background-color:#f5f3f6;
}

.ui-multiselect.ui-widget.ui-state-default.ui-corner-all.ui-state-active:after {
	content: url('/wp-content/uploads/2026/06/arrow_down.png'); 
	float: right;
}
.ui-multiselect.ui-widget.ui-state-default.ui-corner-all:after {
	content: url('/wp-content/uploads/2026/06/arrow_up.png'); 
	float: right;
	width: 30px;
    height: 30px;
    margin: 5px 10px 0 0;	
}


.filter_mall, .filter_year {
	width:48%; 
	display:inline-block;	
}
.filter_year {
    float: right;
}
button.ui-multiselect.ui-widget {
	width:100% !important;
	height: 50px;
	border-radius:8px;
    text-align: center;
	color:#000;
}
.event-filter-form .field{
	margin-bottom:10px;
	font-size:22px !important;
}
.ui-multiselect-checkboxes {
	overflow-y: auto;
}
.ui-multiselect-checkboxes.ui-helper-reset {
	background:#f5f3f6;
	margin-top:-10px;	
	border-left:1px solid #d5d5d5;
	border-right:1px solid #d5d5d5;
	text-align:center;
    padding: 0;
    padding-top: 10px;
    height: unset !important;
}

.ui-multiselect-checkboxes.ui-helper-reset li {
    padding-top: 10px;
    padding-bottom: 10px;
	border-top: 1px solid #d5d5d5;    
    margin: 0 25px;
}

.ui-multiselect-checkboxes.ui-helper-reset li:last-child {
	border-bottom: 1px solid #d5d5d5;  
    margin-bottom: 5px;	
}

.ui-multiselect-menu {
	padding:0px;
}
.ui-multiselect-footer-btn {

	margin-top: -12px;
    z-index: 5;
    position: relative;
    text-align: center;
    padding: 10px 0 15px;
    list-style: none;
    background: #f5f3f6;
	border-bottom-left-radius:8px;
	border-bottom-right-radius:8px;
	border-bottom:1px solid #d5d5d5;
	border-left:1px solid #d5d5d5;
	border-right:1px solid #d5d5d5;	

}

.ui-multiselect-footer-btn button {
	background-color: rgba(147,19,125,0.1);
	color:#000;
	border:none;
	border-radius:8px;
}

.ui-multiselect-checkboxes {
	font-size:22px !important;	
}
/* 針對 jQuery UI Multiselect 的 dropdown 列表 */
.ui-multiselect-menu ul li {
    list-style: none;
    margin-left: 0;
    padding-left: 0;
}
.ui-multiselect-checkboxes label input {
    position: absolute;
    right: 30px;
    margin-top: 8px;
    top: unset;
}
/* 針對 jQuery UI Multiselect Widget 裏面的 checkbox */
.ui-multiselect-menu input[type="checkbox"] {
    /* 隱藏原生方形勾勾 */
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;

    /* 自訂大小 */
    width: 14px;
    height: 14px;

    /* 變成圓圈 */
    border-radius: 50%;
    border: 1px solid #666;
    background-color: #fff;
    margin-right: 6px;
    vertical-align: middle;
    position: absolute;
}

/* 選中時顯示圓點 */
.ui-multiselect-menu input[type="checkbox"]:checked {
    border-color: #0073aa;
    background-color: #fff;
}

/* 用 ::before 畫入面嗰粒圓點 */
.ui-multiselect-menu input[type="checkbox"]:checked::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #0073aa;
    transform: translate(-50%, -50%);
}
.field.buttons {
	visibility: hidden;
    position: absolute;
}

.single-post #content {
	font-size:22px;
}

.single-post #content .event_title {
	color:#93137d;
	font-weight:bold;
	margin-bottom:0px;
}

.single-post #content .remark_text
{
	font-size:16px;
}

.single-post #content .event_subtitle {	
	font-weight:bold;
	margin-bottom:0px;
}

.row.gallery-type-grid .vc_col-sm-12.custom-gallery-item  {
	width:33%;
	position:relative;
	top:unset;
	left:unset;
}
.event_photo .agni-gallery-figure{
    display: inline-block;
}
.event_media {
	padding:20px 50px;
	border-radius:10px;
	background-color:#f3f3f3;
}

.event_relative .container , .event_media .container {
	width:100%;
}

.mfp-arrow-left:after, .mfp-arrow-right:after {
	content: " " !important;
}

.my-wpb-gallery-more, .my-related-posts-more {
	width:100%;
	border:none;
	color:#961B81;
	text-decoration:underline;
	font-family: Arial, "Noto Sans TC", "Noto Sans SC", sans-serif;
	font-size:22px;
	font-weight:bold;
}

.my-wpb-gallery-more {
	padding-top:0px;
}

.my-related-posts {
    display: flex;
    flex-wrap: wrap;              /* 允許多行 */
    gap: 16px;                    /* 每個格之間的距離，可自行調整 */
}

.my-related-post-item {
    flex: 0 0 calc(33.333% - 16px);  /* 每行大約 3 個 */
    box-sizing: border-box;
}

/* 隱藏超出 initial 嘅 item（保留你原本的） */
.my-related-post-item.is-hidden {
    display: none;
}

.my-related-post-thumb img {
    display: block;
    width: 100%;
    height: auto;
}

.my-related-post-title {
    margin-top: 8px;
   font-size:22px;
}

@media (max-width: 768px) {
    .my-related-post-item {
        flex: 0 0 50%;   /* tablet / mobile 每行 2 個 */
    }
}

@media (max-width: 480px) {
    .my-related-post-item {
        flex: 0 0 100%;  /* 細手機每行 1 個 */
    }
}

/* Gallery 行容器：改用 flex 排版 */
.my-wpb-gallery {
    display: flex;
    flex-wrap: wrap;
}

/* 每張圖片項目：3 張一行 + 取消絕對定位 */
.my-wpb-gallery .custom-gallery-item {
    position: relative !important;  /* 覆蓋 inline position:absolute */
    left: auto !important;          /* 清除 inline left */
    top: auto !important;           /* 清除 inline top */
    flex: 0 0 33.333%;              /* 每行 3 張 */
    box-sizing: border-box;
}

/* 如有需要，可加簡單間距 */
.my-wpb-gallery .custom-gallery-item figure {
    margin: 0;
    padding: 0px;                   /* 你可自行調整 */
}

/* 隱藏多出來的圖片（供 JS 用 is-hidden 時使用） */
.my-wpb-gallery .custom-gallery-item.is-hidden {
    display: none !important;
}

/* Responsive：手機可以改少啲一行顯示的數量（可選） */
@media (max-width: 768px) {
    .my-wpb-gallery .custom-gallery-item {
        flex: 0 0 50%;              /* tablet / mobile：每行 2 張 */
    }
}

@media (max-width: 480px) {
    .my-wpb-gallery .custom-gallery-item {
        flex: 0 0 100%;             /* 細手機：每行 1 張 */
    }
}

