/* Global tweaks on top of Tailwind */
html {
  scroll-behavior: smooth;
}
body {
  background-color: #fefce8; /* light warm yellow */
}
/* Skip link base (visibility controlled by :focus in Tailwind via classes) */
.skip-link {
  transform: translateY(-150%);
  opacity: 0;
  transition: all 0.18s ease-out;
}

/* News cards */
.news-card {
  @apply rounded-2xl border border-amber-100 bg-white p-1 shadow-[0_16px_50px_rgba(251,191,36,0.35)];
}
/* Feature cards */
.feature-card {
  @apply rounded-3xl border border-amber-100 bg-white overflow-hidden flex flex-col shadow-[0_16px_50px_rgba(251,191,36,0.25)];
}
.feature-card .feature-media {
  @apply relative overflow-hidden;
}
.feature-card .media-img {
  @apply w-full h-full object-cover transition duration-500 hover:scale-105;
}
.feature-card .feature-body {
  @apply p-4 sm:p-5 space-y-2;
}
.feature-card .feature-body h3 {
  @apply text-base sm:text-lg font-semibold text-amber-800;
}
.feature-card .feature-body p {
  @apply text-xs sm:text-sm text-slate-700 leading-relaxed;
}
/* Tag pills */
.tag {
  @apply inline-flex items-center gap-1.5 rounded-full border border-amber-200 bg-amber-50 px-3 py-1 text-xs text-slate-700;
}
/* Seller small links */
.seller-link {
  @apply inline-flex items-center gap-2 rounded-full border border-amber-200 bg-white px-3 py-2 text-slate-700 hover:border-amber-400 hover:bg-amber-50 transition;
}
/* Social buttons */
.social-link {
  @apply inline-flex items-center justify-center gap-2 rounded-full border border-amber-200 bg-white px-3 py-2 text-slate-800 hover:border-amber-400 hover:bg-amber-50 transition;
}
/* Gallery page – Instagram-style grid */
.insta-grid {
  display: grid;
  gap: 2px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .insta-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (min-width: 1024px) {
  .insta-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}
.insta-tile {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  background: #e5e7eb;
}
.insta-tile-wide {
  grid-column: span 2;
}
.insta-tile-tall {
  grid-row: span 2;
}
.insta-open {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}
.insta-open img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.01);
  transition: transform 200ms ease-out;
}
.insta-hover {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.6), transparent 50%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  justify-content: flex-start;
  padding: 0.6rem;
  transition: opacity 160ms ease-out;
}
.insta-meta {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
.insta-label {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(248,250,252,0.9);
}
.insta-caption {
  font-size: 0.8rem;
  font-weight: 600;
  color: #fefce8;
}
.insta-open:hover img {
  transform: scale(1.05);
}
.insta-open:hover .insta-hover {
  opacity: 1;
}

/* Lightbox */
.insta-lightbox {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 60;
}
.insta-lightbox.is-open {
  display: flex;
}
.insta-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15,23,42,0.8);
  backdrop-filter: blur(8px);
  border: 0;
  padding: 0;
  margin: 0;
}
.insta-lightbox-inner {
  position: relative;
  z-index: 10;
  max-width: 960px;
  width: 100%;
  margin: 1.5rem;
  background: #020617;
  border-radius: 1.25rem;
  overflow: hidden;
  border: 1px solid rgba(148,163,184,0.4);
  display: grid;
  grid-template-columns: minmax(0, 3fr);
}
@media (min-width: 768px) {
  .insta-lightbox-inner {
    grid-template-columns: minmax(0, 4fr) minmax(0, 2.4fr);
  }
}
.insta-lightbox-media {
  position: relative;
  background: #020617;
}
.insta-lightbox-media img {
  width: 100%;
  height: 100%;
  max-height: 70vh;
  object-fit: contain;
  display: block;
  background: #020617;
}
.insta-lightbox-info {
  padding: 1rem 1.1rem 1.1rem;
  border-top: 1px solid rgba(30,41,59,0.9);
  background: radial-gradient(circle at top, rgba(251,191,36,0.06), transparent 60%),
              #020617;
}
@media (min-width: 768px) {
  .insta-lightbox-info {
    border-top: none;
    border-left: 1px solid rgba(30,41,59,0.9);
  }
}
.insta-lightbox-label {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgb(250,204,21);
  margin: 0 0 0.25rem;
}
.insta-lightbox-caption {
  font-size: 1rem;
  font-weight: 700;
  color: rgb(248,250,252);
  margin: 0;
}
.insta-lightbox-close {
  position: absolute;
  top: 0.65rem;
  right: 0.75rem;
  z-index: 20;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 999px;
  border: 1px solid rgba(148,163,184,0.7);
  background: rgba(15,23,42,0.9);
  color: rgba(248,250,252,0.9);
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 140ms ease-out;
}
.insta-lightbox-close:hover {
  background: rgba(15,23,42,1);
  border-color: rgba(248,250,252,1);
  transform: translateY(-1px);
}
/* Gallery filters */
.gallery-filter-btn {
  @apply inline-flex items-center gap-1.5 rounded-full border border-amber-200 bg-white px-3 py-1.5 text-xs font-medium text-slate-700 hover:border-amber-400 hover:bg-amber-50 transition;
}
.gallery-filter-btn.is-active {
  @apply border-amber-500 bg-amber-100 text-amber-900 shadow-sm;
}
/* Utility: text clamping for news */
.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Modal backdrop (for attendees) */
.modal-backdrop {
  @apply fixed inset-0 bg-amber-900/40 backdrop-blur-sm flex items-center justify-center z-[60];
}
/* Hide scrollbars for some inner elements if needed */
.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}