/* =========================================================
   COLOR TOKENS
   Edit warna di sini untuk maintenance.
   Variable aksi/brand tidak diubah saat dark mode.
   ========================================================= */

:root {
  /* Surface */
  --ui-surface: #ffffff;
  --ui-surface-alt: #f5f5f5;
  --ui-surface-muted: #f1f5f9;
  --ui-surface-hover: #f8fafc;

  /* Text */
  --ui-text: #333333;
  --ui-text-strong: #222222;
  --ui-text-muted: #999999;
  --ui-icon-muted: #999999;
  --ui-on-dark: #ffffff;

  /* Border */
  --ui-border: #e5e7eb;
  --ui-border-soft: #eeeeee;
  --ui-border-medium: #dddddd;
  --ui-border-hover: #d1d5db;

  /* Action / brand: tetap sama pada light & dark */
  --button-bg: #009688;
  --button-hover-bg: #0056b3;
  --button-text: #ffffff;

  --favorite-color: #ff4d6d;
  --favorite-bg: #fff0f3;

  --youtube-red: #ff0000;
  --focus-accent: #ff7347;

  /* Media / overlay */
  --media-bg: #111111;
  --media-bg-deep: #000000;
  --media-control-bg: #222222;
  --lightbox-overlay: rgba(0, 0, 0, 0.92);
  --lightbox-control-bg: rgba(255, 255, 255, 0.12);
  --lightbox-control-hover-bg: rgba(255, 255, 255, 0.22);
  --lightbox-counter-bg: rgba(0, 0, 0, 0.45);
  --ui-hover-overlay: rgba(0, 0, 0, 0.05);

  /* Accent yang mengikuti theme */
  --gallery-active: #2563eb;
}

/* Palette utama dark mode */
html.dark-mode {
  color-scheme: dark;

  --theme-palette-color-1: #38bdf8; /* link / primary */
  --theme-palette-color-2: #ed661d; /* hover */
  --theme-palette-color-3: #e5e7eb; /* teks dasar */
  --theme-palette-color-4: #ffffff; /* heading */
  --theme-palette-color-5: #263449; /* border */
  --theme-palette-color-6: #121b2f; /* post/card */
  --theme-palette-color-7: #0b1220; /* background situs */
  --theme-palette-color-8: #172033; /* header/surface sekunder */
  --theme-palette-color-9: #556483; /* text muted */
  --theme-button-background-initial-color: var(--theme-palette-color-2);
  --theme-button-background-hover-color: var(--theme-palette-color-2);

  /* Semantic tokens dark mode */
  --ui-surface: var(--theme-palette-color-6);
  --ui-surface-alt: var(--theme-palette-color-8);
  --ui-surface-muted: var(--theme-palette-color-8);
  --ui-surface-hover: var(--theme-palette-color-8);

  --ui-text: var(--theme-palette-color-3);
  --ui-text-strong: var(--theme-palette-color-4);
  --ui-text-muted: var(--theme-palette-color-9);
  --ui-icon-muted: var(--theme-palette-color-3);

  --ui-border: var(--theme-palette-color-5);
  --ui-border-soft: var(--theme-palette-color-5);
  --ui-border-medium: var(--theme-palette-color-5);
  --ui-border-hover: var(--theme-palette-color-5);

  --gallery-active: var(--theme-palette-color-1);
  --favorite-bg: var(--theme-palette-color-8);
  --ui-hover-overlay: rgba(255, 255, 255, 0.06);
}
/* =========================
   DARK MODE TOGGLE
========================= */

.dark-mode-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    padding: 0;
    color: inherit;
    background: transparent;
    border: 0;
    border-radius: 50%;
    cursor: pointer;
    line-height: 1;
}

.dark-mode-toggle:hover {
    background: rgba(127, 127, 127, 0.12);
}

.dark-mode-toggle:focus-visible {
    outline: 1px solid currentColor;
    outline-offset: 1px;
}

.dark-mode-icon {
    display: block;
    width: 21px;
    height: 21px;
    pointer-events: none;
}

