/* public/assets/app.css */

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    width: 100%;
    min-height: 100%;
    margin: 0;
    padding: 0;
}

body {
    width: 100%;
    min-height: 100vh;
    margin: 0;
    padding: 0;
    font-family: Arial, Helvetica, sans-serif;
    line-height: 1.45;
    background-color: #0f1115;
    background-image: var(--body-bg-image);
    background-size: cover;
    background-position: center center;
    background-attachment: fixed;
    color: #f2f4f8;
}

body.theme-light {
    color: #1d2430;
    background-color: #eef2f7;
}

a {
    color: inherit;
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

.page-wrap {
    width: 100%;
    min-height: 100vh;
    background:
        linear-gradient(to bottom, rgba(8, 10, 14, 0.45), rgba(8, 10, 14, 0.72));
}

body.theme-light .page-wrap {
    background:
        linear-gradient(to bottom, rgba(255, 255, 255, 0.58), rgba(245, 248, 252, 0.84));
}

.inner {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0 22px;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 50;
    backdrop-filter: blur(12px);
    background: rgba(10, 13, 18, 0.74);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

body.theme-light .topbar {
    background: rgba(255, 255, 255, 0.82);
    border-bottom: 1px solid rgba(20, 30, 50, 0.08);
    box-shadow: 0 8px 24px rgba(20, 30, 50, 0.08);
}

.topbar-inner {
    padding-top: 14px;
    padding-bottom: 12px;
}

.topbar-head {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.topbar-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.site-brand {
    display: flex;
    align-items: center;
    min-width: 0;
}

.site-title {
    margin: 0;
    line-height: 1;
    font-size: 1rem;
    font-weight: 700;
}

.site-title > a {
    display: inline-flex;
    flex-direction: column;
    gap: 3px;
}

.site-title-main {
    display: inline-block;
    font-size: 2rem;
    line-height: 1;
    letter-spacing: 0.01em;
    font-weight: 700;
}

.site-title-main-white {
    color: #ffffff;
}

body.theme-light .site-title-main-white {
    color: #1f2937;
}

.site-title-main-green {
    color: #8fd14f;
}

.site-title-sub {
    display: inline-block;
    font-size: 0.95rem;
    line-height: 1.15;
    color: rgba(255, 255, 255, 0.78);
    font-weight: 500;
}

body.theme-light .site-title-sub {
    color: rgba(31, 41, 55, 0.74);
}

.site-brand-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

.meta-top {
    margin-top: 12px;
}

.meta-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: 0.92rem;
    font-weight: 600;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(8px);
}

body.theme-light .meta-pill {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.75);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.theme-toggle,
.mobile-nav-toggle {
    cursor: pointer;
    appearance: none;
    outline: none;
}

.nav-area {
    margin-top: 14px;
}

.nav-search-row {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.navline {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.navline a {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 8px 14px;
    border-radius: 999px;
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.94rem;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.navline a:hover,
.navline a.active {
    background: rgba(143, 209, 79, 0.18);
    border-color: rgba(143, 209, 79, 0.42);
    transform: translateY(-1px);
}

body.theme-light .navline a {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

body.theme-light .navline a:hover,
body.theme-light .navline a.active {
    background: rgba(143, 209, 79, 0.16);
    border-color: rgba(100, 160, 40, 0.28);
}

/* Dropdown Styles */
.nav-dropdown {
    position: relative;
    display: inline-flex;
}

.nav-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    margin-top: 8px;
    z-index: 1000;
    min-width: 220px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(10, 15, 22, 0.94);
    backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
}

@media (max-width: 600px) {
    .nav-dropdown-menu {
        left: auto;
        right: 0;
        min-width: 200px;
        max-width: calc(100vw - 32px);
    }
}

body.theme-light .nav-dropdown-menu {
    background: rgba(255, 255, 255, 0.94);
    border-color: rgba(0, 0, 0, 0.08);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

.nav-dropdown-menu.show {
    display: block;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.color-item {
    display: block;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.15);
    transition: transform 0.15s ease, border-color 0.15s ease;
}

.color-item:hover {
    transform: scale(1.15);
    border-color: rgba(255, 255, 255, 0.45);
}

body.theme-light .color-item {
    border-color: rgba(0, 0, 0, 0.1);
}

@media (max-width: 600px) {
    .color-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

.searchbar {
    display: flex;
    gap: 10px;
    width: 100%;
}

.searchbar input[type="search"] {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    padding: 0 16px;
    outline: none;
}

.searchbar input[type="search"]::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

body.theme-light .searchbar input[type="search"] {
    color: #111827;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

body.theme-light .searchbar input[type="search"]::placeholder {
    color: rgba(17, 24, 39, 0.52);
}

.searchbar button,
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 16px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.searchbar button:hover,
.button:hover {
    transform: translateY(-1px);
    background: rgba(255, 255, 255, 0.12);
}

.button.primary,
.searchbar button {
    background: linear-gradient(180deg, #92d44d, #71b636);
    border-color: rgba(76, 121, 38, 0.55);
    color: #11210a;
}

.button.primary:hover,
.searchbar button:hover {
    background: linear-gradient(180deg, #9ddd57, #7cc53c);
}

body.theme-light .searchbar button,
body.theme-light .button {
    border: 1px solid rgba(17, 24, 39, 0.08);
}

body.theme-light .button:not(.primary) {
    color: #1f2937;
    background: rgba(255, 255, 255, 0.84);
}

.content {
    width: 100%;
    padding: 26px 0 40px;
}

.section {
    width: 100%;
    margin-bottom: 22px;
}

.box {
    width: 100%;
    border-radius: var(--radius);
    background: rgba(13, 17, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-dark);
    overflow: hidden;
}

body.theme-light .box {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow-light);
}

.box-pad {
    padding: 18px;
}

.muted {
    color: rgba(255, 255, 255, 0.7);
}

body.theme-light .muted {
    color: rgba(31, 41, 55, 0.68);
}

.home-calendar-layout {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
}

.cal-wrap {
    width: 100%;
}

.cal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    margin-bottom: 10px;
    border-radius: var(--radius);
    background: rgba(13, 17, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-dark);
}

body.theme-light .cal-nav {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow-light);
}

.cal-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
    font-size: 1rem;
    font-weight: 700;
}

body.theme-light .cal-arrow {
    background: rgba(248, 250, 252, 0.95);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.cal-title {
    min-width: 140px;
    text-align: center;
    font-size: 1rem;
    font-weight: 700;
}

.cal,
.archive-cal {
    width: 100%;
    border-collapse: separate;
    border-spacing: 6px;
}

.cal td,
.cal th,
.archive-cal td,
.archive-cal th {
    vertical-align: top;
}

.calHead {
    text-align: center;
    font-weight: 700;
    padding: 10px 4px;
    color: rgba(255, 255, 255, 0.85);
}

body.theme-light .calHead {
    color: rgba(31, 41, 55, 0.85);
}

.calRow td {
    height: 48px;
    text-align: center;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.05);
    transition: background-color 0.18s ease, transform 0.18s ease;
}

.calRow td:hover {
    background: rgba(255, 255, 255, 0.10);
    transform: translateY(-1px);
}

body.theme-light .calRow td {
    background: rgba(255, 255, 255, 0.72);
}

.calRow td.today {
    outline: 2px solid rgba(143, 209, 79, 0.85);
}

.calRow td.has-image a {
    color: #ff7a7a;
    font-weight: 700;
}

.calRow td.no-image {
    background: transparent;
}

.calRow td.no-image a {
    color: rgba(255, 255, 255, 0.15);
}

body.theme-light .calRow td.no-image a {
    color: rgba(0, 0, 0, 0.12);
}

.calRow td a {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 48px;
    width: 100%;
    color: inherit;
}

.home-calendar-image {
    min-width: 0;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(13, 17, 24, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-dark);
    min-height: 340px;
}

body.theme-light .home-calendar-image {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow-light);
}

.home-calendar-image a,
.home-calendar-image > div {
    display: flex;
    width: 100%;
    height: 100%;
    min-height: 340px;
    align-items: center;
    justify-content: center;
}

.home-calendar-image img {
    width: 100%;
    height: 100%;
    min-height: 340px;
    object-fit: cover;
}

.grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.card {
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(12, 16, 22, 0.80);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-dark);
}

body.theme-light .card {
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.08);
    box-shadow: var(--shadow-light);
}

.card > a:first-child {
    display: block;
}

.card img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.card-body {
    padding: 14px;
}

.card-body h3 {
    margin: 8px 0 0;
    font-size: 1rem;
    line-height: 1.3;
}

.date-badge {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    background: rgba(143, 209, 79, 0.18);
    color: #d6f4b5;
    border: 1px solid rgba(143, 209, 79, 0.30);
}

body.theme-light .date-badge {
    color: #35561b;
    background: rgba(143, 209, 79, 0.18);
    border: 1px solid rgba(98, 152, 45, 0.24);
}

.pager {
    margin-top: 18px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.cat-card {
    position: relative;
    min-height: 220px;
    border-radius: var(--radius);
    overflow: hidden;
    background-color: rgba(16, 20, 26, 0.82);
    background-size: cover;
    background-position: center center;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: var(--shadow-dark);
}

.cat-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(7, 10, 14, 0.12), rgba(7, 10, 14, 0.78));
}

.cat-card-content {
    position: relative;
    z-index: 1;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 220px;
}

.cat-card h3 {
    margin: 0;
    font-size: 1.2rem;
}

.detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 18px;
    align-items: start;
}

.detail-main {
    padding: 0;
}

.detail-main img {
    width: 100%;
    max-height: 80vh;
    object-fit: contain;
    background: rgba(0, 0, 0, 0.18);
    cursor: zoom-in;
}

.rows {
    margin-top: 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .row {
    border-bottom: 1px solid rgba(17, 24, 39, 0.08);
}

.tag-row,
.archive-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 0.88rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.10);
}

