/* Gallery: Polaroid wall on an 80s Memphis-style background (squiggles, triangles, zigzags, confetti) */
.gallery-page {
  position: relative; padding: 24px 22px 30px; color: #fff; border: 4px ridge #ff2d8a; overflow: hidden;
  background-color: #14102a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='260' viewBox='0 0 260 260'%3E%3Cg fill='none' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M18 40 q12 -16 24 0 t24 0 t24 0' stroke='%23ff2d8a' stroke-width='6'/%3E%3Cpath d='M170 30 l22 38 h-44 z' stroke='%232ad4ff' stroke-width='5'/%3E%3Cpath d='M30 170 l14 -14 l14 14 l14 -14 l14 14 l14 -14' stroke='%23ffd21a' stroke-width='6'/%3E%3Cpath d='M190 170 q10 -20 20 0 t20 0' stroke='%239b5cff' stroke-width='6'/%3E%3Cpath d='M110 220 l10 18 M128 112 l16 -8' stroke='%232fe08a' stroke-width='6'/%3E%3C/g%3E%3Ccircle cx='120' cy='60' r='9' fill='%23ffd21a'/%3E%3Ccircle cx='230' cy='110' r='5' fill='%23ff2d8a'/%3E%3Ccircle cx='60' cy='110' r='4' fill='%232ad4ff'/%3E%3Ccircle cx='170' cy='240' r='6' fill='%239b5cff'/%3E%3Crect x='80' y='150' width='14' height='14' fill='%232ad4ff' transform='rotate(20 87 157)'/%3E%3Crect x='225' y='215' width='10' height='10' fill='%23ffd21a' transform='rotate(-25 230 220)'/%3E%3Cg fill='%23ffffff' opacity='.35'%3E%3Ccircle cx='15' cy='240' r='2'/%3E%3Ccircle cx='150' cy='130' r='2'/%3E%3Ccircle cx='250' cy='20' r='2'/%3E%3Ccircle cx='95' cy='20' r='2'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 260px 260px;
}
.gallery-title { position: relative; text-align: center; margin: 8px 0 6px; }
.gallery-title span {
  display: inline-block; padding: 6px 22px 10px; background: #ffd21a; color: #111; transform: rotate(-3deg) skew(-8deg);
  font: 900 clamp(26px, 4.6vw, 52px)/1 Impact, Haettenschweiler, "Arial Black", sans-serif; letter-spacing: 2px;
  box-shadow: 8px 8px 0 #ff2d8a, 16px 16px 0 #2ad4ff; border: 4px solid #111;
}
.gallery-sub { text-align: center; margin: 26px 0 0; color: #fff; font-weight: bold; text-shadow: 2px 2px 0 #000; }
.concept-caption.light { color: #cfc8ff; }

/* Album buttons as bold shapes */
.album-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 10px; margin: 22px 0 10px; }
.shape-btn {
  background: var(--c); color: #111; border: 3px solid #111; font: 900 13px/1 "Arial Black", Arial, sans-serif; letter-spacing: .5px;
  padding: 10px 14px; box-shadow: 4px 4px 0 #000; cursor: pointer; transition: transform .12s;
}
.shape-btn:hover { transform: translate(-2px, -2px) rotate(-2deg); box-shadow: 6px 6px 0 #000; }
.shape-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; border-style: solid; }
.shape-btn.on { background: #fff; outline: 4px dashed var(--c); outline-offset: 3px; }
.shp-0 { border-radius: 30px; }
.shp-1 { transform: skew(-12deg); }
.shp-2 { border-radius: 4px 20px 4px 20px; }
.shp-3 { clip-path: polygon(6% 0, 100% 0, 94% 100%, 0 100%); padding: 10px 20px; }
.shp-4 { border-radius: 0; transform: rotate(2deg); }
.shp-1:hover { transform: skew(-12deg) translate(-2px, -2px); }

.album-title { text-align: center; color: #ffd21a; text-shadow: 3px 3px 0 #ff2d8a; font-size: 24px; margin: 18px 0 6px; }

/* The wall */
.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 40px 30px; padding: 24px 6px 10px; }
.pin-slot { position: relative; }
.wall.all .pin-slot:has(.pol-img.empty) { display: none; }
.pin-slot .polaroid { position: relative; z-index: 1; }
/* Memphis shapes peeking out from behind some photos */
.pin-slot::before { content: ""; position: absolute; z-index: 0; pointer-events: none; }
.deco-0::before { width: 70px; height: 70px; border-radius: 50%; background: #ff2d8a; left: -18px; top: -16px; }
.deco-1::before { width: 90px; height: 80px; background: #2ad4ff; clip-path: polygon(50% 0, 100% 100%, 0 100%); right: -22px; bottom: -14px; }
.deco-2::before { width: 120px; height: 22px; right: -26px; top: 30%; background: linear-gradient(135deg, #ffd21a 25%, transparent 25%) -11px 0 / 22px 22px, linear-gradient(225deg, #ffd21a 25%, transparent 25%) -11px 0 / 22px 22px; }
.deco-3::before { width: 64px; height: 64px; left: -20px; bottom: 18px; background: repeating-linear-gradient(45deg, #9b5cff 0 6px, transparent 6px 12px); border: 3px solid #9b5cff; }
.deco-5::before { width: 54px; height: 54px; right: -14px; top: -14px; border: 7px solid #2fe08a; border-radius: 50%; }
.gallery-count { text-align: center; margin: 22px 0 4px; font: bold 18px "Courier New", monospace; color: #fff; }

@media (max-width: 800px) {
  .gallery-page { padding: 18px 10px 24px; }
  .wall { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .shape-btn { font-size: 11px; padding: 8px 10px; }
  .polaroid figcaption { font-size: 13px; }
}
