.aar-added-project .aar-time-square-card-button {
  position: relative;
  display: block;
  width: 100%;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.aar-added-project .projectTileImage {
  height: 390px;
}

.aar-added-project .projectTileImage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.aar-added-project .aar-time-square-card-button:hover .projectTileImage img {
  transform: scale(1.035);
}

.aar-added-project .projectTileInfo {
  min-height: 11px;
}

.aar-added-project .aar-time-square-card-button:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 4px;
}

.aar-time-square-page {
  min-height: 70vh;
  background: var(--paper, #f7f4ef);
}

.aar-time-square-header {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: minmax(190px, 1fr) auto auto;
  align-items: center;
  gap: clamp(16px, 3vw, 48px);
  min-height: 100px;
  padding: 12px clamp(22px, 5vw, 80px);
  border-bottom: 1px solid var(--line, rgba(34, 29, 25, 0.18));
  background: var(--stone, #efebe4);
}

.aar-time-square-brand {
  display: inline-flex;
  align-items: center;
  gap: 15px;
  width: fit-content;
  max-width: 265px;
  color: var(--ink, #211d19);
  text-decoration: none;
}

.aar-time-square-brand img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.aar-time-square-brand span {
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.075em;
  text-transform: uppercase;
}

.aar-time-square-nav {
  display: flex;
  gap: clamp(14px, 2vw, 32px);
  align-items: center;
  font-size: 13px;
}

.aar-time-square-nav a,
.aar-time-square-breadcrumb a,
.aar-time-square-footer a {
  color: inherit;
  text-decoration: none;
}

.aar-time-square-nav a:hover,
.aar-time-square-breadcrumb a:hover,
.aar-time-square-footer a:hover {
  opacity: 0.68;
}

.aar-time-square-contact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 19px;
  background: var(--ink, #211d19);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.045em;
  text-decoration: none;
  text-transform: uppercase;
}

.aar-time-square-content {
  width: min(1480px, 100%);
  margin: 0 auto;
  padding: clamp(34px, 5vw, 68px) clamp(22px, 5vw, 80px) 88px;
}

.aar-time-square-breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: clamp(28px, 4vw, 54px);
  color: #746d66;
  font-size: 12px;
}

.aar-time-square-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 32px;
  margin-bottom: clamp(30px, 4vw, 54px);
}

.aar-time-square-intro-copy {
  max-width: 760px;
}

.aar-time-square-eyebrow {
  display: inline-block;
  margin-bottom: 18px;
  color: #746d66;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.aar-time-square-intro h1 {
  margin: 0;
  font: 400 clamp(48px, 7vw, 92px) / 0.98 Georgia, 'Times New Roman', serif;
  letter-spacing: -0.045em;
}

.aar-time-square-intro p {
  max-width: 540px;
  margin: 18px 0 0;
  color: #625a52;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.65;
}

.aar-time-square-count {
  flex: none;
  padding-bottom: 4px;
  color: #746d66;
  font-size: 12px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.aar-time-square-gallery {
  display: flex;
  overflow-x: auto;
  gap: 14px;
  padding-bottom: 10px;
  overscroll-behavior-inline: contain;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: thin;
}

.aar-time-square-photo {
  position: relative;
  display: block;
  flex: 0 0 min(74vw, 780px);
  min-width: 0;
  min-height: 0;
  aspect-ratio: 1.45;
  overflow: hidden;
  border: 0;
  padding: 0;
  background: #e5dfd6;
  color: #fff;
  cursor: zoom-in;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  text-align: left;
}

.aar-time-square-photo:first-child {
  grid-row: auto;
}

.aar-time-square-photo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 500ms ease;
}

.aar-time-square-photo:hover img {
  transform: scale(1.025);
}

.aar-time-square-photo span {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 18px 15px;
  background: linear-gradient(transparent, rgba(20, 18, 16, 0.66));
  font-size: 12px;
  line-height: 1.4;
}

.aar-time-square-note {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 22px;
  margin-top: clamp(52px, 7vw, 96px);
  padding: clamp(25px, 4vw, 50px);
  background: #211d19;
  color: #f7f4ef;
}

.aar-time-square-note h2 {
  margin: 0;
  font: 400 clamp(27px, 3.4vw, 45px) / 1.1 Georgia, 'Times New Roman', serif;
}

.aar-time-square-note p {
  margin: 10px 0 0;
  color: rgba(247, 244, 239, 0.76);
  font-size: 14px;
  line-height: 1.6;
}

.aar-time-square-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 22px clamp(22px, 5vw, 80px);
  background: #211d19;
  color: #f7f4ef;
  font-size: 12px;
}

