/* ======================
   INSPIRATION GALLERY - NEWS DESIGN STYLE
   ====================== */

/* Gallery Header */
.inspo-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
}

.inspo-header h2 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: #000;
  margin: 0 0 1rem;
  letter-spacing: 0.5px;
}

.inspo-header p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

/* Masonry Gallery Layout */
.inspo-gallery.masonry {
  column-count: 3;
  column-gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
}

.media {
  break-inside: avoid;
  margin-bottom: 1.5rem;
  border-radius: 8px;
  overflow: hidden;
  border: 1.5px solid #e5e5e5;
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
}

.media:hover {
  transform: translateY(-4px);
  border-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.media img,
.media video {
  width: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.media:hover img,
.media:hover video {
  transform: scale(1.05);
}

/* Video Play Indicator */
.media video {
  position: relative;
}

.media.has-video::before {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.9);
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  z-index: 2;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media.has-video:hover::before {
  opacity: 0.7;
}

/* Lightbox Overlay */
#lightbox {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.92);
  z-index: 9999;
  cursor: pointer;
  justify-content: center;
  align-items: center;
  padding: 2rem;
}

#lightbox.active {
  display: flex;
}

#lightbox img,
#lightbox video {
  max-width: 90%;
  max-height: 90vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

#lightbox video {
  max-width: 80%;
}

/* Close Button for Lightbox */
#lightbox::after {
  content: '✕';
  position: absolute;
  top: 2rem;
  right: 2rem;
  font-size: 2.5rem;
  color: #fff;
  cursor: pointer;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  transition: all 0.3s ease;
}

#lightbox:hover::after {
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(90deg);
}

/* Gallery CTA Section */
.gallery-cta {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fafafa;
  margin-top: 2rem;
}

.gallery-cta h3 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #000;
  margin: 0 0 1rem;
  letter-spacing: 0.3px;
}

.gallery-cta p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.gallery-cta-button {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background-color: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.gallery-cta-button:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Animation on Load */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.media {
  animation: fadeInUp 0.5s ease forwards;
  opacity: 0;
}

.media:nth-child(1) { animation-delay: 0.05s; }
.media:nth-child(2) { animation-delay: 0.1s; }
.media:nth-child(3) { animation-delay: 0.15s; }
.media:nth-child(4) { animation-delay: 0.2s; }
.media:nth-child(5) { animation-delay: 0.25s; }
.media:nth-child(6) { animation-delay: 0.3s; }
.media:nth-child(n+7) { animation-delay: 0.35s; }

@media (prefers-reduced-motion: reduce) {
  .media {
    animation: none;
    opacity: 1;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .inspo-header {
    padding: 3rem 1.5rem 2rem;
  }

  .inspo-header h2 {
    font-size: 2rem;
  }

  .inspo-header p {
    font-size: 1rem;
  }

  .inspo-gallery.masonry {
    column-count: 2;
    column-gap: 1.2rem;
    padding: 1.5rem;
  }

  .media {
    margin-bottom: 1.2rem;
  }

  .gallery-cta {
    padding: 3rem 1.5rem;
  }

  .gallery-cta h3 {
    font-size: 1.5rem;
  }

  .gallery-cta p {
    font-size: 1rem;
  }

  #lightbox::after {
    top: 1rem;
    right: 1rem;
    font-size: 2rem;
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 600px) {
  .inspo-gallery.masonry {
    column-count: 1;
    padding: 1rem;
  }

  .media {
    margin-bottom: 1rem;
  }

  .media.has-video::before {
    font-size: 2rem;
  }

  #lightbox {
    padding: 1rem;
  }

  #lightbox img,
  #lightbox video {
    max-width: 95%;
    max-height: 85vh;
  }
}

/* ======================
   STUDIO GALLERY (Grid Style)
   ====================== */

.studio-gallery-header {
  text-align: center;
  padding: 4rem 2rem 3rem;
  max-width: 800px;
  margin: 0 auto;
  background-color: #fff;
}

.studio-gallery-header h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 300;
  color: #000;
  margin: 0 0 1rem;
  letter-spacing: 0.5px;
}

.studio-gallery-header p {
  font-size: 1.1rem;
  color: #555;
  line-height: 1.6;
  font-weight: 300;
  margin: 0;
}

.studio-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1400px;
  margin: 0 auto;
  background-color: #fff;
}

.studio-gallery-grid .media {
  border: 1.5px solid #e5e5e5;
  border-radius: 8px;
  overflow: hidden;
  transition: all 0.3s ease;
  cursor: pointer;
}

.studio-gallery-grid .media:hover {
  transform: translateY(-4px);
  border-color: #000;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.studio-gallery-grid img {
  width: 100%;
  height: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}

.studio-gallery-grid .media:hover img {
  transform: scale(1.05);
}

.studio-gallery-cta {
  text-align: center;
  padding: 4rem 2rem;
  background-color: #fafafa;
}

.studio-gallery-cta h2 {
  font-size: 1.8rem;
  font-weight: 400;
  color: #000;
  margin: 0 0 1rem;
  letter-spacing: 0.3px;
}

.studio-gallery-cta p {
  font-size: 1.05rem;
  color: #555;
  line-height: 1.7;
  font-weight: 300;
  margin: 0 0 2rem;
}

.btn-primary {
  display: inline-block;
  padding: 0.9rem 2.5rem;
  background-color: #000;
  color: #fff;
  border: 2px solid #000;
  border-radius: 50px;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  letter-spacing: 0.5px;
  transition: all 0.25s ease;
}

.btn-primary:hover {
  background-color: #fff;
  color: #000;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 900px) {
  .studio-gallery-header {
    padding: 3rem 1.5rem 2rem;
  }

  .studio-gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.2rem;
    padding: 1.5rem;
  }

  .studio-gallery-cta {
    padding: 3rem 1.5rem;
  }

  .studio-gallery-cta h2 {
    font-size: 1.5rem;
  }
}

@media (max-width: 600px) {
  .studio-gallery-grid {
    grid-template-columns: 1fr;
    padding: 1rem;
  }
}