/*
Theme Name: CCBT
Author: HAUS
Author URI: https://h4us.jp/
Description: Theme for Civic Creative Base Tokyo
Requires at least: 5.9
Tested up to: 6.7
Requires PHP: 5.6
Version: 1.8.12
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ccbt
*/

:root {
  --ccbt-fontsize-small: 0.75rem;
  --ccbt-fontsize-medium: 1.2rem;

  --ccbt-border-color-default: #c7c7c7;

  --ccbt-bg-color-snowwhite: #f7f7f7;
}

@font-face {
  font-family: 'ccbt-sans';
  src: url('./ccbt.otf');
  /* src: url('https://d93jb8ib2zfoo.cloudfront.net/wp-content/themes/ccbt/ccbt.otf'); */
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-kerning: none;
  hanging-punctuation: allew-end;
  line-break: strict;
  scroll-behavior: smooth;
}

body {
  font-feature-settings: 'palt' 0;
  font-kerning: none;
}

h1,
h2,
h3,
h4,
h5,
h6,
dt,
th {
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
}

h1[id],
h2[id],
h3[id],
h4[id],
h5[id],
h6[id] {
  scroll-margin-top: 152px;
  /* Header height 80px + Heading margin-top 4.5rem (=72px) */
}

strong {
  font-weight: 600;
}

footer {
  margin-block-start: 0 !important;
}

footer a {
  text-decoration: none;
}

footer .wp-block-lazyblock-ccbt-breadcrumbs a {
  color: #fff;
}

/* site policy cookie section */
#cookie {
  scroll-margin-top: 80px;
}

.wp-block-lazyblock-ccbt-breadcrumbs {
  font-size: 0.75rem;
}

.wp-block-lazyblock-ccbt-breadcrumbs .current {
  font-weight: bold;
}

.entry-content>*+h1,
.entry-content>*+h2,
.entry-content>*+h3,
.entry-content>*+h4,
.entry-content>*+h5,
.entry-content>*+h6 {
  margin-block-start: 4.5rem !important;
}

.entry-content p,
.entry-content ol {
  max-width: 64rem;
  margin-left: 0 !important;
}

.innerlink-list {
  list-style: none;
  padding: 0.5rem 0;
  border-bottom: 1px solid #000;
  width: 100%;
  overflow-x: auto;
  white-space: nowrap;
  background: #fff;
  position: sticky;
  top: 80px;
  z-index: 1;
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
}

.innerlink-list li {
  display: inline;
}

.innerlink-list a {
  text-decoration: none;
  margin-right: 1rem;
  color: #000;
  font-weight: 600;
}

.wp-block-hyperlink-group {
  text-decoration: none;
  color: #000;
}

.wp-block-button.is-style-outline>.wp-block-button__link,
.wp-block-button .wp-block-button__link.is-style-outline {
  border-width: 1px;
}

.fellow-list {
  display: grid;
  gap: 1rem;
}

.fellowlink>.wp-block-columns {
  aspect-ratio: 6/1;
  align-items: center !important;
}

.fellowlink .wp-block-column {
  display: flex;
  align-items: center;
}

.fellowlink .wp-block-image img {
  display: block;
}

.fellow-box {
  border: 1px solid #000;
  padding: 1rem 3rem 1rem 1rem;
  width: 100%;
  display: flex;
  gap: 2rem;
  text-decoration: none;
  align-items: center;
  font-feature-settings: "palt";
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="9" height="14" viewBox="0 0 9 14" fill="none"><path d="M8.63281 7.02649C8.63281 6.92753 8.61198 6.83639 8.57031 6.75305C8.53385 6.66451 8.47917 6.58378 8.40625 6.51086L2.21875 0.448364C2.07812 0.312948 1.90625 0.245239 1.70312 0.245239C1.57292 0.245239 1.45312 0.276489 1.34375 0.338989C1.23438 0.401489 1.14844 0.487427 1.08594 0.596802C1.02344 0.700968 0.992188 0.82076 0.992188 0.956177C0.992188 1.14889 1.0599 1.31816 1.19531 1.46399L6.88281 7.02649L1.19531 12.589C1.0599 12.7348 0.992188 12.9041 0.992188 13.0968C0.992188 13.2322 1.02344 13.352 1.08594 13.4562C1.14844 13.5656 1.23438 13.6515 1.34375 13.714C1.45312 13.7765 1.57292 13.8077 1.70312 13.8077C1.90625 13.8077 2.07812 13.7374 2.21875 13.5968L8.40625 7.54211C8.47917 7.4692 8.53385 7.39107 8.57031 7.30774C8.61198 7.2192 8.63281 7.12545 8.63281 7.02649Z" fill="black"/></svg>');
  background-repeat: no-repeat;
  background-position: right 1rem center;
}

.fellow-box:hover {
  opacity: 0.8;
}

.fellow-box__avatar {
  flex-basis: 25%;
}

.fellow-box__avatar img {
  aspect-ratio: 3/2;
  width: 100%;
  height: auto;
  overflow: hidden;
  object-fit: contain;
  display: block;
}

.fellow-box__info {
  flex-basis: 70%;
}

