/* SpotBundle article singular pages only. */

body.k3-layout-single .k3-single-grid {
  align-items: flex-start !important;
  gap: 24px;
  margin: 0;
}

body.k3-layout-single .k3-single-main,
body.k3-layout-single .k3-single-side,
body.k3-layout-single .sb-main-content,
body.k3-layout-single .sb-sidebar {
  min-width: 0;
}

/* Standalone PHP renderer. */
body.k3-layout-single .sb-content-wrap {
  margin: 0;
  padding: 18px 16px 24px;
}

body.k3-layout-single .sb-content-container {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 24px;
  align-items: start;
}

body.k3-layout-single .sb-sidebar {
  display: grid;
  gap: 16px;
}

/* --------------------------------------------------------------------------
 * Article shell
 * ----------------------------------------------------------------------- */

body.k3-layout-single .sb-single-article > .entry-title,
body.k3-layout-single .sb-single-article > .entry-header {
  margin: 0;
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  background: #fff;
  color: #000;
}

body.k3-layout-single .sb-single-article > .entry-title,
body.k3-layout-single .sb-single-article > .entry-header .entry-title {
  margin: 0;
  padding: 10px 14px;
  color: #111;
  font-family: "Noto Serif JP", "Noto Serif JP Regular", "Noto Serif JP", "Times New Roman", serif;
  font-size: 28px;
  line-height: 1.3;
  font-weight: 700;
}

body.k3-layout-single .sb-single-article > .entry-title {
  text-align: center;
}

body.k3-layout-single .sb-single-article > .entry-header .entry-title {
  text-align: left;
}

