/* ==========================================================================
   IMAGICA COMMUNITY SHOWCASE & LIGHTBOX STYLES
   ========================================================================== */

.community-gallery-section {
  position: relative;
  width: 100%;
  padding: 10px 0 40px;
  background-color: var(--bg-main, #211927);
  background: #211927;
  overflow: hidden;
}

.gallery-container {
  max-width: 1360px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 2;
}

/* Header */
.gallery-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 18px;
}

.gallery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  border-radius: 9999px;
  background: rgba(60, 242, 170, 0.08);
  border: 1px solid rgba(60, 242, 170, 0.25);
  color: #3cf2aa;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.74rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.gallery-eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #3cf2aa;
  box-shadow: 0 0 10px #3cf2aa;
  animation: galleryPulse 2s infinite ease-in-out;
}

@keyframes galleryPulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.4;
    transform: scale(0.85);
  }
}

.gallery-title {
  font-family: 'Glegoo', serif;
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  font-weight: 400;
  color: #ffffff;
  line-height: 1.15;
  margin: 0 0 8px;
  letter-spacing: -0.02em;
}

.gallery-title .mint-text {
  color: #3cf2aa;
  text-shadow: 0 0 30px rgba(60, 242, 170, 0.35);
}

.gallery-desc {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.98rem;
  line-height: 1.6;
  color: #a89db2;
  margin: 0 auto;
}

/* Edge-to-Edge Marquee Strip */
.gallery-marquee-wrap {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  overflow: hidden;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  user-select: none;
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: marqueeGlide 45s linear infinite;
}

.gallery-marquee-track.track-reverse {
  animation: marqueeGlideReverse 50s linear infinite;
}

.gallery-marquee-wrap:hover .gallery-marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeGlide {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

@keyframes marqueeGlideReverse {
  0% {
    transform: translateX(-50%);
  }

  100% {
    transform: translateX(0);
  }
}

.marquee-artwork-card {
  position: relative;
  width: 240px;
  height: 150px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #211927;
  cursor: default;
  flex-shrink: 0;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, box-shadow 0.3s ease;
}

.marquee-artwork-card:hover {
  transform: translateY(-4px) scale(1.03);
  border-color: rgba(60, 242, 170, 0.5);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5), 0 0 20px rgba(60, 242, 170, 0.2);
}

.marquee-artwork-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.marquee-artwork-badge {
  position: absolute;
  bottom: 8px;
  left: 8px;
  padding: 4px 10px;
  border-radius: 9999px;
  background: rgba(15, 11, 20, 0.78);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

/* Category Filter Tabs */
.gallery-filters-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 22px;
}

.gallery-filter-btn {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #9f94a8;
  padding: 9px 20px;
  border-radius: 9999px;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s ease;
  user-select: none;
}

.gallery-filter-btn:hover {
  color: #ffffff;
  border-color: rgba(60, 242, 170, 0.35);
  background: rgba(60, 242, 170, 0.06);
}

.gallery-filter-btn.active {
  background: #3cf2aa;
  color: #0d1a14;
  border-color: #3cf2aa;
  box-shadow: 0 4px 18px rgba(60, 242, 170, 0.32);
}

/* Masonry / Responsive Grid */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 22px;
  grid-auto-flow: dense;
}

@keyframes galleryCardEntrance {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.gallery-item-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #211927;
  border: 1px solid rgba(255, 255, 255, 0.07);
  cursor: pointer;
  opacity: 1 !important;
  visibility: visible !important;
  animation: galleryCardEntrance 0.35s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease, box-shadow 0.35s ease;
}

.gallery-item-card:hover {
  transform: translateY(-6px);
  border-color: rgba(60, 242, 170, 0.45);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.6), 0 0 25px rgba(60, 242, 170, 0.15);
}

.gallery-img-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #150f1a;
}

.gallery-img-wrapper.portrait {
  aspect-ratio: 3 / 4;
}

.gallery-img-wrapper.landscape {
  aspect-ratio: 16 / 10;
}

.gallery-img-wrapper.square {
  aspect-ratio: 1 / 1;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-item-card:hover .gallery-card-img {
  transform: scale(1.06);
}

/* Card Hover Overlay */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  background: linear-gradient(180deg, transparent 40%, rgba(13, 8, 17, 0.95) 100%);
  opacity: 0.92;
  transition: opacity 0.3s ease, background 0.3s ease;
}

.gallery-item-card:hover .gallery-card-overlay {
  opacity: 1;
  background: linear-gradient(180deg, transparent 20%, rgba(13, 8, 17, 0.98) 95%);
}

