/* Small, dependency-free replacements for the retired WordPress widgets. */
html { scroll-behavior: smooth; }
body { margin: 0; }
*, *::before, *::after { box-sizing: border-box; }
.archive-bar { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; justify-content: space-between; padding: .65rem max(1rem, 4vw); background: #34365d; color: #faf39b; font: 13px/1.5 system-ui, sans-serif; }
.archive-bar a, .archive-bar button { color: inherit; }
.archive-bar button { background: none; border: 1px solid currentColor; border-radius: 20px; padding: .2rem .8rem; cursor: pointer; font: inherit; }
.archive-nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .7rem 1.7rem; align-items: center; }
.archive-nav a { color: #fffa56; font-family: "HonyaJi", "HonyaJi-Re", sans-serif; font-size: 20px; line-height: 1.5; text-align: center; }
.archive-nav a[aria-current=page] { color: #d0cfe3; }
.archive-nav a:hover, .archive-nav a:focus-visible { text-decoration: underline; }
[data-elementor-type="header"] .elementor-container { height: auto !important; min-height: 100px; }
[data-elementor-type="header"] .elementor-widget-nav-menu { width: 100%; }
[data-elementor-type="wp-page"] > .elementor-section:first-child { margin-top: 0 !important; }
.elementor-invisible { visibility: visible !important; }
.elementor-motion-effects-element { transform: none !important; }
.elementor-background-video-container, .elementor-background-slideshow { display: none; }
.archive-gallery { column-count: 4; column-gap: 18px; padding: 8px; }
.archive-photo { display: block; break-inside: avoid; margin: 0 0 18px; }
.archive-photo img { display: block; width: 100%; height: auto; }
.archive-photo:hover { opacity: .9; }
.archive-note { padding: 1.5rem; background: #444879; color: #fff6ab; text-align: center; font: 13px/1.8 system-ui, sans-serif; }
.archive-note a { display: inline-block; margin-left: 1em; color: inherit; text-decoration: underline; }
dialog.archive-lightbox, dialog.archive-birthday { position: fixed; inset: 0; margin: auto; border: 0; padding: 0; max-width: min(1200px, 94vw); max-height: 92dvh; background: #25243d; color: white; }
dialog::backdrop { background: rgb(12 12 26 / .87); }
dialog [data-close] { position: absolute; right: 10px; top: 10px; z-index: 10; width: 44px; height: 44px; border: 0; border-radius: 50%; background: #25243deb; color: white; font: 32px/1 system-ui; cursor: pointer; }
.archive-lightbox img { display: block; max-width: 94vw; width: auto; height: auto; max-height: 80dvh; margin: auto; object-fit: contain; }
.archive-original { display: block; padding: .7rem 1.5rem; color: white; text-align: center; }
.archive-birthday .elementor { max-width: 100%; }
:focus-visible { outline: 3px solid #fffa56; outline-offset: 4px; }
@media (max-width: 900px) { .archive-gallery { column-count: 3; } }
@media (max-width: 767px) {
  [data-elementor-type="header"] .elementor-column { width: 100% !important; }
  [data-elementor-type="header"] .elementor-container { flex-wrap: wrap; }
  .archive-bar { font-size: 11px; gap: .4rem 1rem; }
  .archive-nav { justify-content: center; gap: .6rem 1.1rem; padding: .5rem 0; }
  .archive-nav a { font-size: 15px; }
  .archive-gallery { column-count: 2; column-gap: 10px; padding: 5px; }
  .archive-photo { margin-bottom: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