.fellow-box__info__name {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.fellow-box__info__project {
  font-size: 0.875rem;
  font-weight: 600;
  margin: 0;
}

.mission__item h3 {
  margin: 0;
  padding: 1rem;
  border-bottom: 1px solid #000;
}

.mission__item p {
  margin: 0;
  padding: 1rem;
}

/* foldout block */
.foldout__toggle {
  background: transparent;
  border: 1px solid #000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 1rem;
  cursor: pointer;
  text-align: left;
  font-size: 1rem;
  transition: background-color 0.2s;
}

.foldout__toggle:hover {
  opacity: 0.7;
}

.foldout__title {
  height: 20px;
  font-weight: bold;
}

.foldout__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-left: 1rem;
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.foldout__icon img {
  display: block;
  width: 100%;
  height: 100%;
}

.foldout__content {
  margin-top: -1px;
  border: 1px solid #000;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.foldout__video {
  display: block;
  aspect-ratio: 16/9;
  width: 100%;
  height: auto;
}

.foldout__iframe {
  width: 100%;
  height: 100%;
  display: block;
}

.foldout__content>*:last-child {
  margin-block-end: 0 !important;
}

.event-actions .wp-block-button {
  width: 100%;
}

.event-actions .wp-block-button .wp-block-button__link {
  width: 100%;
}

.wp-block-post-content a {
  color: #000;
}

.wp-block-post-navigation-link a {
  background-color: #fff;
  display: inline-block;
  text-decoration: none;
  color: #000;
  border: 1px solid #000;
  padding: 1rem;
}

.wp-block-post-navigation-link a:hover {
  background-color: #000;
  color: #fff;
}

.header__right {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: space-between;
}

.event-items>ul {
  gap: 0 !important;
}

.event-item {
  aspect-ratio: 4/3;
  position: relative;
}

.event-item__image {
  width: 100%;
  height: 100%;
  margin-block-start: 0 !important;
}

.event-item__image a {
  display: flex;
  width: 100%;
  height: 100%;
  padding: 2rem;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;
}

.event-item__image a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 -1px 0 #000) drop-shadow(0 1px 0 #000) drop-shadow(-1px 0 0 #000) drop-shadow(1px 0 0 #000);
}

.event-item .event-item__info {
  position: absolute;
  top: 1rem;
  left: 0;
  margin-right: 1rem !important;
  margin-bottom: 1rem;
  z-index: 2;
}

.event-item>a {
  aspect-ratio: 1 / 1;
  position: relative;
}

.event-item>a img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.event-item__subtitle {
  display: inline-block;
  padding: 0.5rem;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  background-color: #fff;
  border-top: 1px solid #000;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
}

.event-item__title {
  display: block;
  background-color: #fff;
  border: 1px solid #000;
  margin: 0;
  margin-block-start: 0 !important;
  padding: 0.5rem 0.75rem;
  font-size: 1rem !important;
  max-width: fit-content;
  line-height: 1.5;
}

.event-item__title a {
  color: #000;
  text-decoration: none;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: pre-wrap;
}

.event-item__date {
  display: inline-block;
  background-color: #fff;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  margin: 0;
  margin-block-start: 0 !important;
  padding: 0.5rem;
  color: #7f7f7f;
  font-size: 0.875rem;
  line-height: 1.2;
}

.event-item__status {
  position: absolute;
  bottom: 1rem;
  right: 0;
  display: flex;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
}

.event-item__status__application {
  text-align: right;
  background-color: #fff;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin: 0 !important;
  padding-left: 24px;
  display: inline-block;
}

.event-item__status__application__accepting::before {
  content: "";
  background-image: url('assets/icon-accepting.svg');
  background-repeat: no-repeat;
  display: block;
  width: 16px;
  height: 16px;
  position: absolute;
  top: 6px;
  left: 4px;
}

.event-item__status__current {
  text-align: right;
  background-color: #fff;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  margin: 0 !important;
  margin-left: 0.5rem !important;
  display: inline-block;
  padding-left: 24px;
  position: relative;
}

.event-item__status__current__upcoming::before {
  content: "";
  position: absolute;
  background-image: url('assets/icon-upcoming.svg');
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  top: 5px;
  left: 0;
}

.event-item__status__current__open::before {
  content: "";
  position: absolute;
  background-image: url('assets/icon-open.svg');
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  top: 5px;
  left: 4px;
}

.event-item__status__current__ended::before {
  content: "";
  position: absolute;
  background-image: url('assets/icon-ended.svg');
  background-repeat: no-repeat;
  width: 16px;
  height: 16px;
  top: 5px;
  left: 5px;
}

.wp-block-lazyblock-ccbt-event-list ul {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
}

