/* Photograph's observed layout, applied to the public SSR and audited controls. */
html { overflow-x: hidden; }
body {
  font-family: "微軟正黑體";
  word-break: break-all;
  overflow-wrap: break-word;
  padding-top: 50px;
}
[hidden] { display: none !important; }
summary { cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
@media (min-width: 768px) {
  html::-webkit-scrollbar-track-piece { background: #eee; }
  html::-webkit-scrollbar { width: 6px; height: 6px; }
  html::-webkit-scrollbar-thumb { min-height: 40px; border-radius: 4px; background: #a5a5a5; }
}

.navbar-default { background: white; }
.bar > .container-fluid { display: flex; align-items: center; min-height: 49px; }
.bar > .container-fluid::before, .bar > .container-fluid::after { display: none; }
.navbar-brand { font-size: 24px; font-weight: 400; line-height: 24px; }
.nav-logo { display: block; max-height: 25px; width: auto; }
.nav-fold { flex: 1; min-width: 0; }
.primary.navbar-collapse { display: flex; padding: 0; }
.primary.navbar-collapse::before, .primary.navbar-collapse::after { display: none; }
.primary .categories summary {
  display: block; padding: 15px; color: #777; line-height: 20px; white-space: nowrap;
}
.primary .categories summary:hover, .primary .categories[open] summary { background: #e7e7e7; color: #333; }
.categories[open] > .dropdown-menu { display: block; }
.categories .caret { margin-left: 2px; }
.primary .navbar-nav > li > a { white-space: nowrap; }
.inline-slots { display: contents !important; }
.inline-slots [data-position], .inline-slots a { display: block; }
.inline-slots a { padding: 15px; color: #777; line-height: 20px; white-space: nowrap; }
.inline-slots a:hover { color: #333; text-decoration: none; }
@media (min-width: 768px) { .inline-slots [data-position] { float: left; } }
.nav-die { display: inline-block; line-height: 1; vertical-align: -.06em; margin-right: .08em; }
.quick-search.navbar-form { margin: 8px 0 8px auto; padding: 0; border: 0; flex-shrink: 0; }
.quick-search .form-group { position: relative; }
.quick-search .form-control { width: 213px; }
.input-search {
  text-indent: 5px; border: 0; border-radius: 20px; padding: 5px 30px 5px 5px;
  box-shadow: none; background-color: whitesmoke; transition: background-color 1s;
}
.input-search:hover { background-color: #e9e9e9; }
.input-search:focus { background-color: white; box-shadow: inset 0 0 0 1px #e9e9e9; }
.quick-search .button-search {
  position: absolute; right: 0; top: 1px; border: 0; color: lightgray; background: none;
}
.quick-search .button-search:hover, .quick-search .button-search:focus-visible { color: gray; background: none; }
.small-categories { display: none; }

.site-message {
  margin: 15px 15px 10px; padding: 10px; border: 1px solid palevioletred;
  border-radius: 3px; color: palevioletred; line-height: 1.2; text-align: justify;
}
.site-message > p:first-of-type { display: inline; }
.visual-slots { margin: 10px; padding: 10px; line-height: 1.2; text-align: center; }
.visual-slots:not(:has(a)) { display: none; }
.visual-slots img {
  width: var(--region-width, auto); max-width: 100%; max-height: 100%; border: 5px solid white;
}
@media (min-width: 900px) { .visual-slots { --region-width: 425px; } }
@media (min-width: 960px) { .visual-slots { --region-width: 450px; } }
@media (min-width: 1024px) { .visual-slots { --region-width: 480px; } }
@media (min-width: 1280px) { .visual-slots { --region-width: 605px; } }
@media (min-width: 1440px) { .visual-slots { --region-width: 690px; } }
@media (min-width: 1670px) { .visual-slots { --region-width: 805px; } }
@media (min-width: 1700px) { .visual-slots { --region-width: 620px; } }
@media (min-width: 2300px) { .visual-slots { --region-width: 835px; } }
@media (min-width: 3500px) { .visual-slots { --region-width: 1262px; } }
@media (min-width: 4000px) { .visual-slots { --region-width: 1345px; } }

.content { width: 100%; }
#masonry, .archive-title { margin: 10px; }
.archive-title h1 { font-size: 24px; line-height: 1.1; font-weight: 500; }
.item { padding: 5px; height: 25.6vw; overflow: hidden; }
.item-img { width: 100%; height: 100%; object-fit: cover; }
.item-title {
  position: absolute; inset: 5px; background-color: rgba(7, 7, 7, .3);
}
.item-title .tile { display: block; width: 100%; height: 100%; color: white; font-size: 18px; }
.item-link-text {
  position: absolute; bottom: 0; width: calc(100% - 20px); padding: 5px; margin: 10px;
  line-height: 1.2; text-align: center; word-break: keep-all; border-bottom: 2px solid white;
}
.item-sort {
  position: absolute; top: 12px; left: 12px; color: white; font-size: 30px; line-height: 1; opacity: .8;
}
.item-num { position: absolute; top: 12px; right: 12px; color: white; line-height: 1; pointer-events: none; }
.empty-screen { padding: 20px; text-align: center; color: #777; }
.empty-screen img { display: block; width: 100%; max-width: 512px; margin: auto; }
.page-navigator { margin: 10px; padding: 5px 10px; text-align: center; list-style: none; }
.page-navigator li {
  display: inline-block; vertical-align: middle; margin: 1px; min-width: 25px; height: 25px;
  border: 1px solid whitesmoke; border-radius: 25px;
}
.page-navigator li.current, .page-navigator li:hover { background-color: whitesmoke; }
.page-navigator li a, .page-navigator li span {
  display: block; width: 100%; height: 100%; padding-inline: 5px; color: gray; font-size: 12px; line-height: 23px;
}

.post-item { display: block; padding: 5px; height: 24vw; }
.post-item-img {
  width: 100%; height: 100%; object-fit: cover; transition: filter .5s;
}
.post-item-img:hover { filter: drop-shadow(0 0 5px gray); }
.gallery-size { display: none; padding: 0; }
.is-masonry .gallery-size { display: block; }
.fancybox-slide--image { padding: 0; }
.compensate-for-scrollbar { margin-right: 0 !important; }
.post-info, .post-tags { text-align: center; font-size: 12px; line-height: 1.5; }
.post-info { margin: 10px; padding: 10px 10px 0; }
.post-info-title { margin-left: 5px; }
.post-info-text { margin: 0 5px 0 0; }
h1.post-info-text { display: inline; font: inherit; }
.post-info output { display: inline; padding: 0; color: inherit; font: inherit; }
.post-info-box { display: inline-block; }
.post-tags { margin: 0 10px 10px; padding: 0 10px; }
.post-tags a {
  --tone: #ddd;
  position: relative; display: inline-block; padding: 0 7px 0 9px; margin: 0 8px 8px;
  border-radius: 0 3px 3px 0; background: var(--tone); color: white; font-size: 10px; font-weight: 500; line-height: 18px;
}
.post-tags a::before {
  position: absolute; top: 0; left: -9px; content: "";
  border: 9px solid transparent; border-right-color: var(--tone); border-left: 0;
}
.post-tags a::after {
  position: absolute; top: 6px; left: -2px; width: 5px; height: 5px; border-radius: 50%; background: white; content: "";
}
.color-tags a:nth-child(10n+1) { --tone: #3c3645; }
.color-tags a:nth-child(10n+2) { --tone: #72baa7; }
.color-tags a:nth-child(10n+3) { --tone: #892f1b; }
.color-tags a:nth-child(10n+4) { --tone: #e086ea; }
.color-tags a:nth-child(10n+5) { --tone: #33a3dc; }
.color-tags a:nth-child(10n+6) { --tone: #fdb933; }
.color-tags a:nth-child(10n+7) { --tone: #00a6ac; }
.color-tags a:nth-child(10n+8) { --tone: #da765b; }
.color-tags a:nth-child(10n+9) { --tone: #4b0082; }
.color-tags a:nth-child(10n) { --tone: #dc143c; }
.tag-show .post-tags { zoom: 1.36; }
.reading, article.post { width: calc(100% - 20px); max-width: 767px; margin: 10px auto 0; padding: 10px; }
article.post h1 { margin: 10px 0 20px; text-align: center; font-size: 24px; }
article.post h1::before, article.post h1::after { color: gray; }
article.post h1::before { content: "「"; padding-right: 5px; }
article.post h1::after { content: "」"; padding-left: 5px; }
.post-content img { max-width: 100%; height: auto; }
.post-content table { width: 100%; margin-bottom: 24px; }
.post-content tr:nth-child(2n) { background: #f7f7f7; }
.post-content td, .post-content th {
  padding: 8px; border: 1px solid #ddd; color: #4f4f4f; line-height: 22px; text-align: left; word-break: normal;
}
.post-content th { background: #eff3f5; }
.article-text img { cursor: zoom-in; }
.article-text img[data-original] { aspect-ratio: 2 / 3; object-fit: contain; }
.article-text img[data-original]:not([width]) { width: 100%; }
.status-code { color: #777; font-size: 24px; text-align: center; }

#side-button {
  position: fixed; right: 15px; bottom: 70px; z-index: 1000; width: 38px; opacity: .7;
}
#side-button:hover, #side-button:focus-within { opacity: 1; }
#side-button ul { padding: 0; }
#side-button li { display: block; margin: 2px; }
#side-button button, #side-button a {
  display: grid; place-items: center; width: 34px; height: 34px; padding: 0;
  border: 1px solid whitesmoke; border-radius: 20px; color: darkgray; background: whitesmoke;
}
#side-button button:hover, #side-button a:hover {
  color: gray; border-color: #e7e7e7; background: #e7e7e7; text-decoration: none;
}
.site-end { min-width: 100%; padding: 20px 0; border-top: 1px solid whitesmoke; text-align: center; }
.related { margin: 0 20px; color: gray; font-size: 12px; line-height: 1.5; }
.related a { padding-left: 5px; color: gray; }
.related a:hover { color: black; }
.qr-sheet { padding: 0; border: 0; background: transparent; color: white; }
.qr-sheet form { margin-bottom: 4px; text-align: right; }
.qr-sheet button { background: none; border: 0; }
.qr-sheet canvas, .qr-sheet img { display: block; width: 200px; height: 200px; }
.qr-sheet::backdrop { background: rgb(0 0 0 / .9); }

@media (max-width: 1199px) {
  .item { height: 36.8vw; }
  .post-item { height: 34.5vw; }
}
@media (max-width: 991px) {
  .item { height: 51.2vw; }
  .post-item { height: 48vw; }
  .primary .navbar-nav > li > a, .primary .categories summary, .inline-slots a { padding-inline: 8px; }
}
@media (max-width: 767px) {
  .item { height: 72vw; }
  .post-item { height: 67.5vw; }
  .small-categories { display: block; }
  .mobile-cate { margin: 0; padding: 10px 15px 0; list-style: none; white-space: nowrap; overflow-x: auto; }
  .mobile-cate li {
    display: inline-block; margin: 2px; padding: 4px 10px; border: 1px solid whitesmoke; border-radius: 20px;
  }
  .mobile-cate li.active { background-color: whitesmoke; }
  .mobile-cate a { color: black; }
  .nav-fold { flex: none; margin-left: auto; }
  .nav-fold > .navbar-toggle {
    display: block; float: none; margin: 0 0 0 12px; padding: 0; border: 0;
    color: gray; background: transparent; font-size: 21px; line-height: 30px;
  }
  .primary.navbar-collapse {
    display: block; position: absolute; inset: 100% 0 auto; margin: 0; padding: 0 15px;
    max-height: calc(100dvh - 50px); overflow-y: auto; background: white; border-bottom: 1px solid #e7e7e7;
  }
  .nav-fold:not([open]) .primary { display: none; }
  .primary .categories summary, .inline-slots a { padding: 10px 15px; }
  .primary .dropdown-menu { position: static; float: none; border: 0; box-shadow: none; }
  .quick-search.navbar-form { margin: 8px 0; padding: 18.5px 0 10px; }
  .quick-search .form-group { margin: 0; }
  .quick-search .form-control { width: 100%; font-size: 16px; }
}
@media (max-width: 575px) {
  .page-navigator .paging-outer { display: none; }
}
