/* ==========================================================================
   NAGPAL'S EVENTS — GALLERY PAGE STYLES (DITTO REFERENCE IMPLEMENTATION)
   ========================================================================== */

/* --- Top Gallery Hero Section --- */
.gallery-hero-section {
  position: relative;
  background-color: #0A0A0C;
  background-image: url('../images/gallery-ditto/hero-clean-bg-hd.jpg');
  background-position: right center;
  background-size: cover;
  background-repeat: no-repeat;
  color: #FFFFFF;
  padding: 124px 0 32px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.gallery-hero-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 10, 12, 0.98) 0%, rgba(10, 10, 12, 0.92) 35%, rgba(10, 10, 12, 0.4) 65%, rgba(10, 10, 12, 0.15) 100%);
  pointer-events: none;
}

.gallery-hero-container {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

/* Hero Left Editorial Content */
.gallery-hero-left {
  max-width: 580px;
}

.gallery-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold, #c5a880);
  margin-bottom: 10px;
}

.gallery-hero-tag .tag-line {
  display: inline-block;
  width: 22px;
  height: 1.5px;
  background: var(--gold, #c5a880);
}

.gallery-hero-title-group {
  display: flex;
  align-items: stretch;
  gap: 14px;
  margin-bottom: 12px;
}

.gallery-hero-vertical-bar {
  width: 3px;
  background: var(--gold, #c5a880);
  border-radius: 2px;
  flex-shrink: 0;
}

.gallery-hero-title {
  font-family: 'Cinzel', 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(30px, 3.4vw, 44px);
  line-height: 1.08;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.gallery-hero-title .title-white {
  display: block;
  color: #FFFFFF;
}

.gallery-hero-title .title-gold {
  display: block;
  color: var(--gold, #c5a880);
  font-style: normal;
}

.gallery-hero-desc {
  font-size: 13.5px;
  line-height: 1.55;
  color: #9E9EA5;
  margin: 0;
  font-family: inherit;
  max-width: 460px;
}

/* Hero Right Stats (Clean, seamless directly on hero background like reference image) */
.gallery-hero-stats {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-shrink: 0;
  background: transparent;
  padding: 0;
  border-radius: 0;
  border: none;
  backdrop-filter: none;
  margin-bottom: 6px;
}

.gallery-stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.gallery-stat-icon-wrap {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold, #c5a880);
}

.gallery-stat-icon-wrap svg {
  width: 28px;
  height: 28px;
  stroke: var(--gold, #c5a880);
}

.gallery-stat-info {
  display: flex;
  flex-direction: column;
}

.gallery-stat-num {
  font-size: 20px;
  font-weight: 700;
  line-height: 1.15;
  color: #FFFFFF;
  letter-spacing: -0.01em;
}

.gallery-stat-label {
  font-size: 12px;
  color: #9A9EA6;
  font-weight: 400;
  text-transform: capitalize;
}

.gallery-stat-divider {
  width: 1px;
  height: 34px;
  background: rgba(255, 255, 255, 0.16);
}

/* --- Filter & Search Control Bar --- */
.gallery-filter-bar {
  background: #FDFDFD;
  border-bottom: 1px solid #ECECEC;
  padding: 16px 0;
  position: sticky;
  top: 72px;
  z-index: 50;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.02);
}

.gallery-filter-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gallery-filter-left {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Filter Pills */
.gallery-pill {
  height: 36px;
  border-radius: 9999px;
  padding: 0 16px;
  font-size: 12.5px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid #DCDCDC;
  background: #FFFFFF;
  color: #2E2E32;
  cursor: pointer;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.gallery-pill svg {
  width: 15px;
  height: 15px;
  stroke: currentColor;
  stroke-width: 1.8;
  flex-shrink: 0;
}

.gallery-pill:hover {
  border-color: #BDBDBD;
  background: #F7F7F7;
}

.gallery-pill.active {
  background: var(--gold, #c5a880);
  border-color: var(--gold, #c5a880);
  color: #121214;
  font-weight: 600;
  box-shadow: 0 3px 10px rgba(197, 168, 128, 0.3);
}

.gallery-pill.active svg {
  stroke: #121214;
}

/* Custom Dropdown Pills */
.gallery-select-wrap {
  position: relative;
  display: inline-block;
}

.gallery-select {
  height: 36px;
  border-radius: 9999px;
  padding: 0 32px 0 14px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid #DCDCDC;
  background: #FFFFFF;
  color: #2E2E32;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.gallery-select:hover {
  border-color: #BDBDBD;
}

.gallery-select:focus {
  border-color: var(--gold, #c5a880);
  box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.25);
}

.gallery-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  width: 13px;
  height: 13px;
  stroke: #6B6D74;
}

/* Filter Search Input (Right Side) */
.gallery-search-wrap {
  position: relative;
  width: 220px;
}

.gallery-search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 15px;
  height: 15px;
  stroke: #8E9098;
  pointer-events: none;
}

.gallery-search-input {
  width: 100%;
  height: 36px;
  border-radius: 9999px;
  padding: 0 14px 0 36px;
  border: 1px solid #DCDCDC;
  background: #FFFFFF;
  font-size: 12.5px;
  color: #1A1A1E;
  outline: none;
  transition: all 0.2s ease;
}

.gallery-search-input::placeholder {
  color: #92949D;
}

.gallery-search-input:focus {
  border-color: var(--gold, #c5a880);
  box-shadow: 0 0 0 2px rgba(197, 168, 128, 0.25);
}

/* Clear Search Button */
.gallery-search-clear {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #8E9098;
  font-size: 14px;
  cursor: pointer;
  display: none;
  padding: 0;
  line-height: 1;
}

/* --- Main Gallery Cards Section --- */
.gallery-main-section {
  background: #F8F8F8;
  padding: 16px 0 60px;
  min-height: 500px;
}

.gallery-container-fluid {
  max-width: 1380px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Justified Gallery Rows Layout */
.gallery-justified-wrap {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.gallery-row {
  display: flex;
  gap: 8px;
  width: 100%;
}

/* Gallery Card */
.gallery-card {
  position: relative;
  flex: var(--card-ratio, 1.5) 1 0;
  height: 142px;
  border-radius: 9px;
  overflow: hidden;
  background: #121215;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover {
  transform: translateY(-3px) scale(1.015);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22), 0 0 0 1.5px rgba(197, 168, 128, 0.6);
  z-index: 5;
}

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

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

/* Gradient Vignette Overlay */
.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 35%, rgba(0, 0, 0, 0.4) 65%, rgba(0, 0, 0, 0.9) 100%);
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-card:hover .gallery-card-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 25%, rgba(0, 0, 0, 0.45) 60%, rgba(0, 0, 0, 0.94) 100%);
}

/* Circular Center Play Button for Video Cards */
.gallery-card-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.45);
  border: 1.6px solid rgba(255, 255, 255, 0.92);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}

.gallery-card-play-btn svg {
  width: 14px;
  height: 14px;
  fill: #FFFFFF;
  margin-left: 2px;
  transition: transform 0.2s ease;
}

.gallery-card:hover .gallery-card-play-btn {
  background: rgba(197, 168, 128, 0.9);
  border-color: var(--gold, #c5a880);
  transform: translate(-50%, -50%) scale(1.15);
  box-shadow: 0 6px 18px rgba(197, 168, 128, 0.4);
}

/* Card Bottom Metadata */
.gallery-card-meta {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  gap: 4px;
  color: #FFFFFF;
  font-size: 10.5px;
  font-weight: 500;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.95);
  z-index: 2;
  pointer-events: none;
}

.gallery-card[data-type="video"] .gallery-card-meta {
  right: 46px;
}

.gallery-card-meta-icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
  stroke: #FFFFFF;
  stroke-width: 1.8;
}

.gallery-card-title {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.01em;
}

/* Card Video Duration Badge */
.gallery-card-duration {
  position: absolute;
  bottom: 8px;
  right: 9px;
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.5px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  z-index: 2;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
}

/* --- "LOAD MORE MEDIA →" Button Section --- */
.gallery-load-more-wrap {
  text-align: center;
  margin-top: 32px;
}

.btn-load-more-media {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  background: transparent;
  color: var(--gold-dark, #a88960);
  border: 1.5px solid var(--gold, #c5a880);
  padding: 11px 32px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(197, 168, 128, 0.1);
}

.btn-load-more-media .arrow {
  transition: transform 0.25s ease;
  font-size: 13px;
}

.btn-load-more-media:hover {
  background: var(--gold, #c5a880);
  color: #121214;
  box-shadow: 0 6px 20px rgba(197, 168, 128, 0.35);
  transform: translateY(-1px);
}

.btn-load-more-media:hover .arrow {
  transform: translateX(4px);
}

.btn-load-more-media.disabled {
  opacity: 0.6;
  cursor: default;
  pointer-events: none;
  border-color: #BDBDBD;
  color: #7A7A7A;
}

/* Zero Results Message */
.gallery-empty-state {
  text-align: center;
  padding: 60px 20px;
  display: none;
}

.gallery-empty-icon {
  width: 52px;
  height: 52px;
  stroke: #BDBDBD;
  margin: 0 auto 16px;
}

.gallery-empty-title {
  font-size: 18px;
  font-weight: 600;
  color: #2A2A2E;
  margin-bottom: 8px;
}

.gallery-empty-desc {
  font-size: 13.5px;
  color: #72747D;
  margin-bottom: 20px;
}

.gallery-reset-btn {
  background: var(--gold, #c5a880);
  color: #121214;
  border: none;
  padding: 9px 22px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

/* --- Dedicated Lightbox Modal for Photos --- */
.gallery-lightbox-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 8, 10, 0.94);
  backdrop-filter: blur(14px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 24px;
}

.gallery-lightbox-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-modal {
  position: relative;
  max-width: 90vw;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-img-wrap {
  position: relative;
  max-width: 100%;
  max-height: 75vh;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.6);
}

.gallery-lightbox-img {
  max-width: 100%;
  max-height: 75vh;
  object-fit: contain;
  display: block;
}

.gallery-lightbox-info {
  margin-top: 14px;
  text-align: center;
  color: #FFFFFF;
}

.gallery-lightbox-title {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin-bottom: 4px;
}

.gallery-lightbox-meta {
  font-size: 12px;
  color: #A0A0A8;
}

.gallery-lightbox-meta span {
  color: var(--gold, #c5a880);
  font-weight: 500;
}

/* Lightbox Controls */
.gallery-lightbox-close {
  position: absolute;
  top: -42px;
  right: 0;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
}

.gallery-lightbox-close:hover {
  background: var(--gold, #c5a880);
  border-color: var(--gold, #c5a880);
  color: #121214;
  transform: rotate(90deg);
}

.gallery-lightbox-prev,
.gallery-lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(20, 20, 24, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

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

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

.gallery-lightbox-prev:hover,
.gallery-lightbox-next:hover {
  background: var(--gold, #c5a880);
  border-color: var(--gold, #c5a880);
  color: #121214;
  transform: translateY(-50%) scale(1.1);
}

/* Responsive Breakpoints */
@media (max-width: 1024px) {
  .gallery-hero-container {
    flex-direction: column;
    align-items: flex-start;
    gap: 24px;
  }

  .gallery-hero-stats {
    width: 100%;
    justify-content: space-around;
  }

  .gallery-filter-inner {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .gallery-search-wrap {
    width: 100%;
  }

  .gallery-row {
    flex-wrap: wrap !important;
    gap: 10px !important;
  }

  .gallery-card {
    height: 160px !important;
    flex: 1 1 calc(33.333% - 8px) !important;
    min-width: calc(33.333% - 8px) !important;
  }
}

@media (max-width: 768px) {
  .gallery-hero-section {
    padding: 100px 0 28px;
  }

  .gallery-hero-title {
    font-size: clamp(26px, 6vw, 34px);
  }

  .gallery-hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 8px !important;
    width: 100% !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
    padding: 12px 10px !important;
    backdrop-filter: blur(8px) !important;
    margin-bottom: 0 !important;
  }

  .gallery-stat-item {
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 4px !important;
  }

  .gallery-stat-divider {
    display: none !important;
  }

  .gallery-filter-bar {
    top: 64px;
    padding: 12px 0;
  }

  .gallery-filter-left {
    display: flex !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    scrollbar-width: none !important;
    gap: 8px !important;
    padding-bottom: 4px !important;
    width: 100% !important;
  }

  .gallery-filter-left::-webkit-scrollbar {
    display: none !important;
  }

  .gallery-pill,
  .gallery-select-wrap {
    flex-shrink: 0 !important;
  }

  .gallery-justified-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px !important;
  }

  .gallery-row {
    display: contents !important;
  }

  .gallery-card {
    height: 150px !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
  }
}

@media (max-width: 480px) {
  .gallery-hero-section {
    padding: 88px 0 20px !important;
  }

  .gallery-hero-title {
    font-size: 26px !important;
  }

  .gallery-hero-desc {
    font-size: 12.5px !important;
    line-height: 1.5 !important;
  }

  .gallery-hero-stats {
    padding: 10px 6px !important;
    border-radius: 10px !important;
    gap: 4px !important;
  }

  .gallery-stat-icon-wrap {
    width: 24px !important;
    height: 24px !important;
  }

  .gallery-stat-icon-wrap svg {
    width: 18px !important;
    height: 18px !important;
  }

  .gallery-stat-num {
    font-size: 14.5px !important;
  }

  .gallery-stat-label {
    font-size: 9.5px !important;
  }

  .gallery-container-fluid {
    padding: 0 10px !important;
  }

  .gallery-main-section {
    padding: 10px 0 44px !important;
  }

  .gallery-justified-wrap {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 7px !important;
  }

  .gallery-row {
    display: contents !important;
  }

  .gallery-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    height: 135px !important;
    border-radius: 8px !important;
  }

  .gallery-card-play-btn {
    width: 32px !important;
    height: 32px !important;
  }

  .gallery-card-play-btn svg {
    width: 12px !important;
    height: 12px !important;
    margin-left: 2px !important;
  }

  .gallery-card-meta {
    bottom: 6px !important;
    left: 6px !important;
    right: 38px !important;
    font-size: 9.5px !important;
    gap: 3px !important;
  }

  .gallery-card-meta-icon {
    width: 11px !important;
    height: 11px !important;
  }

  .gallery-card-title {
    font-size: 9.5px !important;
  }

  .gallery-card-duration {
    bottom: 6px !important;
    right: 6px !important;
    font-size: 8.5px !important;
    padding: 1px 4px !important;
    background: rgba(0, 0, 0, 0.6) !important;
    border-radius: 3px !important;
    backdrop-filter: blur(2px) !important;
  }

  .gallery-filter-bar {
    top: 60px !important;
    padding: 8px 0 !important;
  }

  .gallery-pill {
    height: 32px !important;
    padding: 0 12px !important;
    font-size: 11.5px !important;
  }

  .gallery-select {
    height: 32px !important;
    padding: 0 24px 0 10px !important;
    font-size: 11.5px !important;
  }

  .gallery-search-input {
    height: 34px !important;
    font-size: 12px !important;
  }

  .gallery-lightbox-modal {
    width: 95vw !important;
    max-height: 85vh !important;
  }

  .gallery-lightbox-prev {
    left: 8px !important;
  }

  .gallery-lightbox-next {
    right: 8px !important;
  }

  .gallery-lightbox-prev,
  .gallery-lightbox-next {
    width: 36px !important;
    height: 36px !important;
    font-size: 20px !important;
  }

  .btn-load-more-media {
    padding: 9px 24px !important;
    font-size: 10.5px !important;
    width: 100% !important;
    max-width: 260px !important;
    justify-content: center !important;
  }
}

