.pg-gallery { --pg-gap: 5px; width: 100%; margin-block: 0.75rem 1.4rem; }
.pg-gallery .pg-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--pg-gap); padding: 0; margin: 0; list-style: none; }
.pg-gallery .pg-item { display: block; margin: 0; padding: 0; min-width: 0; }
.pg-gallery .pg-link { display: block; position: relative; overflow: hidden; height: 100%; aspect-ratio: 4/3; background: #f1efeb; border-radius: 3px; }
.pg-gallery .pg-photo { display: block; width: 100%; height: 100%; max-width: none; object-fit: cover; margin: 0; transition: transform 220ms ease; }
.pg-gallery .pg-link:hover .pg-photo { transform: scale(1.035); }
.pg-gallery .pg-expand { position: absolute; inset: auto 8px 8px auto; display: grid; place-items: center; width: 31px; height: 31px; border-radius: 50%; background: #171715b8; color: #fff; font: 19px/1 system-ui,sans-serif; opacity: .86; }
.pg-gallery .pg-link:focus-visible { outline: 3px solid #a86322; outline-offset: 2px; z-index: 1; }
.pg-gallery .pg-more { margin-top: var(--pg-gap); }
.pg-gallery .pg-more summary { width: fit-content; margin: 1rem auto; padding: 9px 16px; border: 1px solid #cfcac1; border-radius: 50px; color: #25231f; background: #faf9f6; cursor: pointer; font: 600 14px/1.4 system-ui,sans-serif; }
.pg-gallery .pg-more summary span { color: #706a62; margin-inline-start: 4px; }
.pg-gallery .pg-more[open] summary { margin-top: .75rem; }
.pg-arches .pg-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
.pg-arches .pg-grid.pg-justified { display: flex; flex-wrap: wrap; }
.pg-arches .pg-grid.pg-justified .pg-link { aspect-ratio: auto; }
@media (min-width: 541px) { .pg-gallery .pg-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (min-width: 769px) { .pg-gallery .pg-grid { grid-template-columns: repeat(4,minmax(0,1fr)); } }
@media (min-width: 981px) { .pg-gallery .pg-grid { grid-template-columns: repeat(5,minmax(0,1fr)); } }
@media (max-width: 370px) { .pg-arches .pg-grid:not(.pg-justified) { grid-template-columns: 1fr; } }

html.pg-locked { overflow: hidden; scrollbar-gutter: stable; }
.pg-lightbox, .pg-lightbox * { box-sizing: border-box; }
.pg-lightbox { --pg-accent: #ffc084; inset: 0; position: fixed; width: min(1200px,calc(100% - 32px)); height: min(880px,calc(100% - 32px)); max-width: none; max-height: none; margin: auto; padding: 0; border: 1px solid #ffffff20; border-radius: 20px; overflow: hidden; background: #151514; color: #f9f7f3; font: 15px/1.4 system-ui,sans-serif; color-scheme: dark; }
.pg-lightbox[open] { display: grid; grid-template-rows: auto minmax(0,1fr) auto; animation: pg-appear 190ms ease-out; }
@keyframes pg-appear { from { opacity: 0; } to { opacity: 1; } }
.pg-lightbox [hidden] { display: none !important; }
.pg-lightbox::backdrop { background: #060605dd; }
.pg-lightbox .pg-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 15px 12px 20px; border-bottom: 1px solid #ffffff15; }
.pg-lightbox .pg-labels { min-width: 0; }
.pg-lightbox .pg-heading { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-weight: 650; letter-spacing: .015em; }
.pg-lightbox .pg-counter { color: #c3beb6; font-size: 12px; font-variant-numeric: tabular-nums; }
.pg-lightbox .pg-body { position: relative; display: grid; min-width: 0; min-height: 0; }
.pg-lightbox .pg-stage { display: grid; place-items: center; position: relative; min-width: 0; min-height: 0; overflow: hidden; touch-action: none; user-select: none; background: radial-gradient(ellipse at center,#242322 0%,#141413 82%); }
.pg-lightbox .pg-stage.pg-zoomed { cursor: grab; }
.pg-lightbox .pg-stage.pg-zoomed:active { cursor: grabbing; }
.pg-lightbox .pg-full { display: block; width: auto; height: auto; min-width: 0; min-height: 0; max-width: calc(100% - 112px); max-height: 100%; object-fit: contain; margin: 0; box-shadow: 0 15px 55px #0005; user-select: none; }
.pg-lightbox .pg-neighbor { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; }
.pg-lightbox .pg-status { position: absolute; inset: auto 60px; text-align: center; color: #e6ddd3; }
.pg-lightbox .pg-control, .pg-lightbox .pg-original { display: grid; place-items: center; appearance: none; min-width: 44px; min-height: 44px; margin: 0; padding: 0 9px; border: 1px solid #ffffff28; border-radius: 11px; background: #282725; color: #f9f7f3; font: 600 18px/1 system-ui,sans-serif; cursor: pointer; box-shadow: none; text-decoration: none; text-shadow: none; }
.pg-lightbox .pg-control:hover, .pg-lightbox .pg-original:hover { background: #363432; color: #fff; }
.pg-lightbox .pg-control:disabled { opacity: .43; cursor: default; }
.pg-lightbox :is(.pg-control,.pg-original) { touch-action: manipulation; }
.pg-lightbox :is(.pg-control,.pg-original):focus-visible { outline: 2px solid var(--pg-accent); outline-offset: 2px; }
.pg-lightbox :is(.pg-prev,.pg-next) { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; padding: 0; background: #252421e0; }
.pg-lightbox :is(.pg-prev,.pg-next) svg { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; }
.pg-lightbox :is(.pg-prev,.pg-next):active svg { scale: .92; }
.pg-lightbox .pg-prev { left: 8px; }
.pg-lightbox .pg-next { right: 8px; }
.pg-lightbox .pg-close { font-size: 26px; }
.pg-lightbox .pg-footer { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: center; gap: 8px 14px; padding: 10px 14px; border-top: 1px solid #ffffff15; }
.pg-lightbox .pg-caption { grid-column: 1/-1; color: #e0d9cf; margin: 0; overflow-wrap: anywhere; max-height: 3em; overflow: auto; }
.pg-lightbox .pg-thumbs { display: flex; align-items: center; gap: 6px; position: relative; min-width: 0; overflow-x: auto; margin: 0; padding: 3px; scrollbar-width: thin; }
.pg-lightbox .pg-thumb { flex: 0 0 49px; min-height: 44px; height: 44px; padding: 2px; overflow: hidden; opacity: .76; }
.pg-lightbox .pg-thumb[aria-current="true"] { opacity: 1; border-color: var(--pg-accent); }
.pg-lightbox .pg-thumb img { width: 100%; height: 100%; min-height: 0; object-fit: cover; margin: 0; border-radius: 7px; }
.pg-lightbox .pg-tools { display: flex; justify-content: flex-end; gap: 5px; grid-column: 2; }
.pg-lightbox :is(.pg-reset,.pg-original) { padding-inline: 10px; font-size: 13px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pg-lightbox .pg-original { color: var(--pg-accent); }
@media (max-width: 660px) {
  .pg-lightbox { width: 100%; height: 100%; height: 100dvh; border: 0; border-radius: 0; }
  .pg-lightbox .pg-bar { padding-top: max(10px,env(safe-area-inset-top)); }
  .pg-lightbox .pg-footer { grid-template-columns: minmax(0,1fr); padding-bottom: max(10px,env(safe-area-inset-bottom)); }
  .pg-lightbox .pg-tools { grid-column: 1; justify-content: center; }
  .pg-lightbox .pg-full { max-width: 100%; }
  .pg-lightbox :is(.pg-prev,.pg-next) { top: auto; bottom: 8px; transform: none; }
}
@media (prefers-reduced-motion: reduce) { .pg-gallery .pg-photo { transition: none; } .pg-lightbox[open] { animation: none; } }
