.ebht-gallery .gallery-tabs { display:flex; flex-wrap:wrap }
.ebht-gallery .gallery-tabs a { display:inline-flex; align-items:center; text-decoration:none }
.ebht-gallery .gallery-tabs a:hover, .ebht-gallery .project-card:hover h3 { text-decoration:underline; text-underline-offset:.22em }
.ebht-gallery .project-card { display:block; color:inherit; text-decoration:none }
.ebht-gallery-pager, .ebht-dialog-nav { display:flex; align-items:center; gap:1em; flex-wrap:wrap }
.ebht-gallery-pager { padding-block:1.25em; color:var(--site-quiet, #52564b) }
.ebht-gallery-pager a, .ebht-dialog-nav button, .ebht-dialog-close { display:inline-flex; min-height:44px; padding:8px 16px; align-items:center; border:1px solid #727b61; border-radius:3px; background:#fff; color:#3c4829; font:inherit; text-decoration:none; cursor:pointer }
.ebht-gallery-pager a:hover, .ebht-dialog-nav button:hover, .ebht-dialog-close:hover { background:#eef0e8 }
.ebht-gallery-detail { width:min(100%, 850px); scroll-margin-top:70px }
.ebht-gallery-detail .overline { margin-top:24px }
.ebht-gallery-detail figure { margin:24px 0 }
.ebht-gallery-detail figcaption { margin-top:.5em }
.ebht-gallery-detail img, .ebht-gallery-detail video { display:block; width:auto; max-width:100%; height:auto; max-height:78vh; object-fit:contain; margin-block:.5em }
html:has(.ebht-gallery-dialog[open]) { overflow:hidden }
.ebht-gallery-dialog { box-sizing:border-box; position:fixed; inset:0; padding:0; width:min(900px, calc(100vw - 28px)); max-width:100%; height:fit-content; max-height:94vh; max-height:94dvh; overflow:auto; margin:auto; border:0; border-radius:3px; background:white; color:#30352a; font:1.1rem/1.55 Arsenal, Arial, sans-serif }
.ebht-gallery-dialog::backdrop { background:rgb(17 23 12 / .78) }
.ebht-dialog-bar { display:flex; justify-content:flex-end; padding:7px 12px; background:white }
.ebht-dialog-media { width:100%; height:min(57vh, 590px); background:#262921 }
.ebht-dialog-media img, .ebht-dialog-media video { display:block; width:100%; height:100%; object-fit:contain }
.ebht-dialog-nav { justify-content:center; padding:8px 12px }
.ebht-dialog-copy { padding:15px clamp(15px, 4vw, 32px) 23px }
.ebht-dialog-copy h2 { font-size:clamp(1.3rem, 2.8vw, 1.8rem); margin:.25em 0 }
.ebht-dialog-copy p { margin:.35em 0 }
.ebht-gallery-dialog :is(button,a):focus-visible { outline:3px solid #485b24; outline-offset:2px }
@media (max-width:440px) {
  .ebht-gallery-dialog { font-size:1rem }
  .ebht-dialog-nav { gap:9px }
  .ebht-dialog-nav button { padding-inline:10px }
  .ebht-dialog-media { height:47vh }
}