@media (max-width: 1024px) {
  .wp-block-lazyblock-ccbt-event-list ul {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .wp-block-lazyblock-ccbt-event-list ul {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
.wp-block-lazyblock-ccbt-event-list li {
  margin-block-start: 0 !important;
  margin-top: 0 !important;
}

.wp-block-lazyblock-ccbt-event-cta-block,
.event-actions,
.sticky-cta {
  position: sticky;
  bottom: 1rem;
  gap: 1rem 1rem !important;
}

li.type-news h2 {
  margin-top: 0;
  margin-bottom: 0;
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
  font-weight: 600;
  line-height: 1.5;
}

li.type-news h2 a {
  padding: 0.5rem;
  display: inline-block;
  border: 1px solid #000;
}

li.type-news .wp-block-post-date {
  display: inline-block;
  color: #7f7f7f;
  border-left: 1px solid #000;
  border-right: 1px solid #000;
  border-bottom: 1px solid #000;
  padding: 0.5rem;
  line-height: 1.3;
}

li.type-news a {
  color: #000;
  text-decoration: none;
}

li.type-news .taxonomy-post_tag {
  margin-top: 1rem;
}

li.type-news .taxonomy-post_tag a {
  color: #fff;
}

li+li {
  margin-top: 0.5rem;
}

.taxonomy-post_tag a {
  text-decoration: none;
  background-color: #000;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 4px;
}

.wp-block-social-link {
  background-color: transparent !important;
}

.wp-block-post-terms a {
  pointer-events: none;
}

.taxonomy-category a {
  pointer-events: none;
  text-decoration: none;
  background-color: #000;
  color: #fff;
  font-size: 0.875rem;
  padding: 0.5rem;
  border-radius: 4px;
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
}

.wp-element-caption {
  padding-top: 0.5rem;
  font-size: 0.75rem;
  color: #7f7f7f;
  text-align: left;
  line-height: 1.3;
}

.home .taxonomy-category,
.post-type-archive-news .taxonomy-category {
  margin: 0 0 0.5rem 0;
}

.home .taxonomy-category a,
.post-type-archive-news .taxonomy-category a {
  margin: 0;
  padding: 0;
  background-color: transparent;
  color: #000;
  font-weight: 600;
}

.home .breadcrumbs-social-group .wp-block-social-links {
  width: auto;
}

footer .communities {
  margin-right: 0 !important;
  margin-bottom: 1rem !important;
}

footer .wp-block-lazyblock-ccbt-breadcrumbs {
  display: block !important;
  margin-bottom: 1rem !important;
}

.home .wp-block-lazyblock-ccbt-breadcrumbs {
  display: none;
}

footer .wp-block-lazyblock-ccbt-breadcrumbs {
  margin-left: 0 !important;
  margin-right: auto;
}

.wp-block-lazyblock-ccbt-breadcrumbs a {
  color: #000;
  text-decoration: none;
}

header+.wp-block-lazyblock-ccbt-breadcrumbs {
  margin-top: 1rem;
  padding-top: 0;
}

.button--disabled {
  pointer-events: none;
  background-color: #979797 !important;
}

footer .wp-block-social-links {
  margin-right: 0 !important;
}

.share-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.share-buttons .share-buttons-list {
  list-style: none;
  display: flex;
  margin: 0 0 0 0.5rem;
  padding: 0;
}

.share-buttons-list li+li {
  margin-top: 0;
}

.share-buttons .share-buttons-list .share-buttons-list-item {
  width: 48px;
  height: 48px;
  border: 1px solid #000;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.share-buttons-list-item+.share-buttons-list-item {
  border-left: none !important;
}

.share-buttons .share-buttons-list .share-buttons-list-item a {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
}

#splash {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #fff;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

#splash video {
  width: 100%;
  height: auto;
  aspect-ratio: 16/9;
}

.show-modal {
  overflow: hidden;
}

.topbanners {
  border-top: 1px solid #000;
}

.topbanners__header {
  padding: 3rem 0;
  margin: 0;
}

.topbanners__body {
  padding: 0 0 3rem;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: row;
  gap: 3rem;
}

.topbanners__body img {
  display: block;
  width: 100%;
  max-width: 784px;
  border: 1px solid #000;
}

.opening-status {
  font-weight: 700;
  font-size: 1rem;
  position: relative;
  line-height: 1rem;
  padding-left: 1.5rem;
  white-space: nowrap;
}

.opening-status::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 1rem;
  height: 1rem;
  border-radius: 0.5rem;
  background-color: #52BE8C;
}

.opening-status--closed::before {
  background-color: #F07425;
}

.opening-status__text {
  font-weight: 400;
  color: #4b4b4b;
  position: relative;
  display: inline-block;
  margin-left: 1rem;
  padding-left: 1rem;
  line-height: 1rem;
}

.opening-status__text a {
  color: #4b4b4b;
  text-decoration: underline;
}

.opening-status__text::before {
  position: absolute;
  content: "";
  border-left: 1px solid rgba(0, 0, 50);
  left: 0;
  top: 0;
  height: 1rem;
}

.todays-header__heading {
  margin: 0 0 .5rem;
}

.todays-header__date {
  font-size: 1.25rem;
  font-family: 'ccbt-sans', sans-serif;
}

.todays-footer {
  position: static;
  margin-top: 2rem;
}

.todays-button {
  display: inline-block;
  border: 1px solid #000;
  border-radius: 999px;
  text-decoration: none;
  padding: 0.5rem 1rem;
  color: #000;
}

.todays-button:after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 12px;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTQiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxNCAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj48cGF0aCBkPSJNMTMuMzQzOCA2LjAwMjJDMTMuMzQzOCA1LjgyOTAyIDEzLjI3NTQgNS42NzYzNSAxMy4xMzg3IDUuNTQ0MTlMOC42MDY0NSAxLjAyNTYzQzguNTMzNTMgMC45NTI3MTggOC40NTgzMyAwLjkwMDMwOSA4LjM4MDg2IDAuODY4NDA4QzguMzA3OTQgMC44MzY1MDcgOC4yMzA0NyAwLjgyMDU1NyA4LjE0ODQ0IDAuODIwNTU3QzcuOTc5ODIgMC44MjA1NTcgNy44Mzg1NCAwLjg3NzUyMyA3LjcyNDYxIDAuOTkxNDU1QzcuNjEwNjggMS4xMDA4MyA3LjU1MzcxIDEuMjM5ODMgNy41NTM3MSAxLjQwODQ1QzcuNTUzNzEgMS40OTA0OCA3LjU2NzM4IDEuNTcwMjMgNy41OTQ3MyAxLjY0NzcxQzcuNjIyMDcgMS43MjA2MiA3LjY2MzA5IDEuNzg0NDIgNy43MTc3NyAxLjgzOTExTDkuMjQ5MDIgMy4zOTc3MUwxMS45NjI5IDUuODcyMzFMMTIuMDk5NiA1LjUzMDUyTDkuODk4NDQgNS4zOTM4SDEuMjUwOThDMS4wNzMyNCA1LjM5MzggMC45Mjc0MDkgNS40NTA3NiAwLjgxMzQ3NyA1LjU2NDdDMC43MDQxMDIgNS42Nzg2MyAwLjY0OTQxNCA1LjgyNDQ2IDAuNjQ5NDE0IDYuMDAyMkMwLjY0OTQxNCA2LjE3OTkzIDAuNzA0MTAyIDYuMzI1NzYgMC44MTM0NzcgNi40Mzk3QzAuOTI3NDA5IDYuNTUzNjMgMS4wNzMyNCA2LjYxMDYgMS4yNTA5OCA2LjYxMDZIOS44OTg0NEwxMi4wOTk2IDYuNDczODhMMTEuOTYyOSA2LjEzODkyTDkuMjQ5MDIgOC42MDY2OUw3LjcxNzc3IDEwLjE2NTNDNy42NjMwOSAxMC4yMiA3LjYyMjA3IDEwLjI4NjEgNy41OTQ3MyAxMC4zNjM1QzcuNTY3MzggMTAuNDM2NCA3LjU1MzcxIDEwLjUxMzkgNy41NTM3MSAxMC41OTU5QzcuNTUzNzEgMTAuNzY0NiA3LjYxMDY4IDEwLjkwMzYgNy43MjQ2MSAxMS4wMTI5QzcuODM4NTQgMTEuMTI2OSA3Ljk3OTgyIDExLjE4MzggOC4xNDg0NCAxMS4xODM4QzguMzEyNSAxMS4xODM4IDguNDYwNjEgMTEuMTIgOC41OTI3NyAxMC45OTI0TDEzLjEzODcgNi40NjAyMUMxMy4yNzU0IDYuMzI4MDQgMTMuMzQzOCA2LjE3NTM3IDEzLjM0MzggNi4wMDIyWiIgZmlsbD0iYmxhY2siLz48L3N2Zz4=");
  background-repeat: no-repeat;
  background-size: contain;
  margin-left: 0.5rem;
}