.gallery-card-tag {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: 6px;
  background: rgba(60, 242, 170, 0.12);
  border: 1px solid rgba(60, 242, 170, 0.25);
  color: #3cf2aa;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.gallery-card-title {
  font-family: 'Exo 2', sans-serif;
  font-size: 1.05rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0 0 10px;
  line-height: 1.3;
}

.gallery-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.gallery-meta-model {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.74rem;
  color: #9e93a6;
}

.gallery-expand-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  transition: all 0.2s ease;
}

.gallery-item-card:hover .gallery-expand-btn {
  background: #3cf2aa;
  color: #0d1a14;
  transform: scale(1.1);
}

/* Empty State */
.gallery-empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #8b8096;
  font-family: 'Exo 2', sans-serif;
  font-size: 1.1rem;
}

/* ==========================================================================
   LIGHTBOX MODAL
   ========================================================================== */
.artwork-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
  background: rgba(8, 4, 12, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.artwork-lightbox-modal.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.lightbox-dialog {
  position: relative;
  display: flex;
  max-width: 1200px;
  width: 100%;
  max-height: 90vh;
  background: #1b1322;
  border: 1px solid rgba(60, 242, 170, 0.25);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.8), 0 0 50px rgba(60, 242, 170, 0.15);
  border-radius: 20px;
  overflow: hidden;
  animation: modalPopIn 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes modalPopIn {
  0% {
    transform: scale(0.92);
    opacity: 0;
  }

  100% {
    transform: scale(1);
    opacity: 1;
  }
}

/* Close button */
.lightbox-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Main Visual Side */
.lightbox-visual-side {
  flex: 1.25;
  background: #0d0812;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 30px;
  overflow: hidden;
}

.lightbox-main-img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 10px;
  transition: opacity 0.25s ease;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

/* Prev / Next Nav Buttons */
.lightbox-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(20, 14, 25, 0.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 5;
}

.lightbox-nav-btn:hover {
  background: #3cf2aa;
  color: #0d1a14;
  border-color: #3cf2aa;
  transform: translateY(-50%) scale(1.1);
}

.lightbox-prev-btn {
  left: 20px;
}

.lightbox-next-btn {
  right: 20px;
}

/* Info Side Panel */
.lightbox-info-side {
  flex: 0.95;
  padding: 44px 36px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(145deg, #1f1627 0%, #17101d 100%);
  border-left: 1px solid rgba(255, 255, 255, 0.08);
  overflow-y: auto;
}

.lightbox-header-stack {
  margin-bottom: 24px;
}

.lightbox-counter-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.lightbox-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 9999px;
  background: rgba(60, 242, 170, 0.12);
  border: 1px solid rgba(60, 242, 170, 0.3);
  color: #3cf2aa;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.lightbox-counter {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.76rem;
  color: #8c8096;
  font-weight: 600;
}

.lightbox-title {
  font-family: 'Glegoo', serif;
  font-size: 1.8rem;
  font-weight: 400;
  color: #ffffff;
  margin: 0 0 8px;
  line-height: 1.25;
}

.lightbox-model-pill {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.82rem;
  color: #b0a4bc;
}

/* Prompt Box */
.lightbox-prompt-box {
  margin: 20px 0 28px;
  padding: 18px;
  border-radius: 12px;
  background: rgba(12, 8, 16, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.lightbox-prompt-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: #7d7288;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.lightbox-prompt-text {
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  line-height: 1.6;
  color: #ded7e5;
  margin: 0;
  font-style: italic;
  max-height: 130px;
  overflow-y: auto;
}

/* Actions */
.lightbox-actions-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lightbox-copy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.lightbox-copy-btn:hover {
  background: rgba(60, 242, 170, 0.15);
  border-color: #3cf2aa;
  color: #3cf2aa;
}

.lightbox-copy-btn.copied {
  background: #3cf2aa;
  color: #0d1a14;
  border-color: #3cf2aa;
}

.lightbox-try-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 20px;
  border-radius: 10px;
  background: #3cf2aa;
  color: #0d1a14;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  text-decoration: none;
  letter-spacing: 0.04em;
  transition: all 0.25s ease;
  box-shadow: 0 4px 20px rgba(60, 242, 170, 0.3);
}

.lightbox-try-btn:hover {
  background: #2ee59d;
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(60, 242, 170, 0.45);
}

/* Responsive queries */
@media (max-width: 992px) {
  .lightbox-dialog {
    flex-direction: column;
    max-height: 85vh;
  }

  .lightbox-visual-side {
    max-height: 48vh;
    padding: 20px;
  }

  .lightbox-main-img {
    max-height: 44vh;
  }

  .lightbox-info-side {
    padding: 24px 20px;
  }
}

@media (max-width: 640px) {
  .community-gallery-section {
    padding: 70px 0 90px;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 14px;
  }

  .gallery-card-overlay {
    padding: 12px;
  }

  .gallery-card-title {
    font-size: 0.9rem;
  }

  .gallery-filter-btn {
    padding: 7px 14px;
    font-size: 0.78rem;
  }
}


/* ==========================================================================
   ASYMMETRICAL BENTO / MOSAIC COLLAGE
   ========================================================================== */

.showcase-bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
  grid-auto-flow: dense;
  margin-top: 32px;
}

