.pswp[hidden] {
  display: none;
}

.pswp {
  position: fixed;
  inset: 0;
  z-index: 1000;
}

.pswp__bg {
  position: absolute;
  inset: 0;
  background: rgba(13, 9, 7, 0.9);
}

.pswp__scroll-wrap {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(96vw, 1200px);
  height: min(94vh, 900px);
  margin: 3vh auto;
  border-radius: 18px;
  overflow: hidden;
  background: #16100d;
  color: #f7eadc;
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.45);
}

.pswp__top-bar {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: rgba(31, 22, 18, 0.96);
  border-bottom: 1px solid rgba(255, 231, 214, 0.12);
}

.pswp__counter {
  flex: 1;
  text-align: center;
  color: #d6c0ae;
}

.pswp__button {
  border: 1px solid rgba(255, 231, 214, 0.14);
  border-radius: 999px;
  padding: 0.45rem 0.8rem;
  background: rgba(255, 255, 255, 0.05);
  color: #f7eadc;
  cursor: pointer;
}

.pswp__button:hover,
.pswp__button:focus-visible {
  background: rgba(255, 255, 255, 0.12);
}

.pswp__container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 0;
  padding: 1rem;
  background: #120d0a;
}

.pswp__img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  border-radius: 12px;
  touch-action: pan-y;
  user-select: none;
}

.pswp__caption {
  display: grid;
  gap: 0.35rem;
  padding: 0.9rem 1rem 1rem;
  background: rgba(31, 22, 18, 0.96);
  border-top: 1px solid rgba(255, 231, 214, 0.12);
}

.pswp__caption__album {
  color: #e0af6f;
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pswp__caption__title {
  font-size: 1.05rem;
  font-weight: 700;
}

.pswp__caption__desc {
  color: #d6c0ae;
  font-size: 0.96rem;
}

.pswp__caption__actions {
  margin-top: 0.2rem;
}

.pswp__original-link,
.pswp__original-link:visited {
  color: #ffcab5;
  text-decoration: none;
}

.pswp__original-link:hover,
.pswp__original-link:focus-visible {
  text-decoration: underline;
}

body.pswp-open {
  overflow: hidden;
}

@media (max-width: 700px) {
  .pswp__scroll-wrap {
    width: 100vw;
    height: 100vh;
    margin: 0;
    border-radius: 0;
  }

  .pswp__top-bar {
    flex-wrap: wrap;
  }

  .pswp__counter {
    order: 4;
    width: 100%;
  }
}
