/* ==========================================
   GALLERY PAGE – LUX SHOWROOM (3 COL GRID)
   ========================================== */

.gallery-hero {
  padding: 80px 0 40px;
  background: #f8f8f8;
}

.gallery-kicker {
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: #777;
  margin-bottom: 10px;
}

.gallery-title {
  font-size: 34px;
  margin-bottom: 10px;
}

.gallery-subtitle {
  font-size: 14px;
  color: #666;
  max-width: 640px;
}

/* ===== FILTERS ===== */

.gallery-filters-section {
  padding: 20px 0 10px;
  background: #f8f8f8;
}

.gallery-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gallery-filter-btn {
  border-radius: 999px;
  border: 1px solid #ddd;
  background: #fff;
  padding: 8px 18px;
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-filter-btn:hover {
  box-shadow: 0 6px 16px rgba(0,0,0,0.1);
  transform: translateY(-1px);
}

.gallery-filter-btn.active {
  background: #000;
  color: #fff;
  border-color: #000;
}

/* ===== GRID (3-COLUMN LUX) ===== */

.gallery-grid-section {
  padding: 30px 0 50px;
  background: #ffffff;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Adjust responsiveness */
@media (max-width: 900px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 600px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

.gallery-item {
  cursor: pointer;
}

/* Square aspect ratio box */
.gallery-thumb {
  position: relative;
  width: 100%;
  padding-top: 100%; /* 1:1 square */
  border-radius: 16px;
  overflow: hidden;
  background: #f0f0f0;
  box-shadow: 0 8px 22px rgba(0,0,0,0.06);
  transform: translateZ(0);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  border: 1px solid #e5e5e5;
}

/* Placeholder look – like shop cards */
.gallery-thumb.placeholder {
  background: radial-gradient(circle at top, #f4f4f4 0%, #e7e7e7 50%, #dcdcdc 100%);
}

/* Hover – soft luxury pop */
.gallery-thumb::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top, rgba(255,255,255,0.32) 0%, transparent 60%);
  opacity: 0;
  transition: opacity 0.25s ease;
}

.gallery-item:hover .gallery-thumb {
  transform: scale(1.04) translateY(-2px);
  box-shadow: 0 14px 30px rgba(0,0,0,0.16);
  border-color: #ccc;
}

.gallery-item:hover .gallery-thumb::after {
  opacity: 1;
}

/* Small tag in corner so you know what type it is */
.gallery-tag {
  position: absolute;
  left: 12px;
  bottom: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(0,0,0,0.78);
  color: #fff;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

/* ===== CTA ===== */

.gallery-cta {
  padding: 40px 0 60px;
  background: #f8f8f8;
  text-align: center;
}

.gallery-cta h2 {
  font-size: 26px;
  margin-bottom: 8px;
}

.gallery-cta p {
  font-size: 14px;
  color: #555;
  margin-bottom: 18px;
}

.gallery-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 26px;
  border-radius: 999px;
  border: 1px solid #000;
  background: #000;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  text-decoration: none;
  transition: all 0.25s ease;
}

.gallery-cta-btn:hover {
  background: #fff;
  color: #000;
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  transform: translateY(-2px);
}

/* ===== LIGHTBOX / FOCUS VIEWER ===== */

.gallery-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.gallery-lightbox.open {
  display: flex;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.8);
}

.gallery-lightbox-inner {
  position: relative;
  max-width: 900px;
  width: 90%;
  max-height: 90vh;
  background: #050505;
  border-radius: 18px;
  border: 1px solid #333;
  box-shadow: 0 24px 60px rgba(0,0,0,0.9);
  padding: 16px 18px 18px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  z-index: 1;
}

.gallery-lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 26px;
  cursor: pointer;
}

/* Placeholder big block for now */
.gallery-lightbox-media {
  border-radius: 14px;
  overflow: hidden;
  background: radial-gradient(circle at top, #202020 0%, #101010 60%, #050505 100%);
  position: relative;
  min-height: 260px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-placeholder-label {
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #d5d5d5;
}

/* Caption */
.gallery-lightbox-caption {
  font-size: 13px;
  color: #f5f5f5;
}

/* Arrows */
.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: rgba(0,0,0,0.6);
  color: #fff;
  width: 32px;
  height: 48px;
  cursor: pointer;
  font-size: 20px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-prev {
  left: 8px;
}

.gallery-lightbox-next {
  right: 8px;
}

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: rgba(255,255,255,0.12);
}

.gallery-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-thumb video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
}