/* Light mode: tampilkan bulan */
.dark-mode-icon--sun {
    display: none;
}
html.dark-mode .dark-mode-icon--moon {
    display: none;
}
html.dark-mode .dark-mode-icon--sun {
    display: block;
}
/* tombol header */
.tombol-header-icon {
    min-height: 28px;
    padding: 2px 8px;
    line-height: 1.1;
    font-size: 13px;
	border: 1px solid var(--theme-palette-color-2);
}
.tombol-header-icon::before {
    content: "";
    display: inline-block;
    width: 14px;
    height: 14px;
    margin-right: 1px;
    background-color: currentColor;

    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V4m0 0L7 9m5-5 5 5M5 20h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / contain
        no-repeat;

    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 16V4m0 0L7 9m5-5 5 5M5 20h14' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
        center / contain
        no-repeat;

    vertical-align: middle;
}
	
/* Tombol download */
.tombol {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    box-sizing: border-box;
    padding: 6px 20px;
    background-color: var(--button-bg);
    color: var(--button-text) !important;
    text-decoration: none !important;
    text-align: center;
    border-radius: 5px;
    margin: 10px 0;
	box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.3);
}

.tombol:hover {
    background-color: var(--button-hover-bg);
}

.tombol .icon::before {
    content: "";
    display: inline-block;
    width: 18px;
    height: 18px;
    margin-right: 8px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 122.88 120.89'%3E%3Cpath fill='%23FFFFFF' d='M84.58,47a7.71,7.71,0,1,1,10.8,11L66.09,86.88a7.72,7.72,0,0,1-10.82,0L26.4,58.37a7.71,7.71,0,1,1,10.81-11L53.1,63.12l.16-55.47a7.72,7.72,0,0,1,15.43.13l-.15,55L84.58,47ZM0,113.48.1,83.3a7.72,7.72,0,1,1,15.43.14l-.07,22q46,.09,91.91,0l.07-22.12a7.72,7.72,0,1,1,15.44.14l-.1,30h-.09a7.71,7.71,0,0,1-7.64,7.36q-53.73.1-107.38,0A7.7,7.7,0,0,1,0,113.48Z'/%3E%3C/svg%3E") center / contain no-repeat;
    flex: 0 0 18px;
}
/* Warna dasar tombol saat Dark Mode aktif */
html.dark-mode .tombol {
    background-color: var(--theme-palette-color-2);
    color: #fff !important;
}

/* Warna HOVER saat Dark Mode aktif */
html.dark-mode .tombol:hover {
    background-color: var(--theme-palette-color-5);
}

.table-line td:nth-child(2) {
  max-width: 1px;
}

/* --- 1. Pengaturan Utama Tabel --- */
.table-line {
  width: 100%;
  border-collapse: collapse;
  font-family: sans-serif;
  margin: 10px 0;
  background: var(--ui-surface); /* Memastikan tidak ada background bawaan tema */
}

/* --- 2. Pengaturan Umum Sel (Header & Isi) --- */
.table-line th, 
.table-line td {
  border-left: none;
  border-right: none;
  background: transparent !important;
}

/* --- 3. Pengaturan Header (th) --- */
.table-line th {
  font-size: 12px;
  text-align: left;
  font-weight: bold;
  color: var(--ui-text);
  padding: 12px 8px;
  border-bottom: 2px solid var(--ui-border-medium); /* Garis bawah header sedikit lebih tebal */
}

/* --- 4. Pengaturan Khusus Isi (td) --- */
.table-line td {
  font-size: 11px;
  padding: 6px 1px 6px 6px;
  border-bottom: 1px solid var(--ui-border-medium);
}

/* --- 5. Pengaturan Lebar Kolom --- */
.table-line th:nth-child(1), 
.table-line td:nth-child(1) {
  width: 80px;
}
.table-line th:nth-child(2), 
.table-line td:nth-child(2) {
  width: auto;
}
.table-line .text-expand { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; cursor: pointer; }
.table-line .text-expand.expanded { display: block; -webkit-line-clamp: unset; overflow: visible; }
@media screen and (max-width: 800px) {
  .table-line tr th, 
  .table-line tr td {
    font-size: 13px;
  }
  .table-line tr td:nth-child(1),
  .table-line tr th:nth-child(1) {
    width: 110px;
    min-width: 110px;
  }
}

/* 2 TABEL */
table, th, td {border: 1px solid var(--ui-border-soft); border-collapse: collapse;}
table tr:nth-child(odd) td {background-color: var(--ui-surface-alt);}
table tr, td {padding: 4px 7px;text-align: left;vertical-align: top;font-size: 13px;min-width: 120px;}
table {width: 100%;}
td:first-child, th:first-child {width:120px;}

