/* Buttons */

.newbutton {
 display: inline-block;
 vertical-align: middle;
 transform: translateZ(0);
 box-shadow: 0 0 1px rgba(0, 0, 0, 0);
 backface-visibility: hidden;
 font-smoothing: grayscale;
 position: relative;
 transition: color 0.3s;
  background: white;
	  color: #000 !important;
  padding: 8px 15px;
  color: #fff;
  text-decoration: none;  
    border: 2px solid #000;
}

.newbutton:before {
  content: "";
  position: absolute;
  z-index: -1;
  top: 0;
  left: 0;
  right: -1px;
  bottom: -1px;
  background: #000;
  transform: scaleY(0);
  transform-origin: 50% 100%;
  transition: transform 0.3s ease-out;
}

.newbutton:focus {
    color: white !important;
}

.newbutton:hover {
  color: white !important;
}

.newbutton:hover {
	border: 2px solid black;
}

.newbutton:hover:before, .newbutton:focus:before, .newbutton:active:before {
  transform: scaleY(1);
}

@media (prefers-color-scheme: dark) {
	.newbutton {
    background: black;
    color: #fff !important;
    border: 2px solid #fff;
}
		.newbutton:hover {
  color: #000 !important;
	border: 2px solid white !important;
}
	.newbutton:before {
  background: #fff;
}
	.ast-button {
    color: #fff !important;
    border: 2px solid #fff !important;
	}
	.ast-button:hover {
			  background-color: #fff !important;
	  color: #000 !important;
    border: 2px solid #fff !important;
	}
}

/* HEADINGS */

h1 {
	font-weight: 500 !important;
}

h1-center {
	  font-size: 46px;
    line-height: 50px;
    margin-bottom: 20px;
    margin-top: 15px;
    letter-spacing: -1px;
	    text-align: center!important;
	    display: block!important;
}

h2, .entry-content h5 {
	font-weight: 600 !important;
}

h2, .entry-content h2 {
  font-size: 1.7em;
}

@media only screen and (max-width: 768px) {
  h2, .entry-content h2 {
    font-size: 1.3em !important;
  }
}

h2-center {
  float: left;
  position: relative;
  left: 50%;
  transform: translateX(-50%);
	margin-bottom: 20px;
	font-size: 1.5rem;
	font-weight: 600;
}

h3, .entry-content h3 {
    font-size: 1.3rem;
    font-weight: bold;
}

h4 {
    font-size: 1.5em !important;
}

.entry-content h4 {
    font-weight: 500;
	margin-bottom: 4% !important;
    text-align: left;
}

/* custom lightbox */

.custom-lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out;
}

.custom-lightbox[aria-hidden="false"] {
    display: flex;
    opacity: 1;
}

.custom-lightbox img {
    max-width: 96%;
    max-height: 96%;
    width: 100%;
    height: auto;
    object-fit: contain;
    transition: transform 0.5s ease-in-out;
}

.custom-lightbox-close {
    position: absolute;
    top: 10px;
    right: 20px;
    color: #808080;
    font-size: 30px;
    cursor: pointer;
    z-index: 1100;
}

.custom-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    color: black;
    font-size: 40px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    user-select: none;
    background: rgba(255, 255, 255, 0.2);
    line-height: 40px;
    padding: 0 0 5px 0;
    border-radius: 0px;
    z-index: 1100;
    -webkit-tap-highlight-color: transparent;
    transition: background-color 0.3s ease-out;
}

@media (hover: hover) {
    .custom-lightbox-arrow:hover {
        background-color: rgba(255, 255, 255, 0.8);
    }
}

@media (hover: none) {
    .custom-lightbox-arrow:active {
        background-color: rgba(255, 255, 255, 0.8);
        transition: background-color 0s;
    }
}

.custom-lightbox-arrow.left { left: 20px; }
.custom-lightbox-arrow.right { right: 20px; }

.custom-lightbox-counter {
    position: absolute;
    top: 20px;
    left: 20px;
    color: #808080;
    font-size: 16px;
    z-index: 1100;
}

@keyframes slideInFromLeft {
    from {
transform: translateX(-100%);
opacity: 0;
    }
    to {
transform: translateX(0);
opacity: 1;
    }
}

@keyframes slideInFromRight {
    from {
transform: translateX(100%);
opacity: 0;
    }
    to {
transform: translateX(0);
opacity: 1;
    }
}

