.cg-card-shell { min-width: 0; }
.cg-card-shell > a.cg-card-link { border-radius: 0 0 1rem 1rem; }
[data-card-gallery] { width: 100%; min-width: 0; overflow: hidden; border-radius: 1rem 1rem 0 0; }
[data-card-gallery] [hidden] { display: none !important; }
[data-card-gallery] .cg-frame { position: relative; aspect-ratio: 16 / 10; background: #f5f5f4; }
[data-card-gallery] .cg-slide { position: absolute; inset: 0; }
[data-card-gallery] a[data-cg-open] { display: block; width: 100%; height: 100%; }
[data-card-gallery][data-cg-mounted] a[data-cg-open] { touch-action: pan-y pinch-zoom; }
[data-cg-zoomed] [data-card-gallery][data-cg-mounted] a[data-cg-open] { touch-action: auto; }
[data-card-gallery] img { display: block; width: 100%; height: 100%; max-width: 100%; object-fit: contain; transform: none; }
[data-card-gallery] .cg-controls { position: absolute; inset-inline: .35rem; bottom: .35rem; display: flex; align-items: center; justify-content: space-between; gap: .5rem; pointer-events: none; }
[data-card-gallery] .cg-controls { z-index: 2; }
[data-card-gallery] .cg-error { position: absolute; inset: 0; z-index: 1; display: grid; align-content: center; margin: 0; padding: 1rem 1rem 4rem; background: #f5f5f4; color: #57534e; font-size: .875rem; line-height: 1.6; }
[data-card-gallery] .cg-controls button { pointer-events: auto; flex: 0 0 44px; width: 44px; height: 44px; min-width: 44px; min-height: 44px; border: 1px solid #a8a29e; border-radius: 50%; background: #fff; color: #292524; font: inherit; font-size: 1.5rem; cursor: pointer; }
[data-card-gallery] [data-cg-count] { padding: .15rem .5rem; border-radius: 1rem; background: rgb(255 255 255 / .94); color: #292524; font-size: .75rem; line-height: 1.5; font-variant-numeric: tabular-nums; }
[data-card-gallery] .cg-credit { min-width: 0; background: #fff; color: #57534e; }
[data-card-gallery] .cg-caption { margin: 0; padding: .5rem .75rem 0; color: #44403c; font-size: .8125rem; line-height: 1.5; overflow-wrap: anywhere; }
[data-card-gallery] .cg-credit > summary { min-height: 44px; padding: .625rem .75rem; font-size: .75rem; line-height: 1.5; cursor: pointer; }
[data-card-gallery] .cg-credit > summary > span { float: right; margin-left: .5rem; color: #0f766e; font-weight: 600; }
[data-card-gallery] .cg-credit > div { padding: 0 .75rem .75rem; font-size: .75rem; line-height: 1.6; overflow-wrap: anywhere; }
[data-card-gallery] .cg-credit p { margin: .35rem 0 0; }
[data-card-gallery] .cg-credit a { color: #0f766e; text-decoration: underline; text-underline-offset: .15em; }
[data-card-gallery] :focus-visible { outline: 2px solid #0f766e; outline-offset: 2px; }
[data-card-gallery] .cg-status { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
