/* NYC2027 Official Goods popup: scoped to this component only. */
.nyc27-goods-popup[hidden] { display: none !important; }
.nyc27-goods-popup {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: grid;
  place-items: center;
  padding: 26px;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transition: opacity .25s ease, visibility .25s ease;
}
.nyc27-goods-popup.is-open {
  opacity: 1;
  visibility: visible;
}
.nyc27-goods-popup__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 12, 32, .76);
}
.nyc27-goods-popup__panel {
  position: relative;
  z-index: 1;
  width: fit-content;
  max-width: 100%;
  transform: translateY(10px) scale(.98);
  transition: transform .25s ease;
  filter: drop-shadow(0 14px 26px rgba(0, 0, 0, .28));
}
.nyc27-goods-popup.is-open .nyc27-goods-popup__panel {
  transform: translateY(0) scale(1);
}
.nyc27-goods-popup__link,
.nyc27-goods-popup__link:hover {
  display: block;
  padding: 0;
  border: 0;
  text-decoration: none;
  background: transparent;
}
.nyc27-goods-popup__image {
  display: block;
  width: auto;
  height: auto;
  max-width: min(480px, calc(100vw - 56px));
  max-height: calc(100vh - 72px);
  max-height: calc(100dvh - 72px);
  object-fit: contain;
}
.nyc27-goods-popup__close {
  position: absolute;
  z-index: 2;
  top: -15px;
  right: -15px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  min-width: 40px;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 50%;
  background: #0d1933;
  color: #fff;
  font: 400 27px/1 system-ui, sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0,0,0,.3);
}
.nyc27-goods-popup__close:hover { background: #243c69; }
.nyc27-goods-popup__close:focus-visible,
.nyc27-goods-popup__link:focus-visible {
  outline: 3px solid #f0c25b;
  outline-offset: 4px;
}
body.nyc27-goods-popup-open { overflow: hidden !important; }
@media (prefers-reduced-motion: reduce) {
  .nyc27-goods-popup,
  .nyc27-goods-popup__panel { transition: none; }
}