.slide-in-left {
    animation: slideInFromLeft 0.7s ease-in-out;
}

.slide-in-right {
    animation: slideInFromRight 0.7s ease-in-out;
}

/* breadcrumb */

.breadcrumb a {
    transition: all 0.2s linear;
    padding: 2px 4px;
}

.breadcrumb a:hover {
    background: #000;
    color: #fff;
}

@media (prefers-color-scheme: dark) {
    .breadcrumb a:hover {
        background: #fff;
        color: #000;
    }
}

/* input */

input[type="text"],
input[type="email"],
select,
textarea {
    width: 100%;
    padding: 8px 0px;
    margin-bottom: 20px;
    border: 0;
    border-bottom: 2px solid #000;
    border-radius: 0;
    font-size: 20px;
    background: transparent;
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
select::placeholder,
textarea::placeholder {
    padding-left: 10px;
}

input[type="submit"], 
button[type="submit"].ast-button {
    width: auto;
    cursor: pointer;
    padding: 8px 20px;
    border-radius: 0;
    background: transparent;
    color: #000;
	transition-duration: 0.3s;
}

input[type="submit"]:hover, 
button[type="submit"].ast-button:hover {
    background-color: #000;
    color: #fff;
    transition-duration: 0.3s;
}

textarea {
    height: 100px;
    resize: vertical;
}

.form-message {
    transition: opacity 0.5s;
    opacity: 0;
}

.form-message.show {
    opacity: 1;
}

@media (prefers-color-scheme: dark) {
    input[type="text"],
    input[type="email"],
    select,
    textarea {
        border-color: #000;
        border-bottom: 2px solid #fff;
        color: white;
    }

    input[type="submit"] {
        border-color: #fff;
    }

    input.form-control {
        color: #fff !important;
    }
}

/* sendy */

.sendy-signup-form {
    max-width: 400px;
    margin: 0 auto;
}

.sendy-signup-form input::placeholder {
    padding-left: 10px;
}

.name-fields {
    display: flex;
    justify-content: space-between;
}

.name-fields input {
    width: 48%;
}

.button-container {
    text-align: center;
}

#response-message {
    text-align: center;
    margin-top: 10px;
}

/* potential CLS fix */

.single .content-area {
     width: 70% !important;
     flex-shrink: 0 !important;
   }

.single .widget-area {
     width: 30% !important;
     flex-shrink: 0 !important;
}

@media (max-width: 1067px) {
.single .content-area {
     width: 100% !important;
     flex-shrink: 0 !important;
   }
	}
	
/* new CLS fix */

@media (min-width: 1024px) {
    .ast-right-sidebar #primary {
        padding-right: 30px;
        margin: 0;
        margin-top: 40px;
    }
    
    .ast-right-sidebar #secondary {
        padding-left: 30px;
        margin-left: -1px;
        margin-top: 80px;
        width: 310px;
    }
    .ast-container {
        display: grid;
        grid-template-columns: minmax(0, 75%) minmax(0, 25%);
        gap: 30px;
    }
}

@media (max-width: 1023px) {
    .ast-container {
        display: block;
    }
    
    #primary, #secondary {
        padding: 0;
        margin: 0;
    }
}

/* footer & mobile */

@media screen and (max-width: 767px) {
ul {
    margin: 0 0 1.1em 1.5em;
}
	h1-center {
		font-size: 40px;
	}
.sidebar-main {
		margin-top: 50px !important;
	}
.secondary .widget-title {
    margin-top: 70px;
}
    .custom-row {
        flex-direction: column;
    }

    .custom-column {
        width: 100% !important;
    }
    body.archive .ast-col-md-4, body.archive .ast-col-sm-12 {
    padding-right: 0% !important;
    padding-left: 0% !important;
}
}

@media (max-width: 921px) {
    .secondary .widget-title {
        text-align: center;
    }
}

@media only screen and (min-width: 768px) {
.ast-container {
    padding-left: 15px;
    padding-right: 15px;
}
body.archive .ast-archive-description .ast-archive-title {
    margin-bottom: 20px !important;
}
}

@media (max-width: 960px) {
body.archive .ast-archive-description, body.archive .ast-archive-description .ast-archive-title {
    padding-right: 0% !important;
    padding-left: 0% !important;
    margin-bottom: 0px !important;
	  margin-top: 0px !important;
}
}