.todays-event {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.todays-event--empty {
  display: flex;
  justify-content: flex-end;
  align-items: flex-start;
  flex-wrap: nowrap;
}

.todays-event--empty>span {
  display: block;
  padding: 0.5rem 0;
  font-size: 0.875rem;
  font-weight: 600;
  border-top: 1px solid #000;
  border-bottom: 1px solid #000;
  line-height: 1.5;
}

.todays-event a {
  text-decoration: none;
  display: block;
  color: #000;
}

.todays-event__item {
  display: flex;
  flex-direction: row-reverse;
  border-bottom: 1px solid #7f7f7f;
  padding-bottom: 1.5rem;
}

.todays-event__item__title {
  width: 66.6%;
}

.todays-event__item__time {
  display: block;
  color: #7f7f7f;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 1rem;
}

.todays-event__item__title h3 {
  font-size: 1.25rem;
  line-height: 1.5;
  margin: 0;
}

.todays-event__item__image {
  width: 33.3%;
  margin-right: 2rem;
}

.todays-event__item__image img {
  width: 100%;
  height: auto;
  border: 1px solid #7F7F7F;
}

.todays-event__item:nth-last-of-type(1),
.todays-event__item:nth-last-of-type(2) {
  border-bottom: none;
  padding-bottom: 0;
}

.footer-container {
  max-width: 1680px;
  margin: 0 auto;
}

.footer-access-address strong {
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
}



.page-header {
  max-width: 48rem;
}


/*
 * -- from additional CSS on DB, TODO:
 */

.wp-block-code {
  font-family: 'Courier New', Courier, monospace;
}

.wp-site-blocks {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.wp-site-blocks>.wp-block-group {
  flex: 1;
}

.taxonomy-category.wp-block-post-terms a {
  display: inline-block;
  padding: 0 0.4rem;
  margin-bottom: 0.2rem;
}

.wp-block-query-pagination {
  padding-top: 2rem;
  border-top: 1px solid #000;
}

.wp-block-query-pagination a,
.wp-block-query-pagination a:visited {
  color: #000;
}

.wp-block-query-pagination>a {
  text-decoration: none;
}

.wp-block-query-pagination-numbers {
  display: flex;
}

.wp-block-query-pagination .page-numbers {
  text-decoration: none;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 32px;
  height: 32px;
}

.wp-block-query-pagination .current {
  border: 1px solid #000;
}

.wp-block-lazyblock-ccbt-cookie {
  background-color: #fff;
  border-top: 1px solid #000;
  position: fixed;
  padding: 2rem;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 9;
  display: none;
}

.cookie-consent__container {
  max-width: var(--wp--style--global--content-size);
  margin-left: auto !important;
  margin-right: auto !important;
}

.cookie-consent__header {
  display: flex;
  justify-content: space-between;
}

.cookie-consent__header__title {
  margin: 0;
  font-size: 1rem;
}

.cookie-consent__header__close {
  cursor: pointer;
  background: none;
  border: none;
}

.cookie-consent__body {
  font-size: 0.875rem;
  line-height: 1.75;
}

.cookie-consent__container a {
  color: #000;
  text-decoration: underline;
}

.cookie-consent__body {
  display: grid;
}

.cookie-consent__body p {
  height: 4.5rem;
  overflow-y: auto;
}

.cookie-consent__buttons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-size: 1rem;
}

.cookie-consent__buttons .cookie-consent__button__reject {
  background-color: #fff;
  border: 1px solid #000;
  border-radius: 24px;
  cursor: pointer;
  font-weight: bold;
  height: 48px;
  color: #000;
}

.cookie-consent__buttons .cookie-consent__button__accept {
  background-color: #000;
  border: none;
  border-radius: 24px;
  cursor: pointer;
  font-weight: bold;
  height: 48px;
  color: #fff;
}

.single-event iframe {
  width: 100%;
  max-height: 30vw;
}

.single-event .wp-block-embed iframe {
  max-height: none;
}

.player-profile {
  border: 1px solid #000;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 2rem;
  padding: 2rem;
  margin: 3rem 0;
}

.player-profile .player-name {
  font-size: 1.125rem;
}

.player-profile .player-name-en {
  font-size: 0.875rem;
}

.player-profile .player-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top;
  text-decoration: none;
}

