/* Static mirror fixes: layout + typography when plugin CSS is incomplete */
.wp-block-columns.is-layout-flex {
  display: flex;
  flex-wrap: wrap;
  gap: 1.5rem 2rem;
  align-items: center;
}
.wp-block-columns > .wp-block-column {
  flex: 1 1 18rem;
  min-width: 0;
}
.wp-block-media-text {
  display: grid;
  grid-template-columns: 1fr minmax(0, 1fr);
  gap: 2rem;
  align-items: center;
}
.wp-block-media-text.has-media-on-the-right {
  grid-template-columns: minmax(0, 1fr) 1fr;
}
.wp-block-media-text__media,
.wp-block-media-text__content {
  min-width: 0;
}
@media (max-width: 782px) {
  .wp-block-media-text,
  .wp-block-media-text.has-media-on-the-right {
    grid-template-columns: 1fr;
  }
}
.wp-block-heading {
  word-break: normal;
  white-space: normal;
  writing-mode: horizontal-tb;
}
.cover-header.bg-image {
  background-size: cover;
  background-position: center;
}
.wp-block-image img {
  max-width: 100%;
  height: auto;
}
/* Restore template-cover + overlay header */
.overlay-header #site-header {
  position: absolute;
  width: 100%;
  z-index: 100;
}
.cover-header.bg-image {
  min-height: 70vh;
  background-color: #2c2826;
}
.cover-header-inner-wrapper.screen-height {
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cover-header .entry-title {
  color: #fff;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.45);
}
.cover-header .cover-color-overlay.opacity-50 {
  opacity: 0.35;
}
body.home.has-header-opaque .primary-menu > li > a,
body.home.has-header-opaque .primary-menu > li > .icon {
  color: #fff;
}
.site-logo .custom-logo-link img.logo-transparent {
  display: none;
}
body:not(.has-header-opaque) .site-logo .custom-logo-link img.logo-primary {
  display: block;
}
/* Subpages (template-cover): logo selaras homepage */
.template-cover .site-logo .custom-logo-link img.custom-logo {
  height: 90px !important;
  width: auto !important;
  max-height: none;
}
.overlay-header.template-cover #site-header .site-logo .custom-logo-link img.logo-primary {
  display: block !important;
}
.overlay-header.template-cover #site-header .site-logo .custom-logo-link img.logo-transparent {
  display: none !important;
}
.overlay-header.template-cover #site-header .primary-menu > li > a,
.overlay-header.template-cover #site-header .primary-menu > li > .icon {
  color: #fff;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.45);
}
.privatisation .wp-block-columns.tw-justify-center,
.privatisation .entry-content .wp-block-columns {
  gap: 1.25rem 1.5rem;
}
.pgc-sgb-cb .sgb-preloader {
  display: none !important;
}

/* Video: jangan paksa kotak 1:1 — ikuti rasio file (16:9) */
.entry-content .wp-block-video.opapabar-video-embed,
.entry-content figure.wp-block-video.opapabar-video-embed {
  margin: 0 0 1.25rem;
  line-height: 0;
  max-width: 100%;
}
.entry-content .opapabar-video-embed video {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  vertical-align: top;
  aspect-ratio: auto !important;
  object-fit: contain;
  background: #0f0e17;
}
.entry-content .wp-block-video.alignwide.opapabar-video-embed {
  width: calc(100% - 4rem);
  max-width: 120rem;
  margin-left: auto;
  margin-right: auto;
}
.entry-content .kt-inside-inner-col .opapabar-video-embed video {
  border-radius: 4px;
}

/* Teks atas, media bawah — lebar & ukuran teks/media mengikuti theme (.alignwide), tanpa max 580px */
.entry-content .opapabar-intro-stack,
.entry-content .opapabar-media-stack {
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}
.entry-content .opapobar-intro-stack__text {
  margin-bottom: 1.25rem;
}
.entry-content .opapabar-intro-stack .opapabar-video-embed video {
  max-width: 100%;
  height: auto;
  margin-left: auto;
  margin-right: auto;
}
.entry-content .opapobar-media-stack__item {
  margin: 0 0 2.5rem;
}
.entry-content .opapobar-media-stack__item:last-child {
  margin-bottom: 0;
}
.entry-content .opapobar-media-stack__item h4 {
  margin-bottom: 0.5rem;
}
.entry-content .opapobar-media-stack__item .wp-block-paragraph {
  margin-top: 0;
  margin-bottom: 1rem;
}
.entry-content .opapobar-media-stack__item .wp-block-image {
  margin: 0;
  width: 100%;
  max-width: 100%;
}
.entry-content .opapobar-media-stack__item .wp-block-image img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0 auto;
}