body.k3-layout-single .sb-single-article > .entry-thumbnail {
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

body.k3-layout-single .sb-single-article > .entry-thumbnail img,
body.k3-layout-single .sb-single-media img,
body.k3-layout-single .sb-side-image img {
  display: block;
  width: 100%;
  height: auto;
}

body.k3-layout-single .sb-single-media {
  margin: 0 0 14px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

body.k3-layout-single .sb-single-content {
  max-width: none !important;
  padding: 10px 14px 18px;
  font-size: 14px;
}

body.k3-layout-single .sb-single-content > * {
  max-width: none !important;
}

body.k3-layout-single .sb-single-content p:first-child,
body.k3-layout-single .sb-single-article > .entry-content p:first-child {
  margin-top: 0;
}

body.k3-layout-single .sb-single-content p:first-child img {
  margin-inline: auto;
}

body.k3-layout-single .sb-single-article > .entry-content {
  max-width: none !important;
  padding: 10px 14px 6px;
  font-size: 14px;
}

body.k3-layout-single .sb-single-content p,
body.k3-layout-single .sb-single-article > .entry-content p {
  color: #333;
  font-size: 14px;
  line-height: 1.9;
}

body.k3-layout-single .sb-single-content h2 {
  margin: 1.4em 0 0.7em;
  color: #222;
  font-size: 20px;
  line-height: 1.35;
  font-weight: 700;
}

body.k3-layout-single .sb-single-content h3 {
  margin: 1.25em 0 0.6em;
  padding-left: 10px;
  border-left: 8px solid var(--k3-accent);
  color: #222;
  font-size: 17px;
  line-height: 1.35;
  font-weight: 700;
}

body.k3-layout-single .sb-single-content h4,
body.k3-layout-single .sb-single-content h5,
body.k3-layout-single .sb-single-content h6 {
  margin: 1.15em 0 0.55em;
  color: #222;
  font-size: 15px;
  line-height: 1.35;
  font-weight: 700;
}

body.k3-layout-single .sb-single-content ul,
body.k3-layout-single .sb-single-content ol,
body.k3-layout-single .sb-sidebar-html ul,
body.k3-layout-single .sb-sidebar-html ol {
  padding-left: 1.25rem;
}

body.k3-layout-single .sb-single-content a,
body.k3-layout-single .sb-sidebar-html a {
  color: var(--k3-link);
}

body.k3-layout-single .sb-sidebar-html {
  font-size: 14px;
}

body.k3-layout-single .sb-single-article > .entry-content > * {
  max-width: none !important;
}

body.k3-layout-single .sb-single-article > .entry-content > *:last-child {
  margin-bottom: 0 !important;
}

/* --------------------------------------------------------------------------
 * Metadata, actions and status
 * ----------------------------------------------------------------------- */

body.k3-layout-single .sb-entry-meta {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px 0;
}

body.k3-layout-single .sb-entry-meta__left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

body.k3-layout-single .sb-entry-meta__label,
body.k3-layout-single .sb-entry-meta__date {
  font-size: 13px;
  white-space: nowrap;
}

body.k3-layout-single .sb-entry-meta__label {
  color: #555;
}

body.k3-layout-single .sb-entry-meta__date {
  margin-left: auto;
  color: #666;
}

body.k3-layout-single .sb-chip {
  display: inline-block;
  padding: 4px 8px;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 999px;
  background: #f1f1f1;
  color: #444;
  font-size: 12px;
  line-height: 1.1;
}

body.k3-layout-single .sb-chip--link {
  color: #444;
  text-decoration: none;
}

body.k3-layout-single .sb-chip--link:hover {
  background: #e9e9e9;
  text-decoration: none;
}

body.k3-layout-single .sb-single-actions {
  margin-top: 12px;
  padding: 0 14px 14px;
}

body.k3-layout-single .sb-entry-back {
  margin-top: 0;
  padding: 0 14px 14px;
}

body.k3-layout-single .sb-entry-back__link,
body.k3-layout-single .sb-single-action-link,
body.k3-layout-single .sb-map-link {
  display: inline-block;
  color: var(--k3-link);
  font-size: 13px;
  text-decoration: none;
}

body.k3-layout-single .sb-entry-back__link:hover,
body.k3-layout-single .sb-single-action-link:hover,
body.k3-layout-single .sb-map-link:hover {
  text-decoration: underline;
}

body.k3-layout-single .sb-single-status {
  margin: 14px 14px 0;
  padding: 12px 14px;
  border: 1px solid #e2c28d;
  border-radius: 8px;
  background: #fff5e8;
  color: #8a4a00;
  font-weight: 700;
  text-align: center;
}

body.k3-layout-single .sb-single-status--info {
  border-color: #9dc4de;
  background: #eef7fd;
  color: #1f5b84;
}

body.k3-layout-single .sb-single-map-text,
body.k3-layout-single .sb-single-period {
  margin: 0;
  font-size: 14px;
  line-height: 1.9;
}

body.k3-layout-single .sb-single-downloads {
  margin: 0;
  padding-left: 1.25rem;
}

body.k3-layout-single .sb-single-downloads li + li {
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
 * Sections and sidebar
 * ----------------------------------------------------------------------- */

body.k3-layout-single .sb-single-section {
  margin-top: 18px;
}

body.k3-layout-single .sb-single-section > .entry-title {
  color: #111;
  font-size: 20px;
  line-height: 1.3;
  text-align: left;
}

body.k3-layout-single .sb-single-section .sb-content--padded {
  padding: 12px 14px 16px;
}

body.k3-layout-single .sb-single-section .sb-content--flush {
  padding: 0;
}

body.k3-layout-single .sb-side-card > .entry-title,
body.k3-layout-single .sb-side-card__title {
  padding: 10px 14px;
  font-size: 20px;
}

body.k3-layout-single .sb-side-card .sb-content {
  padding: 12px 14px 16px;
}

body.k3-layout-single .sb-side-image {
  margin: 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  background: rgba(0, 0, 0, 0.03);
}

body.k3-layout-single .sb-info-table__row {
  grid-template-columns: 96px minmax(0, 1fr);
  padding: 10px 14px;
}

body.k3-layout-single .sb-info-table__row:first-child {
  padding-top: 10px;
}

body.k3-layout-single .sb-info-table dt,
body.k3-layout-single .sb-info-table dd {
  font-size: 13px;
}

body.k3-layout-single .sb-info-table dd {
  color: #333;
}

body.k3-layout-single .sb-map {
  padding: 0;
}

body.k3-layout-single .sb-map iframe {
  min-height: 260px;
}

/* --------------------------------------------------------------------------
 * Slideshow
 * ----------------------------------------------------------------------- */

body.k3-layout-single .sb-single-section--slideshow .sb-content--padded {
  padding: 14px;
}

body.k3-layout-single .sb-slideshow {
  display: grid;
  gap: 12px;
}

body.k3-layout-single .sb-slideshow__viewport {
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.08);
  background: #f6f6f6;
  overflow: hidden;
}

body.k3-layout-single .sb-slideshow__slides {
  position: relative;
  display: block;
  min-height: 240px;
}

body.k3-layout-single .sb-slideshow__slide {
  display: none;
  margin: 0;
  border: 0;
  background: transparent;
}

body.k3-layout-single .sb-slideshow__slide.is-active {
  display: block;
}

body.k3-layout-single .sb-slideshow__image {
  background: #f6f6f6;
}

body.k3-layout-single .sb-slideshow__image a,
body.k3-layout-single .sb-slideshow__image img {
  display: block;
  width: 100%;
}

body.k3-layout-single .sb-slideshow__image img {
  height: auto;
  max-height: 680px;
  margin: 0 auto;
  object-fit: contain;
  object-position: center;
}

body.k3-layout-single .sb-slideshow__caption {
  padding: 12px 14px 14px;
  border-top: 1px solid rgba(0, 0, 0, 0.06);
  background: #fff;
  color: #333;
  font-size: 14px;
  line-height: 1.8;
}

body.k3-layout-single .sb-slideshow__caption p {
  margin: 0;
}

body.k3-layout-single .sb-slideshow__controls {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 10px;
  pointer-events: none;
}

body.k3-layout-single .sb-slideshow__control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.62);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.k3-layout-single .sb-slideshow__control:hover,
body.k3-layout-single .sb-slideshow__control:focus-visible {
  background: rgba(17, 17, 17, 0.82);
  transform: scale(1.04);
  outline: none;
}

body.k3-layout-single .sb-slideshow__counter {
  position: absolute;
  right: 14px;
  bottom: 14px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.66);
  color: #fff;
  font-size: 12px;
  line-height: 1.2;
  pointer-events: none;
}

