/**
 * Hero Page
 * Source: aag-base/components/hero-page/hero-page.css
 */

/*
 * Container is the positioning root. hero-page__media is the sole
 * in-flow child that drives the container's height via aspect-ratio.
 * Making it position:relative (not absolute) keeps it in-flow so the
 * container has a definite height, while also acting as the containing
 * block for the absolutely-positioned fallback image and video wrapper.
 */
.hero-page__container {
  position: relative;
  width: 100%;
}

.hero-page__overlay {
  position: absolute;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 20;
}

.hero-page__media {
  position: relative;  /* containing block for fallback + video-wrapper */
  width: 100%;
  aspect-ratio: 4 / 6;
}

@media (min-width: 900px) {
  .hero-page__media {
    aspect-ratio: 16 / 8;
  }
}

/*
 * Full-video hero: override the aspect-ratio and fill the viewport.
 * Scoped to --style-full_video so simple/detail heroes keep their
 * aspect-ratio-driven height and don't get a huge empty gap.
 */
.hero-page--style-full_video .hero-page__container {
  min-height: 100vh;
}

.hero-page--style-full_video .hero-page__media {
  aspect-ratio: unset;
  min-height: 100vh;
}

/*
 * "object-fit: cover" for the Vimeo/YouTube iframe.
 *
 * An iframe can't use object-fit, so we over-size it using the
 * 16:9 aspect-ratio relationship between viewport width and height:
 *   width  = max(100vw, 177.78vh)   (177.78 = 16/9 × 100)
 *   height = max(100vh,  56.25vw)   ( 56.25 =  9/16 × 100)
 * This guarantees the iframe always covers the container in both
 * axes regardless of the viewport's own aspect ratio, then we
 * centre it so the crop is symmetric. The wrapper's overflow:hidden
 * (already set above) clips the overhang.
 */
.hero-page--style-full_video .hero-page__video-wrapper iframe {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 100vw;
  height: 56.25vw;
  min-height: 100vh;
  min-width: 177.78vh;
  transform: translate(-50%, -50%);
}

.hero-page__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-page__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Fallback image — fills hero-page__media, shown while video loads */
.hero-page__fallback-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

/* Video wrapper — covers hero-page__media completely */
.hero-page__video-wrapper {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: #000;
}

.hero-page__video-wrapper iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  pointer-events: none;
}

.aag-layout .hero-page__header {
  position: absolute;
  top: 30%;
  z-index: 30;
  max-width: 560px;
  padding: 1rem;
  text-align: center;
}

@media (min-width: 900px) {
  .aag-layout .hero-page__header {
    left: 50%;
    transform: translateX(-50%);
  }
}


