/* Each service has its own photo collection. Horizontal rows also work without JavaScript. */
.gallery-page [hidden], .photo-viewer [hidden] { display:none !important; }
.gallery-page { padding-top:30px; }
.gallery-page .breadcrumb { margin-bottom:32px; }
.gallery-page button, .photo-viewer button { font:inherit; cursor:pointer; }
.gallery-page a:focus-visible, .gallery-page button:focus-visible, .collection-track:focus-visible, .photo-viewer button:focus-visible, .photo-viewer a:focus-visible { outline:3px solid #2474a7; outline-offset:4px; }
.gallery-heading { display:grid; grid-template-columns:1.3fr 1fr; align-items:end; gap:60px; margin-bottom:36px; }
.gallery-heading h1 { max-width:14ch; font-size:clamp(40px,4.6vw,64px); margin:14px 0 0; line-height:1.08; }
.gallery-heading p { max-width:39ch; margin:0 0 5px; font-size:17px; }
.gallery-category-directory { border-top:1px solid var(--line); border-bottom:1px solid var(--line); padding:22px 0 24px; margin-bottom:40px; }
.gallery-directory-label { display:flex; align-items:center; justify-content:space-between; gap:16px; margin-bottom:16px; font-size:14px; }
.gallery-directory-label strong { font-weight:600; }
.gallery-directory-label > span { color:#52645a; font-size:13px; }
.gallery-category-links { display:flex; gap:10px; flex-wrap:wrap; }
.gallery-category-links a { display:inline-flex; align-items:center; justify-content:space-between; gap:16px; min-height:46px; padding:8px 14px; border:1px solid #c5d4d4; border-radius:6px; background:#edf3f3; text-decoration:none; font-size:13px; font-weight:500; transition:background .15s ease,border-color .15s ease; }
.gallery-category-links a:hover { background:#dae8e8; border-color:#9fb8b6; }
.gallery-category-links a > span { min-width:22px; font-size:11px; font-variant-numeric:tabular-nums; color:#52645a; }
.gallery-collection { margin:0 0 34px; padding:26px; border:1px solid #cfdddc; border-radius:14px; background:#eaf1f1; scroll-margin-top:28px; min-width:0; }
.gallery-collection:nth-of-type(even) { background:#f0f0e7; border-color:#d7d9c9; }
.collection-heading { display:flex; align-items:end; justify-content:space-between; gap:28px; margin-bottom:22px; }
.collection-heading small { font-size:11px; color:#52645a; letter-spacing:.12em; }
.collection-heading h2 { font-size:clamp(25px,2.8vw,35px); margin:9px 0; line-height:1.15; }
.collection-heading p { font-size:14px; line-height:1.6; margin:0; max-width:62ch; color:#42564b; }
.collection-navigation { display:flex; align-items:center; flex-shrink:0; gap:9px; }
.collection-position { margin-right:10px; min-width:64px; text-align:right; font-size:12px; font-variant-numeric:tabular-nums; }
.collection-navigation button { display:grid; place-items:center; width:44px; height:44px; padding:0; border:1px solid #b4c7c1; border-radius:50%; background:#fbfcf7; color:var(--ink); }
.collection-navigation button:hover:not(:disabled) { background:var(--ink); border-color:var(--ink); color:var(--paper); }
.collection-navigation button:disabled { opacity:.35; cursor:default; }
.collection-navigation svg { width:20px; height:20px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.collection-track { position:relative; display:flex; gap:18px; padding:4px 3px 14px; margin:-4px -3px 0; overflow-x:auto; overflow-y:hidden; scroll-snap-type:x mandatory; overscroll-behavior-x:contain; scrollbar-width:thin; scrollbar-color:#a7bcb4 transparent; }
.collection-photo { flex:0 0 calc((100% - 36px)/3); min-width:0; display:block; border:1px solid #d5ddd3; border-radius:9px; background:#fffdf7; text-decoration:none; overflow:hidden; scroll-snap-align:start; scroll-snap-stop:normal; }
.collection-photo-image { position:relative; overflow:hidden; aspect-ratio:4/3; background:#f9f7f0; }
.collection-photo-image img { display:block; width:100%; height:100%; object-fit:contain; }
.collection-enlarge { position:absolute; bottom:12px; right:12px; display:grid; place-items:center; width:34px; height:34px; border-radius:50%; background:#fffdf7ed; color:var(--ink); }
.collection-enlarge svg { width:17px; height:17px; fill:none; stroke:currentColor; stroke-width:1.6; stroke-linecap:round; stroke-linejoin:round; }
.collection-hint { margin:8px 0 0; color:#52645a; font-size:11px; }
.gallery-invitation { display:flex; align-items:center; justify-content:space-between; gap:32px; margin-top:56px; padding:32px 0 0; border-top:1px solid var(--line); }
.gallery-invitation h2 { font-size:clamp(28px,3vw,38px); margin:12px 0; }
.gallery-invitation p { margin:0; }
.gallery-invitation .btn { flex-shrink:0; }
body.has-photo-viewer { overflow: hidden; }
.photo-viewer {
  width: min(1120px, calc(100vw - 64px));
  max-width: none;
  max-height: calc(100dvh - 64px);
  padding: 0;
  border: 1px solid #ffffff2b;
  border-radius: 16px;
  background: #f9f7f0;
  color: var(--ink);
  box-shadow: 0 30px 100px #0005;
  overflow: auto;
}
.photo-viewer::backdrop { background: #10261de8; backdrop-filter: blur(7px); }
.viewer-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 24px; border-bottom: 1px solid #d7dccf; font-size: 14px; }
.viewer-top > span { font-weight: 700; }
#viewer-close { display: flex; align-items: center; gap: 14px; min-height: 44px; padding: 6px 12px; border: 1px solid #c8cebf; background: transparent; color: var(--ink); border-radius: 6px; font-size: 14px; }
#viewer-close span { font-size: 26px; line-height: 1; }
.viewer-stage { position: relative; display: grid; place-items: center; min-height: 160px; height: min(65dvh, 700px); padding: 16px; background: #e5e9e0; }
#viewer-image { display: block; width: 100%; height: 100%; min-height: 0; object-fit: contain; }
.viewer-status { text-align: center; margin: 28px; font-size: 16px; }
.viewer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 28px; }
.viewer-bottom a { display: inline-block; padding: 4px 0; font-size: 14px; }
.viewer-controls { display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.viewer-controls button { display: grid; place-items: center; width: 46px; height: 46px; padding: 0; background: var(--ink); color: var(--paper); border: 1px solid var(--ink); border-radius: 50%; }
.viewer-controls button:disabled { opacity: .45; cursor: default; }
.viewer-controls svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#viewer-count { text-align: center; min-width: 70px; font-size: 14px; font-variant-numeric: tabular-nums; }

@media(max-width:1000px) {
 .collection-photo { flex-basis:calc((100% - 18px)/2); }
 .gallery-heading { gap:32px; }
 .collection-heading { align-items:center; }
}
@media(max-width:700px) {
 .gallery-page { padding-top:28px; }
 .gallery-page .breadcrumb { margin-bottom:24px; }
 .gallery-heading { display:block; margin-bottom:28px; }
 .gallery-heading h1 { max-width:14ch; }
 .gallery-heading p { margin:20px 0 0; font-size:16px; }
 .gallery-directory-label { align-items:start; flex-direction:column; gap:4px; }
 .gallery-category-directory { padding:18px 0 20px; margin-bottom:28px; }
 .gallery-category-links { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }
 .gallery-category-links a { font-size:12px; line-height:1.4; padding:9px 10px; gap:6px; }
 .gallery-category-links a:last-child { grid-column:1/-1; justify-content:flex-start; gap:20px; }
 .gallery-category-links a > span { min-width:14px; }
 .gallery-collection { padding:18px 14px 15px; margin:0 -2vw 24px; border-radius:12px; }
 .collection-heading { display:block; margin-bottom:18px; }
 .collection-heading h2 { margin:9px 0; font-size:25px; }
 .collection-heading p { font-size:13px; }
 .collection-navigation { justify-content:flex-end; margin-top:16px; gap:8px; }
 .collection-position { margin-right:auto; text-align:left; }
 .collection-track { gap:12px; }
 .collection-photo { flex-basis:88%; }
 .collection-hint { font-size:10px; }
 .gallery-invitation { flex-direction:column; align-items:flex-start; padding-top:26px; gap:22px; }
 .photo-viewer { width:calc(100vw - 24px); max-height:calc(100dvh - 24px); border-radius:12px; }
 .viewer-top { padding:10px 14px; }
 .viewer-stage { height:52dvh; padding:10px; touch-action:pan-y pinch-zoom; }
 .viewer-bottom { flex-direction:column; align-items:stretch; padding:20px; gap:18px; }
 .viewer-controls { justify-content:center; }
}
@media(prefers-reduced-motion:reduce) {
 .gallery-category-links a { transition:none; }
}