/* Privatisation: selaras opapabar.com (section 1140px, slider + kartu di tengah) */
#post-914 .wp-block-getwid-section.getwid-section-content-custom-width .wp-block-getwid-section__inner-wrapper {
  max-width: 1140px !important;
  margin-left: auto;
  margin-right: auto;
}
#post-914 .wp-block-getwid-section__inner-content {
  text-align: center;
}
.entry-content .opapabar-privatisation-slider {
  margin: 1.25rem auto 1.75rem;
  width: 100%;
  max-width: 1140px;
}
#post-914 .opapabar-privatisation-slider .slick-slider {
  margin: 0 auto;
}
#post-914 .opapabar-privatisation-slider .slick-list {
  margin: 0 auto;
}
#post-914 .opapabar-privatisation-slider .slick-dots {
  text-align: center;
}
/* Jangan timpa Twentig: 5 kartu tarif satu baris, rata tengah (bukan nempel kiri) */
#post-914 .wp-block-getwid-section__inner-content > .wp-block-columns.tw-cols-card {
  flex-wrap: nowrap !important;
  justify-content: center;
  align-items: stretch;
  gap: 0.75rem 1rem;
  width: 100%;
  max-width: 1140px;
  margin-left: auto;
  margin-right: auto;
}
#post-914 .wp-block-getwid-section__inner-content > .wp-block-columns.tw-cols-card > .wp-block-column {
  flex: 1 1 0 !important;
  min-width: 0;
  text-align: center;
}
#post-914 .wp-block-getwid-section__inner-content > .wp-block-columns.tw-cols-card .wp-block-paragraph {
  text-align: center !important;
}
@media (max-width: 1023px) {
  #post-914 .wp-block-getwid-section__inner-content > .wp-block-columns.tw-cols-card {
    flex-wrap: wrap !important;
    justify-content: center;
  }
  #post-914 .wp-block-getwid-section__inner-content > .wp-block-columns.tw-cols-card > .wp-block-column {
    flex: 1 1 calc(50% - 1rem) !important;
    max-width: 20rem;
  }
}
/* Jika Slick belum init (mirror statis), jangan tumpuk semua slide */
#post-914 .opapabar-privatisation-slider .wp-block-getwid-images-slider__wrapper:not(.slick-initialized) > .wp-block-getwid-images-slider__item:not(:first-child) {
  display: none;
}
/* Slider privatisation: tinggi seragam + crop (seperti live has-cropped-images) */
#post-914 .opapabar-privatisation-slider.has-cropped-images .slick-track {
  display: flex;
  align-items: stretch;
}
#post-914 .opapabar-privatisation-slider.has-cropped-images .slick-slide figure {
  display: block;
  width: 100%;
  height: 280px;
  margin: 0;
  overflow: hidden;
}
#post-914 .opapabar-privatisation-slider.has-cropped-images .wp-block-getwid-images-slider__item,
#post-914 .opapabar-privatisation-slider.has-cropped-images .wp-block-getwid-images-slider__item figure {
  width: 100%;
}
#post-914 .opapabar-privatisation-slider.has-cropped-images .wp-block-getwid-images-slider__image {
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  object-fit: cover;
  object-position: center;
}
@media (min-width: 1024px) {
  #post-914 .opapabar-privatisation-slider.has-cropped-images .slick-slide figure {
    height: 320px;
  }
}
#post-914 .wp-block-getwid-section__inner-content > #privatisation-de-l-etablissement + .wp-block-paragraph {
  margin-bottom: 0.5rem;
}
/*
 * Homepage saja: theme Twenty Twenty memberi .alignwide margin 4rem dan h4 margin ~3.5rem.
 * Di sini hanya merapikan jarak antar blok (bukan mengecilkan teks/kolom tarif).
 */
#post-914 .entry-content > .opapabar-intro-stack.alignwide,
#post-914 .entry-content > .opapabar-media-stack.alignwide {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}
#post-914 .entry-content > .wp-block-kadence-spacer.aligncenter {
  margin-top: 1.25rem !important;
  margin-bottom: 1.25rem !important;
}
#post-914 .entry-content .opapobar-intro-stack__text .wp-block-heading,
#post-914 .entry-content .opapobar-media-stack__item > .wp-block-heading {
  margin-top: 1rem !important;
  margin-bottom: 0.75rem !important;
}
#post-914 .entry-content #privatisation-de-l-etablissement {
  margin-top: 1.5rem !important;
  margin-bottom: 1rem !important;
}

/* Gallery (post-4154): masonry lokal — Simply Gallery JS tidak ada di mirror/live 404 */
#post-4154 .entry-content .opapabar-gallery-intro {
  margin: 2rem auto 1.5rem;
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  max-width: 36rem;
  padding: 0 1rem;
}
#post-4154 .pgc-sgb-cb .simply-gallery-amp {
  width: 100%;
  opacity: 1 !important;
  height: auto !important;
  min-height: 0 !important;
  overflow: visible !important;
  visibility: visible !important;
}
#post-4154 .pgc-sgb-cb.alignfull {
  width: 100%;
  max-width: 100%;
}
#post-4154 .opapabar-gallery-masonry {
  column-count: 4;
  column-gap: 12px;
  padding: 0 clamp(1rem, 3vw, 2rem) 2.5rem;
  margin: 0 auto;
  max-width: 100%;
  box-sizing: border-box;
}
#post-4154 .opapabar-gallery-masonry__item {
  break-inside: avoid;
  margin-bottom: 12px;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
  line-height: 0;
}
#post-4154 .opapabar-gallery-masonry__item a {
  display: block;
  line-height: 0;
}
#post-4154 .opapabar-gallery-masonry__item img,
#post-4154 .opapabar-gallery-masonry__item video {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: top;
}
#post-4154 .opapabar-gallery-masonry__caption {
  margin: 0;
  padding: 0.65rem 0.75rem 0.85rem;
  font-size: 0.9rem;
  line-height: 1.35;
  text-align: center;
  color: #303030;
  background: #fff;
}
@media (max-width: 1023px) {
  #post-4154 .opapabar-gallery-masonry {
    column-count: 2;
  }
}
@media (max-width: 599px) {
  #post-4154 .opapabar-gallery-masonry {
    column-count: 1;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}