.bento-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #19121e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px;
  animation: bentoCardIn 0.4s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.35s ease,
    box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes bentoCardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.bento-card:hover {
  transform: translateY(-6px);
  border-color: rgba(163, 255, 176, 0.5);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 30px rgba(163, 255, 176, 0.18);
  z-index: 2;
}

/* Span Presets (Desktop 12 columns) */
.bento-card.bento-span-8.bento-row-2 {
  grid-column: span 8;
  grid-row: span 2;
  min-height: 500px;
}

.bento-card.bento-span-4.bento-row-2 {
  grid-column: span 4;
  grid-row: span 2;
  min-height: 500px;
}

.bento-card.bento-span-4.bento-row-1 {
  grid-column: span 4;
  grid-row: span 1;
  min-height: 290px;
}

.bento-card.bento-span-6.bento-row-1 {
  grid-column: span 6;
  grid-row: span 1;
  min-height: 320px;
}

.bento-card.bento-span-8.bento-row-1 {
  grid-column: span 8;
  grid-row: span 1;
  min-height: 320px;
}

/* Background Media */
.bento-card-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
}

.bento-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s ease;
}

.bento-card:hover .bento-card-img {
  transform: scale(1.05);
}

/* Scrim Gradient Overlay */
.bento-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(14, 9, 18, 0.35) 0%,
      transparent 40%,
      rgba(14, 9, 18, 0.6) 70%,
      rgba(14, 9, 18, 0.95) 100%);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.bento-card:hover .bento-card-gradient {
  background: linear-gradient(to bottom,
      rgba(14, 9, 18, 0.25) 0%,
      transparent 35%,
      rgba(14, 9, 18, 0.55) 65%,
      rgba(14, 9, 18, 0.96) 100%);
}

/* Top Floating Badge */
.bento-top-badge {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 3;
}

