/* ========================================
   SOCIAL MEDIA MOBILE-FIRST GALLERY DESIGN
   ======================================== */

/* Reset and Base Styles */
.ncg-gallery-list,
.ncg-event-section,
.ncg-galleries-grid,
.ncg-gallery-card,
.ncg-modern-card {
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* Mobile-First Container */
.ncg-gallery-list.ncg-grid-responsive {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  background: transparent;
}

/* Event Section - Social Media Style */
.ncg-event-section {
  width: 100%;
  max-width: 100%;
  margin: 0 0 24px 0;
  padding: 0;
  background: transparent;
}

.ncg-event-heading {
  font-size: 1.25rem;
  font-weight: 600;
  color: #262626;
  margin: 0 0 16px 0;
  padding: 0;
  text-align: left;
  background: transparent;
}

/* Gallery Grid - Mobile-First */
.ncg-galleries-grid.ncg-event-galleries.ncg-auto-fit {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  width: 100%;
  max-width: 100%;
  padding: 0;
  box-sizing: border-box;
  margin: 0;
}

/* Gallery Card - Social Media Style with Enhanced Hover */
.ncg-gallery-card,
.ncg-modern-card {
  background: transparent;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1), 0 2px 4px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.ncg-gallery-card:hover,
.ncg-modern-card:hover {
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15), 0 4px 10px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

.ncg-gallery-card:active,
.ncg-modern-card:active {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2), 0 2px 4px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

/* Thumbnail Container */
.ncg-gallery-thumb-wrap {
  position: relative;
  width: 100%;
  height: 280px;
  overflow: hidden;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Multi-image gallery thumbnail container (increased height by 90px) */
.ncg-gallery-thumb-wrap-multi {
  position: relative;
  width: 100%;
  height: 370px;
  overflow: hidden;
  background: #f8f9fa;
  margin: 0;
  padding: 0;
}

/* Image Wrapper */
.ncg-image-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.ncg-gallery-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
}

/* Magnifier Icon - Social Media Style */
.ncg-magnifier-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  z-index: 2;
  transition: all 0.2s ease;
}

.ncg-magnifier-icon:hover {
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  transform: translate(-50%, -50%) scale(1.05);
}

.ncg-magnifier-icon svg {
  width: 32px;
  height: 32px;
}

/* Photographer Attribution Bar */
.ncg-photographer-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #efefef;
  padding: 12px 16px;
  margin: 0;
  box-sizing: border-box;
}

/* Reorganized photographer bar - left align attribution, right align tip */
.ncg-photographer-bar-reorganized {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  background: #ffffff;
  border-top: 1px solid #efefef;
  padding: 12px 16px;
  margin: 0;
  box-sizing: border-box;
}

.ncg-photographer-attribution {
  width: 100%;
  text-align: center;
  color: #262626;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.4;
}

.ncg-photographer-attribution-left {
  text-align: left;
  color: #262626;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 0;
  padding: 0;
  line-height: 1.4;
  flex: 1;
}

.ncg-tip-right {
  margin-left: auto;
}

.ncg-photographer-link {
  color: #0095f6;
  text-decoration: none;
  font-weight: 600;
}

.ncg-photographer-link:hover {
  text-decoration: underline;
}

/* Below Thumbnail Row */
.ncg-below-thumb-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  background: #ffffff;
  border-top: 1px solid #efefef;
  margin: 0;
  box-sizing: border-box;
}

.ncg-image-count.ncg-image-count-below {
  color: #8e8e93;
  font-size: 0.85rem;
  font-weight: 500;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 6px;
  margin: 0;
}

/* Tip Button - Social Media Style */
.ncg-tip-link.ncg-tip-modern {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0095f6 0%, #5851db 100%);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 149, 246, 0.3);
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  margin: 0;
}

.ncg-tip-link.ncg-tip-modern:hover {
  background: linear-gradient(135deg, #0081d6 0%, #4a45c7 100%);
  box-shadow: 0 4px 16px rgba(0, 149, 246, 0.4);
  transform: scale(1.05);
}

.ncg-tip-caption {
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

/* Gallery Info Section */
.ncg-gallery-info {
  padding: 16px;
  background: #ffffff;
  border-top: 1px solid #efefef;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
}

/* Event Name Row */
.ncg-event-name-row.ncg-left-align {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
}

.ncg-event-name {
  font-size: 1rem;
  font-weight: 600;
  color: #262626;
}

.ncg-hash-order {
  font-size: 0.9rem;
  color: #8e8e93;
  font-weight: 500;
}

/* Add Comment Button - Social Media Style */
.ncg-btn.ncg-comment-btn.ncg-left-align {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  background: #f8f9fa;
  border: 1px solid #efefef;
  border-radius: 8px;
  padding: 12px 16px;
  color: #262626;
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
  cursor: pointer;
  margin: 8px 0 0 0;
  gap: 8px;
}

.ncg-btn.ncg-comment-btn.ncg-left-align:hover {
  background: #f1f3f4;
  border-color: #dadce0;
}

.ncg-comment-icon {
  width: 18px;
  height: 18px;
  margin: 0;
}

.ncg-comment-btn-margin {
  margin-bottom: 16px !important;
}

/* Event Divider */
.ncg-event-divider {
  border: none;
  border-top: 1px solid #efefef;
  margin: 32px 16px;
  width: calc(100% - 32px);
}

/* ========================================
   RESPONSIVE BREAKPOINTS
   ======================================== */

/* Tablet */
@media (min-width: 768px) {
  .ncg-galleries-grid.ncg-event-galleries.ncg-auto-fit {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  
  .ncg-gallery-thumb-wrap {
    height: 240px;
  }
  
  .ncg-gallery-thumb-wrap-multi {
    height: 330px; /* 240px + 90px */
  }
  
  .ncg-event-heading {
    font-size: 1.5rem;
  }
}

/* Desktop */
@media (min-width: 1024px) {
  .ncg-galleries-grid.ncg-event-galleries.ncg-auto-fit {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }
  
  .ncg-gallery-thumb-wrap {
    height: 260px;
  }
  
  .ncg-gallery-thumb-wrap-multi {
    height: 350px; /* 260px + 90px */
  }
  
  .ncg-event-heading {
    font-size: 1.75rem;
  }
}

/* Large Desktop */
@media (min-width: 1200px) {
  .ncg-galleries-grid.ncg-event-galleries.ncg-auto-fit {
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
  }
  
  .ncg-gallery-thumb-wrap {
    height: 280px;
  }
  
  .ncg-gallery-thumb-wrap-multi {
    height: 370px; /* 280px + 90px */
  }
}

/* ========================================
   TOUCH-FRIENDLY MOBILE ENHANCEMENTS
   ======================================== */

@media (max-width: 767px) {
  /* Larger touch targets */
  .ncg-magnifier-icon {
    width: 64px;
    height: 64px;
  }
  
  .ncg-magnifier-icon svg {
    width: 36px;
    height: 36px;
  }
  
  .ncg-tip-link.ncg-tip-modern {
    width: 48px;
    height: 48px;
    font-size: 1rem;
  }
  
  .ncg-btn.ncg-comment-btn.ncg-left-align {
    min-height: 48px;
    padding: 14px 16px;
  }
  
  /* Better spacing */
  .ncg-gallery-card,
  .ncg-modern-card {
    margin-bottom: 16px;
  }
  
  /* Improved text readability */
  .ncg-photographer-attribution {
    font-size: 0.95rem;
  }
  
  .ncg-event-name {
    font-size: 1.05rem;
  }
}