.group {
  padding-top: calc(calc(var(--layout-space) / 2) * var(--layout-padding));
  padding-bottom: calc(calc(var(--layout-space) / 2) * var(--layout-padding));
  padding-left: calc(var(--layout-space) * var(--layout-padding));
  padding-right: calc(var(--layout-space) * var(--layout-padding));
  width: var(--link-area-width);
  display: flex;
}

.is-group-order-headerbody .group {
  flex-direction: column;
}

.is-group-order-bodyheader .group {
  flex-direction: column-reverse;
}

.group:first-child {
  padding-top: calc(var(--layout-space) * var(--layout-padding));
}

.group:last-child {
  padding-bottom: calc(var(--layout-space) * var(--layout-padding));
}

.is-group-border .group:not(:last-child):not(:only-child) {
  border-bottom: calc(var(--layout-line-width) * var(--group-border)) solid rgb(var(--theme-accent));
}

.is-group-border .group {
  padding-top: calc(var(--layout-space) * var(--layout-padding));
  padding-bottom: calc(var(--layout-space) * var(--layout-padding));
}

.group-header {
  position: relative;
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  transition: padding var(--layout-timing-extra-fast);
}

.is-group-area-alignment-left .group-header {
  flex-direction: row;
}

.is-group-area-alignment-center .group-header {
  flex-direction: row;
  justify-content: center;
}

.is-group-area-alignment-right .group-header {
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.is-group-order-headerbody.is-group-name-show .group-header,
.is-group-order-headerbody.is-edit .group-header {
  padding-bottom: calc(var(--layout-space) * var(--layout-gutter));
}

.is-group-order-bodyheader.is-group-name-show .group-header,
.is-group-order-bodyheader.is-edit .group-header {
  padding-top: calc(var(--layout-space) * var(--layout-gutter));
}

.group-name {
  margin-right: 0;
  display: flex;
  align-items: center;
  height: 0;
  overflow: hidden;
  font-size: var(--group-name-size);
  transition: height var(--layout-timing-extra-fast);
  transition: height var(--layout-timing-extra-fast);
}

.is-group-name-show .group-name {
  display: flex;
  height: 2.5em;
}

.group-name-text {
  font-family: var(--font-fjalla);
  margin-bottom: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.group-control {
  margin-right: 0;
  margin-bottom: 0;
  overflow: hidden;
  height: 0;
  width: 0;
  flex-shrink: 0;
  transition:
    width var(--layout-timing-extra-fast),
    height var(--layout-timing-extra-fast) var(--layout-duration-04),
    margin var(--layout-timing-extra-fast);
}

.is-edit .group-control {
  height: 2.5em;
  width: 16em;
  transition:
    width var(--layout-timing-extra-fast) var(--layout-duration-04),
    height var(--layout-timing-extra-fast),
    margin var(--layout-timing-extra-fast) var(--layout-duration-04);
}

.is-edit.is-group-name-show.is-group-area-alignment-left .group-control,
.is-edit.is-group-name-show.is-group-area-alignment-center .group-control {
  margin-right: 1em;
}

.is-edit.is-group-name-show.is-group-area-alignment-right .group-control {
  margin-left: 1em;
}

.group-control-item {
  padding-left: 1.25em;
  padding-right: 1.25em;
  flex-shrink: 0;
}

.group-body {
  background-color: transparent;
  font-size: var(--link-item-size);
  position: relative;
  min-height: var(--link-item-height);
  display: grid;
  grid-auto-rows: 1fr;
  grid-gap: calc(var(--layout-space) * var(--layout-gutter));
  grid-template-columns: repeat(auto-fill, minmax(var(--link-item-width), 1fr));
}