/* Grup Post*/
.grup-bg {
    background: var(--ui-surface);
	  margin: 20px 0;
    padding: 18px 15px;
    border: 1px solid var(--ui-border);
    border-radius: 10px;
	  box-sizing: border-box;
    width: 100%;
}

.share-section {
    text-align: center;
    padding: 0;
}

.share-section::before {
    content: "Share this";
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: var(--ui-text-muted);
}

.share-section .sharelite-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
}

.shortkode {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0px;
    height: auto;
    min-height: 0;
    padding: 0;
    margin: 0 0 15px;
}

.shortkode > div {
    margin: 0;
    padding: 0;
}
.rmp-rating-widget {
    margin: 0 0 20px;
}
.rmp-widgets-container.rmp-wp-plugin.rmp-main-container .rmp-rating-widget__icons-list {
    margin: 10px 0 -5px;}

/* ---- Hide comment ---- */
#comments.is-hidden-by-default {
    display: none;
}

.comments-toggle-button {
    display: block;
    width: 100%;
    min-height: 48px;
    padding: 15px 20px; margin: 30px 0 0;
    border: 1px solid var(--ui-border);
    border-radius: 8px;
    background: var(--ui-surface);
    color: var(--ui-text);
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease;
}

.comments-toggle-button:hover {
    background: var(--ui-surface-hover);
    border-color: var(--ui-border-hover);
}
/* ----
  Favorite Button
---- */
/* ---- Favorite Button ---- */ .fav-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--ui-border-medium); border-radius: 999px; background: var(--ui-surface); cursor: pointer; font-size: 14px; font-family: inherit; color: var(--ui-text); transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease; } .fav-btn:hover { border-color: var(--favorite-color); } .fav-icon { display: inline-flex; line-height: 0; } .fav-icon svg { width: 20px; height: 20px; transition: transform 0.2s ease; } .fav-icon path { fill: transparent; stroke: var(--ui-icon-muted); stroke-width: 1.5px; transition: fill 0.2s ease, stroke 0.2s ease; } /* State: sudah difavoritkan */ .fav-btn.active { border-color: var(--favorite-color); background: var(--favorite-bg); color: var(--favorite-color); } .fav-btn.active .fav-icon path { fill: var(--favorite-color); stroke: var(--favorite-color); } /* Efek "pop" saat tombol diklik */ .fav-btn.fav-pop .fav-icon { animation: favPop 0.35s ease; } @keyframes favPop { 0% { transform: scale(1); } 40% { transform: scale(1.4); } 100% { transform: scale(1); } } /* Halaman daftar "semua favorit" */ .fav-list-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; } .fav-list-item { display: flex; align-items: center; gap: 12px; padding: 10px; border: 1px solid var(--ui-border-soft); border-radius: 10px; } .fav-list-thumb { flex: 0 0 64px; line-height: 0; } .fav-list-thumb img { width: 64px; height: 64px; object-fit: cover; border-radius: 8px; background: var(--ui-surface-muted); } .fav-list-title { flex: 1; color: var(--ui-text-strong); text-decoration: none; font-weight: 600; } .fav-list-title:hover { text-decoration: underline; } .fav-list-remove { border: none; background: transparent; color: var(--ui-icon-muted); font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 8px; } .fav-list-remove:hover { color: var(--favorite-color); } .fav-list-empty { color: var(--ui-text-muted); font-style: italic; } /* Menu popup untuk header (shortcode [favorite_menu]) */ .fav-menu { position: relative; display: inline-flex; align-items: center; font-family: inherit; } .fav-menu-toggle { position: relative; width: 36px; height: 36px; border-radius: 50%; border: none; background: transparent; cursor: pointer; display: flex; align-items: center; justify-content: center; color: inherit; } .fav-menu-toggle:hover { background: var(--ui-hover-overlay); } .fav-menu-toggle svg { width: 22px; height: 22px; } .fav-menu-toggle path { fill: transparent; stroke: currentColor; stroke-width: 1.5px; } .fav-menu-count[hidden] { display: none !important; } .fav-menu-count { position: absolute; top: 5px; right: 3px; min-width: 15px; height: 15px; padding: 0 4px; border-radius: 999px; background: var(--favorite-color); color: var(--ui-on-dark); font-size: 10px; line-height: 15px; text-align: center; } .fav-menu-panel { position: absolute; top: calc(100% + 10px); right: 0; width: 300px; max-width: 85vw; max-height: 70vh; overflow-y: auto; background: var(--ui-surface); border-radius: 12px; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); opacity: 0; visibility: hidden; transform: translateY(8px); transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s; z-index: 999; } .fav-menu.open .fav-menu-panel { opacity: 1; visibility: visible; transform: translateY(0); } .fav-menu-title { padding: 12px 16px; font-weight: 700; color: var(--ui-text-strong); border-bottom: 1px solid var(--ui-border-soft); } .fav-menu-body { padding: 8px 16px 16px; } .fav-menu-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; } .fav-menu-item { display: flex; align-items: center; gap: 10px; } .fav-menu-thumb { flex: 0 0 40px; line-height: 0; } .fav-menu-thumb img { width: 40px; height: 40px; object-fit: cover; border-radius: 6px; background: var(--ui-surface-muted); } .fav-menu-item-title { flex: 1; font-size: 13px; color: var(--ui-text-strong); text-decoration: none; line-height: 1.3; } .fav-menu-item-title:hover { text-decoration: underline; } .fav-menu-more { display: block; text-align: center; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--ui-border-soft); font-size: 13px; font-weight: 600; color: var(--favorite-color); text-decoration: none; } .fav-menu-empty { color: var(--ui-text-muted); font-style: italic; font-size: 13px; margin: 0; }
/* Thumbnail kecil di dalam artikel */
	
