.block-layout-builder {
  box-sizing: border-box;
  border: 3px dashed #666;
  padding: 1.25rem;
}

.block-layout-builder + .block-layout-builder {
  border-top: none;
}

.block-layout-builder h2 {
  margin-top: 0;
  font-size: 1.125rem;
}

/* Styles for dark background sections */
.layout--background-blue .block-layout-builder,
.layout--background-blue-dark .block-layout-builder {
  background-color: transparent;
  border-color: #ccc;
  color: #fff;
}

/* INEC node content custom styles */
.inec-custom-node-content {
  color: #525252;
  padding-top: 2rem;
}

.inec-custom-node-content p {
  margin: 0 0 1rem 0;
}

.inec-custom-node-content--request-status p {
  font-size: 16px;
}

.inec-custom-node-content a {
  color: #002f87;
  word-break: break-all;
  text-decoration: none;
}

.inec-custom-node-content a:hover{
  text-decoration: underline;
}

.inec-custom-node-content > div {
  margin-bottom: 1rem;
}

.inec-custom-node-content .field__label {
  color: #525252;
  margin-bottom: 0.75rem;
}

.inec-custom-node-content .field--name-field-video-unlimited .field__items {
  display: flex;
  flex-wrap: wrap;
}

.inec-custom-node-content .field--name-field-video-unlimited .field__item {
  margin-right: 1rem;
}

.inec-custom-node-content .item-list li {
  margin-bottom: 0;
}

.inec-custom-node-content .field--label-inline {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  margin: 1rem 0;
}

.inec-custom-node-content .field--label-inline p {
  margin: 0;
}

.inec-custom-node-content .field--label-inline .field__label,
.inec-custom-node-content .field--label-inline .field__items {
  float: none;
}

.group_admin_news, .group_admin {
  border-top: 1px solid #002f87;
  margin-top: 2rem;
  padding-top: 1rem;
}

.group-admin--help-text {
  font-weight: normal;
  margin-bottom: 2rem;
}

/* News image style */
.inec-custom-node-content--news .field--name-field-image img,
.inec-custom-node-content--event .field--name-field-image img {
  max-height: 13.688rem;
  width: 45.5rem;
  object-fit: cover;
  border-radius: 20px;
}

.inec-custom-node-content--statistical-education .media--type-image > img,
.inec-custom-node-content--census .media--type-image > img,
.inec-custom-node-content--poll .media--type-image > img,
.inec-custom-node-content--maps-cartographies .media--type-image > img {
  max-height: 23.813rem;
  width: 45.5rem;
  object-fit: cover;
}

.inec-custom-node-content--statistical-education .media--type-remote-video .field--name-field-media-oembed-video > iframe {
  height: 23.813rem;
  width: 45.5rem;
}

.inec-custom-node-content--field-staff .field--name-field-image img {
  max-height: 7.125rem;
  width: 7.125rem;
  object-fit: cover;
  border-radius: 20px;
}

.inec-custom-node-content .field--name-field-image-unlimited img {
  height: 100%;
  object-fit: contain;
}

.inec-custom-node-content .field--name-field-image-unlimited article {
  height: 100%;
}

.inec-custom-node-content .field--name-field-image-unlimited .field__items {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.inec-custom-node-content .field--name-field-image-unlimited .field__item {
  padding: 0.1rem;
  flex: 0 0 49%;
  max-height: 300px;
}

.inec-custom-node-content .field--name-field-group-data > .field__items > .field__item {
  margin-top: 1rem;
}

@media screen and (min-width: 48rem) {
  .inec-custom-node-content .field--label-inline {
    flex-direction: row;
    margin: 0;
  }

  .inec-custom-node-content .field--name-field-image-unlimited .field__item {
    flex: 0 0 24%;
  }
}

@media screen and (min-width: 62rem) {
  .inec-custom-node-content .field--name-field-image-unlimited .field__item {
    flex: 0 0 12%;
  }
}