body.theme-light .tag {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.lightbox,
.archive-lightbox {
    position: fixed;
    inset: 0;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 28px;
    background: rgba(0, 0, 0, 0.84);
    z-index: 1000;
}

.lightbox.open,
.archive-lightbox.open {
    display: flex;
}

.lightbox img,
.archive-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
}

.lightbox-close,
.archive-lightbox-close {
    position: absolute;
    top: 16px;
    right: 18px;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
    font-size: 1.6rem;
    cursor: pointer;
}

.archive-lightbox-inner {
    position: relative;
    max-width: 94vw;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.archive-lightbox-caption {
    color: #fff;
    text-align: center;
}

.archive-filter {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 18px;
}

.archive-filter select {
    min-width: 160px;
    height: 42px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    padding: 0 14px;
    outline: none;
}

body.theme-light .archive-filter select {
    color: #111827;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.archive-cal th {
    padding: 12px 8px;
    text-align: left;
    font-size: 0.92rem;
    color: rgba(255, 255, 255, 0.84);
}

body.theme-light .archive-cal th {
    color: rgba(31, 41, 55, 0.84);
}

.archive-cal td {
    width: 14.285%;
    min-width: 180px;
    padding: 10px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.05);
}

.archive-cal td.empty {
    background: transparent;
}

