.gk-collections__items {
  display: grid;
  gap: 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.gk-collections {
  --gk-collections-body-font-family: var(--awb-typography4-font-family, inherit);
  --gk-collections-body-font-size: var(--awb-typography4-font-size, 1rem);
  --gk-collections-body-font-weight: var(--awb-typography4-font-weight, inherit);
  --gk-collections-body-line-height: var(--awb-typography4-line-height, 1.5);
  --gk-collections-body-letter-spacing: var(--awb-typography4-letter-spacing, normal);
  --gk-collections-title-font-family: var(--awb-typography3-font-family, var(--gk-collections-body-font-family));
  --gk-collections-title-font-weight: var(--awb-typography3-font-weight, var(--gk-collections-body-font-weight));
  --gk-collections-title-line-height: var(--awb-typography3-line-height, 1.3);
  --gk-collections-title-letter-spacing: var(--awb-typography3-letter-spacing, var(--gk-collections-body-letter-spacing));
  --gk-collections-meta-font-family: var(--awb-custom_typography_7-font-family, var(--gk-collections-body-font-family));
  --gk-collections-meta-font-weight: var(--awb-custom_typography_7-font-weight, var(--gk-collections-body-font-weight));
  --gk-collections-meta-line-height: var(--awb-custom_typography_7-line-height, 1.2);
  --gk-collections-meta-letter-spacing: var(--awb-custom_typography_7-letter-spacing, var(--gk-collections-body-letter-spacing));
  font-family: var(--gk-collections-body-font-family);
  font-size: var(--gk-collections-body-font-size);
  font-weight: var(--gk-collections-body-font-weight);
  line-height: var(--gk-collections-body-line-height);
  letter-spacing: var(--gk-collections-body-letter-spacing);
}

.gk-collections--grid .gk-collections__items {
  grid-template-columns: repeat(var(--gk-collections-grid-columns, 3), minmax(0, 1fr));
}

.gk-collections--gallery .gk-collections__items {
  grid-template-columns: repeat(var(--gk-collections-grid-columns, 3), minmax(0, 1fr));
}

.gk-collections__item {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px solid currentColor;
}

.gk-collections--grid .gk-collections__item--card,
.gk-collections--grid .gk-collections__item--resource {
  grid-template-columns: var(--gk-collections-thumbnail-size, 72px) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 6px;
  background: #fff;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.gk-collections--gallery .gk-collections__item--gallery {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  padding: 8px;
  border: 1px solid color-mix(in srgb, currentColor 18%, transparent);
  border-radius: 6px;
  background: #fff;
}

.gk-collections--gallery .gk-collections__gallery-field--thumbnail {
  display: block;
  min-width: 0;
  background: var(--awb-custom_color_34, transparent);
}

.gk-collections--gallery.gk-collections--grid .gk-collections__thumbnail {
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  object-fit: contain;
}

.gk-collections--gallery .gk-collections__gallery-field--title {
  font-family: var(--gk-collections-title-font-family);
  font-size: .82em;
  font-weight: var(--gk-collections-title-font-weight);
  line-height: var(--gk-collections-title-line-height);
}

.gk-collections--gallery .gk-collections__gallery-field--description {
  display: -webkit-box;
  overflow: hidden;
  font-size: .65em;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--gk-collections-description-lines, 2);
}

.gk-collections__card-thumbnail,
.gk-collections__thumbnail-trigger {
  display: block;
  width: var(--gk-collections-thumbnail-size, 72px);
  aspect-ratio: 1;
  overflow: hidden;
  background: var(--awb-custom_color_34, transparent);
}

.gk-collections--grid .gk-collections__thumbnail {
  width: var(--gk-collections-thumbnail-size, 72px);
  height: 100%;
  max-width: none;
  aspect-ratio: 1;
  object-fit: cover;
}

