/* ════════════════════════════════════════════════════════
   SVP CATERING — Specific Styles for gallery.html
   Modern, Ultra-Premium Masonry Grid & Hover Effects
   ════════════════════════════════════════════════════════ */

.gallery {
  padding: var(--space-xl) var(--gutter);
  max-width: 1400px;
  margin: 0 auto;
}

.gallery__header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto var(--space-lg);
}

.gallery__heading {
  font-family: var(--ff-heading);
  font-size: var(--fs-h1);
  color: var(--c-gold);
  font-weight: var(--fw-bold);
  margin-bottom: 10px;
}

.gallery__subheading {
  font-size: 1.1rem;
  color: var(--c-text-muted);
  font-weight: var(--fw-light);
}

/* Upgraded Bento Grid (Fully Arranged, No Gaps) */
.gallery__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  gap: 24px;
  grid-auto-flow: dense;
  width: 100%;
}

.gallery__item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--c-border);
  background: var(--c-bg-card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all var(--dur-normal) var(--ease-out-expo);
  cursor: pointer;
}

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.8s var(--ease-out-expo);
}

/* Bento Grid Spans */
.gallery__item--wide {
  grid-column: span 2;
}

.gallery__item--tall {
  grid-row: span 2;
}

.gallery__item--large {
  grid-column: span 2;
  grid-row: span 2;
}

/* Elegant Luxury Inner Gold Border */
.gallery__item::after {
  content: '';
  position: absolute;
  inset: 15px;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: var(--radius-md);
  opacity: 0;
  transform: scale(0.95);
  transition: all var(--dur-normal) var(--ease-out-expo);
  z-index: 11;
  pointer-events: none;
}

.gallery__overlay {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle, rgba(212, 175, 55, 0.15) 0%, rgba(10, 10, 10, 0.85) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.5s var(--ease-out-quad);
  z-index: 10;
}

.gallery__overlay svg {
  width: 44px;
  height: 44px;
  color: var(--c-gold);
  transform: scale(0.6);
  transition: transform 0.5s var(--ease-out-expo);
}

/* Hover Interactivity */
.gallery__item:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px var(--c-gold-glow);
  border-color: var(--c-gold);
}

.gallery__item:hover img {
  transform: scale(1.06);
}

.gallery__item:hover::after {
  opacity: 1;
  transform: scale(1);
}

.gallery__item:hover .gallery__overlay {
  opacity: 1;
}

.gallery__item:hover .gallery__overlay svg {
  transform: scale(1);
}

/* Responsive viewports adjustments */
@media (max-width: 1200px) {
  .gallery__grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 220px;
    gap: 20px;
  }
}

@media (max-width: 768px) {
  .gallery__grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 200px;
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .gallery__grid {
    grid-template-columns: 1fr;
    grid-auto-rows: auto;
    gap: 16px;
  }
  .gallery__item {
    aspect-ratio: 4 / 3;
    grid-column: span 1 !important;
    grid-row: span 1 !important;
  }
}

/* ─── Gallery Sections Styling ─── */
.gallery__section {
  margin-bottom: var(--space-xl);
}

.gallery__section:last-of-type {
  margin-bottom: 0;
}

.gallery__section-header {
  text-align: center;
  max-width: 800px;
  margin: 0 auto var(--space-lg);
}

.gallery__section-badge {
  font-family: var(--ff-body);
  font-size: var(--fs-label);
  text-transform: uppercase;
  color: var(--c-gold);
  letter-spacing: 0.15em;
  font-weight: var(--fw-semibold);
  display: block;
  margin-bottom: var(--space-xs);
}

.gallery__section-title {
  font-family: var(--ff-heading);
  font-size: var(--fs-h2);
  color: var(--c-text);
  font-weight: var(--fw-bold);
  margin-bottom: var(--space-xs);
}

.gallery__section-sub {
  font-size: 1.05rem;
  color: var(--c-text-muted);
  font-weight: var(--fw-light);
}

/* ─── Video Grid and Cards ─── */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  width: 100%;
}

.video-card {
  background: var(--c-bg-card);
  border: 1px solid var(--c-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.02);
  transition: all var(--dur-normal) var(--ease-out-expo);
  display: flex;
  flex-direction: column;
}

.video-card__player-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #000;
  overflow: hidden;
}

.video-card__player {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.video-card__info {
  padding: var(--space-md);
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border-top: 1px solid rgba(212, 175, 55, 0.15);
}

.video-card__title {
  font-family: var(--ff-heading);
  font-size: 1.25rem;
  font-weight: var(--fw-bold);
  color: var(--c-gold);
  margin-bottom: 6px;
}

.video-card__desc {
  font-size: 0.95rem;
  color: var(--c-text-muted);
  line-height: 1.6;
}

/* Video Card Hover Effects */
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 45px var(--c-gold-glow);
  border-color: var(--c-gold);
}

/* Responsive adjustments for Video Grid */
@media (max-width: 992px) {
  .videos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
}

@media (max-width: 650px) {
  .videos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}

/* --- MOBILE OPTIMIZATION OVERRIDES --- */
@media (max-width: 768px) {
  .videos-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 1.5rem !important;
  }
}

/* ─── Premium Lightbox Slideshow Extensions ─── */
.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10010;
  transition: all var(--dur-fast) ease;
}

.lightbox__nav:hover {
  background: var(--c-gold);
  color: var(--c-bg);
  transform: translateY(-50%) scale(1.1);
}

.lightbox__nav--prev {
  left: 2rem;
}

.lightbox__nav--next {
  right: 2rem;
}

.lightbox__content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  max-width: 80%;
  position: relative;
}

.lightbox__image {
  max-width: 100%;
  max-height: 75vh;
  border-radius: var(--radius-md);
  object-fit: contain;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(212, 175, 55, 0.3);
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.lightbox__caption {
  margin-top: 15px;
  color: #ffffff;
  font-family: var(--ff-heading);
  font-size: 1.2rem;
  letter-spacing: 0.03em;
  text-align: center;
  background: rgba(0, 0, 0, 0.65);
  padding: 0.5rem 1.5rem;
  border-radius: 100px;
  border: 1px solid rgba(212, 175, 55, 0.25);
  backdrop-filter: blur(5px);
}

@media (max-width: 768px) {
  .lightbox__nav {
    width: 40px;
    height: 40px;
  }
  .lightbox__nav--prev {
    left: 1rem;
  }
  .lightbox__nav--next {
    right: 1rem;
  }
  .lightbox__content {
    max-width: 95%;
  }
  .lightbox__caption {
    font-size: 1rem;
    padding: 0.4rem 1rem;
  }
}
