[data-atlas-gallery] { --gallery-ink: #203b32; --gallery-paper: #f3f0e9; color: var(--gallery-ink); max-width: 1600px; margin: 0 auto; padding: 24px clamp(16px, 4vw, 64px) 64px; box-sizing: border-box; }
[data-atlas-gallery] *, [data-atlas-gallery] *::before, [data-atlas-gallery] *::after { box-sizing: border-box; }
[data-atlas-gallery] .atlas-gallery__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px 14px; align-items: start; }
[data-atlas-gallery] .atlas-gallery__card { margin: 0; min-width: 0; }
[data-atlas-gallery] .atlas-gallery__photo { display: block; width: 100%; padding: 0; border: 0; background: #e4e2da; cursor: zoom-in; overflow: hidden; border-radius: 3px; aspect-ratio: 1 / 1; }
[data-atlas-gallery] .atlas-gallery__photo img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform 250ms ease; }
[data-atlas-gallery] .atlas-gallery__photo:hover img { transform: scale(1.025); }
[data-atlas-gallery] .atlas-gallery__photo--failed { min-height: 120px; }
[data-atlas-gallery] figcaption { padding-top: 12px; font-size: 14px; line-height: 1.5; }
[data-atlas-gallery] a { color: inherit; text-underline-offset: 4px; }
[data-atlas-gallery] figcaption a { text-decoration-color: transparent; }
[data-atlas-gallery] figcaption a:hover { text-decoration-color: currentColor; }
[data-atlas-gallery] button { font: inherit; color: inherit; }
[data-atlas-gallery] button:focus-visible, [data-atlas-gallery] a:focus-visible { outline: 2px solid #427665; outline-offset: 2px; }
[data-atlas-gallery] .atlas-gallery__photo[data-pointer-focus]:focus-visible { outline: none; }
[data-atlas-gallery] .atlas-gallery__more { display: block; min-width: 172px; min-height: 48px; margin: 16px auto 0; border: 1px solid var(--gallery-ink); background: transparent; border-radius: 2px; padding: 12px 28px; cursor: pointer; font-size: 14px; letter-spacing: .04em; }
[data-atlas-gallery] .atlas-gallery__more:hover { background: var(--gallery-ink); color: var(--gallery-paper); }
[data-atlas-gallery] .atlas-gallery__more:disabled { opacity: .55; cursor: wait; }
[data-atlas-gallery] [hidden] { display: none !important; }
[data-atlas-gallery] .atlas-gallery__status { text-align: center; font-size: 14px; line-height: 1.5; min-height: 21px; margin: 24px 0 0; }
[data-atlas-gallery] .atlas-gallery__dialog { width: min(1100px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 56px 20px 24px; border: 0; border-radius: 4px; background: var(--gallery-paper); color: var(--gallery-ink); overflow: auto; }
[data-atlas-gallery] .atlas-gallery__dialog::backdrop { background: rgb(14 25 21 / 78%); }
[data-atlas-gallery] .atlas-gallery__close { position: absolute; top: 8px; right: 12px; min-width: 64px; min-height: 44px; border: 0; background: transparent; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
[data-atlas-gallery] .atlas-gallery__preview { display: block; width: 100%; height: auto; max-height: calc(100dvh - 180px); object-fit: contain; }
[data-atlas-gallery] .atlas-gallery__dialog .atlas-gallery__status { margin: 0; min-height: 0; }
[data-atlas-gallery] .atlas-gallery__product-link { display: block; width: fit-content; margin: 20px auto 0; padding: 8px 4px; font-size: 15px; }
[data-atlas-gallery] .atlas-gallery__sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
@media (max-width: 1000px) { [data-atlas-gallery] .atlas-gallery__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (hover: none) { [data-atlas-gallery] .atlas-gallery__photo:hover img { transform: none; } }
@media (max-width: 540px) {
  [data-atlas-gallery] { padding: 12px 16px 40px; }
  [data-atlas-gallery] .atlas-gallery__grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  [data-atlas-gallery] .atlas-gallery__photo { aspect-ratio: var(--gallery-photo-ratio, 4 / 3); border-radius: 2px; }
  [data-atlas-gallery] .atlas-gallery__photo img { object-fit: contain; transform: none; }
  [data-atlas-gallery] figcaption { padding: 4px 1px 0; font-size: 14px; line-height: 1.4; }
  [data-atlas-gallery] figcaption a { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; font-weight: 500; letter-spacing: .04em; }
  [data-atlas-gallery] figcaption a::after { content: '\2197'; font-size: 16px; font-weight: 400; }
  [data-atlas-gallery] .atlas-gallery__dialog { width: calc(100vw - 24px); max-height: calc(100dvh - 24px); padding: 56px 12px 20px; }
  [data-atlas-gallery] .atlas-gallery__more { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { [data-atlas-gallery] .atlas-gallery__photo img { transition: none; } }