.gk-collections__thumbnail-trigger:focus-visible,
.gk-collections__card-download:focus-visible {
  outline: 3px solid var(--gk-a11y-focus-ring-effective, var(--gk-a11y-accent, #ffbf47));
  outline-offset: 3px;
  border-radius: 4px;
  box-shadow: 0 0 0 2px #fff;
}

.gk-collections__card-download {
  display: block;
  min-width: 0;
  color: inherit;
  text-decoration: none !important;
}

.gk-collections__card-download:hover,
.gk-collections__card-download:focus-visible {
  color: inherit;
  text-decoration: none !important;
}

.gk-collections__item--card:hover,
.gk-collections__item--card:focus-within {
  background: color-mix(in srgb, currentColor 7%, #fff);
  border-color: color-mix(in srgb, currentColor 30%, transparent);
}

.gk-collections__card-content { display: grid; gap: 6px; }
.gk-collections__card-heading {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}
.gk-collections--grid .gk-collections__title {
  min-width: 0;
  flex: 1 1 auto;
  font-family: var(--gk-collections-title-font-family);
  font-size: .94em;
  font-weight: var(--gk-collections-title-font-weight);
  line-height: var(--gk-collections-title-line-height);
  letter-spacing: var(--gk-collections-title-letter-spacing);
}
.gk-collections--grid .gk-collections__description {
  display: -webkit-box;
  overflow: hidden;
  font-family: var(--gk-collections-body-font-family);
  font-size: .65em;
  font-weight: var(--gk-collections-body-font-weight);
  line-height: 1.35;
  letter-spacing: var(--gk-collections-body-letter-spacing);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: var(--gk-collections-description-lines, 2);
}
.gk-collections--grid .gk-collections__item--thumbnail-top {
  grid-template-columns: 1fr;
}
.gk-collections--grid .gk-collections__item--thumbnail-top .gk-collections__card-thumbnail,
.gk-collections--grid .gk-collections__item--thumbnail-top .gk-collections__thumbnail {
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: 4 / 3;
}
.gk-collections--grid .gk-collections__item--thumbnail-none {
  grid-template-columns: 1fr;
}
.gk-collections--grid .gk-collections__item--meta-below-title .gk-collections__meta {
  justify-content: flex-start;
  margin-left: 0;
}
.gk-collections--grid .gk-collections__meta {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 3px;
  margin-left: auto;
}
.gk-collections__pill {
  padding: 1px 5px;
  border-radius: .2rem;
  background: color-mix(in srgb, currentColor 10%, transparent);
  font-family: var(--gk-collections-meta-font-family);
  font-size: .6em;
  font-weight: var(--gk-collections-meta-font-weight);
  line-height: var(--gk-collections-meta-line-height);
  letter-spacing: var(--gk-collections-meta-letter-spacing);
}

.gk-collections__thumbnail {
  display: block;
  width: 100%;
  max-width: 160px;
  aspect-ratio: 4 / 3;
  object-fit: contain;
}

.gk-collections__thumbnail--empty {
  border: 1px solid currentColor;
  opacity: .25;
}

.gk-collections__thumbnail--fallback {
  display: grid;
  place-items: center;
  box-sizing: border-box;
  border: 1px solid color-mix(in srgb, currentColor 24%, transparent);
  background: color-mix(in srgb, currentColor 7%, #fff);
  color: currentColor;
  font-family: var(--gk-collections-meta-font-family);
  font-size: .68em;
  font-weight: var(--gk-collections-meta-font-weight);
  line-height: 1;
  letter-spacing: var(--gk-collections-meta-letter-spacing);
  text-transform: uppercase;
}

.gk-collections__title { font-weight: var(--gk-collections-title-font-weight); }
.gk-collections__description { display: block; }
.gk-collections__action { display: inline-block; }
.gk-collections__field--preview,
.gk-collections__field--download { display: inline; margin-right: 12px; }
.gk-collections__reveal { margin-top: 18px; }
.gk-collections__preview-media { margin: 0; }
.gk-collections__preview-media img,
.gk-collections__preview-media iframe { display: block; width: min(100%, 1000px); max-height: min(80vh, 760px); border: 0; object-fit: contain; }
.gk-collections__preview-media iframe { min-height: min(72vh, 680px); background: #fff; }

.gk-collections__table { width: 100%; border-collapse: collapse; }
.gk-collections__table caption {
  padding: 0 0 12px;
  font-weight: 700;
  text-align: left;
}
.gk-collections__table th,
.gk-collections__table td { padding: 12px; border-bottom: 1px solid currentColor; text-align: left; vertical-align: top; }
.gk-collections__table--striped tbody tr:nth-child(even) { background: color-mix(in srgb, currentColor 5%, transparent); }
.gk-collections__table--compact th,
.gk-collections__table--compact td { padding: 7px 9px; }

@media (max-width: 640px) {
  .gk-collections--grid .gk-collections__items { grid-template-columns: repeat(var(--gk-collections-grid-columns-small, 1), minmax(0, 1fr)); }
  .gk-collections--gallery .gk-collections__items { grid-template-columns: repeat(var(--gk-collections-grid-columns-small, 2), minmax(0, 1fr)); }
  .gk-collections__table thead { display: none; }
  .gk-collections__table,
  .gk-collections__table tbody,
  .gk-collections__table tr,
  .gk-collections__table td { display: block; width: 100%; }
  .gk-collections__table tr { padding: 12px 0; border-bottom: 1px solid currentColor; }
  .gk-collections__table td { border: 0; padding: 5px 0; }
  .gk-collections__table td::before { content: attr(data-label); display: block; font-weight: 700; }
}

@media (min-width: 641px) and (max-width: 980px) {
  .gk-collections--grid .gk-collections__items { grid-template-columns: repeat(var(--gk-collections-grid-columns-medium, 2), minmax(0, 1fr)); }
  .gk-collections--gallery .gk-collections__items { grid-template-columns: repeat(var(--gk-collections-grid-columns-medium, 2), minmax(0, 1fr)); }
}