.aag-layout .hero-page__header h1 {
  color: var(--white);
  font-size: 42px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

@media (min-width: 900px) {
  .aag-layout .hero-page__header h1 {
    font-size: 56px;
  }
}

/*
 * Force body-font + explicit size/line-height on the paragraph so glyph
 * cadence matches the static ref (aag-base/hero-page). Without this the
 * admu2021 theme's inherited font makes the text wrap to 5 lines at the
 * same max-width instead of the ref's 4 lines.
 */
.aag-layout .hero-page__header p {
  color: var(--white);
  margin-bottom: 1rem;
  font-family: var(--body-font-family);
  font-size: 1rem;
  line-height: 1.45;
}

.aag-layout .hero-page__label {
  display: block;
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
  opacity: 0.85;
}

.aag-layout .hero-page__header .button {
  padding: 10px 50px;
  border: 1px solid var(--white);
  border-radius: 5px;
  margin-top: 1rem;
  font-family: var(--body-font-family);
  text-transform: uppercase;
  /*
   * Suppress the browser/Bootstrap blue focus-ring + hover outline on
   * <a>-based buttons — the button already carries its own visible 1px
   * border, and hover states are handled by the --primary/--outline
   * rules below. Bootstrap's `a:hover { outline: ...; }` wins specificity
   * without the `.aag-layout` prefix (hence the upgrade above).
   */
  outline: none;
  box-shadow: none;
}

.aag-layout .hero-page__header .button:hover,
.aag-layout .hero-page__header .button:focus,
.aag-layout .hero-page__header .button:focus-visible,
.aag-layout .hero-page__header .button:active {
  outline: none;
  box-shadow: none;
  text-decoration: none;
}

.aag-layout .hero-page__header .button--primary.button--white {
  background-color: var(--white);
  color: var(--black);
}

.aag-layout .hero-page__header .button--primary.button--white:hover {
  background-color: var(--black);
  color: var(--white);
}

.aag-layout .hero-page__header .button--outline-white {
  background-color: transparent;
  color: var(--white);
}

.aag-layout .hero-page__header .button--outline-white:hover {
  background-color: var(--white);
  color: var(--primary-color-darkened);
}

/**
 * Hero Exhibition
 * Source: aag-base/components/hero-exhibition/hero-exhibition.css
 */

.hero-exhibition {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-exhibition__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-exhibition__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-exhibition__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.hero-exhibition__vertical-line {
  position: absolute;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
}

.hero-exhibition__vertical-line--top {
  top: 70px;
  height: 12%;
}

.hero-exhibition__vertical-line--bottom {
  bottom: 0;
  height: 12%;
}

@media (min-width: 600px) {
  .hero-exhibition__vertical-line--top {
    height: 15%;
  }

  .hero-exhibition__vertical-line--bottom {
    height: 15%;
  }
}

.hero-exhibition__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 600px) {
  .hero-exhibition__content {
    padding: 2rem;
    max-width: 650px;
  }
}

@media (min-width: 900px) {
  .hero-exhibition__content {
    max-width: 700px;
  }
}

@media (min-width: 1200px) {
  .hero-exhibition__content {
    max-width: 700px;
  }
}

@media (min-width: 1800px) {
  .hero-exhibition__content {
    max-width: 800px;
  }
}

.hero-exhibition__subheading {
  display: block;
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

@media (min-width: 600px) {
  .hero-exhibition__subheading {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }
}

.hero-exhibition__title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0 0 1.25rem 0;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .hero-exhibition__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-exhibition__title {
    font-size: 2.5rem;
  }
}

.hero-exhibition__description {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  max-width: 600px;
}

@media (min-width: 600px) {
  .hero-exhibition__description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

.hero-exhibition__content .button {
  padding: 0.75rem 2rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
  border-radius: 5px;
  margin-top: 1rem;
  font-family: var(--body-font-family);
}

@media (min-width: 600px) {
  .hero-exhibition__content .button {
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
  }
}

.hero-exhibition__content .button--outline-white {
  border: 1px solid var(--white);
  background-color: transparent;
  color: var(--white);
}

.hero-exhibition__content .button--outline-white:hover {
  background-color: var(--white);
  color: var(--primary-color-darkened);
}

/*
 * Scoped specificity overrides for .hero-exhibition inside .aag-layout.
 *
 * aag-base.css contains:
 *   .aag-layout h1, .aag-layout h2, ... { color: var(--black); font-weight: 300; line-height: 1; }
 * That rule has specificity (0,1,1) and beats the unscoped
 * .hero-exhibition__title at (0,1,0), making the hero title render black
 * against the dark overlay. Adding .aag-layout prefix raises each
 * selector to (0,2,1), restoring correct white text.
 *
 * Similarly, the full-page layout makes the hero full-bleed via
 *   .aag-layout--full-page .app__main > .app__hero { margin-left: -330px; }
 * so at ≥900px we must pad the hero content right of the 330 px sidebar.
 */
.aag-layout .hero-exhibition__title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0 0 1.25rem 0;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .aag-layout .hero-exhibition__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .hero-exhibition__title {
    font-size: 2.5rem;
  }
}

.aag-layout .hero-exhibition__subheading {
  color: var(--white);
}

/*
 * .aag-layout p { line-height: 1.45 } in aag-base.css has specificity
 * (0,1,1) and beats the unscoped .hero-exhibition__description at (0,1,0).
 * Scope here to restore the intended values.
 */
.aag-layout .hero-exhibition__description {
  color: var(--white);
  font-family: var(--body-font-family);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .aag-layout .hero-exhibition__description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

/*
 * At desktop the hero is full-bleed (margin-left: -330px on .app__hero),
 * so the content and vertical lines are both centred at 50% of the full
 * viewport width — the same visual axis as the sidebar midpoint.
 * No padding-left offset: the content stays centred in the entire hero
 * width, with max-width capping line length at larger viewports.
 */
@media (min-width: 900px) {
  .aag-layout .hero-exhibition__content {
    max-width: 700px;
  }
}

@media (min-width: 1800px) {
  .aag-layout .hero-exhibition__content {
    max-width: 800px;
  }
}

/**
 * Event Hero
 * Source: aag-base/components/event-hero/event-hero.css
 */

.event-hero {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.event-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.event-hero__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.event-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.78) 50%,
    rgba(0, 0, 0, 0.7) 100%
  );
  z-index: 2;
}