.lazyYT {
    width: 100%;
    max-width: 600px;
    margin: 18px auto;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--media-bg);
    border-radius: 10px;
    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.15);
}

.lazyYT-trigger {
    position: relative;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    background: var(--media-bg);
    border: 0;
    cursor: pointer;
}

.lazyYT-trigger img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.25s ease;
}

.lazyYT-trigger:hover img {
    transform: scale(1.03);
}

/* Lapisan gelap */
.lazyYT-trigger::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    background: rgba(0, 0, 0, 0.12);
    transition: background 0.2s ease;
}

.lazyYT-trigger:hover::before {
    background: rgba(0, 0, 0, 0.25);
}

/* Tombol play */
.lazyYT-play {
    position: absolute;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: 58px;
    height: 40px;
    border-radius: 10px;
    background: var(--youtube-red);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
    transform: translate(-50%, -50%);
}

.lazyYT-play::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 52%;
    border-top: 9px solid transparent;
    border-bottom: 9px solid transparent;
    border-left: 15px solid var(--ui-on-dark);
    transform: translate(-50%, -50%);
}

.lazyYT-trigger:focus-visible {
    outline: 3px solid var(--focus-accent);
    outline-offset: -3px;
}

/* Lightbox */
.lazyYT-lightbox[hidden] {
    display: none;
}

.lazyYT-lightbox {
    position: fixed;
    z-index: 999999;
    inset: 0;
    pointer-events: none;
    background: transparent;
}

.lazyYT-lightbox-inner {
    position: fixed;
    z-index: 2;
    top: 50%;
    left: 50%;
    width: min(700px, calc(100vw - 24px));
    transform: translate(-50%, -50%);
    pointer-events: auto;
}
.lazyYT-close,
.lazyYT-drag-handle,
.lazyYT-video {
    pointer-events: auto;
}

.lazyYT-drag-handle {
    height: 28px;
    padding: 0 12px;
    color: var(--ui-on-dark);
    background: var(--media-control-bg);
    border-radius: 8px 8px 0 0;
    font-size: 12px;
    line-height: 28px;
    text-align: center;
    cursor: move;
    touch-action: none;
    user-select: none;
}

.lazyYT-video {
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--media-bg-deep);
    border-radius: 0 0 8px 8px;
}

.lazyYT-video iframe {
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.lazyYT-close {
    position: absolute;
    top: -46px;
    right: 0;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--ui-text-muted);
    background: transparent;
    border: 0;
    font-family: Arial, sans-serif;
    font-size: 38px;
    font-weight: 300;
    line-height: 40px;
    cursor: pointer;
}

.lazyYT-close:hover {
    color: var(--focus-accent);
}

.lazyYT-close:focus-visible {
    outline: 2px solid var(--ui-on-dark);
    outline-offset: 2px;
}

