/* Social Media Carousel Styles */
.social-carousel-section {
  position: relative;
  padding: 4rem 0 6rem 0;
  background: linear-gradient(135deg, #1a1a1a 0%, #111111 50%, #1a1a1a 100%);
  overflow: hidden;
  margin: 0;
  border: none;
}

.social-container {
  position: relative;
  z-index: 2;
  max-width: 100%;
  width: 100%;
  margin: 0 auto;
  padding: 0;
}

.section-header {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title {
  font-family: 'Cormorant', serif;
  font-size: clamp(2.2rem, 4vw, 3.5rem);
  color: #1a1a1a;
  margin-bottom: 0.8rem;
  letter-spacing: 0.05em;
  text-transform: none;
  font-weight: 600;
  background: linear-gradient(135deg, #1a1a1a 0%, #2d3436 50%, #1a1a1a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
  font-family: 'Julius Sans One', sans-serif;
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: #f9dfb2;
  margin-top: 0;
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f9dfb2 0%, #d4b78e 50%, #f9dfb2 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-shadow: 0 1px 2px rgba(249, 223, 178, 0.3);
}

.carousel-wrapper {
  position: relative;
  width: 100%;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 0;
  box-shadow: none;
}

.carousel-track {
  display: flex;
  transition: transform 0.5s ease-in-out;
  gap: 1.5rem;
  padding: 0;
  justify-content: center;
}

/* For 1-5 posts, use fit-content width to avoid empty space */
.carousel-wrapper[data-post-count="1"],
.carousel-wrapper[data-post-count="2"],
.carousel-wrapper[data-post-count="3"],
.carousel-wrapper[data-post-count="4"],
.carousel-wrapper[data-post-count="5"] {
  width: fit-content;
}

.carousel-item {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1/1;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Fixed sizing for all posts - same size regardless of count */
.carousel-item {
  flex: 0 0 320px;
  min-width: 320px;
  max-width: 320px;
}

/* 7+ posts - enable scrolling with fixed sizing */
.carousel-track[data-post-count="7"] .carousel-item,
.carousel-track[data-post-count="8"] .carousel-item,
.carousel-track[data-post-count="9"] .carousel-item,
.carousel-track[data-post-count="10"] .carousel-item {
  flex: 0 0 calc(25% - 0.75rem);
  min-width: calc(25% - 0.75rem);
}

.carousel-item:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  z-index: 5;
}

.carousel-item img,
.carousel-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.carousel-item:hover img,
.carousel-item:hover video {
  transform: scale(1.05);
}

.carousel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  transition: opacity 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-item:hover .carousel-overlay {
  opacity: 1;
}

.instagram-icon {
  width: 50px;
  height: 50px;
  background-image: url('data:image/svg+xml;charset=utf-8,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"%3E%3Cpath fill="%23ffffff" d="M224.1 141c-63.6 0-114.9 51.3-114.9 114.9s51.3 114.9 114.9 114.9S339 319.5 339 255.9 287.7 141 224.1 141zm0 189.6c-41.1 0-74.7-33.5-74.7-74.7s33.5-74.7 74.7-74.7 74.7 33.5 74.7 74.7-33.6 74.7-74.7 74.7zm146.4-194.3c0 14.9-12 26.8-26.8 26.8-14.9 0-26.8-12-26.8-26.8s12-26.8 26.8-26.8 26.8 12 26.8 26.8zm76.1 27.2c-1.7-35.9-9.9-67.7-36.2-93.9-26.2-26.2-58-34.4-93.9-36.2-37-2.1-147.9-2.1-184.9 0-35.8 1.7-67.6 9.9-93.9 36.1s-34.4 58-36.2 93.9c-2.1 37-2.1 147.9 0 184.9 1.7 35.9 9.9 67.7 36.2 93.9s58 34.4 93.9 36.2c37 2.1 147.9 2.1 184.9 0 35.9-1.7 67.7-9.9 93.9-36.2 26.2-26.2 34.4-58 36.2-93.9 2.1-37 2.1-147.8 0-184.8zM398.8 388c-7.8 19.6-22.9 34.7-42.6 42.6-29.5 11.7-99.5 9-132.1 9s-102.7 2.6-132.1-9c-19.6-7.8-34.7-22.9-42.6-42.6-11.7-29.5-9-99.5-9-132.1s-2.6-102.7 9-132.1c7.8-19.6 22.9-34.7 42.6-42.6 29.5-11.7 99.5-9 132.1-9s102.7-2.6 132.1 9c19.6 7.8 34.7 22.9 42.6 42.6 11.7 29.5 9 99.5 9 132.1s2.7 102.7-9 132.1z"/%3E%3C/svg%3E');
  background-size: contain;
  background-repeat: no-repeat;
  opacity: 0.8;
}

.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(17, 17, 17, 0.95);
  border: 1px solid rgba(0, 0, 0, 0.1);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #ffffff ;
}

.carousel-nav.prev {
  left: 10px;
}

.carousel-nav.next {
  right: 10px;
}

.carousel-nav:hover {
  background: #111111 ;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
  transform: translateY(-50%) scale(1.05);
}

.carousel-nav:active {
  transform: translateY(-50%) scale(0.95);
}

/* Hide arrows only when 5 or fewer posts */
.carousel-wrapper[data-post-count="1"] .carousel-nav,
.carousel-wrapper[data-post-count="2"] .carousel-nav,
.carousel-wrapper[data-post-count="3"] .carousel-nav,
.carousel-wrapper[data-post-count="4"] .carousel-nav,
.carousel-wrapper[data-post-count="5"] .carousel-nav {
  display: none !important;
}

/* Disable arrows when they shouldn't work */
.carousel-nav.disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

.carousel-indicators {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

/* Show indicators only for 6+ posts */
.carousel-indicators[data-post-count="1"],
.carousel-indicators[data-post-count="2"],
.carousel-indicators[data-post-count="3"],
.carousel-indicators[data-post-count="4"],
.carousel-indicators[data-post-count="5"] {
  display: none !important;
}

.indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.3s ease;
}

.indicator.active {
  background: #1a1a1a;
  transform: scale(1.2);
}

/* Responsive adjustments - maintain same size */
@media (max-width: 1200px) {
  .carousel-item {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
  }
  
  .carousel-track[data-post-count="7"] .carousel-item,
  .carousel-track[data-post-count="8"] .carousel-item,
  .carousel-track[data-post-count="9"] .carousel-item,
  .carousel-track[data-post-count="10"] .carousel-item {
    flex: 0 0 calc(33.333% - 0.67rem);
    min-width: calc(33.333% - 0.67rem);
  }
}

@media (max-width: 992px) {
  .carousel-item {
    flex: 0 0 320px;
    min-width: 320px;
    max-width: 320px;
  }
}

@media (max-width: 768px) {
  .section-title {
    font-size: 2rem;
  }
    .section-subtitle {
    font-size: 1rem;
  }
  .carousel-item {
    flex: 0 0 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
  
  .social-carousel-section {
    padding: 4rem 0;
  }
    .carousel-track {
    padding: 0;
    gap: 1rem;
  }
  
  .carousel-nav {
    width: 32px;
    height: 32px;
    font-size: 12px;
  }
  
  .carousel-nav.prev {
    left: 5px;
  }
  
  .carousel-nav.next {
    right: 5px;
  }
}

@media (max-width: 480px) {
  .section-title {
    font-size: 1.75rem;
  }
  
  .social-carousel-section {
    padding: 3rem 0;
  }
  .social-container {
    padding: 0;
  }
  .carousel-item {
    flex: 0 0 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
  }
  
  .carousel-nav {
    width: 28px;
    height: 28px;
    font-size: 11px;
  }
}
