/**
 * Nexo Page Kit - Gallery Section.
 */

.nexo-gallery-section {
  position: relative;
  width: 100%;
  margin: 0;
  padding:
    var(--nexo-gallery-section-padding-top, 88px)
    var(--nexo-gallery-section-padding-right, 24px)
    var(--nexo-gallery-section-padding-bottom, 88px)
    var(--nexo-gallery-section-padding-left, 24px);
  overflow: hidden;
  color: #25292a;
  background: var(--nexo-gallery-section-background, #ffffff);
}

.nexo-gallery-section,
.nexo-gallery-section * {
  box-sizing: border-box;
}

.nexo-gallery-section__container {
  width: min(
    100%,
    var(--nexo-gallery-section-container-width, 1180px)
  );
  margin-right:
    var(--nexo-gallery-section-container-margin-right, auto);
  margin-left:
    var(--nexo-gallery-section-container-margin-left, auto);
}

/*
 * Cabeçalho.
 */

.nexo-gallery-section__header {
  width: min(100%, 880px);
  margin: 0 auto 44px;
  text-align: center;
}

.nexo-gallery-section .nexo-gallery-section__title {
  display: block;
  margin: 0;
  padding: 0;
  overflow: visible;
  color: #25292a;
  font-family: inherit;
  font-size: 48px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  text-transform: none;
}

.nexo-gallery-section__description {
  margin-top: 20px;
  color: #4b5153;
  font-family: inherit;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.65;
}

.nexo-gallery-section__description > * {
  margin-top: 0;
}

.nexo-gallery-section__description > *:last-child {
  margin-bottom: 0;
}

/*
 * Grade.
 */

.nexo-gallery-section__grid {
  display: grid;
  grid-template-columns:
    repeat(
      var(--nexo-gallery-section-columns-desktop, 4),
      minmax(0, 1fr)
    );
  gap: var(--nexo-gallery-section-gap-desktop, 24px);
  align-items: start;
  width: 100%;
}

.nexo-gallery-section__item {
  min-width: 0;
  margin: 0;
  padding: 0;
}

.nexo-gallery-section__media {
  position: relative;
  width: 100%;
  margin: 0;
  overflow: hidden;
  background: #f3f4f4;
  border-radius:
    var(--nexo-gallery-section-image-radius, 0);
  isolation: isolate;
}

.nexo-gallery-section__link {
  display: block;
  width: 100%;
  color: inherit;
  text-decoration: none;
  border-radius: inherit;
}

.nexo-gallery-section__image {
  display: block;
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0;
  aspect-ratio:
    var(--nexo-gallery-section-image-aspect-ratio, 4 / 3);
  object-fit:
    var(--nexo-gallery-section-image-object-fit, contain);
  object-position:
    var(
      --nexo-gallery-section-item-object-position,
      var(
        --nexo-gallery-section-image-object-position,
        center center
      )
    );
  border: 0;
  border-radius: inherit;
  transition:
    transform 180ms ease,
    opacity 180ms ease;
}

.nexo-gallery-section__link:hover
  .nexo-gallery-section__image,
.nexo-gallery-section__link:focus-visible
  .nexo-gallery-section__image {
  transform: scale(1.015);
}

.nexo-gallery-section__link:focus-visible {
  outline: 3px solid #f75c00;
  outline-offset: 4px;
}

/*
 * Legendas.
 */

.nexo-gallery-section__caption {
  display: block;
  margin:
    var(--nexo-gallery-section-caption-spacing, 10px)
    0
    0;
  padding: 0;
  color: #25292a;
  font-family: inherit;
  font-size:
    var(--nexo-gallery-section-caption-font-size, 16px);
  font-style: normal;
  font-weight:
    var(--nexo-gallery-section-caption-font-weight, 700);
  line-height:
    var(--nexo-gallery-section-caption-line-height, 1.35);
  text-align:
    var(--nexo-gallery-section-caption-align, center);
}

.nexo-gallery-section--no-captions
  .nexo-gallery-section__caption {
  display: none;
}

/*
 * Navegação entre galerias.
 */

.nexo-gallery-section__navigation {
  width: 100%;
  margin-top: 52px;
  padding-top: 28px;
  border-top: 1px solid #d8dcdd;
}

.nexo-gallery-section__navigation-main {
  display: grid;
  grid-template-columns:
    minmax(0, 1fr)
    auto
    minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.nexo-gallery-section__navigation-previous {
  display: flex;
  justify-content: flex-start;
  min-width: 0;
}

.nexo-gallery-section__navigation-next {
  display: flex;
  justify-content: flex-end;
  min-width: 0;
}

.nexo-gallery-section__navigation-link {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 10px 22px;
  color: #ffffff;
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  background: #f75c00;
  border: 2px solid #f75c00;
  border-radius: 4px;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.nexo-gallery-section__navigation-link:hover,
.nexo-gallery-section__navigation-link:focus-visible {
  color: #ffffff;
  background: #d94f00;
  border-color: #d94f00;
  transform: translateY(-1px);
}

.nexo-gallery-section__navigation-link:focus-visible {
  outline: 3px solid rgba(247, 92, 0, 0.3);
  outline-offset: 3px;
}

.nexo-gallery-section__navigation-status {
  display: block;
  min-width: max-content;
  color: #4b5153;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.nexo-gallery-section__navigation-collection {
  margin-top: 18px;
  text-align: center;
}

.nexo-gallery-section__collection-link {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  color: #4b5153;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.nexo-gallery-section__collection-link:hover,
.nexo-gallery-section__collection-link:focus-visible {
  color: #f75c00;
}

/*
 * Estado vazio da prévia administrativa.
 */

.nexo-gallery-section__empty {
  display: grid;
  min-height: 220px;
  place-items: center;
  padding: 32px;
  color: #646970;
  font-size: 14px;
  text-align: center;
  background: #f6f7f7;
  border: 1px dashed #c3c4c7;
}

/*
 * Tablet.
 */

@media (max-width: 1024px) {
  .nexo-gallery-section {
    padding-right:
      min(
        var(--nexo-gallery-section-padding-right, 24px),
        24px
      );
    padding-left:
      min(
        var(--nexo-gallery-section-padding-left, 24px),
        24px
      );
  }

  .nexo-gallery-section .nexo-gallery-section__title {
    font-size: 40px;
  }

  .nexo-gallery-section__header {
    margin-bottom: 36px;
  }

  .nexo-gallery-section__grid {
    grid-template-columns:
      repeat(
        var(--nexo-gallery-section-columns-tablet, 2),
        minmax(0, 1fr)
      );
    gap: var(--nexo-gallery-section-gap-tablet, 20px);
  }
}

/*
 * Mobile.
 */

@media (max-width: 640px) {
  .nexo-gallery-section {
    padding-top:
      min(
        var(--nexo-gallery-section-padding-top, 88px),
        56px
      );
    padding-right:
      min(
        var(--nexo-gallery-section-padding-right, 24px),
        20px
      );
    padding-bottom:
      min(
        var(--nexo-gallery-section-padding-bottom, 88px),
        56px
      );
    padding-left:
      min(
        var(--nexo-gallery-section-padding-left, 24px),
        20px
      );
  }

  .nexo-gallery-section .nexo-gallery-section__title {
    font-size: 28px;
    line-height: 1.15;
  }

  .nexo-gallery-section__description {
    margin-top: 16px;
    font-size: 16px;
  }

  .nexo-gallery-section__header {
    margin-bottom: 30px;
  }

  .nexo-gallery-section__grid {
    grid-template-columns:
      repeat(
        var(--nexo-gallery-section-columns-mobile, 1),
        minmax(0, 1fr)
      );
    gap: var(--nexo-gallery-section-gap-mobile, 16px);
  }

  .nexo-gallery-section__navigation {
    margin-top: 40px;
    padding-top: 24px;
  }

  .nexo-gallery-section__navigation-main {
    grid-template-columns:
      repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .nexo-gallery-section__navigation-status {
    grid-column: 1 / -1;
    grid-row: 1;
    margin-bottom: 4px;
  }

  .nexo-gallery-section__navigation-previous {
    grid-column: 1;
    grid-row: 2;
  }

  .nexo-gallery-section__navigation-next {
    grid-column: 2;
    grid-row: 2;
  }

  .nexo-gallery-section__navigation-link {
    width: 100%;
    min-height: 46px;
    padding-right: 14px;
    padding-left: 14px;
    font-size: 14px;
  }

  .nexo-gallery-section__navigation--first
    .nexo-gallery-section__navigation-next,
  .nexo-gallery-section__navigation--last
    .nexo-gallery-section__navigation-previous {
    grid-column: 1 / -1;
  }
}

@media (max-width: 420px) {
  .nexo-gallery-section__navigation-main {
    display: flex;
    flex-direction: column;
    align-items: stretch;
  }

  .nexo-gallery-section__navigation-status {
    order: -1;
  }

  .nexo-gallery-section__navigation-previous,
  .nexo-gallery-section__navigation-next {
    width: 100%;
  }
}

/*
 * Preferência por movimento reduzido.
 */

@media (prefers-reduced-motion: reduce) {
  .nexo-gallery-section__image,
  .nexo-gallery-section__navigation-link {
    transition: none;
  }

  .nexo-gallery-section__link:hover
    .nexo-gallery-section__image,
  .nexo-gallery-section__link:focus-visible
    .nexo-gallery-section__image,
  .nexo-gallery-section__navigation-link:hover,
  .nexo-gallery-section__navigation-link:focus-visible {
    transform: none;
  }
}