@media (max-width: 600px) {
    .lazyYT {
        max-width: 360px;
    }

    .lazyYT-lightbox {
        padding: 12px;
    }

    .lazyYT-close {
        top: -44px;
    }
}
/* Accordion */
.light-accordion {
    width: 100%;
    max-width: 850px;
    margin: 20px auto;
    border-top: 1px solid var(--theme-palette-color-5);
    font-family: inherit;
}
.light-accordion details {
    margin: 0;
    padding: 0;
    border-bottom: 1px solid  var(--theme-palette-color-5);
}
.light-accordion summary {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 50px;
    padding: 10px 55px 10px 20px;
    color: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.4;
    cursor: pointer;
    list-style: none;
    transition: color 0.2s ease;
}

/* Hilangkan ikon bawaan browser */
.light-accordion summary::-webkit-details-marker {
    display: none;
}

.light-accordion summary::marker {
    content: "";
}
.light-accordion summary::after {
    content: "";
    position: absolute;
    right: 30px;
    width: 10px;
    height: 10px;
    border-right: 2px solid currentColor;
    border-bottom: 2px solid currentColor;
    transform: rotate(45deg) translateY(-3px);
    transition: transform 0.2s ease;
}
.light-accordion details[open] summary::after {
    transform: rotate(225deg) translate(-2px, -2px);
}
.light-accordion-content {
    padding: 0 55px 24px 30px;
    color: inherit;
    font-size: 16px;
    line-height: 1.7;
}
.light-accordion-content p {
    margin: 0;
}
@media (max-width: 600px) {
    .light-accordion summary {
        min-height: 60px;
        padding: 15px 45px 15px 15px;
        font-size: 16px;
    }

    .light-accordion summary::after {
        right: 18px;
    }

    .light-accordion-content {
        padding: 0 45px 20px 15px;
        font-size: 15px;
    }
}

/* Report */
.single-post .entry-header ul.entry-meta {
	display: flex !important;
	width: 100% !important;
	align-items: center;
	flex-wrap: wrap;
}

.single-post .entry-header ul.entry-meta .meta-report {
	margin-left: auto !important;
	margin-inline-start: auto !important;
	padding-left: 0;
	list-style: none;
}

.single-post .entry-header ul.entry-meta .meta-report::before,
.single-post .entry-header ul.entry-meta .meta-report::after {
	display: none !important;
}

.report-entry-link {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	padding: 4px 0;
	border: none;
	border-radius: 999px;
	color: var(--ui-text-muted);
	font-size: 10px;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	white-space: nowrap;
}

.report-entry-link:hover,
.report-entry-link:focus-visible {
	color:var(--ui-text-muted);
	background-color: var(--theme-palette-color-6);
}

/* Galeri tetap menampilkan gambar Gutenberg bila JavaScript tidak berjalan. */
.wp-block-gallery.mod-gallery:not(.is-mod-ready) {
  display: block !important;
}
.wp-block-gallery.mod-gallery:not(.is-mod-ready) > .wp-block-image {
  width: 100% !important;
  margin: 0 !important;
}
.wp-block-gallery.mod-gallery:not(.is-mod-ready) > .wp-block-image:not(:first-child) {
  display: none !important;
}
.wp-block-gallery.mod-gallery:not(.is-mod-ready) > .wp-block-image:first-child img {
  width: 100% !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* WordPress retains its original Image figures as direct Gallery children. */
.wp-block-gallery.mod-gallery.is-mod-ready {
  display: block !important;
  width: 100%;
  cursor: zoom-in;
}
.wp-block-gallery.mod-gallery.is-mod-ready > .wp-block-image {
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
}
.wp-block-gallery.mod-gallery.is-mod-ready > .wp-block-image:not(.is-mod-active) {
  display: none !important;
}
.wp-block-gallery.mod-gallery.is-mod-ready > .wp-block-image.is-mod-active {
  display: block !important;
}
.wp-block-gallery.mod-gallery.is-mod-ready > .wp-block-image.is-mod-active > img,
.wp-block-gallery.mod-gallery.is-mod-ready > .wp-block-image.is-mod-active > a > img {
  display: block;
  width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

/* Video poster and iframe share the same 16:9 hero area. */
.wp-block-gallery.mod-gallery .mod-gallery-video-stage[hidden] {
  display: none !important;
}
.wp-block-gallery.mod-gallery .mod-gallery-video-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #111;
}
.wp-block-gallery.mod-gallery .mod-gallery-video-stage > iframe,
.wp-block-gallery.mod-gallery .mod-gallery-play,
.wp-block-gallery.mod-gallery .mod-gallery-play > img {
  display: block;
  width: 100%;
  height: 100%;
}
.wp-block-gallery.mod-gallery .mod-gallery-video-stage > iframe {
  border: 0;
}
.wp-block-gallery.mod-gallery .mod-gallery-play {
  position: relative;
  padding: 0;
  border: 0;
  cursor: pointer;
  background: #111;
}
.wp-block-gallery.mod-gallery .mod-gallery-play > img {
  object-fit: cover;
}
.wp-block-gallery.mod-gallery .mod-gallery-play-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  place-items: center;
  width: 68px;
  height: 48px;
  transform: translate(-50%, -50%);
  border-radius: 12px;
  color: #fff;
  background: rgba(204, 0, 0, 0.85);
  font-size: 22px;
}

