/* Legacy engines without container query units: photo.css mobile fallback. */
@supports not (width: 1cqw) {
  .photo-page {
    overflow-x: clip;
    background: #000;
  }

  .photo-page #main {
    min-height: 100vh;
    margin-top: calc(0px - var(--header-height));
  }

  .photo-scene {
    position: relative;
    display: none;
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    background: #000;
  }

  .photo-gallery {
    width: min(92vw, 68.75rem);
    max-width: none;
    height: min(88vh, 40.625rem);
    max-height: none;
    padding: 0;
    overflow: visible;
    border: 1px solid rgb(251 171 10 / 68%);
    border-radius: 1.5625rem;
    background: linear-gradient(180deg, rgb(5 5 5 / 96%) 0%, rgb(10 10 10 / 94%) 50%, rgb(18 13 4 / 94%) 100%);
    box-shadow:
      0 1rem 8rem rgb(0 0 0 / 85%),
      0 0 2.5rem rgb(253 172 9 / 18%),
      inset 0 1px 1px rgb(255 255 255 / 10%);
    color: #e8e8e8;
  }

  .photo-gallery:not([open]) {
    display: none;
  }

  .photo-gallery.photo-gallery--fallback {
    position: fixed;
    z-index: 100;
    top: 50%;
    left: 50%;
    margin: 0;
    transform: translate(-50%, -50%);
  }

  .photo-gallery[open] {
    display: block !important;
    animation: photo-gallery-appear 220ms var(--ease-ui) both;
  }

  .photo-gallery.photo-gallery--fallback[open] {
    animation: none;
    transform: translate(-50%, -50%);
  }

  .photo-page.gallery-open::before {
    position: fixed;
    z-index: 99;
    inset: 0;
    display: block;
    background: rgb(0 0 0 / 82%);
    content: "";
  }

  .photo-gallery::backdrop {
    background: rgb(0 0 0 / 82%);
    backdrop-filter: blur(0.35rem);
    -webkit-backdrop-filter: blur(0.35rem);
  }

  .photo-gallery__surface {
    position: relative;
    display: grid;
    grid-template-columns: 4.5rem minmax(0, 1fr) 4.5rem;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 2rem;
  }

  .photo-gallery__figure {
    display: grid;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: center;
    justify-items: center;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    margin: 0;
    overflow: hidden;
    touch-action: pan-y;
    user-select: none;
  }

  .photo-gallery__image {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0;
    object-fit: contain;
    pointer-events: none;
    opacity: 1;
    transform: scale(1);
    transition:
      opacity 160ms ease,
      transform 220ms var(--ease-ui);
  }

  .photo-gallery__image.is-changing {
    opacity: 0;
    transform: scale(0.985);
  }

  .photo-gallery__status {
    min-height: 1.5rem;
    padding-top: 0.5rem;
    color: #e8e8e8;
    font-family: "Montserrat Alternates", sans-serif;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    text-align: center;
  }

  .photo-gallery__arrow,
  .photo-gallery__close {
    border: 0;
    background: transparent;
    color: #f7a72d;
    cursor: pointer;
  }

  .photo-gallery__arrow {
    display: grid;
    width: 3.125rem;
    height: 3.125rem;
    padding: 0;
    border-radius: 50%;
    place-self: center;
    place-items: center;
    transition:
      filter 180ms ease,
      transform 180ms var(--ease-ui);
  }

  .photo-gallery__arrow--next img {
    transform: rotate(180deg);
  }

  .photo-gallery__arrow:hover,
  .photo-gallery__arrow:focus-visible {
    filter: drop-shadow(0 0 0.7rem rgb(253 172 9 / 72%));
    transform: scale(1.07);
  }

  .photo-gallery__arrow:disabled {
    cursor: default;
    filter: grayscale(1);
    opacity: 0.28;
    transform: none;
  }

  .photo-gallery__close {
    position: absolute;
    z-index: 2;
    top: 0.6rem;
    right: 1rem;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border-radius: 50%;
    font-family: "PT Root UI", sans-serif;
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1;
    transition:
      color 180ms ease,
      filter 180ms ease,
      transform 180ms var(--ease-ui);
  }

  .photo-gallery__close:hover,
  .photo-gallery__close:focus-visible {
    color: #fccb2b;
    filter: drop-shadow(0 0 0.7rem rgb(253 172 9 / 72%));
    transform: scale(1.08);
  }

  .photo-gallery__arrow:focus-visible,
  .photo-gallery__close:focus-visible {
    outline: 2px solid #fdac09;
    outline-offset: 3px;
  }

  .photo-page.gallery-open {
    overflow: hidden;
  }

  @keyframes photo-gallery-appear {
    from {
      opacity: 0;
      transform: scale(0.96);
    }

    to {
      opacity: 1;
      transform: scale(1);
    }
  }

  @media (max-width: 1023px) {
    .photo-scene {
      display: block;
      height: max(100vh, 216.410256vw);
      min-height: 216.410256vw;
      container-type: inline-size;
    }

    .photo-background,
    .photo-panel__content {
      position: absolute;
      inset: 0;
    }

    .photo-background__image-placement {
      position: absolute;
      top: 1.538462vw;
      left: -284.615385vw;
      width: 431.025641vw;
      height: 242.307692vw;
    }

    .photo-background__image {
      position: absolute;
      inset: 0;
      display: block;
      width: 100%;
      height: 100%;
      max-width: none;
      object-fit: fill;
    }

    .photo-background__darkening {
      position: absolute;
      z-index: 4;
      top: -4.102564vw;
      left: 4.102564vw;
      width: 100.769231vw;
      height: 15.897436vw;
      overflow: hidden;
      pointer-events: none;
    }

    .photo-background__darkening-transform {
      position: absolute;
      top: 100%;
      left: 100%;
      display: block;
      width: 100%;
      height: 100%;
      background: linear-gradient(180.009deg, transparent 3.621509%, #000 86.538464%);
      opacity: 0.8;
      transform: rotate(180deg);
      transform-origin: 0 0;
    }

    .photo-decoration {
      position: absolute;
      z-index: 2;
      display: flex;
      align-items: center;
      justify-content: center;
      pointer-events: none;
    }

    .photo-decoration__transform,
    .photo-decoration__clip {
      position: absolute;
      display: block;
    }

    .photo-decoration__clip {
      inset: 0;
      overflow: visible;
    }

    .photo-decoration__asset {
      position: absolute;
      display: block;
      background: url("../assets/images/team/decoration-left.svg") 0 0 / 100% 100% no-repeat;
    }

    .photo-decoration--left {
      top: 201.025641vw;
      left: -3.846154vw;
      width: 118.717949vw;
      height: 21.530472vw;
    }

    .photo-decoration--left .photo-decoration__asset {
      inset: 0;
      width: 100%;
      height: 100%;
    }

    .photo-decoration--left .photo-decoration__transform {
      width: 21.530472vw;
      height: 118.714701vw;
      transform: rotate(-90deg);
    }

    .photo-decoration--right {
      top: -4.358974vw;
      left: -7.692308vw;
      width: 118.717949vw;
      height: 21.025641vw;
    }

    .photo-decoration--right .photo-decoration__transform {
      width: 21.025641vw;
      height: 118.717949vw;
      transform: rotate(90deg);
    }

    .photo-decoration--right .photo-decoration__clip {
      overflow: hidden;
    }

    .photo-decoration--right .photo-decoration__asset {
      top: 0.003318vw;
      left: -0.505559vw;
      width: 21.530472vw;
      height: 118.714701vw;
    }

    .photo-panel {
      position: absolute;
      z-index: 3;
      top: 5.897436vw;
      left: 0;
      width: 100vw;
      height: 216.410256vw;
      container-type: inline-size;
    }

    .photo-panel__surface {
      position: absolute;
      top: 24.615385vw;
      left: 8.461538vw;
      width: 83.333333vw;
      height: 171.025641vw;
      border: 0.404651vw solid rgb(251 171 10 / 68%);
      border-radius: 6.574155vw;
      background: linear-gradient(180deg, rgb(5 5 5 / 53.04%) 0%, rgb(10 10 10 / 48.96%) 50%, rgb(18 13 4 / 46.24%) 100%);
      box-shadow:
        0 4.046506vw 101.162649vw rgb(0 0 0 / 45%),
        inset 0 0.404651vw 0.404651vw rgb(255 255 255 / 10%);
      backdrop-filter: blur(3.076923vw);
      -webkit-backdrop-filter: blur(3.076923vw);
    }

    .photo-panel__content {
      z-index: 1;
    }

    .photo-title {
      position: absolute;
      top: 30.769231vw;
      left: 32.051282vw;
      width: 36.153846vw;
      height: 14.358974vw;
      margin: 0;
      color: #e8e8e8;
      font-family: "PT Root UI", sans-serif;
      font-size: 11.973475vw;
      font-weight: 500;
      line-height: 1.1991;
      letter-spacing: 0.957878vw;
      white-space: nowrap;
    }

    .photo-title-divider {
      position: absolute;
      top: 46.923077vw;
      left: 19.74359vw;
      display: block;
      width: 60.365135vw;
      height: 10.597456vw;
      overflow: hidden;
    }

    .photo-title-divider img {
      position: absolute;
      top: 0;
      left: 50%;
      display: block;
      width: 97.435897vw;
      height: 10.597456vw;
      max-width: none;
      transform: translateX(-50%);
    }

    .photo-categories {
      position: absolute;
      top: 63.333333vw;
      left: 19.74359vw;
      width: 60.529057vw;
      height: 97.948679vw;
    }

    .photo-category {
      position: absolute;
      display: block;
      width: 28.038825vw;
      height: 28.038825vw;
      padding: 0;
      overflow: visible;
      border: 0;
      border-radius: 2.8vw;
      background: transparent;
      cursor: pointer;
    }

    .photo-category[data-gallery="1"] {
      top: 0;
      left: 0;
    }

    .photo-category[data-gallery="2"] {
      top: 0;
      left: 32.490428vw;
    }

    .photo-category[data-gallery="3"] {
      top: 34.954928vw;
      left: 0.224109vw;
    }

    .photo-category[data-gallery="4"] {
      top: 34.954928vw;
      left: 32.490428vw;
    }

    .photo-category[data-gallery="5"] {
      top: 69.909856vw;
      left: 0.224109vw;
    }

    .photo-category[data-gallery="6"] {
      top: 69.909856vw;
      left: 32.490428vw;
    }

    .photo-category img {
      width: 100%;
      height: 100%;
      max-width: none;
      transform: scale(1);
      transform-origin: 50% 50%;
      transition:
        filter 200ms ease,
        transform 220ms var(--ease-ui);
    }

    .photo-category:hover img,
    .photo-category:focus-visible img,
    .photo-category.is-active img {
      filter:
        drop-shadow(0 0 1.35vw rgb(253 172 9 / 72%))
        drop-shadow(0 0 3.4vw rgb(253 172 9 / 34%));
      transform: scale(1.045);
    }

    .photo-category:focus-visible {
      outline: 0.38vw solid #fdac09;
      outline-offset: 0.5vw;
    }

    .photo-instructions {
      position: absolute;
      top: 178.461538vw;
      left: 14.358974vw;
      width: 71.282051vw;
      height: 10.25641vw;
      margin: 0;
      color: #e8e8e8;
      font-family: "Montserrat Alternates", sans-serif;
      font-size: 4.128754vw;
      font-weight: 500;
      line-height: 5.128205vw;
      letter-spacing: 0.206438vw;
      text-align: center;
      white-space: normal;
    }

    .photo-signature {
      position: absolute;
      z-index: 6;
      top: 206.666667vw;
      left: 79.74359vw;
      display: block;
      width: 19.334247vw;
      height: 9.737827vw;
      max-width: none;
    }

    .photo-gallery {
      width: 94vw;
      height: 82vh;
      border-radius: 1.1rem;
    }

    .photo-gallery__surface {
      grid-template-columns: 2.5rem minmax(0, 1fr) 2.5rem;
      padding: 0.75rem;
    }

    .photo-gallery__arrow {
      width: 2.5rem;
      height: 2.5rem;
    }

    .photo-gallery__close {
      top: 0.25rem;
      right: 0.35rem;
    }
  }

}