.bento-tag-text {
  display: inline-flex;
  align-items: center;
  padding: 5px 12px;
  border-radius: 9999px;
  background: rgba(33, 25, 39, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #A3FFB0;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

/* Bottom Meta Information */
.bento-card-bottom {
  position: relative;
  z-index: 3;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
}

.bento-card-meta {
  min-width: 0;
  flex: 1;
}

.bento-card-title {
  font-family: 'Glegoo', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 6px;
  line-height: 1.25;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bento-card.bento-span-8.bento-row-2 .bento-card-title {
  font-size: 1.45rem;
}

.bento-model-pill {
  display: inline-block;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.75rem;
  font-weight: 600;
  color: #C6BED0;
  letter-spacing: 0.02em;
}

/* Expand Action Icon */
.bento-expand-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all 0.25s ease;
}

.bento-card:hover .bento-expand-icon {
  background: #A3FFB0;
  border-color: #A3FFB0;
  color: #0E0D14;
  transform: scale(1.12);
  box-shadow: 0 0 16px rgba(163, 255, 176, 0.45);
}

/* Load More / Expand Button Wrap */
.gallery-load-more-wrap {
  display: flex;
  justify-content: center;
  margin-top: 40px;
}

.btn-gallery-load-more {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1.5px solid rgba(163, 255, 176, 0.4);
  color: #A3FFB0;
  font-family: 'Exo 2', sans-serif;
  font-size: 0.88rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-gallery-load-more:hover {
  background: #A3FFB0;
  color: #0E0D14;
  box-shadow: 0 0 24px rgba(163, 255, 176, 0.35);
  transform: translateY(-2px);
}

.btn-gallery-load-more svg {
  transition: transform 0.25s ease;
}

.btn-gallery-load-more.expanded svg {
  transform: rotate(180deg);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .showcase-bento-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 14px;
  }

  .bento-card.bento-span-8.bento-row-2 {
    grid-column: span 6;
    grid-row: span 2;
    min-height: 420px;
  }

  .bento-card.bento-span-4.bento-row-2 {
    grid-column: span 6;
    grid-row: span 2;
    min-height: 420px;
  }

  .bento-card.bento-span-4.bento-row-1 {
    grid-column: span 3;
    grid-row: span 1;
    min-height: 250px;
  }

  .bento-card.bento-span-6.bento-row-1 {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 270px;
  }

  .bento-card.bento-span-8.bento-row-1 {
    grid-column: span 6;
    grid-row: span 1;
    min-height: 270px;
  }
}

@media (max-width: 640px) {
  .showcase-bento-grid {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 24px;
  }

  .bento-card.bento-span-8.bento-row-2,
  .bento-card.bento-span-4.bento-row-2,
  .bento-card.bento-span-4.bento-row-1,
  .bento-card.bento-span-6.bento-row-1,
  .bento-card.bento-span-8.bento-row-1 {
    grid-column: span 1 !important;
    grid-row: auto !important;
    min-height: 290px;
    padding: 16px;
  }

  .bento-card-title {
    font-size: 1.05rem !important;
  }
}


/* ==========================================================================
   HIGH-FIDELITY UNCROPPED ARTWORK COLLAGE (PURE ART, ZERO OVERLAYS)
   ========================================================================== */

.curated-collage-container {
  display: flex;
  gap: 22px;
  align-items: flex-start;
  width: 100%;
  max-width: 1360px;
  margin: 32px auto 0;
}

.collage-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.collage-column.col-center {
  flex: 1.38;
}

.collage-art-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #18111e;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  cursor: pointer;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
    border-color 0.3s ease,
    box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-art-card:hover {
  transform: translateY(-6px) scale(1.015);
  border-color: rgba(163, 255, 176, 0.5);
  box-shadow: 0 24px 55px rgba(0, 0, 0, 0.75), 0 0 32px rgba(163, 255, 176, 0.16);
  z-index: 2;
}

.collage-art-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-art-card:hover .collage-art-img {
  transform: scale(1.02);
}

/* Tablet Layout (<= 1024px) */
@media (max-width: 1024px) {
  .curated-collage-container {
    gap: 16px;
  }

  .collage-column {
    gap: 16px;
  }
}

/* Mobile Stack (<= 768px) */
@media (max-width: 768px) {
  .curated-collage-container {
    flex-direction: column;
    gap: 16px;
  }

  .collage-column,
  .collage-column.col-center {
    width: 100%;
    flex: none;
    gap: 16px;
  }
}


/* ==========================================================================
   COMPACT FLUSH-FIT MOSAIC COLLAGE (ZERO GAPS, HIGH-IMPACT, COMPACT HEIGHT)
   ========================================================================== */

.compact-mosaic-collage {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-template-rows: 245px 245px;
  gap: 16px;
  max-width: 1200px;
  width: 100%;
  margin: 10px auto 0;
  box-sizing: border-box;
}

.mosaic-tile {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  background: #18111e;
  border: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.5);
  cursor: default;
}

.mosaic-tile-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Explicit 12-column Flush Coordinates */
.tile-tall-left {
  grid-column: 1 / 4;
  /* Columns 1, 2, 3 */
  grid-row: 1 / 3;
  /* Rows 1, 2 (Total height: 506px) */
}

.tile-wide-center {
  grid-column: 4 / 10;
  /* Columns 4, 5, 6, 7, 8, 9 (Wide 6-col banner) */
  grid-row: 1 / 2;
  /* Row 1 (Height: 245px) */
}

.tile-tall-right {
  grid-column: 10 / 13;
  /* Columns 10, 11, 12 */
  grid-row: 1 / 3;
  /* Rows 1, 2 (Total height: 506px) */
}

.tile-sub-left {
  grid-column: 4 / 7;
  /* Columns 4, 5, 6 */
  grid-row: 2 / 3;
  /* Row 2 (Height: 245px) */
}

.tile-sub-right {
  grid-column: 7 / 10;
  /* Columns 7, 8, 9 */
  grid-row: 2 / 3;
  /* Row 2 (Height: 245px) */
}

/* Tablet Layout (<= 1024px) */
@media (max-width: 1024px) {
  .compact-mosaic-collage {
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: 220px 220px 220px;
    gap: 12px;
  }

  .tile-tall-left {
    grid-column: 1 / 4;
    grid-row: 1 / 3;
  }

  .tile-tall-right {
    grid-column: 4 / 7;
    grid-row: 1 / 3;
  }

  .tile-wide-center {
    grid-column: 1 / 7;
    grid-row: 3 / 4;
  }

  .tile-sub-left,
  .tile-sub-right {
    display: none;
  }
}

/* Mobile Stack (<= 640px) */
@media (max-width: 640px) {
  .compact-mosaic-collage {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mosaic-tile {
    width: 100%;
    height: 260px;
  }

  .tile-tall-left,
  .tile-tall-right {
    height: 340px;
  }
}