/* other */

.custom-title {
	text-align: center;
}

.centered-content {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center !important;
}

.widget-title {
    margin-bottom: 15px;
}

.sidebar-main {
	  line-height: 1.5;
}

div {
	margin: auto;
}

p {
    margin-bottom: 1em;
}

#primary {
    margin: auto;
    margin-top: 40px;
}

.entry-content p {
	  margin-bottom: 6%;
}

#content p a {
 border-bottom: 2px solid #000;
}

#content p a:hover {
 border: none;
}

.video-caption {
  text-align: center;
	font-size: 17px;
	margin-top: 10px !important;
  margin-bottom: 40px !important;
	line-height: 23px;
  color: #000 !important;
}

.wp-caption-text {
  font-size: 17px !important;
  line-height: 23px !important;
    border: 0px;
  color: #000;
}

.wp-caption-text a {
	color: black;
}

@media (prefers-color-scheme: dark) {
.wp-caption .wp-caption-text a {
	color: white !important;
}
}

.pd-one-fourth + .pd-one-half, .entry-content p, .entry-content li {
   font-size: 1.175rem;
}

body {
	  text-align: justify;
    line-height: 1.6;
	  overflow-x: hidden !important;
    font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, Helvetica, Arial, sans-serif, Apple Color Emoji, Segoe UI Emoji, Segoe UI Symbol;
}

.secondary a *,.site-footer a *,.site-header a *,a {
    transition: none;
}

@media (prefers-color-scheme: dark) {
#content p a {
    border-bottom: 2px solid #fff;
}
#content p a:hover {
    border: none !important;
	}
}

html, body {
  overflow-x: hidden !important;
  width: 100%;
  position: relative;
}

.entry-content .operational-details p, .entry-content .location-information p {
    font-size: 1rem;
}

.entry-meta, .entry-meta * {
    margin-bottom: 20px !important;
    text-align: left;
}

@media (max-width: 1067px) {
.video-caption {
	margin-top: -10px !important;
}
}

article {
	margin-bottom: 60px;
}

.entry-content .location-directions p {
	margin-top: 10px;
}

ul {
    margin: 0 0 1.5em 2em;
}

.tags-links, html[lang='zh-CN'] .ast-reading-time, .page .entry-header, .comments-area {
	display: none;
}

.archive .entry-title a:hover {
	    background: #000 !important; 
	    color: white !important;
	    transition: all .4s linear;
}

.entry-title {
    font-size: 1.5rem;
}

@media (min-width: 1068px) and (max-width: 1221px)) {
.one_half {
    width: 80%;
}
	}

@media (max-width: 1067px) {
.one_half {
    width: 95%;
}
	}

.ast-single-post .entry-title {
    text-align: center!important;
    font-size: 46px;
}

@media only screen and (max-width: 767px) {
discover-more {
  padding-left: 10px;
}
}

@media (max-width: 921px) {
#primary {
    padding: 0em 0;
}
}

@media screen and (max-width: 767px) { #primary {
    margin-top: 60px !important;
}
}

.blog-layout-1 {
    border-bottom: 0px solid #eee;
}

@media (min-width: 922px) {
.ast-plain-container .ast-grid-3 .ast-article-post {
    display: initial;
}
}

.blog-layout-1 .post-thumb {
    padding-left: 0;
    padding-right: 0;
}

.ast-404-layout-1 .page-sub-title {
    margin-top: 5% !important;
	  font-size: 1.5rem;
    font-weight: 400;
}

.apbct_special_field {
	display: none !important;
}

@media only screen and (min-width: 768px) {
.page .site-content {
	padding-top: 40px;
}
.single .site-content {
	padding-top: 40px;
}
}

body.archive .ast-archive-description .ast-archive-title {
    text-transform: none;
}

body.archive .ast-archive-description {
	 padding-bottom: 2em;
}

@media only screen and (max-width: 767px) {
.video-caption {
    margin-top: 0px !important;
}
}

/* not sure */

.page-numbers.next-set { 
	margin-top: 5px !important;
}

.ast-search-box.full-screen {
    background: none !important;
}
  
/* NEW VISUALS */

.ontop #imageData {
    display: none !important;
}