.wp-block-gallery.mod-gallery .mod-gallery-play:hover .mod-gallery-play-icon,
.wp-block-gallery.mod-gallery .mod-gallery-play:focus-visible .mod-gallery-play-icon {
  background: #e00;
}


/* Horizontal, swipeable thumbnail rail. */
.wp-block-gallery.mod-gallery .mod-gallery-thumbnails {
  display: flex;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 2px 0 7px;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-inline: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.wp-block-gallery.mod-gallery .mod-gallery-thumb {
  position: relative;
  display: block;
  flex: 0 0 112px;
  width: 112px;
  height: 67px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 4px;
  background: #111;
  cursor: pointer;
}
.wp-block-gallery.mod-gallery .mod-gallery-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wp-block-gallery.mod-gallery .mod-gallery-thumb[aria-pressed="true"] {
  border-color: #2271b1;
}
.wp-block-gallery.mod-gallery .mod-gallery-thumb:focus-visible,
.wp-block-gallery.mod-gallery .mod-gallery-play:focus-visible {
  outline: 3px solid #2271b1;
  outline-offset: 2px;
}
.wp-block-gallery.mod-gallery .mod-gallery-video-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 6px 10px;
  border-radius: 5px;
  color: #fff;
  background: rgba(204, 0, 0, 0.75);
  line-height: 1;
  font-size: 10px;
}
.mod-gallery-videos[hidden] {
  display: none !important;
}

@media (max-width: 600px) {
  .wp-block-gallery.mod-gallery .mod-gallery-thumb {
    flex-basis: 88px;
    width: 88px;
    height: 53px;
  }
}

.wp-block-gallery.mod-gallery {
  --mod-thumb-row-height: 84px;
}

.wp-block-gallery.mod-gallery:not(.is-mod-ready)::after {
  content: "";
  display: block;
  height: var(--mod-thumb-row-height);
  margin-top: 10px;
}

.wp-block-gallery.mod-gallery .mod-gallery-thumbnails {
  box-sizing: border-box;
  height: var(--mod-thumb-row-height);
  min-height: var(--mod-thumb-row-height);
}

@media (max-width: 600px) {
  .wp-block-gallery.mod-gallery {
    --mod-thumb-row-height: 70px;
  }
}

/* ============================================================
   CUSTOM LIGHTBOX
   ============================================================ */
.clb-full-overlay {
    position: fixed;
    inset: 0;
    z-index: 2147483647;

    display: flex;
    align-items: center;
    justify-content: center;

    box-sizing: border-box;
    padding: 24px;

    background: rgba(0, 0, 0, 0.94);

    opacity: 0;
    visibility: hidden;

    transition:
        opacity 0.18s ease,
        visibility 0.18s ease;

    overscroll-behavior: contain;
}

.clb-full-overlay,
.clb-full-overlay * {
    box-sizing: border-box;
}

.clb-full-overlay.is-open {
    opacity: 1;
    visibility: visible;
}

/* ------------------------------------------------------------
   Gambar
   ------------------------------------------------------------ */

.clb-full-image {
    display: block;

    width: auto;
    height: auto;

    max-width: calc(100vw - 48px);
    max-height: calc(100vh - 96px);

    object-fit: contain;

    margin: 0 auto;

    opacity: 1;

    user-select: none;
    -webkit-user-select: none;

    -webkit-user-drag: none;

    touch-action: pan-y;

    transition:
        opacity 0.22s ease,
        transform 0.22s ease;
}