body.theme-light .archive-cal td {
    background: rgba(255, 255, 255, 0.72);
}

.archive-cal td.today {
    outline: 2px solid rgba(143, 209, 79, 0.85);
}

.archive-daynum {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 10px;
}

.archive-entry {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-top: 8px;
    margin-top: 8px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-light .archive-entry {
    border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.archive-thumb-link {
    display: block;
}

.archive-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-radius: 10px;
}

.archive-entry-title {
    font-weight: 700;
    line-height: 1.3;
}

.archive-entry-meta {
    display: grid;
    gap: 4px;
    font-size: 0.9rem;
}

.archive-entry-desc {
    font-size: 0.92rem;
}

.archive-like-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.archive-like-btn {
    width: 40px;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: rgba(255, 255, 255, 0.08);
    color: inherit;
    cursor: pointer;
    font-size: 1rem;
}

body.theme-light .archive-like-btn {
    background: rgba(255, 255, 255, 0.82);
    border: 1px solid rgba(17, 24, 39, 0.08);
}

.archive-entry-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.slideshow-wrap {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.slideshow-stage {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    background: rgba(12, 16, 22, 0.82);
    min-height: 520px;
}

.slide {
    display: none;
    width: 100%;
    min-height: 520px;
    position: relative;
}

.slide.active {
    display: block;
}

.slide-image-link,
.slide-image {
    display: block;
    width: 100%;
    min-height: 520px;
}

.slide-image {
    object-fit: cover;
}

.slide-caption {
    position: absolute;
    left: 18px;
    right: 18px;
    bottom: 18px;
    padding: 16px;
    border-radius: 14px;
    background: rgba(9, 12, 17, 0.72);
    backdrop-filter: blur(8px);
}

.slide-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    cursor: pointer;
    font-size: 1.8rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.34);
}

.slide-nav.prev {
    left: 14px;
}

.slide-nav.next {
    right: 14px;
}