.ast-single-post .entry-title, .page-title, .sidebar-main h2 {
	font-weight: 500 !important;
}

/* scroll to top */

#custom-scroll-top {
        display: none;
        position: fixed;
        bottom: 20px;
        right: 20px;
        background-color: transparent;
        color: black;
        border: none;
        width: 30px;
        height: 30px;
        text-align: center;
        cursor: pointer;
        z-index: 1000;
        padding: 0;
}
#custom-scroll-top svg {
        width: 24px;
        height: 24px;
        margin-top: 4px;
}
#custom-scroll-top:hover {
    color: grey;
    transition: all .2s linear;
}
@media (prefers-color-scheme: dark) {
	#custom-scroll-top {
		background-color: transparent;
		color: lightgrey;
}
	#custom-scroll-top:hover {
    color: grey;
    transition: all .2s linear;
}
	}

@media only screen and (max-width: 768px) {
	#custom-scroll-top {
		bottom: 15px;
    right: 5px;
 background: none;
	}
}

/* DARK MODE */

@media (prefers-color-scheme: dark) {
  body {
    background-color: #000 !important;
    color: #fff !important;
  }
	body, h1, .entry-title a, .entry-content h1, h2, .entry-content h2, h3, .entry-content h3, h4, .entry-content h4, h5, .entry-content h5, h6, .entry-content h6, .entry-meta, .entry-meta *, .wp-caption-text, .video-caption {
		color: #fff !important;
	}
  a {
    color: #fff;
  }
a:hover {
    color: #fff;
}
.page-numbers.current {
    background: #fff;
	color: #000;
}
	.entry-content ul li:after{
   color: white !important;
   background-color: black !important;
}

body ::selection {
    background: white;
    color: black;
}
}

/* new */

@media screen and (min-width: 576px) {
    .entry-content {
        margin-top: 50px;
    }
	    .single-post .entry-content {
        margin-top: 0;
    }
}

@media (max-width: 921px) {
    .ast-right-sidebar #secondary, .ast-left-sidebar #primary {
        width: auto !important;
    }
}

.ast-right-sidebar #primary {
        padding-right: 0px !important;
}

.entry-meta a {
	border-bottom: 2px solid black;
}

.entry-meta a:hover {
	border-bottom: none;
    transition: all 0.2s linear !important;
}

@media (prefers-color-scheme: dark) {
	.entry-meta a {
	border-bottom: 2px solid white !important;
}
}

.ast-right-sidebar #secondary, .ast-right-sidebar #primary {
        border: none;
}

/* spacer */

.spacer-50 { padding-bottom: 50px; }
.spacer-70 { padding-bottom: 70px; }
.spacer-25 { padding-bottom: 25px; }
.spacer-20 { padding-bottom: 20px; }
.spacer-10 { padding-bottom: 10px; }
.spacer-5 { padding-bottom: 5px; }
.spacer-100 { padding-bottom: 100px; }
.spacer-30 { padding-bottom: 30px; }
.spacer-80 { padding-bottom: 80px; }
.spacer-60 { padding-bottom: 60px; }
.spacer-40 { padding-bottom: 40px; }
.spacer-45 { padding-bottom: 45px; }
.spacer-300 { padding-bottom: 300px; }

.spacer-5, .spacer-10, .spacer-20, .spacer-25, .spacer-30, .spacer-40, .spacer-45, 
.spacer-50, .spacer-60, .spacer-70, .spacer-80, .spacer-100, .spacer-300 {
    display: block;
}

/* new responsive fix */

@media (min-width: 922px) {
    .single #primary {
        width: 800px !important;
        margin-right: auto;
    }
    .single #secondary {
        width: calc(100% - 800px) !important;
    }
}
@media (max-width: 921px) {
    .single #primary,
    .single #secondary {
        width: 100% !important;
        margin-right: 0;
    }
    
    .single #secondary {
        margin-top: 2rem;
    }
}

/* titles */

.single .entry-header {
    margin-bottom: 0;
}

@media screen and (max-width: 576px) {
    header.entry-header .entry-title {
        font-size: 2.0rem;
    }
}

/* other */

.single .post-navigation {
    display: none;
}

.content-container-600 {
    max-width: 600px;
    margin: 0 auto;
    width: 100%;
    box-sizing: border-box;
	  font-size: 1.175rem;
}