.clb-full-image.is-changing {
    opacity: 0.15;
    transform: scale(0.985);
}

.clb-full-image.is-loaded {
    opacity: 1;
    transform: scale(1);
}

/* ------------------------------------------------------------
   Close
   ------------------------------------------------------------ */

.clb-full-close {
    position: absolute;

    top: 16px;
    right: 18px;

    z-index: 4;

    width: 48px;
    height: 48px;

    margin: 0;
    padding: 0;

    border: 0;
    border-radius: 999px;

    background: rgba(0, 0, 0, 0.30);

    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 38px;
    font-weight: 300;

    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        transform 0.15s ease;
}

.clb-full-close:hover {
    background: rgba(255, 255, 255, 0.15);
    transform: scale(1.05);
}

.clb-full-close:focus-visible,
.clb-full-prev:focus-visible,
.clb-full-next:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 3px;
}

/* ------------------------------------------------------------
   Previous / Next
   ------------------------------------------------------------ */

.clb-full-prev,
.clb-full-next {
    position: absolute;

    top: 50%;
    transform: translateY(-50%);

    z-index: 4;

    width: 52px;
    height: 72px;

    padding: 0;

    border: 0;
    border-radius: 8px;

    background: rgba(0, 0, 0, 0.25);

    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;

    font-size: 56px;
    font-weight: 300;

    line-height: 1;

    display: flex;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    transition:
        background-color 0.15s ease,
        opacity 0.15s ease;
}

.clb-full-prev {
    left: 14px;
}

.clb-full-next {
    right: 14px;
}

.clb-full-prev:hover,
.clb-full-next:hover {
    background: rgba(255, 255, 255, 0.14);
}

.clb-full-prev:disabled,
.clb-full-next:disabled {
    opacity: 0.20;
    cursor: default;
}

/* ------------------------------------------------------------
   Loading indicator
   ------------------------------------------------------------ */

.clb-full-loader {
    position: absolute;

    top: 50%;
    left: 50%;

    width: 36px;
    height: 36px;

    margin-left: -18px;
    margin-top: -18px;

    border: 3px solid rgba(255, 255, 255, 0.22);
    border-top-color: #fff;

    border-radius: 50%;

    opacity: 0;

    pointer-events: none;

    animation: clb-full-spin 0.8s linear infinite;
}

.clb-full-loader.is-loading {
    opacity: 1;
}

@keyframes clb-full-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ------------------------------------------------------------
   Counter & caption
   ------------------------------------------------------------ */

.clb-full-info {
    position: absolute;

    left: 20px;
    right: 20px;
    bottom: 18px;

    z-index: 3;

    text-align: center;

    pointer-events: none;

    color: #fff;

    font-family:
        Arial,
        Helvetica,
        sans-serif;
}

.clb-full-counter {
    margin-bottom: 5px;

    font-size: 13px;
    line-height: 1.4;

    opacity: 0.78;
}

.clb-full-caption {
    max-width: 760px;

    margin: 0 auto;

    font-size: 14px;
    line-height: 1.5;

    opacity: 0.92;

    text-shadow:
        0 1px 3px rgba(0, 0, 0, 0.8);
}

/* ------------------------------------------------------------
   Mobile
   ------------------------------------------------------------ */

@media (max-width: 767px) {
    .clb-full-overlay {
        padding: 12px;
    }

    .clb-full-image {
        max-width: calc(100vw - 24px);
        max-height: calc(100vh - 76px);
    }

    .clb-full-close {
        top: 10px;
        right: 10px;

        width: 44px;
        height: 44px;

        font-size: 34px;
    }

    .clb-full-prev,
    .clb-full-next {
        width: 44px;
        height: 60px;

        font-size: 44px;
    }

    .clb-full-prev {
        left: 6px;
    }

    .clb-full-next {
        right: 6px;
    }

    .clb-full-info {
        left: 12px;
        right: 12px;
        bottom: 10px;
    }

    .clb-full-caption {
        font-size: 13px;
    }
}

/* ------------------------------------------------------------
   Jika user memilih reduced motion
   ------------------------------------------------------------ */

@media (prefers-reduced-motion: reduce) {
    .clb-full-overlay,
    .clb-full-image,
    .clb-full-close,
    .clb-full-prev,
    .clb-full-next {
        transition: none;
    }

    .clb-full-loader {
        animation-duration: 1.5s;
    }
}