body.k3-layout-single .sb-slideshow__dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.k3-layout-single .sb-slideshow__dot-item,
body.k3-layout-single .sb-slideshow__thumb-item {
  margin: 0;
}

body.k3-layout-single .sb-slideshow__dot {
  width: 10px;
  height: 10px;
  border: 0;
  border-radius: 999px;
  background: #c8c8c8;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

body.k3-layout-single .sb-slideshow__dot:hover,
body.k3-layout-single .sb-slideshow__dot:focus-visible,
body.k3-layout-single .sb-slideshow__dot.is-active {
  background: var(--k3-accent);
  transform: scale(1.15);
  outline: none;
}

body.k3-layout-single .sb-slideshow__thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(84px, 1fr));
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.k3-layout-single .sb-slideshow__thumb-button,
body.k3-layout-single .sb-slideshow__thumb-link {
  display: block;
  width: 100%;
  padding: 0;
  border: 2px solid rgba(0, 0, 0, 0.08);
  background: #fff;
  cursor: pointer;
  overflow: hidden;
  transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.k3-layout-single .sb-slideshow__thumb-button img,
body.k3-layout-single .sb-slideshow__thumb-link img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

body.k3-layout-single .sb-slideshow__thumb-button:hover,
body.k3-layout-single .sb-slideshow__thumb-button:focus-visible,
body.k3-layout-single .sb-slideshow__thumb-link:hover,
body.k3-layout-single .sb-slideshow__thumb-link:focus-visible {
  border-color: rgba(0, 0, 0, 0.22);
  transform: translateY(-1px);
  outline: none;
}

body.k3-layout-single .sb-slideshow__thumb-button.is-active,
body.k3-layout-single .sb-slideshow__thumb-link.is-active {
  border-color: var(--k3-accent);
  box-shadow: 0 0 0 1px rgba(240, 161, 26, 0.18);
}

body.k3-layout-single .sb-slideshow__empty {
  margin: 0;
  line-height: 1.9;
}

/* --------------------------------------------------------------------------
 * Share/print actions and event map
 * ----------------------------------------------------------------------- */
/*
body.k3-layout-single .sb-single-share-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body.k3-layout-single .sb-single-share-actions__official-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 20px;
  line-height: 0;
}

body.k3-layout-single .sb-single-share-actions__official-button iframe,
body.k3-layout-single .sb-single-share-actions__official-button .twitter-share-button,
body.k3-layout-single .sb-single-share-actions__official-button .fb-share-button,
body.k3-layout-single .sb-single-share-actions__official-button .fb_iframe_widget,
body.k3-layout-single .sb-single-share-actions__official-button .fb_iframe_widget span {
  vertical-align: top !important;
}

body.k3-layout-single .sb-single-share-actions__official-button .fb_iframe_widget {
  display: inline-flex !important;
  align-items: center !important;
  line-height: 0 !important;
}

body.k3-layout-single .sb-single-share-actions__official-button .fb_iframe_widget span {
  display: inline-block !important;
}

body.k3-layout-single .sb-single-share-actions__button--print {
  height: 20px;
  padding-block: 0;
  line-height: 18px;
}
*/

body.k3-layout-single.single-event .sb-single-section--event-map .sb-single-map-embed {
  padding: 0;
}

body.k3-layout-single.single-event .sb-single-section--event-map .sb-single-map-embed iframe {
  display: block;
  width: 100%;
  height: 320px;
  border: 0;
}

@media (max-width: 900px) {
  body.k3-layout-single .k3-single-grid {
    display: block;
  }

  body.k3-layout-single .k3-single-main,
  body.k3-layout-single .k3-single-side {
    width: 100% !important;
    flex-basis: 100% !important;
  }

  body.k3-layout-single .k3-single-side,
  body.k3-layout-single .sb-sidebar {
    margin-top: 20px;
  }

  body.k3-layout-single .sb-content-container {
    grid-template-columns: 1fr;
  }

  body.k3-layout-single .sb-entry-meta {
    flex-direction: column;
    align-items: flex-start;
  }

  body.k3-layout-single .sb-entry-meta__date {
    margin-left: 0;
  }
}

@media (max-width: 720px) {
  body.k3-layout-single .sb-single-article > .entry-title,
  body.k3-layout-single .sb-single-article > .entry-header .entry-title {
    text-align: center;
  }

  body.k3-layout-single .sb-single-content p,
  body.k3-layout-single .sb-single-article > .entry-content p {
    font-size: 13px;
  }

  body.k3-layout-single .sb-single-content h2 {
    font-size: 18px;
  }

  body.k3-layout-single .sb-single-content h3 {
    font-size: 16px;
  }

  body.k3-layout-single .sb-single-section > .entry-title,
  body.k3-layout-single .sb-side-card > .entry-title,
  body.k3-layout-single .sb-side-card__title {
    font-size: 18px;
  }

  body.k3-layout-single .sb-single-section > .entry-title {
    text-align: center;
  }

  body.k3-layout-single .sb-single-article > .entry-title,
  body.k3-layout-single .sb-single-article > .entry-header,
  body.k3-layout-single .sb-single-article > .entry-header .entry-title {
    background: #fff;
    color: #111;
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    box-shadow: none;
    font-size: 24px;
    text-align: center;
  }

  body.k3-layout-single .sb-single-map-text,
  body.k3-layout-single .sb-single-period {
    font-size: 13px;
  }

  body.k3-layout-single .sb-slideshow__controls {
    padding: 0 8px;
  }

  body.k3-layout-single .sb-slideshow__control {
    width: 36px;
    height: 36px;
    font-size: 24px;
  }

  body.k3-layout-single .sb-slideshow__counter {
    right: 10px;
    bottom: 10px;
    padding: 5px 8px;
    font-size: 11px;
  }

  body.k3-layout-single .sb-slideshow__thumbs {
    grid-template-columns: repeat(auto-fit, minmax(72px, 1fr));
    gap: 8px;
  }

  body.k3-layout-single .sb-slideshow__caption {
    padding: 10px 12px 12px;
  }
}
