@view-transition {
  navigation: auto;
}

.azt-featured-work {
  --azt-ds-blue: #072b53;
  --bg: transparent;
  --card-radius: 0px;
  --card-h: clamp(400px, calc(120px + 25.926vh), 680px);
  --gallery-h: clamp(440px, calc(200px + 22.222vh), 680px);
  --collapsed-w: clamp(110px, calc(40px + 3.646vw), 180px);
  --expanded-w: clamp(240px, calc(160px + 4.167vw), 320px);
  --title-size: clamp(28px, 4vw, 48px);
  --gap: 18px;
  --info-mt: 70px;
  --level-step: 30px;
  --size-ease: 300ms cubic-bezier(0.22, 1, 0.36, 1);
  --media-ease: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --opacity-ease: 180ms ease;
  --center-ease: 450ms cubic-bezier(0.4, 0, 0.2, 1);
  --text-fade: 240ms cubic-bezier(0.22, 1, 0.36, 1);
  --text-slide: 340ms cubic-bezier(0.22, 1, 0.36, 1);
  --text-stagger-1: 20ms;
  --text-stagger-2: 70ms;
  --text-stagger-3: 120ms;
  --click-zoom-duration: 1000ms;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  min-height: 100vh;
  padding: clamp(24px, 5vw, 52px) 16px;
  background: var(--bg);
  font-family: "Cormorant Garamond", Georgia, "Times New Roman", serif;
}

.elementor-widget-azotea_featured_work {
  width: 100%;
}

.elementor-widget-azotea_featured_work>.elementor-widget-container {
  width: 100%;
}

.azt-featured-work *,
.azt-featured-work *::before,
.azt-featured-work *::after {
  box-sizing: border-box;
}

.azt-featured-work__gallery {
  width: fit-content;
  max-width: 100%;
  min-height: var(--gallery-h);
  display: flex;
  align-items: flex-start;
  gap: var(--gap);
  user-select: none;
  transform: translateZ(0);
  touch-action: pan-y;
}

.azt-featured-work__gallery.is-mobile-slider {
  transition: transform 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.azt-featured-work__gallery.is-mobile-slider.is-dragging {
  transition: none;
}

.azt-featured-work__card {
  position: relative;
  flex: 0 0 auto;
  width: var(--w, var(--collapsed-w));
  height: var(--card-h);
  margin-top: var(--mt, 0px);
  border-radius: var(--card-radius);
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.18);
  transition: margin-top var(--center-ease), opacity var(--opacity-ease), transform 180ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 180ms cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease;
  will-change: width, transform, opacity, margin-top;
  transform: translateZ(0);
  backface-visibility: hidden;
}

.azt-featured-work__card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  pointer-events: none;
  user-select: none;
  transform: translateZ(0) scale(var(--img-scale, 1.001));
  filter: grayscale(var(--gray, 1)) brightness(var(--bright, 0.84));
  transition: filter var(--media-ease), transform var(--media-ease);
  will-change: filter, transform;
  backface-visibility: hidden;
}

.azt-featured-work__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, var(--overlay, 0.12));
  transition: background var(--media-ease), opacity var(--media-ease);
  will-change: background, opacity;
  pointer-events: none;
}

.azt-featured-work__card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.06) 0%, transparent 28%, transparent 72%, rgba(0, 0, 0, 0.18) 100%);
  pointer-events: none;
  border-radius: inherit;
}

.azt-featured-work__gallery.has-hover .azt-featured-work__card {
  opacity: 1;
}

.azt-featured-work__gallery.centering .azt-featured-work__card:not(.clicked) {
  opacity: 0.32 !important;
  pointer-events: none;
}

.azt-featured-work__gallery.centering .azt-featured-work__card.clicked {
  z-index: 4;
}

.azt-featured-work__gallery.centering .azt-featured-work__card.clicked img {
  filter: grayscale(0%) brightness(1);
  transform: translateZ(0) scale(1);
}

.azt-featured-work__gallery.centering .azt-featured-work__card.clicked .azt-featured-work__overlay {
  background: rgba(0, 0, 0, 0);
}

.azt-featured-work__gallery.zooming .azt-featured-work__card:not(.clicked) {
  opacity: 0 !important;
  filter: blur(2px);
  pointer-events: none;
}

.azt-featured-work__gallery.zooming .azt-featured-work__card.clicked {
  transform: translate(var(--zoom-x, 0px), var(--zoom-y, 0px)) scale(var(--zoom-scale, 1.13));
  box-shadow: 0 32px 100px rgba(0, 0, 0, 0.5);
  z-index: 10;
  transition: margin-top var(--center-ease), opacity var(--opacity-ease), transform var(--click-zoom-duration) cubic-bezier(0.22, 1, 0.36, 1), box-shadow var(--click-zoom-duration) cubic-bezier(0.22, 1, 0.36, 1), filter 180ms ease;
}

