.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:.5rem
}

.year-tab button,
.bottom-sheet-content button {
   border-color:hsl(var(--white)/.16);
   white-space: nowrap;
  border-radius:.25rem;
  transition: all 0.2s;
}
.year-tabs .mfc-btn {
  background-color: hsl(var(--dark-3));
}
.year-filter.-mobile button{
  border:1px solid hsl(var(--gold-5));
  color:hsl(var(--gold-5));
  line-height: 1;
   white-space: nowrap;
  border-radius: .25rem;
  padding:.5rem 1.125rem;
  font-weight: 600;
  font-size:.925rem
}

.year-tabs .dropdown-menu {
    max-width: 16rem;
    /* left: auto !important;
    right: 0 !important; */
}
.dropdown-menu.show {
     display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap:.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 ====== */
/* 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: .125rem;
  background: hsl(var(--dark-4));
  cursor: pointer;
}

/* Skeleton shimmer */
.media-item.skeleton::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    hsl(var(--dark-3)) 25%,
    hsl(var(--dark-2)) 37%,
    hsl(var(--dark-3)) 63%
  );
  background-size: 400% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: -400px 0; }
  100% { background-position: 400px 0; }
}

/* Img fade-in */
.media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.4s ease;
}
.media-item.loaded img {
  opacity: 1;
}

/* Spinner loader di bawah grid */
.loader {
  display: none; /* ⬅️ default harus hidden total */
  text-align: center;
  padding: 1rem;
}
.loader.sentinel {
  display: block;
  visibility: hidden; /* tetap ada di DOM untuk IO, tapi invisible */
}
.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 spin {
  to { transform: rotate(360deg); }
}

.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); }
}


/* Lightbox (Image Preview) */
.media-preview {
  position: fixed; 
  inset: 0;
  display: flex; 
  justify-content: center; 
  align-items: center;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
}
.media-preview.hidden { display: none; }

.media-preview-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
  display: flex;
  align-items: center;
}
.media-preview-content img {
  max-width: 100%;
  max-height: 90vh;
  border-radius: 8px;
}

/* Tombol close */
.media-preview-close {
  position: absolute;
  top: 5px; 
  right: 5px;
  background: hsl(var(--dark-2)); 
  border: none; 
  font-size: .825rem;
  cursor: pointer; 
  border-radius: 50%;
  width: 2rem;
  height: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
@media (min-width:992px) {
  .media-preview-close {
    top: -10px; 
    right: -10px;  
    width: 2.5rem;
    height: 2.5rem;
    font-size: 1.125rem;
  }
}
/* Navigasi prev/next */
.media-preview-prev,
.media-preview-next {
  background: rgba(0,0,0,0.6);
  border: none;
  color: hsl(var(--white));
  font-size: 1.25rem;
  cursor: pointer;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.media-preview-prev { position: absolute; left: 10px; }
.media-preview-next { position: absolute; right: 10px; }

@media (min-width:992px) { 

}
/* Counter pojok kanan atas */
.media-preview-counter {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translate(-50%,-10px);
  color: #fff;
  font-size: 14px;
  background: rgba(0,0,0,0.6);
  padding: 4px 10px;
  border-radius: 12px;
}
.is-open-modal {
  overflow: hidden!important;
}