/*
Theme Name: ReyBlock
Theme URI: https://www.rbinfosoft.com/reyblock/
Author: ReyBlock Team
Author URI: https://www.rbinfosoft.com
Description: ReyBlock is an aerodynamic, lightweight, and modern WordPress theme engineered for the block editor era. Inspired by the speed and flexibility of modern web design, ReyBlock features an intuitive header and footer builder, dynamic CSS variable system, responsive typography, and zero-bloat vanilla JavaScript for near-perfect Core Web Vitals.
Version: 1.0.4
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: reyblock
Tags: blog, e-commerce, custom-background, custom-colors, custom-header, custom-logo, custom-menu, editor-style, featured-images, footer-widgets, full-width-template, grid-layout, left-sidebar, one-column, right-sidebar, rtl-language-support, theme-options, threaded-comments, translation-ready, two-columns, wide-blocks, block-patterns

ReyBlock, Copyright 2026 ReyBlock Team
ReyBlock WordPress Theme, Copyright (C) 2026 RB Infosoft.
ReyBlock is distributed under the terms of the GNU General Public License v2 or later.
*/

/*--------------------------------------------------------------
# WordPress Core Content & Alignment Styles
--------------------------------------------------------------*/
.alignleft {
	float: left;
	margin-right: 1.5em;
	margin-bottom: 1.5em;
	max-width: 100%;
}

.alignright {
	float: right;
	margin-left: 1.5em;
	margin-bottom: 1.5em;
	max-width: 100%;
}

.aligncenter {
	clear: both;
	display: block;
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 1.5em;
}

/* Clearfix for Floated Elements & Content Containers */
.clear::before,
.clear::after,
.clearfix::before,
.clearfix::after,
.entry-content::before,
.entry-content::after,
.entry-summary::before,
.entry-summary::after,
.page-content::before,
.page-content::after,
.comment-content::before,
.comment-content::after,
.site-content::before,
.site-content::after,
.rb-site-main::before,
.rb-site-main::after,
.rb-prose::before,
.rb-prose::after,
.rb-post-card::before,
.rb-post-card::after,
.site-header::before,
.site-header::after,
.site-footer::before,
.site-footer::after {
	content: "";
	display: table;
	table-layout: fixed;
}

.clear::after,
.clearfix::after,
.entry-content::after,
.entry-summary::after,
.page-content::after,
.comment-content::after,
.site-content::after,
.rb-site-main::after,
.rb-prose::after,
.rb-post-card::after,
.site-header::after,
.site-footer::after {
	clear: both;
}

/* Overflow & Word Wrap Protection on Content Containers */
body,
.entry-content,
.entry-summary,
.page-content,
.comment-content,
.site-content,
.rb-site-main,
.rb-prose,
.rb-card-content,
.rb-post-card,
.widget-area,
article {
	overflow-wrap: break-word;
	word-wrap: break-word;
}

pre,
code,
kbd,
samp {
	overflow-x: auto;
	max-width: 100%;
}

table {
	max-width: 100%;
	overflow-x: auto;
	word-break: normal;
}

/* Long Title & Heading Wrapping Protection */
h1,
h2,
h3,
h4,
h5,
h6,
.entry-title,
.entry-title a,
.rb-card-title,
.rb-card-title a,
.page-title,
.wp-block-heading,
.widget-title,
.rb-related-title {
	overflow-wrap: break-word;
	word-wrap: break-word;
	word-break: break-word;
	hyphens: auto;
}

/* Captions */
.wp-caption {
	margin-bottom: 1.5em;
	max-width: 100%;
	clear: both;
}

.wp-caption img[class*="wp-image-"] {
	display: block;
	margin-left: auto;
	margin-right: auto;
	max-width: 100%;
	height: auto;
}

.wp-caption .wp-caption-text,
.gallery-caption {
	font-size: 0.875rem;
	line-height: 1.5;
	margin: 0.5em 0 0;
	padding: 0;
	text-align: center;
	color: #64748b;
	font-style: italic;
	overflow-wrap: break-word;
	word-wrap: break-word;
}

/* Sticky Post */
.sticky {
	display: block;
}

article.sticky {
	position: relative;
	border: 1px solid var(--rb-palette-primary, #2563eb);
	border-radius: var(--rb-radius-md, 8px);
}

/* Comment Author Highlighting */
.bypostauthor {
	display: block;
}

.bypostauthor > article {
	border-left: 3px solid var(--rb-palette-primary, #2563eb);
}

/* Screen reader text (accessible fallback) */
.screen-reader-text {
	border: 0;
	clip: rect(1px, 1px, 1px, 1px);
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute !important;
	width: 1px;
	word-wrap: normal !important;
}

.screen-reader-text:focus {
	background-color: #ffffff;
	border-radius: 3px;
	box-shadow: 0 0 2px 2px rgba(0, 0, 0, 0.6);
	clip: auto !important;
	clip-path: none;
	color: #1e293b;
	display: block;
	font-size: 0.875rem;
	font-weight: 700;
	height: auto;
	left: 5px;
	line-height: normal;
	padding: 15px 23px 14px;
	text-decoration: none;
	top: 5px;
	width: auto;
	z-index: 100000;
}

