h1,
h2,
h3,
h4,
h5,
h6,
p {
  color: white;
  font-size: medium;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  text-align: justify;
}

#tsparticles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  background-color: #1a1a2e; /* Um fundo um pouco mais escuro para as cores se destacarem */
}

.content-container {
  padding-top: 100px;
  position: relative;
  z-index: 1;
}

/* Polaroid gallery wrapper */
.polaroid-wrap {
  padding: 28px 12px 60px;
  max-width: 1100px;
  margin: 16px auto 40px;
}

/* Responsive grid */
#polaroid-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 18px;
  align-items: start;
}

/* Single polaroid card */
.polaroid {
  background: linear-gradient(180deg, #fff 0%, #fafafa 100%);
  border-radius: 8px;
  padding: 12px 12px 18px;
  box-shadow: 0 10px 30px rgba(12, 18, 32, 0.12),
    0 2px 6px rgba(12, 18, 32, 0.06);
  border: 1px solid rgba(10, 10, 10, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(var(--rot));
  transition: transform 240ms ease, box-shadow 240ms ease;
  cursor: pointer;
  -webkit-user-select: none;
  user-select: none;
}

.polaroid:hover {
  transform: scale(1.03) rotate(0deg);
  box-shadow: 0 18px 40px rgba(12, 18, 32, 0.18);
}

.polaroid-img {
  width: 100%;
  height: 0;
  padding-bottom: 125%; /* 4:5 polaroid ratio */
  overflow: hidden;
  border-radius: 6px;
  background: #eee;
  display: block;
  position: relative;
}

.polaroid-img img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.polaroid-caption {
  margin-top: 12px;
  width: 100%;
  text-align: center;
  font-family: "Caveat", cursive;
  font-size: 1.05rem;
  color: #222;
}

/* subtle date / meta line */
.polaroid-meta {
  margin-top: 6px;
  font-size: 0.78rem;
  color: #666;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue",
    Arial;
}

/* Fullscreen lightbox */
.polaroid-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(6, 10, 20, 0.7);
  z-index: 9999;
  padding: 36px;
}
.polaroid-lightbox.open {
  display: flex;
}
.polaroid-lightbox img {
  max-width: 92%;
  max-height: 92%;
  border-radius: 8px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 6px solid #fff;
  background: #fff;
}

@media (max-width: 480px) {
  .polaroid-caption {
    font-size: 1rem;
  }
}
