/* Pirz: the original orange, red, texture and lettering, with responsive spacing. */
:root { --pirz-red: #b7352d; --pirz-orange: #ff9933; --pirz-ink: #302923; --pirz-line: #e9b47d; }
html { height: auto; scroll-behavior: smooth; }
body { height: auto; background: #fff6e9; color: var(--pirz-ink); font: 15px/1.55 'Trebuchet MS', Arial, sans-serif; }
body > table { width: 100%; table-layout: fixed; background: #fff; }
table { font: inherit; }
td { overflow-wrap: anywhere; }
img { max-width: 100%; height: auto; }
img[src="/images/px.gif"] { height: 1px; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: #972c25; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #94332c; outline-offset: 4px; }
h1 { display: inline-block; font: bold clamp(26px, 3vw, 36px)/1.2 'Trebuchet MS', Arial, sans-serif; margin: 0 0 24px; padding-bottom: 9px; border-bottom: 3px solid var(--pirz-red); }
h2 { font-size: 23px; line-height: 1.3; margin: 24px 0 12px; }
h3 { font-size: 19px; }
.section-caption { padding: 12px 16px; background: #ffdda9; border-left: 3px solid var(--pirz-red); border-radius: 0 6px 6px 0; font-size: 19px; margin: 12px 0 20px; }
.small, a.small { font: 12px/1.5 'Trebuchet MS', Arial, sans-serif; color: #665648; }
.content { padding: 30px 34px 44px; }
.gradient { background-position: top center; }
.head { padding: 12px; }
.pirz-header { min-height: 116px; display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 14px 24px; border: 2px solid #907d56; border-radius: 18px; box-sizing: border-box; }
.pirz-header > a { display: block; flex: 0 1 400px; }
.pirz-header img { display: block; width: 400px; }
.pirz-header p { margin: 0; font-size: 15px; color: #59432c; }
#topMenuBar { width: 100%; height: auto; background: var(--pirz-red); position: relative; z-index: 1100; box-sizing: border-box; padding: 8px 24px; }
#top-menu { width: auto; height: auto; display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; }
#top-menu > li { display: flex; align-items: stretch; float: none; position: relative; top: 0; height: auto; border-radius: 7px; }
#top-menu li a.root { display: flex; align-items: center; min-height: 44px; padding: 0 16px; box-sizing: border-box; border-radius: 6px; }
#top-menu li a.root span { padding: 0; top: 0; height: auto; font: bold 16px/1.3 'Trebuchet MS', Arial, sans-serif; color: #fff4dc; }
#top-menu li a.root:hover, #top-menu li a.root[aria-current="page"] { background: #fff0d1; }
#top-menu li a.root:hover span, #top-menu li a.root[aria-current="page"] span { color: #662b20; }
#top-menu div.flyout { display: none; position: absolute; left: 0; top: calc(100% + 8px); min-width: 230px; max-width: calc(100vw - 32px); z-index: 1; }
#topMenuBar:not(.nav-ready) li:focus-within > .flyout, #topMenuBar:not(.nav-ready) li:hover > .flyout, #top-menu li.nav-open > .flyout { display: block; }
#top-menu div.flyout:empty { display: none; }
#top-menu div.flyout ul { width: auto; padding: 6px; margin: 0; background: #fff8ec; border: 1px solid #dfb58b; border-radius: 8px; box-shadow: 0 8px 20px #60300020; }
#top-menu div.flyout ul li { width: auto; float: none; top: 0; height: auto; }
#top-menu div.flyout ul li a { width: auto; height: auto; min-height: 44px; box-sizing: border-box; display: flex; align-items: center; padding: 10px 12px; border-radius: 4px; }
#top-menu div.flyout ul li a span { top: 0; }
#top-menu div.flyout ul li a:hover { background: #ffe2b8; }
#top-menu div.flyout .menu-shadow-bottom { display: none; }
#topMenuBar .nav-toggle { width: 44px; min-height: 44px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: #fff4dc; font-size: 22px; cursor: pointer; }
#topMenuBar .nav-toggle:hover, #topMenuBar .nav-toggle[aria-expanded="true"] { background: #ffffff24; }
.nav-toggle span { display: inline-block; }
.nav-toggle[aria-expanded="true"] span { transform: rotate(180deg); }
#topMenuBar :focus-visible { outline-color: #fff0d1; outline-offset: -3px; }
#top-menu .flyout a:focus-visible { outline-color: #94332c; }
#topMenuBar .site-menu-toggle { display: none; }
.bottom { margin-top: 30px; border-top: 1px solid var(--pirz-line); }
.bottom td { padding: 14px 20px; }
.window, .window1 { display: flex; flex-wrap: wrap; gap: 16px; overflow: visible; }
.window:empty { display: none; }
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 20px; margin: 24px 0; }
.photo-card { position: relative; overflow: hidden; border-radius: 9px; background: #fff5e5; }
.photo-card a, .photo-card img { display: block; width: 100%; }
.photo-card img { aspect-ratio: 4 / 3; object-fit: cover; }
.photo-detail { margin: 24px 0 32px; text-align: center; }
.photo-detail img { display: block; width: 100%; height: auto; max-width: 1600px; max-height: 1200px; margin: auto; object-fit: contain; }
.photo-detail figcaption { margin-top: 12px; font-size: 14px; }
.comment-form { max-width: 720px; margin: 20px 0; padding: 24px; border: 1px solid #dfb58b; border-radius: 10px; background: #fff8ec; box-sizing: border-box; }
.comment-form label { display: block; margin: 14px 0 6px; font-weight: bold; }
.comment-form input:not([type="hidden"]), .comment-form textarea { display: block; width: 100%; background: white; }
.comment-form textarea { min-height: 180px; resize: vertical; }
.comment-form .form-status { margin: 14px 0; color: #704125; }
.comment-form button:disabled { cursor: not-allowed; opacity: .65; }
.comment-form .spam-trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.comment-details > summary { cursor: pointer; font-size: 24px; margin: 24px 0; }
.interesting-links table { width: 100%; table-layout: fixed; }
.interesting-links td:first-child { width: 40%; white-space: normal; }
.interesting-links td:nth-child(2) { width: 20px; }
.photo-unavailable { display: grid; place-items: center; aspect-ratio: 4 / 3; padding: 12px; box-sizing: border-box; }
.photo-unavailable { background: #f4e5cc; color: #655442; text-align: center; border-radius: 5px; }
:is(.photo-picks, .popular-photos) td > a:has(.photo-unavailable) { order: -1; display: block; width: 100%; margin: 0 0 12px; }
/* Home: separate content columns and keep dates independent of title widths. */
.pirz-home .content > table, .pirz-home .content > table > tbody { display: block; width: 100%; }
.pirz-home .content > table > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.pirz-home .content > table > tbody > tr > td { display: block; width: auto !important; min-width: 0; }
.pirz-home .content > table > tbody > tr > td:nth-child(2) { display: none; }
.home-block { margin-bottom: 28px; }
.home-block .section-caption { margin-top: 0; margin-bottom: 16px; }
.home-block > br { display: none; }
.home-about p { text-align: left; margin: 0; }
.home-news table { table-layout: auto; }
.home-news td { padding: 8px 0; vertical-align: top; }
.home-news td:first-child { width: 7.5em; white-space: nowrap; overflow-wrap: normal; font-size: 13px; color: #755239; }
.home-news td:nth-child(2) { width: 16px; }
.home-news td:last-child { width: auto; }
.home-news tr + tr td, .home-creative tr + tr td { border-top: 1px solid #dbad7666; }
.home-creative td { padding: 8px 0; }
.home-friends p { line-height: 1.9; }
@media (max-width: 900px) {
  .pirz-home .content > table > tbody > tr { grid-template-columns: minmax(0, 1fr); gap: 0; }
}
@media (max-width: 640px) {
  .content [nowrap] { white-space: normal; }
  .interesting-links table, .interesting-links tbody, .interesting-links tr, .interesting-links td { display: block; width: 100% !important; }
  .interesting-links td:nth-child(2) { display: none; }
  .comment-form { padding: 16px; }
  .photo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}
.item { float: none; border-radius: 9px; overflow: hidden; background-size: cover !important; background-position: center !important; }
.item:has(a.big_bright) { min-height: 190px; flex: 1 1 220px; max-width: 360px; }
.item:has(a.big_bright) > div { width: 100% !important; height: 100% !important; min-height: inherit; box-sizing: border-box; background: linear-gradient(180deg, #0008, transparent 85%); padding: 16px !important; }
.item:has(a.big_bright) > div > div { position: relative !important; width: auto !important; }
.item:has(a.big_bright) > div > div:has(> span.h2) { display: none; }
.item a.big_bright { font-size: 18px; line-height: 1.35; color: #fff6dd; text-decoration: none; font-weight: bold; }
.item a.big_bright:hover { text-decoration: underline; }
.item .white { font-size: 12px; font-weight: normal; }
.recent-albums { margin-bottom: 24px; }
.recent-albums > br, .recent-albums > div + br { display: none; }
.recent-albums .window { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.recent-albums .item { width: auto !important; height: clamp(240px, 20vw, 380px) !important; max-width: none; }
.album-categories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 12px 0 24px; }
.album-category { display: flex; align-items: center; gap: 18px; padding: 14px; background: #fffcf5d9; border: 1px solid #e9b47d; border-radius: 10px; min-width: 0; }
.album-category > a { flex: 0 0 180px; }
.album-category img { display: block; width: 180px; height: 135px; object-fit: cover; border-radius: 5px; }
.album-category h2 { font-size: 19px; line-height: 1.25; margin: 0 0 6px; }
.album-category h2 a { text-decoration: none; }
.album-category h2 a:hover { text-decoration: underline; }
.album-description { font-size: 13px; line-height: 1.4; color: #655648; }
.album-description p { margin: 0; }
.photo-map { margin: 30px 0; padding: 24px; border: 1px solid var(--pirz-line); border-radius: 12px; background: #fffaf1; scroll-margin-top: 20px; }
.map-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 20px; }
.map-heading h2 { margin: 0 0 6px; }
.map-heading p { margin: 0; color: #6e5c4c; font-size: 14px; }
.map-heading > a { flex-shrink: 0; font-size: 13px; }
#map { width: 100%; height: 450px; border: 1px solid #d8c9b4; border-radius: 8px; box-sizing: border-box; z-index: 0; background: #e6e1d6; }
#map img { max-width: none; }
.pirz-map-cluster { border: 3px solid #ffe8c6; border-radius: 50%; background: #bd492b; color: white; box-shadow: 0 2px 8px #4d2e3230; text-align: center; box-sizing: border-box; font: bold 14px/36px 'Trebuchet MS', Arial, sans-serif; }
#map .map-album img { width: 240px; max-width: 100%; height: auto; border-radius: 5px; display: block; margin: 10px 0; }
#map .map-album { color: #453326; font: 15px/1.4 'Trebuchet MS', Arial, sans-serif; text-decoration: none; }
#map .map-album span { display: block; color: #a32f25; font-size: 13px; }
.map-status { font-size: 13px; color: #6e5c4c; margin: 12px 0; }
#map-albums { margin-top: 16px; }
#map-albums summary { cursor: pointer; font-weight: bold; }
#map-albums ul { columns: 2; padding-left: 20px; font-size: 14px; }
#map-albums li { break-inside: avoid; margin-bottom: 8px; }
button, input, select, textarea { font: inherit; max-width: 100%; box-sizing: border-box; }
button, input[type="submit"], input[type="button"] { padding: 8px 14px; border: 1px solid #c58549; border-radius: 5px; background: #ffe5c1; color: #4d3321; cursor: pointer; }
input:not([type="checkbox"]):not([type="radio"]):not([type="image"]), textarea, select { border: 1px solid #c99f78; border-radius: 4px; padding: 7px 9px; }
.text { border: 1px solid #dfb58b; border-radius: 7px; background: #fffaf2d9; }
.guestbook-entry { padding: 16px; background: #fffcf5dc; border: 1px solid #e9b47d; border-radius: 8px; table-layout: fixed; }
.guestbook-entry > tbody > tr > td:first-child { width: 140px; }
.guestbook-entry > tbody > tr > td:last-child { width: auto; }
input[type="submit"], input[type="button"] { min-height: 38px; min-width: 68px; height: auto !important; }
input[type="text"], input[type="search"] { min-height: 38px; }
fieldset { border: 1px solid #dfb58b; border-radius: 7px; font: inherit; }
.npage, .npage_sel, .arr { display: inline-block; min-width: 24px; padding: 6px; text-align: center; margin: 2px; border-radius: 4px; }
.npage_sel { background: var(--pirz-red); }
@media (max-width: 900px) {
  .recent-albums .window { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pirz-header p { display: none; }
  .album-category { gap: 12px; padding: 12px; }
  .album-category > a { flex-basis: 82px; }
  .album-category img { width: 82px; height: 80px; }
  .album-category h2 { font-size: 17px; }
}
@media (max-width: 640px) {
  #topMenuBar { padding: 8px 16px; }
  #topMenuBar.nav-ready .site-menu-toggle { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; color: #fff4dc; background: transparent; border: 1px solid #ffffff66; font-weight: bold; }
  #top-menu { gap: 6px; padding: 0; }
  #topMenuBar.nav-ready #top-menu { display: none; }
  #topMenuBar.menu-open #top-menu { display: grid; margin-top: 12px; }
  #top-menu > li { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  #top-menu li a.root { padding: 0 12px; }
  #top-menu li a.root span { font-size: 16px; }
  #top-menu div.flyout { position: static; grid-column: 1 / -1; min-width: 0; max-width: none; margin-top: 4px; }
  #top-menu div.flyout ul { box-shadow: none; }
  .head { padding: 8px; }
  .pirz-header { min-height: 88px; padding: 10px 18px; border-radius: 12px; }
  .pirz-header > a { flex-basis: 300px; }
  .content { padding: 24px 16px; }
  .album-categories { grid-template-columns: 1fr; }
  .recent-albums .window { gap: 10px; }
  .recent-albums .item { height: 180px !important; min-height: 180px; }
  .item a.big_bright { font-size: 16px; }
  .item:has(a.big_bright) > div { padding: 12px !important; }
  .photo-map { padding: 16px; margin: 24px 0; }
  .map-heading { display: block; }
  .map-heading > a { display: inline-block; margin-top: 10px; }
  #map { height: 340px; }
  #map-albums ul { columns: 1; }
  .layout-columns, .layout-columns > tbody, .layout-columns > tbody > tr, .layout-columns > tbody > tr > td { display: block; width: 100% !important; box-sizing: border-box; }
  .layout-columns .layout-spacer { display: none; }
  .layout-columns > tbody > tr > td { margin-bottom: 20px; }
  .content > table { max-width: 100%; }
  .guestbook-entry > tbody > tr > td { display: block; width: auto !important; padding: 0 !important; text-align: left; border: 0 !important; }
  .guestbook-entry > tbody > tr > td:first-child { margin-bottom: 12px; padding-bottom: 10px !important; border-bottom: 1px solid #e9c8a0 !important; }
  .form, .form > tbody, .form > tbody > tr, .form > tbody > tr > td { display: block; width: 100%; box-sizing: border-box; }
  .form input, .form textarea, .form button { width: 100% !important; }
  .content table:has(> tbody > tr > td > .form) > tbody > tr > td { display: block; width: auto; }
  .photo-discussions table.text { table-layout: fixed; }
  .photo-discussions table.text > tbody > tr > td:first-child { width: 90px; }
  .photo-discussions .item { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Shared photo selections: consistent previews, readable labels and comment counts. */
:is(.photo-picks, .popular-photos) > table { display: block; width: 100%; }
:is(.photo-picks, .popular-photos) > table > tbody { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
:is(.photo-picks, .popular-photos) > table > tbody > tr { display: contents; }
:is(.photo-picks, .popular-photos) > table > tbody > tr > td { display: flex; flex-direction: column; align-items: flex-start; width: auto !important; height: auto; min-width: 0; margin: 0; padding: 12px; text-align: left; border: 1px solid var(--pirz-line); border-radius: 9px; background: #fffaf1e8; box-sizing: border-box; }
:is(.photo-picks, .popular-photos) td > br, :is(.photo-picks, .popular-photos) img[src="/images/px.gif"] { display: none; }
:is(.photo-picks, .popular-photos) td > a:has(img) { order: -1; display: block; width: 100%; margin: 0 0 12px; }
:is(.photo-picks, .popular-photos) a > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 5px; }
:is(.photo-picks, .popular-photos) td > a { margin: 0 0 6px; line-height: 1.4; }
:is(.photo-picks, .popular-photos) td > div.small { margin-top: auto; padding: 5px 9px !important; border-radius: 4px; background: #ffead0; color: #794329; }
.photo-discussions { margin-top: 32px; }
.photo-discussions > br { display: none; }
.photo-discussions > table, .photo-discussions > table > tbody { display: block; width: 100%; }
.photo-discussions > table > tbody > tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; }
.photo-discussions > table > tbody > tr > td { display: block; width: auto !important; min-width: 0; margin: 0; }
.photo-discussions > table > tbody > tr > td:empty, .photo-discussions > table > tbody > tr > td.layout-spacer { display: none; }
.photo-discussions > table > tbody > tr > td:has(> img[src="/images/px.gif"]):not(:has(table)) { display: none; }
.photo-discussions .section-caption { margin-top: 0; min-height: 62px; box-sizing: border-box; display: flex; align-items: center; }
:is(.photo-discussions, .all-photo-comments) table.text { display: block; width: 100%; box-sizing: border-box; margin-bottom: 16px; padding: 16px; border-radius: 10px; background: #fffaf1e8; }
:is(.photo-discussions, .all-photo-comments) table.text > tbody { display: block; }
:is(.photo-discussions, .all-photo-comments) table.text > tbody > tr { display: grid; grid-template-columns: minmax(100px, 30%) minmax(0, 1fr); gap: 20px; }
:is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td { display: block; width: auto !important; min-width: 0; padding: 0; text-align: left; }
:is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td:first-child { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
:is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td:first-child > a:has(img) { order: -1; display: block; width: 100%; margin-bottom: 4px; }
:is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td:first-child > a > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
:is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td:first-child > br,
:is(.photo-discussions, .all-photo-comments) img[src="/images/px.gif"],
.all-photo-comments > br, .photo-discussions > table > tbody > tr > td > br { display: none; }
:is(.photo-discussions, .all-photo-comments) table.text table { display: block; width: 100%; margin: 0 0 12px; }
:is(.photo-discussions, .all-photo-comments) table.text table tbody { display: block; }
:is(.photo-discussions, .all-photo-comments) table.text table tr { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: baseline; }
:is(.photo-discussions, .all-photo-comments) table.text table td { display: block; width: auto; padding: 0; white-space: normal; }
:is(.photo-discussions, .all-photo-comments) table.text table td:has(> img[src="/images/px.gif"]):not(:has(strong)) { display: none; }
:is(.photo-discussions, .all-photo-comments) table.text table span { font: inherit !important; font-size: 12px !important; color: #755239 !important; }
:is(.photo-discussions, .all-photo-comments) table.text p:empty { display: none; }
.all-photo-comments { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 16px; }
.all-photo-comments table.text { margin: 0; }
.all-photo-comments table.text > tbody > tr { grid-template-columns: minmax(120px, 160px) minmax(0, 1fr); }
.all-photo-comments > p { grid-column: 1 / -1; }
.all-photo-comments > p { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px; margin: 16px 0 24px; }
.all-comments-link { display: inline-flex; align-items: center; gap: 20px; min-height: 44px; box-sizing: border-box; padding: 10px 16px; border: 1px solid #c58549; border-radius: 6px; background: #ffe5c1; font-weight: bold; text-decoration: none; }
.photo-breadcrumbs { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; font-size: 14px; }
@media (max-width: 1100px) {
  .photo-discussions > table > tbody > tr, .all-photo-comments { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
  :is(.photo-picks, .popular-photos) > table > tbody { gap: 12px; }
  .all-photo-comments table.text > tbody > tr { grid-template-columns: minmax(100px, 32%) minmax(0, 1fr); }
  :is(.photo-discussions, .all-photo-comments) table.text { padding: 12px; }
  :is(.photo-discussions, .all-photo-comments) table.text > tbody > tr { gap: 12px; }
  .photo-discussions .section-caption { min-height: 0; }
}
@media (max-width: 420px) {
  :is(.photo-picks, .popular-photos) > table > tbody { grid-template-columns: minmax(0, 1fr); }
  :is(.photo-discussions, .all-photo-comments) table.text > tbody > tr { grid-template-columns: minmax(0, 1fr); }
  :is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td:first-child { display: grid; grid-template-columns: 90px minmax(0, 1fr); align-content: start; align-items: start; gap: 4px 12px; }
  :is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td:first-child > a:has(img) { grid-column: 1; grid-row: 1 / span 3; width: 90px; margin: 0; }
  :is(.photo-discussions, .all-photo-comments) table.text > tbody > tr > td:first-child > a { display: block; grid-column: 2; }
}

/* Shared section panels; archived table widths must not dictate mobile columns. */
.page-heading { margin-bottom: 4px; }
.page-heading h1 { overflow-wrap: normal; }
.reading-panel, .stat-hours, .rank-cloud, .guestbook-about > table > tbody > tr > td:not(.layout-spacer), .aphorisms > table > tbody > tr > td:not(:has(> img)) {
  box-sizing: border-box; padding: 24px; border: 1px solid var(--pirz-line); border-radius: 10px; background: #fffaf1e8;
}
.reading-panel { margin: 0 0 24px; }
.reading-panel > :first-child { margin-top: 0; }
.reading-panel p, .reading-panel li { max-width: 85ch; }
.reading-panel p { margin: 0 0 16px; line-height: 1.65; }
.reading-panel h2 { margin-top: 28px; }
summary { cursor: pointer; min-height: 44px; box-sizing: border-box; padding: 10px 0; font-weight: bold; }
.personage-list > table, .personage-list > table > tbody { display: block; width: 100%; }
.personage-list > table > tbody { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.personage-list > table > tbody > tr { display: contents; }
.personage-list > table > tbody > tr > td { display: block; width: auto !important; min-width: 0; padding: 16px; border: 1px solid var(--pirz-line) !important; border-radius: 10px; background: #fffaf1e8; }
.personage-list > table > tbody > tr > td:empty { display: none; }
.personage-list td > table, .personage-list td > table > tbody { display: block; float: none; width: 100%; }
.personage-list td > table > tbody > tr { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 16px; align-items: start; }
.personage-list td > table > tbody > tr > td { display: block; width: auto !important; padding: 0; }
.personage-list td > a > img { display: block; width: 96px; height: 112px; object-fit: cover; border-radius: 6px; }
.personage-list h2 { margin: 0 0 12px; font-size: 20px; }
.personage-list td table td table { margin-bottom: 8px; }
.personage-list td table td table tr { display: flex !important; gap: 4px !important; align-items: center !important; }
.personage-list td table td table td, .personage-list .small { white-space: nowrap; }
.profile-content img { width: auto !important; height: auto !important; max-width: 100%; max-height: 1000px; float: none; vertical-align: top; border-radius: 6px; }
.profile-content p[align="center"] { max-width: none; }
.profile-content > table, .profile-content > table > tbody { display: block; width: 100%; }
.profile-content > table > tbody > tr { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 28px; }
.profile-content > table > tbody > tr > td { display: block; width: auto !important; min-width: 0; padding: 0 !important; }
.profile-content > table img { width: 100% !important; max-height: none; }
:is(.site-statistics, .aphorisms, .guest-statistics, .guestbook-about) > table,
:is(.site-statistics, .aphorisms, .guest-statistics, .guestbook-about) > table > tbody { display: block; width: 100%; }
:is(.site-statistics, .aphorisms, .guest-statistics, .guestbook-about) > table > tbody > tr { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
:is(.site-statistics, .aphorisms, .guest-statistics, .guestbook-about) > table > tbody > tr > td { display: block; width: auto !important; min-width: 0; margin: 0; }
:is(.site-statistics, .aphorisms, .guest-statistics, .guestbook-about) > table > tbody > tr > td:has(> img[src="/images/px.gif"]) { display: none; }
:is(.site-statistics, .aphorisms, .guest-statistics, .guestbook-about) > table > tbody > tr > td:empty { display: none; }
.aphorisms h2, .stat-hours h3 { margin-top: 0; }
.aphorisms ul { padding-left: 22px; }
.aphorisms li { margin: 0 0 12px; }
.stat-hours__table, .guest-statistics table.text { width: 100% !important; border-collapse: collapse; table-layout: fixed; }
.stat-hours__table :is(th,td), .guest-statistics table.text > tbody > tr > td { padding: 8px; border-bottom: 1px solid #e9c8a0; text-align: left; font-size: 14px; }
.stat-hours__table th { color: #78422a; }
.stat-hours__table th:first-child { width: 34%; }
.stat-hours__table th:nth-child(2) { width: 20%; }
.stat-hours__table td { white-space: nowrap; }
.stat-hours__table tbody tr:nth-child(odd), .guest-statistics table.text > tbody > tr:nth-child(odd) { background: #ffedd77a; }
.stat-bar { display: inline-block; width: calc(100% - 54px); min-width: 20px; height: 7px; vertical-align: middle; background: #f1d9b4; border-radius: 4px; overflow: hidden; }
.stat-bar__fill { display: block; height: 100%; background: #dc8332; border-radius: inherit; }
.stat-hours__perc { display: inline-block; min-width: 48px; text-align: right; font-size: 12px; white-space: nowrap; }
.statistics-theory { padding-top: 10px; padding-bottom: 10px; }
.statistics-theory[open] summary { margin-bottom: 12px; }
.rank-cloud { margin: 16px 0 24px; padding-top: 8px; padding-bottom: 8px; }
.rank-cloud > div { padding: 12px 0; line-height: 2; }
.rank-cloud span { color: #795034 !important; }
.guest-statistics table.text { margin-bottom: 24px; background: #fffaf1e8; border: 1px solid var(--pirz-line); }
.guest-statistics table.text > tbody > tr > td:first-child { width: 42%; }
.guest-statistics table.text > tbody > tr > td:nth-child(2) { width: 15%; white-space: nowrap; }
.guest-statistics table.text > tbody > tr > td:nth-child(3) { width: auto !important; }
.site-search { margin: 0 0 20px; max-width: 560px; }
.site-search label { display: block; margin-bottom: 8px; font-size: 14px; }
.site-search > div { display: flex; gap: 8px; }
.site-search input { flex: 1; width: 100%; min-width: 0; }
.site-search button { flex: 0 0 auto; }
.guestbook-feed > br { display: none; }
.guestbook-feed .guestbook-entry { display: block; padding: 20px; margin: 16px 0; background: #fffaf1e8; border: 1px solid var(--pirz-line); border-radius: 10px; }
.guestbook-entry > tbody { display: block; }
.guestbook-entry > tbody > tr { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 20px; }
.guestbook-feed .guestbook-entry > tbody > tr > td { display: block; width: auto !important; min-width: 0; padding: 0 !important; text-align: left; border: 0 !important; }
.guestbook-feed .guestbook-entry > tbody > tr > td:first-child { padding-right: 20px !important; border-right: 1px solid var(--pirz-line) !important; }
.guestbook-entry img[src="/images/px.gif"] { display: none; }
.guestbook-entry p { margin-top: 0; max-width: 100ch; }
.guestbook-about { margin-top: 28px; }
.guestbook-about fieldset { margin: 0 0 16px; border: 1px solid var(--pirz-line); border-radius: 6px; }
.interesting-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px; }
.interesting-links > table { display: block; padding: 20px; margin: 0; box-sizing: border-box; border: 1px solid var(--pirz-line); border-radius: 10px; background: #fffaf1e8; }
.interesting-links > table > tbody, .interesting-links > table > tbody > tr, .interesting-links > table > tbody > tr > td { display: block; width: auto !important; white-space: normal; }
.interesting-links h3 { margin: 0 0 12px; }
.interesting-links p.small { font-size: 15px; margin: 0; }
.interesting-links > br, .interesting-links td:has(> img[src="/images/px.gif"]) { display: none !important; }
.album-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 20px; margin: 20px 0 28px; }
.album-tile { min-width: 0; border: 1px solid var(--pirz-line); border-radius: 10px; background: #fffaf1e8; overflow: hidden; }
.album-tile > a { display: block; text-decoration: none; }
.album-tile > a > img { display: block; width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-tile > a > div { padding: 16px; }
.album-tile h2 { margin: 0 0 8px; font-size: 20px; }
.album-tile details { padding: 0 16px 8px; }
.album-tile details > div { margin-bottom: 12px; }
.photo-detail img { max-width: var(--photo-max-width, 1600px); max-height: none; }
.photo-grid:empty { display: none; }
.npage, .npage_active { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 44px; box-sizing: border-box; }
@media (max-width: 760px) {
  .profile-content > table > tbody > tr, :is(.site-statistics, .aphorisms, .guest-statistics, .guestbook-about) > table > tbody > tr { grid-template-columns: minmax(0, 1fr); }
  .reading-panel, .stat-hours, .rank-cloud, .guestbook-about > table > tbody > tr > td:not(.layout-spacer), .aphorisms > table > tbody > tr > td:not(:has(> img)) { padding: 16px; }
  .statistics-theory { padding-top: 6px; padding-bottom: 6px; }
  .stat-hours__table :is(th,td), .guest-statistics table.text > tbody > tr > td { padding: 8px 5px; font-size: 13px; }
}
@media (max-width: 640px) {
  .guestbook-entry > tbody > tr { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .guestbook-feed .guestbook-entry { padding: 16px; }
  .guestbook-feed .guestbook-entry > tbody > tr > td:first-child { padding: 0 0 10px !important; margin: 0; border-right: 0 !important; border-bottom: 1px solid var(--pirz-line) !important; }
}
.pirz-standalone { background: #fff url('/images/fill-lossless.webp') repeat-x; }
.pirz-standalone > .pirz-header { margin: 12px; }
.pirz-standalone .reading-panel { max-width: 900px; }
.guest-statistics table.text > tbody > tr:has(> td[colspan]) { display: none; }
@media (min-width: 641px) {
  .guestbook-entry > tbody > tr:has(> td:nth-child(3)) { grid-template-columns: 160px 150px minmax(0, 1fr); }
}
/* The Retina artwork has transparent vertical margins outside the original 5:1 mark. */
.pirz-header img.site-logo { aspect-ratio: 5 / 1; object-fit: cover; object-position: center; height: auto; }
/* Original left-facing fish; alpha mask gives it the wordmark's charcoal colour. */
.pirz-header > a { min-width: 0; }
.pirz-header .site-fish { display: block; flex: 0 0 auto; width: clamp(68px, 22vw, 240px); aspect-ratio: 3 / 1; background-color: #423f3d; -webkit-mask: image-set(url('/images/fish-left-240.webp') 1x, url('/images/fish-left-480.webp') 2x, url('/images/fish-left-720.webp') 3x) center / contain no-repeat; mask: image-set(url('/images/fish-left-240.webp') 1x, url('/images/fish-left-480.webp') 2x, url('/images/fish-left-720.webp') 3x) center / contain no-repeat; }
@media (max-width: 1100px) { .pirz-header p { display: none; } }
@media (max-width: 640px) { .pirz-header { gap: 12px; } }
/* Flat menu: section links live in the content; the white tagline stays at the right. */
#topMenuBar { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; }
#top-menu { flex: 0 1 auto; }
#top-menu > li { display: block; }
#topMenuBar .site-tagline { display: block; flex: 0 1 360px; margin: 0 0 0 auto; color: #fff; text-align: right; font-size: 13px; line-height: 1.4; }
.section-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.section-navigation a { display: inline-flex; align-items: center; box-sizing: border-box; min-height: 44px; padding: 9px 16px; border: 1px solid #c58549; border-radius: 6px; background: #fff8ec; text-decoration: none; font-weight: bold; }
.section-navigation a:hover { background: #ffdda9; }
.section-navigation a[aria-current="page"] { background: #ffdda9; border-color: #b7352d; }
@media (max-width: 640px) {
  #topMenuBar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 12px; }
  #topMenuBar .site-menu-toggle { grid-column: 1; grid-row: 1; }
  #topMenuBar .site-tagline { grid-column: 2; grid-row: 1; font-size: 12px; max-width: 240px; }
  #top-menu { grid-column: 1 / -1; grid-row: 2; }
  #topMenuBar.menu-open #top-menu { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 4px; }
  #top-menu > li { display: block; }
  .section-navigation a { padding: 9px 12px; }
}

/* Shared album cards, compact navigation and recoverable comment forms. */
.home-welcome, .home-more-photos { display: none; }
.album-info { padding: 16px; }
.album-info h3 { margin: 0 0 10px; font-size: 20px; line-height: 1.3; }
.album-info h3 a { text-decoration: none; }
.album-info h3 a:hover { text-decoration: underline; }
.album-info time { display: block; color: #735238; font-size: 13px; }
.album-counts { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 12px 0 0; font-size: 13px; }
.album-counts > div { display: flex; gap: 6px; }
.album-counts dt { color: #735238; }
.album-counts dd { margin: 0; font-weight: bold; }
.album-search { margin-top: 24px; max-width: 720px; scroll-margin-top: 20px; }
.album-tile .album-cover img { height: auto; }
.pagination { display: flex; justify-content: center; align-items: center; gap: 10px; margin: 24px 0; width: 100%; box-sizing: border-box; }
.pagination a, .pagination > span[aria-disabled], .page-numbers > span[aria-current] { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 8px 12px; box-sizing: border-box; border: 1px solid #c58549; border-radius: 6px; background: #fff8ec; text-decoration: none; }
.pagination [aria-disabled] { opacity: .5; }
.page-numbers { display: flex; align-items: center; gap: 6px; }
.pagination .page-numbers > span[aria-current] { background: #a83c31; color: white; border-color: #a83c31; }
.page-position { display: none; }
.all-photo-comments > .pagination { grid-column: 1 / -1; }
.photo-navigation { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 8px 16px; align-items: center; margin: 20px 0 12px; }
.photo-navigation a { display: inline-flex; justify-content: center; align-items: center; padding: 9px 14px; box-sizing: border-box; min-height: 44px; background: #fff8ec; border: 1px solid #c58549; border-radius: 6px; text-decoration: none; }
.photo-navigation [data-photo-prev] { justify-self: start; grid-column: 1; grid-row: 1; }
.photo-navigation [data-photo-next] { justify-self: end; grid-column: 3; grid-row: 1; }
.photo-navigation > span { grid-column: 2; grid-row: 1; text-align: center; font-size: 14px; }
.photo-navigation .photo-back { grid-column: 1 / -1; justify-self: center; background: transparent; }
.photo-detail { touch-action: pan-y pinch-zoom; scroll-margin-top: 18px; }
.field-error { margin: 6px 0; color: #a12822; font-size: 14px; }
.field-error[hidden] { display: none; }
.comment-form [aria-invalid="true"] { border: 2px solid #a12822; }
.comment-success { padding: 12px 16px; background: #eef3db; border: 1px solid #879052; border-radius: 8px; }
[id^="photo-comment-"], [id^="guest-entry-"] { scroll-margin-top: 70px; }
[id^="photo-comment-"]:target, [id^="guest-entry-"]:target { outline: 2px solid #a83c31; outline-offset: 4px; }
@media (max-width: 900px) {
  .home-welcome { display: block; margin-bottom: 24px; }
  .home-welcome h1 { font-size: 24px; margin: 0 0 10px; padding: 0; border: 0; line-height: 1.25; }
  .home-welcome p { margin: 0 0 12px; }
  .home-welcome nav { display: flex; flex-wrap: wrap; gap: 8px; }
  .home-welcome a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 12px; box-sizing: border-box; border: 1px solid #c58549; border-radius: 6px; background: #fff8ec; text-decoration: none; }
  .pirz-home .home-about { display: none; }
}
@media (max-width: 640px) {
  .pirz-home .photo-picks[data-collapsible]:not(.photos-expanded) > table > tbody > tr > td.home-extra-photo { display: none; }
  .home-more-photos { display: block; width: 100%; margin-top: 12px; }
  .pagination { display: grid; grid-template-columns: auto minmax(0,1fr) auto; gap: 6px; }
  .pagination .page-numbers { display: none; }
  .page-position { display: block; text-align: center; font-size: 12px; line-height: 1.4; }
  .pagination > a, .pagination > span[aria-disabled] { padding: 8px; font-size: 13px; }
  .photo-navigation { gap: 8px; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); }
  .photo-navigation a { padding: 8px; font-size: 13px; }
  .photo-navigation > span { max-width: 70px; font-size: 12px; }
}
.photo-title { margin-bottom: 12px; }
.photo-swipe-hint { display: none; }
.photo-card:target { outline: 2px solid #a83c31; outline-offset: 4px; scroll-margin-top: 24px; }
@media (max-width: 640px) { .photo-swipe-hint { display: block; margin: 8px 0; font-size: 12px; color: #735238; text-align: center; } }

@media (max-width: 480px) {
  .pirz-header .site-fish {
    -webkit-mask-image: image-set(url('/images/fish-left-120.webp') 1x, url('/images/fish-left-240.webp') 2x, url('/images/fish-left-480.webp') 3x);
    mask-image: image-set(url('/images/fish-left-120.webp') 1x, url('/images/fish-left-240.webp') 2x, url('/images/fish-left-480.webp') 3x);
  }
}

/* Deferred photographs keep their space and remain available without JavaScript. */
img.deferred-photo { display: none !important; }
html.pirz-js img.deferred-photo { display: block !important; }
html.pirz-js img.deferred-photo:not([src]) { background: #f4e5cc; color: transparent; }
@media (max-width: 640px) {
  html.pirz-js .photo-picks:not(.photos-expanded) .home-extra-photo { display: none; }
}

/* Album discovery and compact inner-page branding retain the original palette. */
.album-search { max-width: none; margin: 0 0 24px; padding: 16px; border: 1px solid #c58549; border-radius: 8px; background: #fff8ec; box-sizing: border-box; }
.album-search > .album-filters { display: grid; grid-template-columns: minmax(160px, 2fr) minmax(100px, .7fr) minmax(140px, 1fr) auto; gap: 12px; align-items: end; }
.album-filters label { margin: 0; min-width: 0; font-weight: bold; }
.album-filters input, .album-filters select { display: block; width: 100%; box-sizing: border-box; min-height: 44px; margin-top: 6px; padding: 9px; font: inherit; font-weight: normal; border: 1px solid #a5805e; border-radius: 5px; background: #fff; color: #423f3d; }
.album-reset { display: inline-block; padding-top: 12px; }
.album-description { padding: 0 16px 16px; overflow-wrap: anywhere; }
.album-description p + p { margin-top: 10px; }
.pirz-inner .pirz-header { min-height: 68px; padding: 8px 16px; border-radius: 12px; }
.pirz-inner .pirz-header > a { flex-basis: 240px; }
.pirz-inner .pirz-header img.site-logo { width: 240px; }
.pirz-inner .pirz-header .site-fish { width: 140px; }
.pirz-inner .section-navigation { margin-bottom: 16px; }
.photo-page h1 { font-size: 24px; margin-bottom: 12px; }
.photo-detail figcaption { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; }
.photo-image-host { position: relative; }
.image-status { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 16px; box-sizing: border-box; background: #f4e5cc; color: #59432c; text-align: center; font: 14px/1.5 Verdana,sans-serif; }
.image-retry { display: block; margin: 8px auto; }
.image-status[hidden], .image-retry[hidden], [data-open-viewer][hidden] { display: none; }
.photo-card > .image-retry { position: absolute; left: 50%; bottom: 6px; transform: translateX(-50%); z-index: 1; margin: 0; min-height: 44px; max-width: calc(100% - 12px); padding: 6px 8px; font-size: 12px; }
.photo-card .image-status { padding: 8px; font-size: 12px; line-height: 1.3; }
.photo-card:has(> .image-retry:not([hidden])) .image-status { padding-bottom: 60px; }
.viewer-open { overflow: hidden; }
.photo-viewer { position: fixed; inset: 0; width: 100%; height: 100%; height: 100dvh; max-width: none; max-height: none; padding: 0; margin: 0; border: 0; background: #272523; color: #fff8ec; box-sizing: border-box; }
.photo-viewer[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; }
.photo-viewer header, .photo-viewer footer { padding: 12px max(12px,env(safe-area-inset-right)) 12px max(12px,env(safe-area-inset-left)); background: #423f3d; }
.photo-viewer header { display: flex; align-items: center; gap: 16px; justify-content: space-between; padding-top: max(12px,env(safe-area-inset-top)); }
.photo-viewer h2 { min-width: 0; margin: 0; color: #fff8ec; font: bold 18px/1.3 Verdana,sans-serif; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.photo-viewer button { min-height: 44px; flex-shrink: 0; }
.photo-viewer button:disabled { opacity: .5; cursor: default; }
.viewer-stage { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; min-height: 0; padding: 6px max(12px,env(safe-area-inset-right)) 6px max(12px,env(safe-area-inset-left)); position: relative; touch-action: pan-y pinch-zoom; }
.viewer-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-stage .image-status { inset: 12px; background: #272523; color: #fff8ec; }
.viewer-stage .image-retry { position: absolute; top: 55%; left: 50%; transform: translateX(-50%); z-index: 1; }
.viewer-message { text-align: center; padding: 12px; }
.photo-viewer footer { padding-bottom: max(12px,env(safe-area-inset-bottom)); }
.photo-viewer footer nav { display: flex; gap: 16px; align-items: center; justify-content: center; }
.viewer-links { display: flex; gap: 8px 20px; flex-wrap: wrap; justify-content: center; margin-top: 6px; }
.viewer-links a { color: #fff8ec; min-height: 32px; display: inline-flex; align-items: center; font-size: 13px; }
.viewer-links a[hidden] { display: none; }
@media (max-width: 640px) {
  .album-search { padding: 12px; }
  .album-search > .album-filters { grid-template-columns: minmax(0,1fr) minmax(0,1fr); }
  .album-filters label:first-child, .album-filters button { grid-column: 1 / -1; }
  .pirz-inner .pirz-header { min-height: 56px; padding: 6px 12px; }
  .pirz-inner .pirz-header > a { flex-basis: 190px; }
  .pirz-inner .pirz-header img.site-logo { width: 190px; }
  .pirz-inner .pirz-header .site-fish { width: clamp(60px,20vw,84px); }
  .photo-page h1 { font-size: 21px; }
  .photo-viewer h2 { font-size: 15px; }
  .photo-viewer header { gap: 8px; }
}

/* Keep the page stationary behind the viewer, including mobile Safari. */
html.viewer-open body { position: fixed; top: var(--viewer-page-top, 0px); inset-inline: 0; width: 100%; }
.viewer-links a { min-height: 44px; }
.photo-viewer .image-status { pointer-events: none; }

.viewer-stage .image-retry { top: auto; bottom: 18px; }
.viewer-stage:has(.image-retry:not([hidden])) .image-status { padding-bottom: 80px; }
/* Once enlarged, let the browser pan the photo in both directions. */
.photo-zoomed .photo-detail, .photo-zoomed .viewer-stage { touch-action: pan-x pan-y pinch-zoom; }
.photo-viewer .viewer-stage { touch-action: none; overflow: hidden; }
.viewer-image { transform-origin: center; user-select: none; -webkit-user-select: none; }
.viewer-tools { display: flex; gap: 8px; flex-shrink: 0; }
.viewer-tools [hidden] { display: none; }

/* In a short landscape viewport, reserve height for the photo and keep touch controls alongside it. */
@media (orientation: landscape) and (max-height: 500px) {
  .photo-viewer[open] { grid-template-columns: minmax(0,1fr) calc(180px + env(safe-area-inset-right)); grid-template-rows: auto minmax(0,1fr); }
  .photo-viewer header { grid-column: 1 / -1; padding-top: max(4px,env(safe-area-inset-top)); padding-bottom: 4px; gap: 12px; }
  .photo-viewer h2 { font-size: 15px; -webkit-line-clamp: 1; }
  .viewer-stage { padding-right: 6px; padding-bottom: max(6px,env(safe-area-inset-bottom)); }
  .photo-viewer footer { min-height: 0; overflow-y: auto; padding: 4px max(12px,env(safe-area-inset-right)) max(4px,env(safe-area-inset-bottom)) 8px; }
  .photo-viewer footer nav { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; text-align: center; }
  .photo-viewer [data-counter] { grid-column: 1 / -1; grid-row: 1; min-height: 24px; line-height: 24px; }
  .photo-viewer footer button { padding: 4px; font-size: 12px; }
  .viewer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 0 4px; margin-top: 4px; }
  .viewer-links a { min-width: 0; justify-content: center; text-align: center; font-size: 12px; }
  .viewer-links [data-album-link] { grid-column: 1 / -1; }
}

/* Photo pages: fit the complete photograph into the desktop browser window. */
.photo-detail .photo-original { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 8px; border-radius: 5px; font-size: 13px; color: #655648; text-decoration: none; }
.photo-detail .photo-original:hover { color: #972c25; background: #fff8ec; text-decoration: underline; }
.photo-original-size { font-size: 12px; color: #735238; white-space: nowrap; }
.photo-original svg { flex-shrink: 0; }
@media (min-width: 641px), (orientation: landscape) and (max-height: 500px) {
  .photo-page #topMenuBar { padding: 4px 20px; }
  .photo-page #top-menu li a.root { min-height: 34px; padding: 0 12px; }
  .photo-page #top-menu li a.root span { font-size: 14px; }
  .photo-page #topMenuBar .site-tagline { font-size: 12px; }
  .photo-page .head { padding: 4px 12px; }
  .photo-page .pirz-header { min-height: 44px; padding: 4px 12px; border-radius: 8px; }
  .photo-page .pirz-header > a { flex-basis: 160px; }
  .photo-page .pirz-header img.site-logo { width: 160px; }
  .photo-page .pirz-header .site-fish { width: 96px; }
  .photo-page .content { padding: 6px 24px 32px; }
  .photo-page .page-heading { display: inline-block; vertical-align: middle; margin: 0 12px 4px 0; }
  .photo-page .page-heading h1 { font-size: 18px; margin: 0; padding-bottom: 3px; border-bottom-width: 2px; }
  .photo-page .section-navigation { display: inline-flex; vertical-align: middle; gap: 6px; margin: 0 16px 4px 0; }
  .photo-page .section-navigation a { min-height: 32px; padding: 4px 9px; font-size: 13px; }
  .photo-page .photo-album-path { display: inline-block; vertical-align: middle; max-width: calc(100% - 330px); margin-bottom: 4px; font-size: 13px; }
  .photo-page .photo-album-path > div { padding: 0 !important; }
  .photo-page .photo-title { font-size: 18px; margin: 4px 0; }
  .photo-page .photo-navigation { display: flex; justify-content: center; gap: 10px; margin: 4px 0 6px; }
  .photo-page .photo-navigation a { min-height: 32px; padding: 4px 10px; font-size: 13px; }
  .photo-page .photo-navigation .photo-back { order: -1; margin-right: auto; }
  .photo-page .photo-navigation > span { padding: 0 6px; font-size: 13px; }
  .photo-page .photo-detail { margin: 6px 0 20px; scroll-margin-top: var(--photo-scroll-margin, 46px); }
  .photo-page .photo-detail > a[data-open-viewer] { display: flex; justify-content: center; align-items: center; }
  .photo-page .photo-detail img { width: auto; height: auto; max-width: 100%; max-height: var(--photo-fit-height, max(64px, calc(100vh - 240px))); max-height: var(--photo-fit-height, max(64px, calc(100dvh - 240px))); }
  .photo-page .photo-detail figcaption { gap: 10px; margin-top: 8px; }
  .photo-page .photo-actions button { min-height: 32px; padding: 5px 10px; font-size: 13px; }
  .photo-page .photo-original { min-height: 32px; }
}
@media (max-width: 380px) {
  .photo-detail figcaption { gap: 4px; }
  .photo-detail .photo-original { gap: 5px; padding: 0 4px; }
}

.photo-page .recent-albums:empty { display: none; }

@media (orientation: landscape) and (max-height: 500px) {
  .photo-page .photo-swipe-hint { display: none; }
  .photo-page .photo-navigation a, .photo-page .photo-actions button, .photo-page .photo-original { min-height: 44px; }
  .photo-page .photo-navigation { gap: 6px; }
  .photo-page .photo-navigation > span { max-width: none; white-space: nowrap; font-size: 12px; }
}
