.tg-gallery { overflow-wrap: anywhere; }
.tg-gallery-intro { padding: 26px; background: #f1f5ed; border-radius: 6px; }
.tg-gallery-eyebrow { font: 600 12px/1.6 Arial,sans-serif; color: #006633; letter-spacing: 1px; text-transform: uppercase; }
.entry-content .tg-gallery h2 { margin: 0 0 16px; }
.tg-gallery-intro p:last-child { margin-bottom: 0; }
.tg-gallery-select { margin: 26px 0; }
.tg-gallery-select label { display: block; margin-bottom: 10px; color: #006633; }
.tg-gallery-select > div { display: flex; gap: 10px; align-items: stretch; }
.tg-gallery-select select { flex: 1 1 auto; min-width: 0; max-width: 100%; padding: 10px; border: 1px solid #bccdbc; border-radius: 4px; background: #fff; color: #414141; font-size: 16px; }
.tg-gallery-select button { flex: 0 0 auto; }
.tg-gallery button { min-height: 44px; padding: 10px 14px; border: 1px solid #006633; border-radius: 4px; color: #fff; background: #006633; font: 600 14px/1.5 Arial,sans-serif; }
.tg-gallery button:hover { background: #004d26; }
.tg-gallery-summary { color: #555; font-size: 15px; margin: 22px 0; }
.tg-gallery-cards { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }
.entry-content a.tg-gallery-card { display: flex; flex-direction: column; overflow: hidden; border: 1px solid #d8e2d3; border-radius: 6px; color: #414141; text-decoration: none; }
.tg-gallery-card > div { padding: 20px; }
.entry-content .tg-gallery-card h3 { margin: 0 0 12px; font-size: 18px; }
.tg-gallery-card p { margin-bottom: 12px; }
.tg-gallery-card span { color: #006633; text-decoration: underline; }
.tg-gallery .tg-gallery-card img { display: block; width: 100%; height: 175px; object-fit: cover; margin: 0; }
.tg-gallery-card:hover { box-shadow: 0 3px 12px rgb(0 70 30 / 12%); }
.tg-gallery-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-top: 22px; }
.tg-gallery-grid a { position: relative; display: block; overflow: hidden; border-radius: 4px; background: #f1f5ed; }
.tg-gallery .tg-gallery-grid img { display: block; width: 100%; height: 145px; object-fit: cover; margin: 0; }
.tg-gallery-grid span { position: absolute; bottom: 5px; right: 5px; padding: 1px 7px; border-radius: 3px; background: rgb(0 0 0 / 65%); color: #fff; font-size: 12px; }
.tg-gallery-pagination { display: flex; flex-wrap: wrap; gap: 10px; margin: 24px 0; }
.tg-gallery-pagination a { padding: 8px 14px; border: 1px solid #bccdbc; border-radius: 4px; }
.tg-gallery-pagination a[aria-current] { color: #fff; background: #006633; }
body.tg-gallery-modal-open { overflow: hidden; }
.tg-gallery-viewer:not([open]) { display: none; }
.tg-gallery-viewer { width: min(1100px,calc(100vw - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 20px; border: 0; border-radius: 6px; background: #202520; color: #fff; overflow: auto; }
.tg-gallery-viewer::backdrop { background: rgb(0 0 0 / 84%); }
.tg-gallery-viewer-top { display: flex; gap: 16px; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tg-gallery-viewer-top strong { font-size: 16px; }
.tg-gallery-viewer button { background: #fff; border-color: #fff; color: #004d26; }
.tg-gallery-viewer button:hover { background: #e4efdf; }
.tg-gallery-viewer a { color: #fff; text-decoration: underline; }
.tg-gallery-viewer figure { margin: 0; text-align: center; touch-action: pan-y pinch-zoom; }
.tg-gallery .tg-gallery-viewer img { display: block; width: 100%; height: min(65vh,700px); height: min(65dvh,700px); object-fit: contain; margin: 0; background: #171b17; }
.tg-gallery-viewer img.is-loading { opacity: .4; }
.tg-gallery-viewer figcaption { margin-top: 10px; }
.tg-gallery-viewer [data-viewer-status] { margin: 8px 0; font-size: 14px; }
.tg-gallery-viewer-controls { display: flex; gap: 16px; align-items: center; justify-content: space-between; margin-top: 12px; }
.tg-gallery-viewer-help { color: #ddd; font-size: 13px; margin: 14px 0 0; }
.tg-gallery-viewer :focus-visible { outline: 3px solid #d4e6a8; outline-offset: 3px; }
@media (max-width: 767px) {
  .tg-gallery-cards { grid-template-columns: minmax(0,1fr); }
  .tg-gallery-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; }
  .tg-gallery .tg-gallery-grid img { height: 125px; }
  .tg-gallery-intro { padding: 22px; }
  .tg-gallery-select > div { flex-direction: column; }
  .tg-gallery-viewer { padding: 12px; }
  .tg-gallery-viewer-top { align-items: flex-start; }
  .tg-gallery-viewer-top button { flex: 0 0 auto; }
  .tg-gallery .tg-gallery-viewer img { height: 50vh; height: 50dvh; }
  .tg-gallery-viewer-controls { flex-wrap: wrap; gap: 12px; }
  .tg-gallery-viewer-controls a { order: 3; flex-basis: 100%; text-align: center; }
}
