.project-gallery { padding-block: clamp(40px, 6vw, 76px); background: #f5f9fd; }
.project-gallery .section-intro { max-width: 820px; }
.project-gallery #project-gallery-title, .project-related #project-related-title { scroll-margin-top: 130px; }
.project-gallery-nav { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0 36px; padding: 0; list-style: none; }
.project-gallery-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid #b7d4f3; border-radius: 5px; background: #fff; color: #0868cf; font-size: .94rem; font-weight: 700; line-height: 1.4; text-decoration: none; }
.project-gallery-nav a:hover { background: #e8f2ff; border-color: #0868cf; }
.project-gallery-nav a:focus-visible, .project-gallery-card a:focus-visible, .project-gallery-products a:focus-visible { outline: 3px solid #0868cf; outline-offset: 4px; }
.project-gallery-group { scroll-margin-top: 150px; margin-top: 46px; }
.project-gallery-group:first-of-type { margin-top: 0; }
.project-gallery-heading { max-width: 840px; margin-bottom: 22px; }
.project-gallery-heading h3 { margin: 0 0 12px; color: #08283b; font-size: clamp(1.4rem, 2.4vw, 2rem); line-height: 1.25; }
.project-gallery-heading p { color: #526e80; line-height: 1.7; }
.project-gallery-products { display: flex; flex-wrap: wrap; gap: 12px 24px; margin-top: 12px; }
.project-gallery-products a { color: #0868cf; font-weight: 750; text-underline-offset: 4px; }
.project-gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.project-gallery-card { min-width: 0; margin: 0; border: 1px solid #dae5ef; border-radius: 8px; overflow: hidden; background: #fff; }
.project-gallery-photo { display: flex; width: 100%; aspect-ratio: 4 / 3; align-items: center; justify-content: center; padding: 10px; background: #fff; }
.project-gallery-photo img { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.project-gallery-card figcaption { padding: 16px 18px 20px; border-top: 1px solid #edf2f7; color: #173c51; font-size: .96rem; line-height: 1.55; overflow-wrap: anywhere; }
.project-gallery-card figcaption p { margin: 0; }
.project-gallery-card figcaption small { display: block; margin-top: 9px; color: #526e80; font-size: .81rem; line-height: 1.55; }
.project-gallery-enlarge { display: inline-block; margin-top: 10px; color: #0868cf; font-size: .83rem; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.project-gallery-note { margin: 26px 0 0; max-width: 900px; color: #526e80; font-size: .9rem; line-height: 1.7; }
.project-related { background: #f5f9fd; padding-block: clamp(36px, 5vw, 64px); }
.project-related .section-title { max-width: 900px; }
.project-related .section-intro { max-width: 850px; margin-left: 0; }
.project-related-actions { margin-top: 26px; }
.project-related .project-gallery-grid[data-count="1"] { grid-template-columns: minmax(0, 480px); }
@media (max-width: 900px) { .project-gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; } }
@media (max-width: 580px) { .project-gallery-grid { grid-template-columns: minmax(0, 1fr); } .project-gallery-nav { gap: 8px; } .project-gallery-nav a { padding-inline: 12px; font-size: .88rem; } .project-gallery-group { scroll-margin-top: 126px; margin-top: 36px; } .project-gallery-photo { aspect-ratio: 1; } .project-gallery-card figcaption { padding: 15px; } }