.azt-featured-work__gallery.zooming .azt-featured-work__card.clicked img {
  filter: grayscale(0%) brightness(1.06);
  transform: translateZ(0) scale(1);
}

.azt-featured-work__gallery.zooming .azt-featured-work__card.clicked .azt-featured-work__overlay {
  background: rgba(0, 0, 0, 0);
}

.azt-featured-work__info {
  order: -1;
  margin-top: 0;
  margin-bottom: var(--info-mt);
  text-align: center;
  min-height: 100px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  transition: opacity var(--text-fade), transform var(--text-slide);
  will-change: opacity, transform;
}

.azt-featured-work__info.fading {
  opacity: 0;
  transform: translateY(12px) scale(0.985);
}

.azt-featured-work__subtitle {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #666;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--text-fade) var(--text-stagger-1), transform var(--text-slide) var(--text-stagger-1);
  margin-bottom: 8px;
  will-change: opacity, transform;
}

.azt-featured-work__title {
  margin: 0;
  color: var(--azt-ds-blue);
  font-family: "Playfair Display", Georgia, "Times New Roman", serif;
  font-size: clamp(44px, 6.1vw, 90px);
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: -0.02em;
  max-width: 12ch;
  opacity: 0;
  transform: translateY(14px);
  transition: opacity var(--text-fade) var(--text-stagger-2), transform var(--text-slide) var(--text-stagger-2);
  will-change: opacity, transform;
}

.azt-featured-work__song {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #888;
  margin-top: 10px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity var(--text-fade) var(--text-stagger-3), transform var(--text-slide) var(--text-stagger-3);
  will-change: opacity, transform;
}

.azt-featured-work__info.visible .azt-featured-work__subtitle,
.azt-featured-work__info.visible .azt-featured-work__title,
.azt-featured-work__info.visible .azt-featured-work__song {
  opacity: 1;
  transform: translateY(0);
}

.azt-featured-work__info.azt-featured-work__info--intro .azt-featured-work__title {
  opacity: 1;
  transform: translateY(0);
}

.azt-featured-work__info.azt-featured-work__info--intro .azt-featured-work__subtitle,
.azt-featured-work__info.azt-featured-work__info--intro .azt-featured-work__song {
  opacity: 1;
  transform: translateY(0);
}

.azt-featured-work__subtitle.is-empty,
.azt-featured-work__song.is-empty {
  display: none;
}

@keyframes aztFeaturedWorkIntroRise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.azt-featured-work__info.intro .azt-featured-work__title {
  animation: aztFeaturedWorkIntroRise 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

@media (min-width: 2560px) and (min-height: 1200px) {
  .azt-featured-work {
    --card-h: 800px;
    --gallery-h: 860px;
    --collapsed-w: 200px;
    --expanded-w: 380px;
    --title-size: clamp(40px, 2.6vw, 56px);
    --gap: 20px;
    --info-mt: 48px;
  }
}

@media (max-width: 1024px) {
  .azt-featured-work {
    min-height: unset;
    padding: 32px 14px;
  }

  .azt-featured-work__gallery {
    min-height: 470px;
    transform: scale(0.9);
    transform-origin: top center;
  }

  .azt-featured-work__title {
    font-size: clamp(24px, 5vw, 38px);
  }
}

@media (max-width: 767px) {
  .azt-featured-work {
    --collapsed-w: 40px;
    --expanded-w: 180px;
    --card-h: 300px;
    --gallery-h: 350px;
    --gap: 6px;
    --level-step: 16px;
    --info-mt: 24px;
    min-height: unset;
    padding: 20px 10px 26px;
  }

  .azt-featured-work__gallery {
    width: 100%;
    justify-content: center;
    min-height: var(--gallery-h);
    transform: none;
  }

  .azt-featured-work__subtitle {
    font-size: 10px;
  }

  .azt-featured-work__title {
    font-size: clamp(20px, 7vw, 30px);
  }

  .azt-featured-work__song {
    font-size: 10px;
  }

}

@media (prefers-reduced-motion: reduce) {

  .azt-featured-work__card,
  .azt-featured-work__card img,
  .azt-featured-work__overlay,
  .azt-featured-work__info,
  .azt-featured-work__subtitle,
  .azt-featured-work__title,
  .azt-featured-work__song {
    transition: none !important;
    animation: none !important;
  }
}
