/* Modal — Galería de evento */

.trivium-eventos-gallery-modal {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--spacing-jumper-padding-13-8, 48px);
  box-sizing: border-box;
  background:
    linear-gradient(
      0deg,
      rgba(26, 71, 33, 0.88) 0%,
      rgba(26, 71, 33, 0.88) 100%
    ),
    var(--foundations-surface-default, #1a4721);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.trivium-eventos-gallery-modal[hidden] {
  display: none;
}

.trivium-eventos-gallery-modal__panel {
  position: relative;
  display: flex;
  width: min(1728px, 100%);
  height: min(1023px, calc(100dvh - 96px));
  min-height: min(956px, calc(100dvh - 96px));
  padding: var(--spacing-jumper-padding-13-8, 48px);
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 34px;
  box-sizing: border-box;
}

.trivium-eventos-gallery-modal__close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: var(--radius-100, 3px);
  background: transparent;
  color: var(--text-heading-default, #eeebe2);
  cursor: pointer;
}

.trivium-eventos-gallery-modal__close:hover {
  background: rgba(0, 0, 0, 0.3);
}

.trivium-eventos-gallery-modal__header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: var(--spacing-gap-4, 12px);
  align-self: center;
  width: 100%;
  max-width: 980px;
  box-sizing: border-box;
}

.trivium-eventos-gallery-modal__gallery-title {
  margin: 0;
  color: var(--text-heading-default, #EEEBE2);
  font-family: "Latienne Pro", latienne-pro, serif;
  font-size: var(--text-size-heading-lg, 24px);
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.trivium-eventos-gallery-modal__meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--spacing-gap-8, 24px);
}

.trivium-eventos-gallery-modal__meta-item {
  margin: 0;
  color: var(--text-heading-action, #b7963e);
  font-family: Manrope, "Manrope", sans-serif;
  font-size: var(--text-size-body-sm, 14px);
  font-style: normal;
  font-weight: 600;
  line-height: 150%;
}

.trivium-eventos-gallery-modal__event-title {
  margin: 0;
  color: var(--text-heading-default, #eeebe2);
  font-family: "Latienne Pro", latienne-pro, serif;
  font-size: var(--text-size-heading-md, 20px);
  font-style: normal;
  font-weight: 700;
  line-height: 120%;
}

.trivium-eventos-gallery-modal__stage {
  display: flex;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: 100%;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
  flex: 1 0 0;
  align-self: center;
}

.trivium-eventos-gallery-modal__image {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 100%;
  object-fit: cover;
  object-position: center;
  height: 647.268px;
  max-width: 1200px;
  max-height: 647.269px;
  align-self: center;
  aspect-ratio: 165/89;
}

.trivium-eventos-gallery-modal__footer {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: var(--spacing-gap-8, 24px);
  align-self: center;
  width: 100%;
  max-width: 980px;
}

.trivium-eventos-gallery-modal__footer-start,
.trivium-eventos-gallery-modal__footer-end {
  display: flex;
  align-items: center;
  gap: var(--spacing-gap-4, 12px);
  min-width: 0;
}

.trivium-eventos-gallery-modal__footer-end {
  justify-content: flex-end;
}

.trivium-eventos-gallery-modal__nav {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: none;
  outline: none;
  box-shadow: none;
  appearance: none;
  border-radius: var(--radius-100, 3px);
  background: var(--foundations-surface-default, #1A4721);
  transition: background-color 0.2s ease;
  cursor: pointer;
}

.trivium-eventos-gallery-modal__nav:hover:not(:disabled) {
  background: #123218;
}

.trivium-eventos-gallery-modal__nav:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.trivium-eventos-gallery-modal__address,
.trivium-eventos-gallery-modal__copyright {
  margin: 0;
  color: var(--text-body-secondary, #bbb3a9);
  font-family: Manrope, "Manrope", sans-serif;
  font-size: var(--text-size-body-xsm, 12px);
  font-style: normal;
  font-weight: 400;
  line-height: 150%;
}

.trivium-eventos-gallery-modal__dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-gap-4, 12px);
  background: transparent;
}

.trivium-eventos-gallery-modal__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #BBB3A9;
  cursor: pointer;
}

.trivium-eventos-gallery-modal__dot.is-active {
  color: #EEEBE2;
}

.trivium-eventos-gallery-modal__dot svg {
  display: block;
  width: 12px;
  height: 12px;
}

@media (max-width: 900px) {
  .trivium-eventos-gallery-modal__panel {
    min-height: auto;
    height: calc(100dvh - 48px);
    padding: var(--spacing-gap-8, 24px);
    gap: 24px;
  }

  .trivium-eventos-gallery-modal__footer {
    grid-template-columns: 1fr;
    gap: var(--spacing-gap-8, 24px);
  }

  .trivium-eventos-gallery-modal__footer-start,
  .trivium-eventos-gallery-modal__footer-end {
    justify-content: center;
    text-align: center;
  }

  .trivium-eventos-gallery-modal__copyright {
    display: none;
  }
}

@media (max-width: 440px) {
  .trivium-eventos-gallery-modal {
    padding: var(--spacing-jumper-padding-13-8, 24px);
  }

  .trivium-eventos-gallery-modal__header {
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }

  .trivium-eventos-gallery-modal__gallery-title {
    font-size: var(--text-size-heading-lg, 20px);
  }

  .trivium-eventos-gallery-modal__stage {
    display: flex;
    align-items: center;
    justify-content: center;
    align-self: center;
    width: 100%;
    flex: 1 1 auto;
    min-height: 0;
    overflow: hidden;
    gap: 10px;
    flex: 1 0 0;
    align-self: center;
  }

  .trivium-eventos-gallery-modal__image {
    display: flex;
    height: 211.441px;
    max-width: 1200px;
    max-height: 647.269px;
    align-self: stretch;
    aspect-ratio: 165/89;
    justify-content: center;
    align-items: center;
    align-self: center;
  }

  .trivium-eventos-gallery-modal__panel {
    width: 100%;
    padding: 0;
  }

  .trivium-eventos-gallery-modal__footer {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: var(--spacing-gap-8, 24px);
    align-self: center;
    width: 100%;
    max-width: 100%;
  }
}