.slideshow-toolbar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.slideshow-thumbs {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 10px;
}

.slide-thumb {
    padding: 0;
    border: 2px solid transparent;
    background: transparent;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
}

.slide-thumb.active {
    border-color: #8fd14f;
}

.slide-thumb img {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.timeline {
    position: relative;
}

.timeline::before {
    content: "";
    position: absolute;
    left: 178px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: rgba(255, 255, 255, 0.12);
}

body.theme-light .timeline::before {
    background: rgba(17, 24, 39, 0.10);
}

.timeline-item {
    position: relative;
    display: grid;
    grid-template-columns: 150px 28px minmax(0, 1fr);
    gap: 14px;
    align-items: start;
    margin-bottom: 18px;
}

.timeline-date {
    padding-top: 10px;
    text-align: right;
}

.timeline-dot {
    position: relative;
    z-index: 1;
    width: 16px;
    height: 16px;
    margin-top: 16px;
    margin-left: 5px;
    border-radius: 999px;
    background: #8fd14f;
    border: 3px solid rgba(12, 16, 22, 0.92);
}

body.theme-light .timeline-dot {
    border-color: rgba(255, 255, 255, 0.95);
}

.timeline-card {
    overflow: hidden;
}

.timeline-card-inner {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 16px;
}

.timeline-thumb-link {
    display: block;
}

.timeline-thumb {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    height: 100%;
}

.timeline-content {
    padding: 16px 16px 16px 0;
}

.timeline-title {
    margin: 0;
    font-size: 1.14rem;
    line-height: 1.25;
}

.timeline-desc {
    margin-top: 10px;
    font-size: 0.94rem;
}

.timeline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.timeline-status {
    margin-top: 16px;
}

.footer {
    margin-top: 30px;
    padding: 18px 0 8px;
    text-align: center;
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.92rem;
}

body.theme-light .footer {
    color: rgba(31, 41, 55, 0.65);
}

.desktop-only {
    display: block;
}

.mobile-nav-toggle {
    display: none;
}

@media (max-width: 1200px) {
    .grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .cat-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .timeline-card-inner {
        grid-template-columns: 220px minmax(0, 1fr);
    }
}

@media (max-width: 980px) {
    .home-calendar-layout,
    .detail,
    .timeline-card-inner {
        grid-template-columns: 1fr;
    }

    .grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .archive-cal,
    .archive-cal tbody,
    .archive-cal tr,
    .archive-cal th,
    .archive-cal td {
        display: block;
        width: 100%;
    }

    .archive-cal tr {
        margin-bottom: 14px;
    }

    .archive-cal th {
        display: none;
    }

    .archive-cal td {
        min-width: 0;
    }

    .timeline::before {
        left: 16px;
    }

    .timeline-item {
        grid-template-columns: 28px minmax(0, 1fr);
    }

    .timeline-date {
        grid-column: 2;
        text-align: left;
        padding-top: 0;
        margin-bottom: 8px;
    }

    .timeline-dot {
        grid-row: 1 / span 2;
        margin-top: 8px;
        margin-left: 8px;
    }

    .timeline-card {
        grid-column: 2;
    }
}

@media (max-width: 760px) {
    .inner {
        padding: 0 14px;
    }

    .topbar-head {
        align-items: flex-start;
        flex-direction: column;
    }

    .desktop-only {
        display: none;
    }

    .mobile-nav-toggle {
        display: inline-flex;
    }

    .nav-area {
        display: none;
    }

    .nav-area.is-open {
        display: block;
    }

    .searchbar {
        flex-direction: column;
    }

    .grid,
    .cat-grid,
    .slideshow-thumbs {
        grid-template-columns: 1fr;
    }

    .site-title-main {
        font-size: 1.7rem;
    }

    .slide,
    .slide-image-link,
    .slide-image,
    .slideshow-stage {
        min-height: 320px;
    }

    .slide-caption {
        position: static;
        border-radius: 0;
    }
}
.site-brand picture {
    display: block;
}

.site-brand-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 72px;
    object-fit: contain;
}

@media (max-width: 480px) {
    .site-brand-image {
        max-height: 44px;
    }
}

@media (min-width: 481px) and (max-width: 900px) {
    .site-brand-image {
        max-height: 58px;
    }
}

.theme-dark select,
.theme-dark option,
.theme-dark optgroup {
    background: #ffffff;
    color: #212529;
}

.theme-dark select:focus {
    background: #ffffff;
    color: #212529;
}

