/* ==========================================================================
   Ban Jungle - Gallery Album Bento Grid & Filter Pills
   Guaranteed responsive rules matching reference UI (9489d792-378c-4db2-aa0a-68d08751acce.png)
   ========================================================================== */

/* Filter Pills Container */
.bj-album-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  margin-bottom: 32px;
}

/* Individual Pill Button */
.bj-album-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  border: 1px solid transparent;
  outline: none;
  user-select: none;
}
.bj-album-pill-active {
  background-color: #0F2D23 !important;
  color: #FFFFFF !important;
  border-color: #0F2D23 !important;
  box-shadow: 0 2px 8px rgba(15, 45, 35, 0.18);
}
.bj-album-pill-inactive {
  background-color: #F5F2EB !important;
  color: #1F2937 !important;
  border-color: transparent !important;
}
.bj-album-pill-inactive:hover {
  background-color: #ECE7DE !important;
}

/* Bento Grid Container */
.bj-bento-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
}

/* Photo Card Base */
.bj-bento-card {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  cursor: pointer;
  background-color: #E7E5E4;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  height: 280px;
}
.bj-bento-card:hover {
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
}
.bj-bento-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.bj-bento-card:hover img {
  transform: scale(1.04);
}

/* Top-Right Expand Icon Button (Permanent, matching screenshot) */
.bj-bento-expand {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 10;
  width: 38px;
  height: 38px;
  border-radius: 9999px;
  background-color: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: all 0.3s ease;
  pointer-events: none;
}
.bj-bento-card:hover .bj-bento-expand {
  transform: scale(1.08);
  background-color: rgba(0, 0, 0, 0.6);
}
.bj-bento-expand svg {
  width: 17px;
  height: 17px;
  stroke: currentColor;
  stroke-width: 2.2;
}

/* Tablet Layout (640px - 1023px) */
@media (min-width: 640px) {
  .bj-bento-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .bj-bento-card {
    border-radius: 24px;
    height: 320px;
  }
  .bj-bento-item-hero-left {
    grid-column: span 2;
    height: 380px;
  }
}

/* Desktop Bento Layout (>= 1024px) */
@media (min-width: 1024px) {
  .bj-bento-grid {
    grid-template-columns: repeat(12, 1fr);
    gap: 20px;
  }
  .bj-bento-card {
    border-radius: 24px;
  }
  /* Row 1 Hero Pair: 7 cols (~60%) and 5 cols (~40%), matching screenshot */
  .bj-bento-item-hero-left {
    grid-column: span 7 !important;
    height: 410px !important;
  }
  .bj-bento-item-hero-right {
    grid-column: span 5 !important;
    height: 410px !important;
  }
  /* Row 2 Trio: 4 cols each (~33.3%), matching screenshot */
  .bj-bento-item-third {
    grid-column: span 4 !important;
    height: 345px !important;
  }
  /* Half width: 6 cols each */
  .bj-bento-item-half {
    grid-column: span 6 !important;
    height: 360px !important;
  }
  /* Single centered hero */
  .bj-bento-item-full {
    grid-column: span 12 !important;
    height: 440px !important;
    max-width: 960px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
}
