[data-tg-gallery] { width: 100%; min-width: 0; }
.tg-section { padding: 64px 0; }
.tg-section .tg-wrap { width: min(1180px, calc(100% - 40px)); margin-inline: auto; }
.tg-section .tg-intro { margin: 16px 0 32px; max-width: 60ch; }
[data-tg-gallery] .tg-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px 18px; margin: 0; padding: 0; list-style: none; }
[data-tg-gallery] .tg-item { display: block; min-width: 0; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
[data-tg-gallery] .tg-open { position: relative; display: block; aspect-ratio: 4 / 3; width: 100%; overflow: hidden; border-radius: 12px; color: inherit; background: rgba(128, 128, 128, .12); }
[data-tg-gallery] .tg-open img { display: block; width: 100%; height: 100%; margin: 0; object-fit: cover; border: 0; border-radius: 0; box-shadow: none; transition: transform .2s ease; }
[data-tg-gallery] .tg-open:hover img { transform: scale(1.025); }
[data-tg-gallery] .tg-open:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[data-tg-gallery] .tg-zoom { position: absolute; right: 12px; top: 12px; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #183c28; font: 22px/1 system-ui, sans-serif; }
[data-tg-gallery] .tg-item figcaption { position: static; margin: 0; padding: 10px 0 0; background: transparent; color: inherit; font: inherit; font-size: .9375rem; line-height: 1.5; text-align: left; }
[data-tg-gallery] .tg-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin: 30px 0 0; text-align: center; }
[data-tg-gallery] .tg-status { margin: 0; color: inherit; font: inherit; font-size: .875rem; opacity: .85; }
[data-tg-gallery] .tg-more { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; min-height: 48px; margin: 0; padding: 12px 24px; border: 1.5px solid currentColor; border-radius: 8px; background: transparent; color: inherit; font: inherit; font-weight: 600; line-height: 1.2; white-space: nowrap; cursor: pointer; }
[data-tg-gallery] .tg-more:hover { opacity: .8; }
[data-tg-gallery] .tg-more:active { transform: translateY(1px); }
[data-tg-gallery] .tg-more:focus-visible { outline: 3px solid currentColor; outline-offset: 3px; }
[data-tg-gallery] .tg-more:disabled { opacity: .5; cursor: wait; }
[data-tg-gallery] .tg-more[hidden] { display: none; }
[data-tg-gallery] .tg-lightbox:not([open]) { display: none; }
[data-tg-gallery] .tg-lightbox[open] { position: fixed; inset: 0; display: block; width: min(1100px, calc(100vw - 28px)); height: auto; max-width: none; max-height: calc(100dvh - 28px); margin: auto; padding: 58px 16px 18px; overflow: auto; border: 0; border-radius: 12px; background: #102217; color: #fff; z-index: 10000; box-shadow: 0 16px 64px rgba(0, 0, 0, .35); }
[data-tg-gallery] .tg-lightbox::backdrop { background: rgba(0, 0, 0, .85); }
[data-tg-gallery] .tg-lightbox img { display: block; width: 100%; height: auto; max-height: calc(100dvh - 175px); margin: 0; object-fit: contain; border: 0; border-radius: 0; }
[data-tg-gallery] .tg-lightbox p { margin: 14px 4px 0; color: #fff; font: inherit; font-size: .9375rem; }
[data-tg-gallery] .tg-close { position: absolute; top: 6px; right: 8px; display: grid; place-items: center; width: 44px; height: 44px; margin: 0; padding: 0; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; background: transparent; color: #fff; font: 28px/1 system-ui, sans-serif; cursor: pointer; }
[data-tg-gallery] .tg-close:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (min-width: 520px) { [data-tg-gallery] .tg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 860px) { [data-tg-gallery] .tg-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; } }
@media (prefers-reduced-motion: reduce) { [data-tg-gallery] .tg-open img { transition: none; } }
