.gg-gallery {
  --gg-navy: #082951;
  --gg-orange: #ff8500;
  --gg-muted: #52647a;
  margin-top: 32px;
  color: var(--gg-navy);
}
.gg-gallery button { font-family: Ride, Arial, sans-serif; font-size: 1rem; line-height: 1.35; }
.gg-gallery button:focus-visible,
.gg-gallery video:focus-visible,
.gg-item:focus-visible { outline: 3px solid #1682e6; outline-offset: 4px; }
.gg-gallery [hidden] { display: none !important; }

.gg-albums { display: flex; flex-wrap: wrap; gap: 10px; padding: 5px 5px 24px; margin: -5px -5px 0; border-bottom: 1px solid #d7e1ec; }
.gg-album { min-height: 46px; padding: 11px 17px; border: 1px solid #c9d7e6; border-radius: 5px; background: #fff; color: var(--gg-navy); font-weight: 600; white-space: nowrap; transition: background .16s, border-color .16s, color .16s; }
.gg-album:hover { background: #edf3f9; border-color: #9fb7d0; }
.gg-album[aria-pressed="true"] { background: var(--gg-navy); border-color: var(--gg-navy); color: #fff; }
.gg-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-block: 22px 25px; }
.gg-formats { display: flex; gap: 5px; }
.gg-format { min-height: 44px; padding: 9px 17px; border: 0; border-radius: 4px; color: #52647a; background: transparent; }
.gg-format:hover { background: #edf3f9; color: #082951; }
.gg-format[aria-pressed="true"] { background: #fff0df; color: #082951; box-shadow: inset 0 -2px 0 #ff8500; font-weight: 700; }
.gg-count { color: var(--gg-muted); font-size: .9375rem; line-height: 1.5; white-space: nowrap; }

.gg-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 24px; }
.gg-item { min-width: 0; scroll-margin-block: 28px; border-radius: 6px; }
.gg-card { display: block; margin: 0; width: 100%; color: #082951; }
.gg-preview { display: flex; position: relative; align-items: center; justify-content: center; overflow: hidden; aspect-ratio: 4 / 5; width: 100%; background: #e5edf5; border: 1px solid #dce5ef; border-radius: 6px; isolation: isolate; }
.gg-preview > img,
.gg-preview > video { display: block; width: 100%; height: 100%; min-width: 0; object-fit: contain; }
.gg-preview-video { background: #061d3c; border-color: #061d3c; }
.gg-inline-video { color-scheme: dark; }
.gg-media-label { position: absolute; top: 12px; left: 12px; z-index: 1; padding: 5px 9px; background: #061d3ce6; color: #fff; border: 1px solid #ffffff30; border-radius: 3px; font-size: .875rem; line-height: 1.4; pointer-events: none; }
.gg-card-copy { padding: 15px 1px 0; }
.gg-card-album { margin: 0 0 6px; color: #52647a; font-size: .875rem; line-height: 1.5; }
.gg-card-title { margin: 0; font-size: 1rem; font-weight: 600; line-height: 1.5; }
.gg-media-error { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px; text-align: center; color: #082951; background: #e5edf5; }
.gg-media-error p { margin: 0; font-size: 1rem; line-height: 1.5; }
.gg-retry { min-height: 44px; padding: 9px 20px; border: 1px solid #082951; border-radius: 4px; color: #082951; background: #fff; font-weight: 600; }
.gg-retry:hover { color: #fff; background: #082951; }
.gg-more-wrap { text-align: center; margin-top: 34px; }
.gg-more { min-height: 52px; padding: 13px 30px; border: 1px solid #082951; border-radius: 4px; background: white; color: #082951; font-weight: 700; }
.gg-more:hover { background: #082951; color: white; }
.gg-empty { padding: 46px 24px; text-align: center; border: 1px solid #d7e1ec; border-radius: 5px; color: #52647a; background: #f4f7fb; }

@media (max-width: 1100px) {
  .gg-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 30px 22px; }
}
@media (max-width: 740px) {
  .gg-gallery { margin-top: 27px; }
  .gg-albums { flex-wrap: nowrap; overflow-x: auto; overscroll-behavior-x: contain; padding: 5px 5px 17px; gap: 8px; scrollbar-width: thin; scrollbar-color: #b0c2d7 transparent; }
  .gg-album { flex-shrink: 0; min-height: 46px; padding-inline: 14px; }
  .gg-toolbar { gap: 10px; flex-wrap: wrap; margin-block: 16px 20px; }
  .gg-formats { gap: 2px; }
  .gg-format { padding-inline: 12px; }
  .gg-count { font-size: .875rem; }
  .gg-grid { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .gg-preview { max-height: 560px; }
  .gg-card-copy { padding-top: 12px; }
  .gg-card-album { margin-bottom: 4px; }
  .gg-more-wrap { margin-top: 28px; }
  .gg-more { width: 100%; }
}
@media (max-width: 370px) {
  .gg-toolbar { align-items: flex-start; flex-direction: column; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .gg-gallery *, .gg-gallery *::before, .gg-gallery *::after { transition: none !important; animation: none !important; }
}