.event-hero__vertical-line {
  position: absolute;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.5);
  z-index: 5;
  left: 50%;
  transform: translateX(-50%);
}

.event-hero__vertical-line--top {
  top: 70px;
  height: 12%;
}

.event-hero__vertical-line--bottom {
  bottom: 0;
  height: 12%;
}

@media (min-width: 600px) {
  .event-hero__vertical-line--top {
    height: 15%;
  }

  .event-hero__vertical-line--bottom {
    height: 15%;
  }
}

.event-hero__content {
  position: relative;
  z-index: 10;
  text-align: center;
  padding: 2rem 1.5rem;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (min-width: 600px) {
  .event-hero__content {
    padding: 2rem;
    max-width: 650px;
  }
}

@media (min-width: 900px) {
  .event-hero__content {
    max-width: 700px;
  }
}

@media (min-width: 1200px) {
  .event-hero__content {
    max-width: 700px;
  }
}

@media (min-width: 1800px) {
  .event-hero__content {
    max-width: 800px;
  }
}

.event-hero__subheading {
  display: block;
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: 0.75rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.75rem;
}

@media (min-width: 600px) {
  .event-hero__subheading {
    font-size: 0.8125rem;
    margin-bottom: 1rem;
  }
}

.event-hero__title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0 0 1.25rem 0;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .event-hero__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .event-hero__title {
    font-size: 2.5rem;
  }
}

.event-hero__description {
  color: var(--white);
  font-size: 0.875rem;
  font-weight: 400;
  line-height: 1.5;
  margin: 0 0 1.5rem 0;
  max-width: 600px;
}

@media (min-width: 600px) {
  .event-hero__description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

.event-hero__content .button {
  padding: 0.75rem 2rem;
  font-size: 0.8125rem;
  text-transform: uppercase;
}

@media (min-width: 600px) {
  .event-hero__content .button {
    padding: 0.875rem 2.5rem;
    font-size: 0.875rem;
  }
}

/* Scoped overrides — same rationale as hero-exhibition above. */
.aag-layout .event-hero__title {
  color: var(--white);
  font-size: 1.5rem;
  font-weight: 300;
  text-transform: uppercase;
  margin: 0 0 1.25rem 0;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .aag-layout .event-hero__title {
    font-size: 2rem;
    margin-bottom: 1.5rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .event-hero__title {
    font-size: 2.5rem;
  }
}

.aag-layout .event-hero__subheading {
  color: var(--white);
}

.aag-layout .event-hero__description {
  color: var(--white);
  font-family: var(--body-font-family);
  font-size: 0.875rem;
  line-height: 1.5;
}

@media (min-width: 600px) {
  .aag-layout .event-hero__description {
    font-size: 0.9375rem;
    line-height: 1.6;
  }
}

/* Content centred at full viewport width — same approach as hero-exhibition. */
@media (min-width: 900px) {
  .aag-layout .event-hero__content {
    max-width: 700px;
  }
}

@media (min-width: 1800px) {
  .aag-layout .event-hero__content {
    max-width: 800px;
  }
}

/**
 * Hero Collections
 * Source: aag-base/components/hero-collections/hero-collections.css
 */

.hero-collections {
  position: relative;
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

.hero-collections__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-collections__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-collections__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 2;
}

.hero-collections__content {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  padding-bottom: 3rem;
  text-align: center;
}

@media (min-width: 600px) {
  .hero-collections__content {
    padding: 2rem;
    padding-bottom: 3.5rem;
  }
}

@media (min-width: 900px) {
  .hero-collections__content {
    padding-bottom: 4rem;
  }
}

.hero-collections__label {
  display: inline-block;
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--header-font-family);
  font-size: 0.75rem;
  font-weight: 400;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

@media (min-width: 600px) {
  .hero-collections__label {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
  }
}

.hero-collections__title {
  margin: 0;
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .hero-collections__title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-collections__title {
    font-size: 3rem;
  }
}

/**
 * Hero Exhibition Item
 * Source: aag-base/components/hero-exhibition-item/hero-exhibition-item.css
 */

.hero-exhibition-item {
  position: relative;
  width: 100%;
  min-height: 70vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
}

@media (min-width: 600px) {
  .hero-exhibition-item {
    min-height: 75vh;
  }
}

@media (min-width: 1200px) {
  .hero-exhibition-item {
    min-height: 80vh;
  }
}

.hero-exhibition-item__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

.hero-exhibition-item__background img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-exhibition-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.85) 0%,
    rgba(0, 0, 0, 0.6) 40%,
    rgba(0, 0, 0, 0.35) 100%
  );
  z-index: 2;
}