/* citation */

#c {
    margin-top: 70px;
}

/* read time */

.single .entry-header {
    margin-bottom: -20px;
}

.entry-content .read-time {
    margin-bottom: 20px;
    display: block;
}

/* Footnotes */

.footnote {
  font-size: 0.9em;
  margin-top: 1em;
}

@media only screen and (max-width: 600px) {
  .footnote {
    font-size: 0.8em;
  }
}

.footnotes-section {
    min-height: 100px;
}

.footnotes-section h4 {
    margin-top: 50px;
    margin-bottom: 10px !important;
}

.footnotes-section ol {
    padding-left: 1.5em;
    margin: 0;
}

.entry-content .footnotes-section h4 {
    margin-bottom: 10px !important;
}

.footnote-item {
    font-size: 0.9em;
    line-height: 1.4;
    margin-bottom: 0.5em;
    word-break: break-word;
    white-space: normal;
    overflow-wrap: break-word;
    text-align: left;
}

.footnote-ref, .backref {
    text-decoration: none;
    border-bottom: none;
}

.footnote-ref:hover, .backref:hover {
    color: grey;
    transition: all .2s linear;
}

#content p .footnote-ref {
    border-bottom: none;
    margin-left: 3px;
}

.footnote-triangle {
    width: 24px;
    height: 24px;
    vertical-align: middle;
}

.footnote-highlight, .footnote-ref:hover {
    animation: highlight 2s ease;
}

@keyframes highlight {
    0% { background: transparent }
    20% { background: rgba(255, 235, 59, 0.3) }
    80% { background: rgba(255, 235, 59, 0.3) }
    100% { background: transparent }
}

@media only screen and (max-width: 600px) {
    .footnote-item {
        font-size: 0.8em;
    }
}

/* blockquote */

blockquote, blockquote p {
	color: #000 !important;
  background-color: #fff;
	font-size: 24px;
	line-height: 34px;
	border: 0px;
	font-weight: 600;
   margin-bottom: 1.5% !important;
}

blockquote {
    padding: 0px 30px 20px 30px;
	margin-bottom: 10px;
	margin-top: -20px;
	margin-left: 0px;
	margin-right: 0px;
	border: none;
}

@media only screen and (max-width: 768px) {
blockquote {
    padding: 0px 0px 0px 0px;
	margin: 0em 0em 0em 0em;
	margin-bottom: 1em !important;
}
}

@media (prefers-color-scheme: dark) {
	 blockquote, blockquote p {
    color: #fff !important;
    background-color: #000;
}
}

/* PD menu */

body.menu-open { overflow: hidden; }

.burger-menu { display: flex; justify-content: center; align-items: center; position: relative; user-select: none; }

.burger-icon { font-size: 1.4rem; color: #000; cursor: pointer; position: absolute; top: 5px; left: 50%; transform: translateX(-50%); z-index: 1001; font-weight: normal; }

.menu { display: none; flex-direction: column; padding: 10px; background-color: #fff; width: 100%; height: 140px; z-index: 1000; text-align: center; user-select: none; }

body.menu-open .menu { display: flex; position: relative; }

.menu-items a { text-decoration: none; color: #000; font-size: 1.5rem; margin: 15px 20px; user-select: none; }

/* .menu-items a:hover { color: #666 !important; transition: color 0.3s ease;}*/

.language-switcher { display: flex; justify-content: center; margin-top: 20px; }

.language-switcher a { text-decoration: none; color: #000; font-size: 1rem; margin: 0 10px; user-select: none; }

@media (min-width: 768px) { .menu-items { flex-direction: row; gap: 30px; margin-top: 30px; } .language-switcher { flex-direction: row; } }

@media (max-width: 767px) { .menu { height: 220px; padding-top: 50px; } }

@media (prefers-color-scheme: dark) { .burger-icon, .menu a, .language-switcher a { color: #fff; } .menu { background-color: #000; } }

html[lang="zh-CN"] .menu-items a {white-space: nowrap; }

/* shorter menu height for pages without translation */
.page-id-70811 .menu,
.page-id-31 .menu,
.page-id-73132 .menu {
    height: 80px !important;
}

@media (max-width: 767px) {
    .page-id-70811 .menu,
    .page-id-31 .menu,
    .page-id-73132 .menu {
        height: 160px !important;   }
}