.gallery-hero {
  padding-top: 14vh;
  padding-bottom: 6vh;
  text-align: center;
}

.gallery-title {
  font-size: 5rem;
}

.gallery-subtitle {
  color: #a8a8a8;
  font-family: Poppins, sans-serif;
  font-size: 18px;
  max-width: 560px;
  margin: 20px auto 0;
  line-height: 1.5;
}

.gallery-grid {
  column-count: 4;
  column-gap: 22px;
  padding: 0 5% 12vh;
}

@media screen and (max-width: 1200px) {
  .gallery-grid { column-count: 3; }
}

@media screen and (max-width: 800px) {
  .gallery-grid { column-count: 2; }
  .gallery-title { font-size: 3rem; }
}

@media screen and (max-width: 500px) {
  .gallery-grid { column-count: 1; }
}

.meme-card {
  position: relative;
  break-inside: avoid;
  margin-bottom: 22px;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  background: #111;
  opacity: 0;
  transform: translateY(40px) scale(.94);
}

.meme-card img {
  width: 100%;
  display: block;
  transition: transform .6s cubic-bezier(.2, .8, .2, 1), filter .5s;
}

.meme-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 16px;
  box-shadow: inset 0 0 0 0 #a6dc00;
  transition: box-shadow .35s;
  pointer-events: none;
}

.meme-card:hover::after {
  box-shadow: inset 0 0 0 3px #a6dc00, 0 0 40px #a6dc0066;
}

.meme-card:hover img {
  transform: scale(1.07);
  filter: brightness(1.05);
}

.meme-card .zoom-tag {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: #a6dc00;
  color: #131313;
  font-family: Poppins, sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 20px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity .3s, transform .3s;
}

.meme-card:hover .zoom-tag {
  opacity: 1;
  transform: translateY(0);
}

.lightbox {
  position: fixed;
  inset: 0;
  background: #000000e0;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
  z-index: 999;
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s;
}

.lightbox.active {
  opacity: 1;
  visibility: visible;
}

.lightbox img {
  max-width: 90vw;
  max-height: 86vh;
  border-radius: 14px;
  box-shadow: 0 0 80px #000c;
  transform: scale(.9);
  transition: transform .35s cubic-bezier(.2, .8, .2, 1);
}

.lightbox.active img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 28px;
  right: 32px;
  color: #fff;
  font-family: Poppins, sans-serif;
  font-size: 28px;
  font-weight: 300;
  cursor: pointer;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.lightbox-close:hover {
  background: #ffffff1a;
}

.back-home {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a8a8a8;
  font-family: Poppins, sans-serif;
  font-size: 14px;
  text-decoration: none;
  transition: color .2s;
}

.back-home:hover {
  color: #a6dc00;
}