.hero-exhibition-item__content {
  position: relative;
  z-index: 10;
  padding: 1.5rem;
  padding-left: 1.5rem;
  padding-bottom: 2rem;
}

@media (min-width: 600px) {
  .hero-exhibition-item__content {
    padding: 2rem 2.5rem;
    padding-left: 3rem;
    padding-bottom: 3rem;
  }
}

@media (min-width: 900px) {
  .hero-exhibition-item__content {
    padding-left: 3rem;
    padding-bottom: 6rem;
    max-width: 900px;
  }
}

@media (min-width: 1200px) {
  .hero-exhibition-item__content {
    padding: 3rem;
    padding-left: 3rem;
    padding-bottom: 8rem;
    max-width: 1000px;
  }
}

.hero-exhibition-item__label {
  display: block;
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: 0.6875rem;
  font-weight: 400;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

@media (min-width: 600px) {
  .hero-exhibition-item__label {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
  }
}

@media (min-width: 1200px) {
  .hero-exhibition-item__label {
    font-size: 0.8125rem;
    margin-bottom: 0.625rem;
  }
}

.hero-exhibition-item__title {
  color: var(--white);
  font-family: var(--header-font-family);
  font-size: 1.75rem;
  font-weight: 300;
  text-transform: none;
  letter-spacing: 0.02em;
  margin: 0;
  line-height: 1.2;
}

@media (min-width: 600px) {
  .hero-exhibition-item__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 900px) {
  .hero-exhibition-item__title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1200px) {
  .hero-exhibition-item__title {
    font-size: 3.25rem;
  }
}

.hero-exhibition-item--about .hero-exhibition-item__overlay {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.48) 0%,
    rgba(0, 0, 0, 0.22) 48%,
    rgba(0, 0, 0, 0.12) 100%
  );
}

.hero-exhibition-item--about .hero-exhibition-item__content {
  position: relative;
}

@media (min-width: 900px) {
  .hero-exhibition-item--about .hero-exhibition-item__content::after {
    content: '';
    position: absolute;
    right: 2.25rem;
    bottom: 6.5rem;
    width: 5.25rem;
    height: 2px;
    background-color: #b43d72;
  }
}

@media (min-width: 1200px) {
  .hero-exhibition-item--about .hero-exhibition-item__content::after {
    right: 3rem;
    bottom: 8rem;
    width: 6.25rem;
  }
}

/* Scoped overrides — hero-collections */
.aag-layout .hero-collections__title {
  color: var(--white);
  font-size: 2rem;
  font-weight: 300;
  letter-spacing: 0.02em;
  line-height: 1.1;
}

@media (min-width: 600px) {
  .aag-layout .hero-collections__title {
    font-size: 2.5rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .hero-collections__title {
    font-size: 3rem;
  }
}

.aag-layout .hero-collections__label {
  color: rgba(255, 255, 255, 0.9);
}

/* Scoped overrides — hero-exhibition-item */
.aag-layout .hero-exhibition-item__title {
  color: var(--white);
  font-size: 1.75rem;
  font-weight: 300;
  line-height: 1.2;
}

@media (min-width: 600px) {
  .aag-layout .hero-exhibition-item__title {
    font-size: 2.25rem;
  }
}

@media (min-width: 900px) {
  .aag-layout .hero-exhibition-item__title {
    font-size: 2.75rem;
  }
}

@media (min-width: 1200px) {
  .aag-layout .hero-exhibition-item__title {
    font-size: 3.25rem;
  }
}

.aag-layout .hero-exhibition-item__label {
  color: var(--white);
}
