/*
 * SC Press — gaya dasar untuk HTML konten WordPress (blok Gutenberg & editor klasik):
 * perataan, kolom, galeri, caption, tombol, kutipan, tabel, sampul, embed.
 * Ditulis sendiri untuk SC Press; tema boleh menimpa.
 */
.alignleft { float: left; margin: .3em 1.5em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.5em; }
.aligncenter { display: block; margin-left: auto; margin-right: auto; text-align: center; }
.alignnone { margin: 0; }
.alignwide { max-width: min(1100px, 100%); }
.alignfull { max-width: none; }
.entry-content::after { content: ""; display: table; clear: both; }
.has-text-align-center { text-align: center; }
.has-text-align-right { text-align: right; }
.has-text-align-left { text-align: left; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Gambar & caption */
.wp-block-image, .wp-caption { margin-left: 0; margin-right: 0; max-width: 100%; }
.wp-block-image img, .wp-caption img { max-width: 100%; height: auto; }
.wp-block-image figcaption, .wp-caption-text, .wp-element-caption, .blocks-gallery-caption { font-size: .875em; color: #6b7280; text-align: center; margin-top: .5em; }
.wp-block-image.is-style-rounded img { border-radius: 9999px; }

/* Kolom & grup */
.wp-block-columns { display: flex; flex-wrap: wrap; gap: 1.5em; margin-bottom: 1.5em; }
.wp-block-column { flex: 1 1 0; min-width: 0; }
.wp-block-column[style*="flex-basis"] { flex-grow: 0; }
@media (max-width: 781px) { .wp-block-columns:not(.is-not-stacked-on-mobile) { flex-direction: column; } .wp-block-column { flex-basis: 100% !important; } }
.wp-block-group.has-background, .has-background { padding: 1.25em 1.5em; }
.is-layout-flex { display: flex; flex-wrap: wrap; gap: .75em; align-items: center; }
.is-content-justification-center { justify-content: center; }
.is-content-justification-right { justify-content: flex-end; }
.is-content-justification-space-between { justify-content: space-between; }

/* Galeri (blok baru & shortcode [gallery]) */
.wp-block-gallery, .blocks-gallery-grid { display: grid; grid-template-columns: repeat(var(--scp-cols, 3), 1fr); gap: .75em; padding: 0; list-style: none; }
.wp-block-gallery.columns-1 { --scp-cols: 1; } .wp-block-gallery.columns-2 { --scp-cols: 2; } .wp-block-gallery.columns-4 { --scp-cols: 4; } .wp-block-gallery.columns-5 { --scp-cols: 5; } .wp-block-gallery.columns-6 { --scp-cols: 6; }
.wp-block-gallery figure, .blocks-gallery-item { margin: 0; }
.wp-block-gallery img { width: 100%; height: 100%; object-fit: cover; border-radius: .4em; }
.gallery { display: grid; gap: .75em; margin-bottom: 1.5em; }
.gallery-columns-1 { grid-template-columns: 1fr; } .gallery-columns-2 { grid-template-columns: repeat(2, 1fr); } .gallery-columns-3 { grid-template-columns: repeat(3, 1fr); }
.gallery-columns-4 { grid-template-columns: repeat(4, 1fr); } .gallery-columns-5 { grid-template-columns: repeat(5, 1fr); } .gallery-columns-6 { grid-template-columns: repeat(6, 1fr); }
.gallery-item { margin: 0; }
.gallery-item img { width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: .4em; }
@media (max-width: 600px) { .gallery, .wp-block-gallery { grid-template-columns: repeat(2, 1fr); } }

/* Tombol */
.wp-block-buttons { display: flex; flex-wrap: wrap; gap: .6em; margin-bottom: 1.2em; }
.wp-block-button__link, .wp-element-button { display: inline-block; padding: .6em 1.3em; border-radius: 999px; background: var(--bs-primary, #2563eb); color: #fff; text-decoration: none; font-weight: 600; }
.wp-block-button__link:hover { filter: brightness(.92); color: #fff; }
.wp-block-button.is-style-outline .wp-block-button__link { background: transparent; border: 2px solid currentColor; color: var(--bs-primary, #2563eb); }

/* Kutipan, kode, tabel, pemisah */
.wp-block-quote { border-left: 4px solid currentColor; padding-left: 1em; margin-left: 0; }
.wp-block-quote cite, .wp-block-pullquote cite { display: block; font-size: .85em; font-style: normal; color: #6b7280; }
.wp-block-pullquote { border-top: 4px solid; border-bottom: 4px solid; padding: 2em 0; text-align: center; font-size: 1.3em; }
.wp-block-code, .wp-block-preformatted { overflow: auto; }
.wp-block-table { overflow-x: auto; }
.wp-block-table table { width: 100%; border-collapse: collapse; }
.wp-block-table td, .wp-block-table th { border: 1px solid #d1d5db; padding: .5em .75em; }
.wp-block-table.is-style-stripes tbody tr:nth-child(odd) { background: rgba(0, 0, 0, .04); }
.wp-block-separator { border: 0; border-top: 2px solid currentColor; opacity: .3; margin: 2em auto; }
.wp-block-separator.is-style-dots { border: 0; text-align: center; } .wp-block-separator.is-style-dots::before { content: "\00b7 \00b7 \00b7"; letter-spacing: 1em; }

/* Sampul & media-teks */
.wp-block-cover, .wp-block-cover-image { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; padding: 2em; color: #fff; overflow: hidden; border-radius: .6em; }
.wp-block-cover__image-background, .wp-block-cover__video-background { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wp-block-cover__background { position: absolute; inset: 0; background: #000; opacity: .5; }
.wp-block-cover__inner-container { position: relative; z-index: 1; width: 100%; }
.wp-block-media-text { display: grid; grid-template-columns: 50% 1fr; gap: 2em; align-items: center; }
.wp-block-media-text.has-media-on-the-right { grid-template-columns: 1fr 50%; }
.wp-block-media-text.has-media-on-the-right .wp-block-media-text__media { order: 2; }
.wp-block-media-text img { width: 100%; height: auto; }
@media (max-width: 600px) { .wp-block-media-text { grid-template-columns: 1fr !important; } }

/* Pos terbaru, berkas, detail */
.wp-block-latest-posts { padding-left: 0; list-style: none; }
.wp-block-latest-posts li { margin-bottom: .6em; }
.wp-block-latest-posts.is-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2em; }
.wp-block-latest-posts__post-date { display: block; font-size: .8em; color: #6b7280; }
.wp-block-latest-posts__featured-image img { max-width: 100%; height: auto; border-radius: .4em; }
.wp-block-file { display: flex; align-items: center; gap: .75em; flex-wrap: wrap; }
.wp-block-file__button { padding: .4em 1em; border-radius: 999px; background: var(--bs-primary, #2563eb); color: #fff; text-decoration: none; font-size: .9em; }
.wp-block-details summary { cursor: pointer; font-weight: 600; }
.wp-block-social-links { display: flex; flex-wrap: wrap; gap: .5em; list-style: none; padding: 0; }
.wp-social-link a { display: inline-block; padding: .3em .8em; border-radius: 999px; background: #111827; color: #fff; text-decoration: none; font-size: .85em; }
.wp-block-footnotes { font-size: .9em; }

/* Embed responsif */
.scp-embed { position: relative; width: 100%; margin: 1.5em 0; }
.scp-embed-16x9 { aspect-ratio: 16/9; }
.scp-embed-16x9 iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; border-radius: .6em; }
.scp-embed-spotify iframe { width: 100%; border: 0; border-radius: 12px; }
.wp-block-embed { margin: 1.5em 0; }
.wp-block-embed figcaption { font-size: .875em; color: #6b7280; text-align: center; }

/* Warna & ukuran preset WordPress yang umum */
.has-small-font-size { font-size: .875em; } .has-medium-font-size { font-size: 1.15em; } .has-large-font-size { font-size: 1.5em; } .has-x-large-font-size { font-size: 2em; }
.has-black-color { color: #000; } .has-white-color { color: #fff; } .has-cyan-bluish-gray-color { color: #abb8c3; }
.has-vivid-red-color { color: #cf2e2e; } .has-luminous-vivid-orange-color { color: #ff6900; } .has-luminous-vivid-amber-color { color: #fcb900; }
.has-vivid-green-cyan-color { color: #00d084; } .has-vivid-cyan-blue-color { color: #0693e3; } .has-vivid-purple-color { color: #9b51e0; }
.has-black-background-color { background-color: #000; } .has-white-background-color { background-color: #fff; } .has-pale-pink-background-color { background-color: #f78da7; }
.has-vivid-red-background-color { background-color: #cf2e2e; } .has-luminous-vivid-amber-background-color { background-color: #fcb900; } .has-pale-cyan-blue-background-color { background-color: #8ed1fc; }
.has-vivid-cyan-blue-background-color { background-color: #0693e3; } .has-light-green-cyan-background-color { background-color: #7bdcb5; } .has-vivid-green-cyan-background-color { background-color: #00d084; }
.has-very-light-gray-background-color { background-color: #eee; } .has-very-dark-gray-background-color { background-color: #313131; }
