.theme-gallery{width:min(91%,1240px);margin-inline:auto;padding-block:clamp(2rem,5vw,4.5rem)}
.gallery-heading{margin-block-end:2rem}.gallery-heading h1{font-size:clamp(2.2rem,4.5vw,3.8rem);line-height:1.25;margin:0 0 .75rem;text-wrap:balance}.gallery-heading p{margin:0;max-width:65ch;color:#466052}
.gallery-region{display:flex;align-items:end;gap:1rem;margin-bottom:1.5rem}.gallery-region>div{width:min(100%,300px);min-width:0}.gallery-region label{display:block;font-size:.9rem;font-weight:600;margin-bottom:.4rem}
.gallery-region select{font:inherit;background:#fffdf8;color:#203c32;border:1px solid #98aa9b;border-radius:5px;min-height:48px;padding:.7rem .9rem;width:100%}
.gallery-region button{font:inherit;min-height:48px;padding:.7rem 1.4rem;background:#315a46;color:#fffdf8;border:1px solid #315a46;border-radius:5px;white-space:nowrap;cursor:pointer}.gallery-region button:hover{background:#234532}
.theme-gallery :is(a,button,select):focus-visible{outline:3px solid #ac643e;outline-offset:4px}.theme-gallery ::selection{background:#dce6d3;color:#203c32}
.gallery-theme-nav{display:flex;flex-wrap:wrap;gap:.65rem;padding-bottom:1.8rem;border-bottom:1px solid #cbd4c6}.gallery-theme-nav a{font-size:.95rem;min-height:44px;padding:.6rem 1.15rem;border:1px solid #bac9b3;border-radius:24px;color:#234e41;display:inline-flex;align-items:center}.gallery-theme-nav a:hover{background:#e5ecdf}.gallery-theme-nav a[aria-current]{background:#315a46;color:#fffdf8;border-color:#315a46}
.gallery-chapter,.gallery-theme-full{padding-top:2.4rem;scroll-margin-top:110px}.gallery-chapter+.gallery-chapter{margin-top:2.5rem;border-top:1px solid #cbd4c6}
.chapter-heading{display:flex;align-items:end;justify-content:space-between;gap:1.5rem;margin-bottom:1.5rem}.chapter-heading h2{font-size:clamp(1.8rem,3vw,2.5rem);line-height:1.3;margin:0 0 .65rem;text-wrap:balance}.chapter-heading p{margin:0;color:#466052;font-size:.95rem;max-width:65ch}.chapter-heading>span{font-size:.85rem;color:#466052;white-space:nowrap}.gallery-viewall{flex-shrink:0;display:inline-block;padding-block:.65rem;border-bottom:1px solid #98aa9b;font-size:.9rem}.gallery-viewall:hover,.gallery-back:hover{text-decoration:underline;text-underline-offset:5px}
.chapter-preview{display:grid;grid-template-columns:minmax(0,1.9fr) minmax(0,1fr);gap:1.5rem 2rem}.chapter-preview>.real-photo:first-child{grid-column:1;grid-row:1/3;display:flex;flex-direction:column;min-height:0}.chapter-preview>.real-photo:first-child>a{flex:1;aspect-ratio:auto;min-height:0}.chapter-preview>.real-photo:not(:first-child){grid-column:2}.chapter-preview.preview-count-3>.real-photo:first-child>a>img{position:absolute;inset:0}
.theme-gallery .real-photo>a{border-radius:7px;aspect-ratio:3/2;background:#e5eadd}.theme-gallery .real-photo img{display:block;transition:none}.theme-gallery .real-photo>a:hover img{transform:none;filter:brightness(.97)}
@media(min-width:901px){.chapter-preview.preview-count-3>.real-photo:not(:first-child)>a{aspect-ratio:1.9}}
.theme-gallery .real-photo figcaption{padding:.7rem 0 0;gap:.15rem}.gallery-photo-location{font-size:.8rem;line-height:1.6;color:#52695c;margin:0}.theme-gallery .photo-place{font:1.15rem/1.5 SimSun,serif;letter-spacing:0;overflow-wrap:anywhere}.theme-gallery .photo-place:hover{text-decoration:underline;text-underline-offset:4px}
.chapter-preview.preview-count-1,.chapter-preview.preview-count-2{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-preview:is(.preview-count-1,.preview-count-2)>.real-photo:first-child{grid-row:auto;display:block}.chapter-preview:is(.preview-count-1,.preview-count-2)>.real-photo:first-child>a{aspect-ratio:3/2}
.gallery-full-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:2.5rem 1.7rem}.gallery-back{display:inline-block;margin-bottom:1.5rem;color:#315a46;text-decoration:underline;text-underline-offset:4px;font-size:.9rem;padding-block:.5rem}
.gallery-empty{grid-column:1/-1;padding:2rem;background:#eaf0e3;color:#466052;font-size:.95rem;border-radius:7px}.gallery-empty p{margin:0 0 .5rem}.gallery-empty a{text-decoration:underline;text-underline-offset:4px;display:inline-block;padding-block:.5rem}
.gallery-pagination{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:1.2rem;margin-top:3rem;font-size:.95rem;font-variant-numeric:tabular-nums}.gallery-pagination a{padding:.65rem 1rem;border:1px solid #98aa9b;border-radius:5px;min-height:44px}.gallery-pagination a:hover{background:#e5ecdf}
.photo-viewer{border:1px solid #98aa9b;border-radius:8px;color:#203c32;overscroll-behavior:contain}.photo-viewer::backdrop{background:rgba(20,37,30,.72)}.photo-viewer button:focus-visible{outline:3px solid #ac643e;outline-offset:3px}.photo-viewer-head button,.photo-viewer-controls button{min-height:44px}
@media(max-width:900px){.chapter-preview{gap:1.2rem;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.gallery-full-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.chapter-heading{align-items:start}.chapter-heading p{font-size:.9rem}}
@media(max-width:600px){.gallery-heading{margin-bottom:1.5rem}.gallery-region{gap:.65rem}.gallery-region>div{flex:1}.gallery-region button{padding-inline:1rem}.gallery-theme-nav{gap:.55rem}.gallery-theme-nav a{font-size:.875rem;padding:.55rem .9rem}.gallery-chapter,.gallery-theme-full{padding-top:1.8rem}.chapter-heading{display:block;margin-bottom:1.2rem}.gallery-viewall{margin-top:.65rem}.chapter-heading>span{display:block;margin-top:.6rem}.chapter-preview,.chapter-preview.preview-count-1,.chapter-preview.preview-count-2{grid-template-columns:repeat(2,minmax(0,1fr));gap:1.3rem .9rem}.chapter-preview>.real-photo:first-child,.chapter-preview:is(.preview-count-1,.preview-count-2)>.real-photo:first-child{grid-column:1/-1;grid-row:auto;display:block}.chapter-preview>.real-photo:first-child>a{aspect-ratio:3/2}.chapter-preview>.real-photo:not(:first-child){grid-column:auto}.theme-gallery .photo-place{font-size:1rem}.gallery-photo-location{font-size:.75rem}.gallery-full-grid{grid-template-columns:1fr;gap:2rem}.gallery-chapter+.gallery-chapter{margin-top:2rem}.photo-viewer-head{align-items:start}.photo-viewer-head h2{overflow-wrap:anywhere}}