.player-profile .player-image-figure {
  margin: 0;
}

.player-profile .player-text {
  display: flex;
  flex-direction: column;
  padding: 0;
  gap: 1rem;
  font-size: 0.875rem;
  line-height: 1.75;
}

.player-profile .player-name a {
  color: #000;
  text-decoration: none;
}

.player-profile .player-link {
  color: #000;
}

.single-event .related-events,
.single-player .related-events {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.related-events .event-item {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
}

.related-events .event-item:nth-of-type(2) {
  border-left: 1px solid #000;
  border-right: 1px solid #000;
}

.related-events img {
  max-width: 100%;
}

.event-actions .wp-block-button {
  max-width: 520px;
  margin: auto;
}

.players-index {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  gap: 16px;
  position: sticky;
  top: 100px;
}

.players-index a {
  color: #000;
  border-bottom: 1px solid #D9D9D9;
  text-decoration: none;
}

.player-item {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #000;
  border-bottom: 1px solid #d9d9d9;
  padding-bottom: 1.5rem;
  margin-bottom: 1.5rem;
}

.player-item .player-image {
  width: 128px;
  height: 128px;
  object-fit: cover;
  object-position: top;
  margin-right: 2rem;
}

.player-text .player-name {
  font-size: 1.25rem;
  display: flex;
  margin: 0 0 0.5rem;
}

.player-text .player-name-en {
  font-size: 1rem;
  font-weight: normal;
  margin-left: 1rem;
  color: #7f7f7f;
  line-height: 1.5;
}

.player-text .player-title {
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
  font-feature-settings: 'palt' 1;
  font-kerning: normal;
}

.wp-block-lazyblock-ccbt-player-info a:visited {
  color: #000;
}

.wp-block-lazyblock-ccbt-player-info .related-header {
  border-top: 1px solid #d9d9d9;
  margin-top: 2rem;
  padding-top: 2rem;
}

.single .related-header {
  font-size: 1.5rem;
}

.single-player .player-main-image {
  margin-top: 2rem;
  margin-bottom: 2rem;
}

.single-player .player-city {
  display: block;
  color: #7f7f7f;
}

.single-player .player-city a {
  color: #7f7f7f;
}

.player-image .player-image-caption {
  color: #7f7f7f;
  font-size: 0.675rem;
}

.player-main-image .player-image-caption {
  color: #7f7f7f;
  font-size: 0.875rem;
}

.single-player .player-name-header {
  font-size: 2.25rem;
  display: flex;
  flex-direction: row;
  margin-bottom: 0.75rem;
}

.single-player .player-name-header-en {
  font-size: 1.125rem;
  color: #7f7f7f;
  font-weight: normal;
  margin-left: 1rem;
}

.single-player h1 {
  margin-top: 0;
}

.single-player .player-link {
  display: block;
  color: #000;
}

.single-player .player-updated {
  font-size: 0.875rem;
  color: #7f7f7f;
  display: block;
  text-align: right;
  margin-top: 1rem;
}

.wp-block-lazyblock-ccbt-player-related-events {
  margin-block-start: 0 !important;
}

.wp-block-tiptip-hyperlink-group-block {
  text-decoration: none;
}

/* Event */
.event-custom-header {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.single-event .event-basic-info {
  background-color: #F7F7F7;
  padding: 1.5rem;
  border-radius: 0.5rem;
}

.single-event .event-basic-info dl {
  margin: 0;
  font-size: 14px;
  line-height: 1.75;
}

.single-event .event-basic-info dl dt {
  width: 25%;
  font-weight: 700;
}

.single-event .event-basic-info dl dd {
  margin: -24px 0 0.5rem 25%;
  padding: 0;
}

.single-event .event-basic-info dl dd+dd {
  margin-top: -8px;
}

.single-event .event-basic-info dl dd a {
  color: #000;
}

.single-event .event-basic-info dl dd:last-of-type {
  margin-bottom: 0;
}

.single-event .event-basic-info dl+.event-text-free {
  margin-top: 1rem;
}

.single-event .event-basic-info .event-text-free {
  border-top: 1px solid #000;
  font-size: 12px;
  line-height: 1.75;
}

.single-event .event-text-free p {
  margin-bottom: 0;
}

.category-filter {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-auto-rows: 2.8rem;
  list-style-type: none;
  align-items: center;
  padding: 8px 0;
  border-top: solid 1px #7f7f7f;
  border-bottom: solid 1px #7f7f7f;
}

.category-filter-item {
  margin: 0;
}

.category-filter-item>a {
  text-decoration: none;
  display: inline-flex;
  color: #000;
}

.category-filter-item>a.active {
  color: #7f7f7f;
}

.category-filter-item>a::before {
  font-family: 'Material Symbols Rounded';
  font-weight: normal;
  font-style: normal;
  font-size: 16px;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-feature-settings: 'liga';
  -webkit-font-smoothing: antialiased;
  content: "\e5cc";
}

/*
* - event filter
*/
.event-filter {
  padding: .5rem 1.5rem;
  background: #f7f7f7;
  border-radius: .5rem;
}

.event-filter-head,
.event-filter-foot,
.event-filter-body {
  overflow: hidden;
}

.event-filter-head,
.event-filter-foot,
.event-filter-group {
  display: flex;
  align-items: center;
}

.event-filter-head {
  justify-content: space-between;
  margin: 1rem 0;
}

.event-filter-head>*:first-child {
  display: flex;
  gap: 1rem;
  font-weight: bold;
}

.event-filter-body {
  margin-top: 2rem;
}

.event-filter-foot {
  justify-content: end;
  margin: 1rem 0;
}

.event-filter-group>dt {
  font-weight: bold;
  min-width: 7rem;
}

.event-filter-group>dd {
  display: flex;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-left: 1rem;
}

.event-filter-item {
  background: #fff;
  padding: .2rem 1rem;
  border-radius: 999px;
  display: inline-block;
  text-decoration: none;
  color: #000;
}

.event-filter-item.active {
  color: #fff;
  background: #000;
}

.event-filter input[type="button"],
.event-filter .event-filter-open {
  border: none;
  background: transparent;
  cursor: pointer;
  font-weight: bold;
  padding: .4rem 1rem;
  display: inline-block;
}

.event-filter .event-filter-open {
  display: inline-flex;
  align-items: center;
  border: solid 1px #000;
  color: #000;
  border-radius: 999px;
  text-decoration: none;
}

.event-filter-open__state {
  display: inline-block;
  width: 1.2rem;
  height: 1.2rem;
  margin-right: .3rem;
  background-repeat: no-repeat;
  background-position: center;
}

.event-filter-open__state.collapsed {
  background-image: url('assets/icon-plus.svg');
}

.event-filter-open__state.expanded {
  background-image: url('assets/icon-minus.svg');
}

[x-cloak] {
  display: none !important;
}

@media (max-width: 768px) {
  .event-filter-head>*:first-child>*:first-child:not(:last-child) {
    display: none;
  }

  .event-filter-group {
    flex-wrap: wrap;
  }

  .event-filter-group>dt {
    width: 100%;
    margin-bottom: 1rem;
  }

  .event-filter-group>dd {
    width: 100%;
    margin-left: 0;
    margin-bottom: 1rem;
  }
}

/*
* --
*/

.yearly-archive-select {
  font-size: 1.5rem;
  border: none;
  background: transparent;
}

.archive-press-release>.wp-block-post-template {
  gap: 0;
}

.archive-press-release .wp-block-lazyblock-ccbt-queryloop-item {
  border-top: solid 1px #d9d9d9;
  position: relative;
  padding: 2rem 0;
}

.archive-press-release .lazyblock-ccbt-queryloop-item__date {
  color: #4b4b4b;
}

.archive-press-release .lazyblock-ccbt-queryloop-item__meta {
  display: flex;
  justify-content: flex-start;
  gap: 2rem;
}

.archive-press-release .lazyblock-ccbt-queryloop-item__meta a {
  text-decoration: none;
  color: black;
  display: flex;
  justify-content: flex-start;
  gap: 1rem;
}

.archive-press-release .lazyblock-ccbt-queryloop-item__meta figure {
  margin: 0;
}


.analytics-results {
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 2rem;
}

.analytics-result {
  position: relative;
  display: flex;
  column-gap: 2rem;
}

.analytics-result:nth-child(even) {
  flex-direction: row-reverse;
}

.analytics-result__content {
  flex: 1;
}

.analytics-result__fig {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 33.3%;
}

.analytics-result__fig>img {
  max-width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
}

.analytics-result__item>dt {
  font-weight: bold;
  font-size: 1.125rem;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  line-height: 1;
  border-bottom: 1px solid #7F7F7F;
}

.analytics-result__item>dd {
  display: flex;
  align-items: baseline;
  column-gap: 0.25rem;
  margin-left: 0;
  font-size: 4rem;
  line-height: 1;
}

.analytics-result__item__unit {
  font-size: 1rem;
}

.analytics-result__description {
  line-height: 1.5;
  font-size: 0.875rem;
  display: flex;
  flex-direction: column;
  row-gap: 1rem;
}

.analytics-result__description p {
  margin: 0;
}

.analytics-updated {
  margin-top: 4rem;
  padding-top: 1rem;
  line-height: 1;
  border-top: 1px solid #7F7F7F;
  color: #7F7F7F;
  font-size: 0.75rem;
}

.analytics-updated p {
  margin: 0;
}

.wp-block-lazyblock-ccbt-bogo-heading h1,
.wp-block-lazyblock-ccbt-bogo-description p {
  margin: 0;
}

@media(min-width: 600px) {
  .wp-block-post:has(.event-item)+.wp-block-post:has(.event-item) {
    border-top: none;
  }

  .event-item {
    aspect-ratio: 1/1;
  }

  .event-item__image a {
    padding: 3rem;
  }

  .event-item .event-item__info {
    left: 1rem;
  }

  .event-item .event-item__status {
    right: 1rem;
  }

  .event-item__title {
    font-size: 1.25rem !important;
  }

  .event-item__date {
    font-size: 1.125rem;
  }
}


@media (min-width: 768px) {
  .rn-item__figure {
    margin-bottom: 0;
  }

  .wp-block-lazyblock-ccbt-research-note-box+.wp-block-lazyblock-ccbt-research-note-box {
    margin-top: 0;
  }

  .cookie-consent__body {
    grid-template-columns: 3fr 1fr;
    gap: 1rem;
  }

  .cookie-consent__body p {
    height: auto;
    overflow-y: unset;
  }

  .analytics-results {
    flex-direction: row;
  }

  .analytics-result {
    width: calc(50% - 1rem);
  }

  .analytics-result:nth-child(even) {
    flex-direction: row;
  }

  .fellow-list--col-2 {
    grid-template-columns: repeat(2, 1fr);
    column-gap: 1.5rem;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 14px;
  }

  .entry-content p {
    max-width: 100vw;
  }

  .fellow-project {
    order: 1;
  }

  .fellow-profile {
    order: 2;
  }

  footer .breadcrumbs-social-group {
    flex-wrap: wrap;
  }

  footer .wp-block-social-links {
    width: 100%;
    justify-content: center !important;
  }

  footer .communities {
    justify-content: center !important;
  }

  footer .communities {
    margin: 0;
  }

  .breadcrumbs-communities {
    justify-content: center !important;
  }

  .topbanners__body {
    flex-direction: column;
  }

  footer .communities {
    margin: 0;
  }

  .breadcrumbs-communities {
    flex-direction: row;
    justify-content: center !important;
  }

  .single-player .related-events,
  .single-event .related-events {
    grid-template-columns: 1fr;
  }

  .related-events .event-item:nth-of-type(2) {
    border-left: none;
    border-right: none;
    border-top: 1px solid #000;
    border-bottom: 1px solid #000;
  }

  .single-player-column-left {
    display: none;
  }

  .player-main-image {
    margin: 2rem auto;
    max-width: 300px;
    width: 50%;
  }

  .player-main-image img {
    width: 100%;
    height: auto;
  }

  .player-item .player-image {
    width: 104px;
    height: 104px;
  }

  .player-text .player-name {
    flex-direction: column;
  }

  .player-text .player-name span {
    margin-left: 0;
  }

  .single .event-basic-info dl dt {
    width: 100%;
  }

  .single .event-basic-info dl dd {
    margin: 0 0 0.5rem;
  }

  .single .player-profile {
    grid-template-columns: 1fr;
  }

  .single .player-profile .player-image,
  .single .player-profile .player-image-caption {
    width: 70%;
    margin: auto;
  }

  .single .player-profile .player-text {
    padding: 0;
  }

  .single .player-profile .player-text *:last-child {
    margin-bottom: 0;
  }

  .single .player-profile .player-name-en {
    display: block;
    margin-left: 0;
  }

  .single-player .player-name-header {
    flex-direction: column;
  }

  .single-player .player-name-header-en {
    margin-left: 0;
  }

  .archive-press-release .lazyblock-ccbt-queryloop-item__meta {
    flex-direction: column;
    gap: 1rem;
  }

  .todays-header {
    position: relative;
  }

  .todays-footer {
    margin-top: 0;
    position: absolute;
    top: 0;
    right: 0;
    z-index: 1;
  }

  .todays-event {
    grid-template-columns: 1fr;
  }

  .todays-event__item:nth-last-of-type(1) {
    border-bottom: none;
    padding-bottom: 0;
  }

  .todays-event__item:nth-last-of-type(2) {
    border-bottom: 1px solid #7f7f7f;
    padding-bottom: 1.5rem;
  }

  .analytics-results {
    grid-template-columns: 1fr;
  }

  .analytics-results .analytics-results__fig {
    aspect-ratio: 1 / 1;
  }

  .analytics-results .analytics-results__fig>img {
    height: calc(90vw - 6rem);
  }
}

.wp-block-navigation__responsive-container-content {
  display: block !important;
}

.wp-block-navigation__responsive-container-content a {
  color: #fff !important;
}

.wp-block-navigation__responsive-container.is-menu-open {
  background-color: #000 !important;
}

.wp-block-navigation__responsive-container-close {
  padding: 2rem;
}

.wp-block-navigation__responsive-container-close svg {
  fill: #fff !important;
}

/* set aspect-ratio for featured image  */
@media (min-width: 768px) {
  .wp-block-post-featured-image {
    display: flex;
    justify-content: center;
    aspect-ratio: 16 / 9;
  }

  .wp-block-post-featured-image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
  }
}

.event-calendar {
  border-bottom: solid 1px var(--ccbt-border-color-default);

  .calendar-nav {
    align-items: flex-end;
    display: flex;
    justify-content: space-between;

    h2 {
      font-size: var(--ccbt-fontsize-medium);

      &>span:first-child {
        font-size: calc(var(--ccbt-fontsize-medium) * 2.2);
        margin-right: 1rem;
      }
    }

    nav {
      min-width: 10rem;
      display: flex;
      justify-content: space-between;
      margin-bottom: 0.85rem;

      &>button {
        border: none;
        background: none;
        display: inline-flex;
        cursor: pointer;

        &:first-child::before,
        &:last-child::after {
          font-family: 'Material Symbols Rounded';
          font-weight: normal;
          font-style: normal;
          font-size: 16px;
          letter-spacing: normal;
          text-transform: none;
          white-space: nowrap;
          word-wrap: normal;
          direction: ltr;
          -webkit-font-feature-settings: 'liga';
          -webkit-font-smoothing: antialiased;
        }

        &:first-child::before {
          content: "\e5cb";
        }

        &:last-child::after {
          content: "\e5cc";
        }
      }
    }
  }

  .calendar-body {
    @media (max-width: 768px) {
      & {
        display: none;
      }
    }
  }

  .calendar-body-mobile {
    @media (min-width: 769px) {
      & {
        display: none;
      }
    }
  }

  .calendar-grid-row {
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-gap: min(1rem, 5%);
    border-top: solid 1px var(--ccbt-border-color-default);

    @media (max-width: 768px) {
      & {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }
  }

  .calendar-grid-col,
  .calendar-slot-row {
    font-size: calc(var(--ccbt-fontsize-small) * 0.825);

    a {
      text-decoration: none;
      color: black;
    }

    &>article,
    &>a {
      display: block;
      line-height: 1.75;
      padding: 1rem 0 0;
      border-top: solid 1px var(--ccbt-border-color-default);

      h4,
      span {
        overflow: hidden;
        display: -webkit-box;
        text-overflow: ellipsis;
        -webkit-box-orient: vertical;
      }

      h4 {
        font-size: var(--ccbt-fontsize-small);
        font-weight: normal;
        -webkit-line-clamp: 4;
      }

      span {
        font-weight: bold;
        -webkit-line-clamp: 1;
      }
    }
  }

  .calendar-slot-row {
    position: relative;
    display: grid;
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-gap: 0 min(1rem, 5%);

    @media (max-width: 768px) {
      & {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    &>article,
    &>a {
      padding: .5rem 0.1rem;
      display: flex;
      flex-direction: column;
      background-color: var(--ccbt-bg-color-snowwhite);

      h4 {
        -webkit-line-clamp: 1;
      }
    }
  }

  .calendar-grid-col {
    display: flex;
    flex-direction: column;
    min-height: 180px;
    position: relative;

    header {
      align-self: center;
      width: 100%;
      text-align: center;
      padding: 1rem;
      font-weight: bold;

      date {
        font-size: calc(var(--ccbt-fontsize-small) * 1.8);
      }
    }

    &.empty>*:first-child {
      border-bottom: none;
    }
  }

  .calendar-indicator-today::after {
    font-size: 12px;
    color: #52be8c;
    content: "\2b24";
    position: absolute;
    display: inline-block;
    left: 0px;
    top: 1rem;
  }

  .calendar-indicator-closed::after {
    font-size: 12px;
    color: #f07425;
    content: "\2b24";
    position: absolute;
    display: inline-block;
    left: 0px;
    top: 1rem;
  }
}

.at-event-calendar>.todays-event {
  /* TODO */
  grid-template-columns: none;
  gap: 0.5rem;

  &>.todays-event__item {
    border-top: solid 1px var(--ccbt-border-color-default);
    border-bottom: none !important;
    padding: 1.2rem 0;
  }

  /* -- */
}