.mfc-event {
  position: relative;
  padding-top: 1.5rem;
  padding-bottom: 1.5rem;
}
@media (min-width: 992px) {
  .mfc-event {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

/* ====== Filter Tahun ====== */
.year-filter {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.year-tabs {
  display: flex;
  gap: 0.25rem;
  flex-wrap: nowrap;
}

.bottom-sheet-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(20%, 1fr));
  gap: 0.5rem;
}

.year-tab button,
.bottom-sheet-content button {
  border-color: hsl(var(--white) / 0.16);
  white-space: nowrap;
  border-radius: 0.25rem;
  transition: all 0.2s;
}

.year-tabs .mfc-btn {
  background-color: hsl(var(--dark-1));
}

.year-filter.-mobile button {
  border: 1px solid hsl(var(--gold-5));
  color: hsl(var(--gold-5));
  line-height: 1;
  white-space: nowrap;
  border-radius: 0.25rem;
  padding: 0.5rem 1.125rem;
  font-weight: 600;
  font-size: 0.925rem;
}

.year-tabs .dropdown-menu {
  max-width: 16rem;
}

.dropdown-menu.show {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
  gap: 0.25rem;
}

.bottom-sheet-content .mfc-btn:hover,
.year-tabs .mfc-btn:hover {
  background-color: hsl(var(--gold-2));
  border-color: hsl(var(--gold-2));
  color: hsl(var(--dark-1));
}

.bottom-sheet-content .mfc-btn.active,
.year-tabs .mfc-btn.active {
  background-color: hsl(var(--gold-5));
  border-color: hsl(var(--gold-5));
  color: hsl(var(--dark-2));
}

/* ====== Media Grid ====== */
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.5rem;
}

/* Media Item */
.media-item {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 0.125rem;
  background: hsl(var(--dark-4));
  cursor: pointer;
}

/* Shimmer aktif di SEMUA item sampai gambar selesai load */
.media-item::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    hsl(var(--dark-4))  0%,
    hsl(var(--dark-3)) 40%,
    hsl(var(--dark-2)) 50%,
    hsl(var(--dark-3)) 60%,
    hsl(var(--dark-4)) 100%
  );
  background-size: 300% 100%;
  animation: shimmer 1.6s ease-in-out infinite;
  opacity: 1;
  transition: opacity 0.5s ease;
}

/* Shimmer selesai saat gambar loaded */
.media-item.loaded::before {
  opacity: 0;
  animation: none;
}

/* Skeleton: tidak bisa diklik */
.media-item.skeleton {
  cursor: default;
  pointer-events: none;
}

/* Img di atas shimmer, mulai transparan lalu fade-in */
.media-item img {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.media-item.loaded img {
  opacity: 1;
}

/* ====== Loader / Sentinel ====== */
.loader {
  display: none;
  text-align: center;
  padding: 1rem;
}

.loader.sentinel {
  display: block;
  visibility: hidden;
}

.loader.loading {
  display: block;
  visibility: visible;
}

.loader::after {
  content: "";
  width: 24px;
  height: 24px;
  border: 3px solid hsl(var(--gold-4));
  border-top-color: hsl(var(--body-background));
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}

/* ====== Keyframes (satu definisi, dipakai bersama) ====== */
@keyframes shimmer {
  0% {
    background-position: -400% 0;
  }
  100% {
    background-position: 400% 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ====== Empty State ====== */
.luxury-placeholder {
  text-align: center;
  animation: fadeInLuxury 0.6s ease-in-out;
  grid-column: 1 / -1;
}

.luxury-icon {
  color: hsl(var(--gold-5));
  margin-bottom: 5px;
  font-size: 7rem;
}

.luxury-title {
  font-size: 1.5rem;
  font-weight: 600;
  color: hsl(var(--light));
  margin-bottom: 5px;
}

.luxury-desc {
  font-size: 0.925rem;
  color: hsl(var(--light));
  max-width: 420px;
  margin: 0 auto;
}

@keyframes fadeInLuxury {
  from {
    opacity: 0;
    transform: translateY(15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ====== PhotoSwipe Theme ====== */
.pswp__img {
  object-fit: cover;
}

.pswp {
  --pswp-bg: #0a0a0a;
  --pswp-icon-color: #fff;
  --pswp-icon-color-secondary: rgba(255, 255, 255, 0.4);
  --pswp-icon-stroke-color: rgba(0, 0, 0, 0.6);
  --pswp-icon-stroke-width: 1.2px;
  --pswp-error-text-color: #fff;
}

/* Tombol close / arrow lebih besar di mobile */
.pswp__button {
  touch-action: manipulation;
}

/* Warna counter (X / Y) */
.pswp__counter {
  font-size: 0.875rem;
  opacity: 0.85;
  font-weight: 500;
  letter-spacing: 0.05em;
}