.opapabar-gallery-lightbox {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem;
  background: rgba(0, 0, 0, 0.88);
  box-sizing: border-box;
}
.opapabar-gallery-lightbox[hidden] {
  display: none !important;
}
.opapabar-gallery-lightbox img {
  max-width: min(96vw, 1200px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
}
.opapabar-gallery-lightbox__close {
  position: absolute;
  top: 0.75rem;
  right: 1rem;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
}

/* LA CARTE — layout & efek seperti asli (FDM classic, tanpa foto item) */
#post-3845 .entry-content {
  background-color: #fcfbfa;
}
#post-3845 .fdm-menu-entry,
#post-3845 .fdm-the-menu {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
#post-3845 .fdm-the-menu {
  padding: 2rem clamp(1rem, 3vw, 2.5rem) 3.5rem;
}
#post-3845 .fdm-the-menu::after {
  content: '';
  display: table;
  clear: both;
}
#post-3845 .fdm-menu-sidebar-div {
  float: left;
  margin-top: 0;
}
#post-3845 #fdm-menu-1.fdm-menu {
  overflow: hidden;
}
#post-3845 .fdm-section-header {
  border-bottom: 1px solid #303030;
}
#post-3845 .fdm-section-header h3 {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
#post-3845 .fdm-item-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  cursor: pointer;
}
#post-3845 .fdm-menu-sidebar-section-title {
  font-family: 'Barlow Condensed', sans-serif;
  transition: color 0.2s ease, border-color 0.2s ease;
}
#post-3845 .fdm-menu-sidebar-section-title-selected {
  color: #303030 !important;
  border-bottom-color: #303030 !important;
}
#post-3845 .fdm-sidebar-mobile-expand-button {
  background: #303030;
  font-family: 'Barlow Condensed', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
#post-3845 .fdm-sidebar-mobile-expand-button:hover {
  background: #000;
}
#post-3845 .fdm-item-image,
#post-3845 .fdm-item-image[src*="apple-icon"],
#post-3845 .fdm-item-image[src*="logoFEC"],
#post-3845 .fdm-item-image[src*="opapabar-wordmark"] {
  display: none !important;
}
#post-3845 .fdm-item-has-image .fdm-item-panel p,
#post-3845 .fdm-item-has-image .fdm-item-panel .wp-block-quote,
#post-3845 .fdm-item-has-image .fdm-ratings-wrapper {
  padding-left: 0 !important;
}
#post-3845 .fdm-item-has-price .fdm-item-panel p {
  padding-right: 20%;
}
#post-3845 .fdm-item-price-wrapper {
  font-family: 'Barlow', sans-serif;
  font-weight: 600;
}
/* Subpages: logo header (cover) + wordmark di atas konten */
body.template-cover.has-header-opaque .site-logo .custom-logo-link img.logo-primary {
  display: block !important;
}
body.template-cover.has-header-opaque .site-logo .custom-logo-link img.logo-transparent {
  display: none !important;
}
.entry-content .opapabar-subpage-logo {
  margin: 2rem auto 1.25rem;
  text-align: center;
  clear: both;
}
.entry-content .opapabar-subpage-logo figure {
  margin: 0 auto;
  line-height: 0;
}
.entry-content .opapabar-subpage-logo img {
  display: inline-block;
  width: auto;
  height: 72px !important;
  max-height: none;
  max-width: min(200px, 42vw);
  object-fit: contain;
  filter: none;
  opacity: 1;
}
/* Header subpage (latar terang): logo warna asli, tanpa filter */
body.has-header-opaque #site-header .site-logo .custom-logo-link img.logo-primary {
  filter: none;
  opacity: 1;
}
body.has-header-opaque #site-header .primary-menu > li > a,
body.has-header-opaque #site-header .primary-menu > li > .icon {
  color: #303030;
  text-shadow: none;
}
/* Homepage / cover tanpa header opaque: logo putih di atas hero */
body.template-cover.overlay-header:not(.has-header-opaque) #site-header .site-logo .custom-logo-link img.logo-primary {
  filter: none;
  opacity: 1;
}
body.template-cover:not(.overlay-header) #site-header .site-logo .custom-logo-link img.logo-primary,
body:not(.template-cover):not(.has-header-opaque) #site-header .site-logo .custom-logo-link img.logo-primary {
  filter: brightness(0) saturate(100%);
  opacity: 0.9;
}