/* Prime Digital World - Premium 3D Circular Infinite Gallery */

:root {
  --pg-section-height: 580px;
  --pg-card-width: 230px;
  --pg-card-height: 330px;
  --pg-gold: #B8924E;
  --pg-carousel-radius: 750px;
}

.premium-gallery-section {
  background-color: var(--text-dark);
  padding: 50px 0;
  overflow: hidden;
  position: relative;
}

.premium-gallery-header {
  text-align: center;
  margin-bottom: 40px;
  color: white;
  padding: 0 20px;
}

.premium-gallery-header .section-label {
  margin-bottom: 12px;
  display: inline-block;
}

.premium-gallery-header h2 {
  font-family: var(--heading-font);
  font-size: clamp(1.8rem, 4vw, 3rem);
  text-transform: uppercase;
  letter-spacing: -0.5px;
  margin-bottom: 8px;
}

.premium-gallery-header p {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  max-width: 500px;
  margin: 0 auto;
  padding: 0 10px;
}

.premium-gallery-container {
  position: relative;
  width: 100%;
  height: var(--pg-section-height);
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1800px;
  overflow: hidden;
}

.premium-gallery-track {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
}

.premium-gallery-card {
  position: absolute;
  width: var(--pg-card-width);
  height: var(--pg-card-height);
  left: 50%;
  top: 50%;
  margin-left: calc(var(--pg-card-width) / -2);
  margin-top: calc(var(--pg-card-height) / -2);
  transform-origin: center center;
  border-radius: 16px;
  overflow: hidden;
  cursor: pointer;
  transition: opacity 0.2s ease;
  backface-visibility: hidden;
}

.premium-gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.premium-gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 40%);
  opacity: 0;
  transition: opacity 0.4s ease;
  display: flex;
  align-items: flex-end;
  padding: 24px;
}

.premium-gallery-card:hover .premium-gallery-card-overlay {
  opacity: 1;
}

.premium-gallery-card-info {
  color: white;
}

.premium-gallery-card-category {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--pg-gold);
  margin-bottom: 6px;
  font-weight: 600;
}

.premium-gallery-card-title {
  font-size: 1rem;
  font-weight: 600;
}

/* Responsive - Tablet (768px - 1199px) */
@media (max-width: 1199px) and (min-width: 768px) {
  :root {
    --pg-section-height: 520px;
    --pg-card-width: 200px;
    --pg-card-height: 285px;
    --pg-carousel-radius: 650px;
  }
  
  .premium-gallery-section {
    padding: 40px 0;
  }
  
  .premium-gallery-header {
    margin-bottom: 30px;
  }
}

/* Responsive - Large Mobile (576px - 767px) */
@media (max-width: 767px) and (min-width: 576px) {
  :root {
    --pg-section-height: 480px;
    --pg-card-width: 180px;
    --pg-card-height: 255px;
    --pg-carousel-radius: 580px;
  }
  
  .premium-gallery-section {
    padding: 35px 0;
  }
  
  .premium-gallery-header {
    margin-bottom: 25px;
    padding: 0 16px;
  }
  
  .premium-gallery-header h2 {
    font-size: clamp(1.5rem, 5vw, 2.2rem);
  }
  
  .premium-gallery-card-overlay {
    opacity: 1;
  }
}

/* Responsive - Small Mobile (320px - 575px) */
@media (max-width: 575px) {
  :root {
    --pg-section-height: auto;
  }
  
  .premium-gallery-section {
    padding: 30px 0;
  }
  
  .premium-gallery-header {
    margin-bottom: 24px;
    padding: 0 16px;
  }
  
  .premium-gallery-header h2 {
    font-size: clamp(1.4rem, 6vw, 1.8rem);
  }
  
  .premium-gallery-header p {
    font-size: 0.9rem;
    line-height: 1.5;
  }
  
  .premium-gallery-container {
    height: auto;
    min-height: 420px;
    padding: 20px 0;
    perspective: none;
  }
  
  .premium-gallery-track {
    padding: 0 16px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
    transform-style: flat;
  }
  
  .premium-gallery-card {
    position: relative;
    left: auto;
    top: auto;
    margin-left: 0;
    margin-top: 0;
    width: 100%;
    max-width: 100%;
    height: 240px;
    border-radius: 14px;
    transform: none;
  }
  
  .premium-gallery-card-overlay {
    padding: 16px;
    opacity: 1;
  }
  
  .premium-gallery-card-category {
    font-size: 0.65rem;
    letter-spacing: 1.5px;
  }
  
  .premium-gallery-card-title {
    font-size: 0.85rem;
  }
}

/* Extra Small Mobile (< 375px) */
@media (max-width: 374px) {
  .premium-gallery-track {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  
  .premium-gallery-card {
    height: 280px;
    max-width: 300px;
    margin: 0 auto;
  }
}