.aar-time-square-lightbox {
  position: fixed;
  width: min(1120px, calc(100vw - 32px));
  max-width: none;
  max-height: calc(100dvh - 32px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 52px 64px 24px;
  overflow: hidden;
  background: #171411;
  color: #fff;
}

.aar-time-square-lightbox::backdrop {
  background: rgba(13, 12, 11, 0.9);
}

.aar-time-square-lightbox figure {
  margin: 0;
  text-align: center;
}

.aar-time-square-lightbox figure img {
  display: block;
  width: 100%;
  height: min(72vh, 760px);
  object-fit: contain;
}

.aar-time-square-lightbox figcaption {
  padding-top: 12px;
  font-size: 13px;
}

.aar-time-square-lightbox button {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  background: rgba(23, 20, 17, 0.76);
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

.aar-time-square-lightbox .aar-ts-lightbox-close {
  top: 10px;
  right: 10px;
}

.aar-time-square-lightbox .aar-ts-lightbox-previous {
  top: 50%;
  left: 10px;
  transform: translateY(-50%);
}

.aar-time-square-lightbox .aar-ts-lightbox-next {
  top: 50%;
  right: 10px;
  transform: translateY(-50%);
}

@media (max-width: 1000px) {
  .aar-time-square-header {
    grid-template-columns: 1fr auto;
    gap: 12px;
  }

  .aar-time-square-nav {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: center;
    padding-bottom: 10px;
  }

  .aar-time-square-contact {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 700px) {
  .aar-time-square-header {
    min-height: 76px;
    padding: 8px 18px;
  }

  .aar-time-square-brand {
    gap: 8px;
    max-width: 200px;
  }

  .aar-time-square-brand img {
    width: 49px;
    height: 49px;
  }

  .aar-time-square-brand span {
    font-size: 8px;
  }

  .aar-time-square-nav {
    display: none;
  }

  .aar-time-square-header > .aar-time-square-contact {
    min-height: 40px;
    padding: 0 12px;
    font-size: 9px;
  }

  .aar-time-square-content {
    padding-right: 18px;
    padding-left: 18px;
    padding-bottom: 60px;
  }

  .aar-time-square-intro {
    display: block;
  }

  .aar-time-square-count {
    display: inline-block;
    margin-top: 18px;
  }

  .aar-time-square-gallery {
    flex-basis: auto;
    gap: 8px;
  }

  .aar-time-square-photo {
    flex-basis: min(84vw, 420px);
    aspect-ratio: 1.05;
  }

  .aar-time-square-photo:first-child {
    flex-basis: min(84vw, 420px);
    aspect-ratio: 1.25;
  }

  .aar-time-square-photo span {
    padding: 27px 10px 10px;
    font-size: 10px;
  }

  .aar-time-square-note {
    display: block;
    margin-top: 56px;
    padding: 24px;
  }

  .aar-time-square-note .aar-time-square-contact {
    margin-top: 22px;
  }

  .aar-time-square-footer {
    flex-wrap: wrap;
  }

  .aar-time-square-lightbox {
    width: calc(100vw - 20px);
    max-height: calc(100dvh - 20px);
    padding: 46px 42px 18px;
  }

  .aar-time-square-lightbox figure img {
    height: min(68vh, 600px);
  }

  .aar-time-square-lightbox .aar-ts-lightbox-previous {
    left: 4px;
  }

  .aar-time-square-lightbox .aar-ts-lightbox-next {
    right: 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .aar-time-square-photo img,
  .aar-time-square-tile .projectTileImage img {
    transition: none;
  }
}
