/*
	Theme Name: INSP 2025
*/

.hide-stars::after {
	display: none;
}

.hide-stitching {
	background: none;
}


.btn {
	white-space: nowrap;
}


.page-template-page-legal .page-header {
	z-index: 16;
}

.page-template-page-legal .page-navigation::before {
	display: block;
	content: '';
	width: 100%;
	height: 25px;
	position: absolute;
	bottom: 100%;
	left: 0;
	z-index: -1;
	background: #E8E1D5;
	pointer-events: none;
}


.contact-form .gfield_required {
	display: none;
}

.contact-form .ginput_container {
	position: relative;
}

.contact-form .hidden_label label {
	display: none;
}

.contact-form textarea {
	height: 120px;
	white-space: normal;
}

.contact-form fieldset {
	padding: 0;
	margin: 0;
	border: 0;
}

.contact-form fieldset.gfield--type-time legend {
	display: block;
}

.gfield--type-honeypot {
	display: none;
	pointer-events: none;
}

.gfield_validation_message,
.field-validation-feedback + .field-validation-feedback {
	display: none;
}

.gfield_error input[type=text], 
.gfield_error input[type=email], 
.gfield_error input[type=tel], 
.gfield_error input[type=password], 
.gfield_error .nice-select, 
.gfield_error textarea {
	border-color: var(--error-bd-color);
}

.gfield_error input[type=text]:focus, 
.gfield_error input[type=email]:focus, 
.gfield_error input[type=tel]:focus, 
.gfield_error input[type=password]:focus, 
.gfield_error .nice-select:focus, 
.gfield_error textarea:focus {
	box-shadow: var(--error-box-shadow);
}

.gfield_error .instruction.validation_message {
	display: none;
}

.g-recaptcha .error {
	box-shadow: 0 0 0px 1px #BF2827;
	border: 1px solid #BF2827;
	border-radius: 3px;
}

/* Gravity Froms VRC */
.vcr-form ul {
	padding-left: 0px;
}
.vcr-form ul, 
.vcr-form ul li {
  list-style-type: none;
}

.vcr-form .field-controller>label {
	 justify-content: flex-start;
}

.vcr-form .gfield_required_asterisk {
	color:#BF2827;
}

@media (width > 992px){

	.heroes-slider-reverse .heroes-slider-item {
		flex-direction: row-reverse;
	}

}


.block-content .block-content-figure figure.alignoffsetleft {
	width: 100% !important;
	position: relative;
}

.block-content .block-content-figure figure.alignoffsetleft::after {
	width: 2.25rem;
	inset: -2.3333333333rem auto 0 0;
	content: "";
	z-index: 10;
	display: block;
	position: absolute;
	background: url(images/figure-stars.svg) left top no-repeat;
}

.block-content .block-content-text img[width] {
	/* width: auto; */
	height: auto;
}


.w2w-pswd {
	overflow: hidden;
}
.w2w-pswd .section-content {
	overflow: hidden;
	filter: blur(5px);
}


.card-programm-hidden {
	display: none;
}

.card-simple-grid .section-ad-block {
	width: 100%;
}

select.error + .nice-select {
	border-color: #d0011a;
}

select.error + .nice-select:focus {
	box-shadow: 0 0 0 1px #d0021a, 0 0 0 4px rgba(186, 61, 33, 0.25);
}

.field-controller.checkbox > input[type=checkbox].error + label span::before {
	border-color: #d0011a;
}

.btn-disabled {
	opacity: .3;
	pointer-events: none;
}


/*
.tabs-block .tab-pane {
	min-height: 500px; there is a bug because this property
}
*/


.gform-theme-datepicker.ui-datepicker {
	background: #fff;
	border: 1px solid #d0d1d3;
	border-radius: 3px;
	box-shadow: 0 .0625rem .25rem rgba(0, 0, 0, .11), 0 0 .25rem rgba(18, 25, 97, .0405344);
	color: #607382;
	font-size: .7125rem;
	margin-top: 5px;
	max-width: 400px;
	padding: 18px 15px;
	width: auto
}

.gform-theme-datepicker.ui-datepicker table,
.gform-theme-datepicker.ui-datepicker td,
.gform-theme-datepicker.ui-datepicker th,
.gform-theme-datepicker.ui-datepicker thead,
.gform-theme-datepicker.ui-datepicker tr {
	background: 0 0;
	border: 0;
	margin: 0
}

.gform-theme-datepicker.ui-datepicker td,
.gform-theme-datepicker.ui-datepicker th {
	padding: 5px;
	text-shadow: none;
	text-transform: none
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header {
	border: 0;
	display: flex;
	flex-direction: row;
	justify-content: center;
	margin: 0 0 5px;
	padding: 0;
	position: relative;
	width: 100%
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-next,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-prev {
	align-items: center;
	background: 0 0;
	border: 0;
	color: #607382;
	cursor: pointer;
	display: flex;
	font-family: gform-icons-theme !important;
	font-size: 24px;
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
	height: 30px;
	justify-content: center;
	line-height: 1;
	position: absolute;
	speak: never;
	text-decoration: none;
	top: 50%;
	transform: translateY(-50%);
	transition: color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out;
	width: 30px
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-next:focus,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-next:hover,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:focus,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-prev:hover {
	color: #2f4054
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-next .ui-icon,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-prev .ui-icon {
	display: none
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-next::before,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-prev::before {
	border: 0;
	height: auto;
	position: static;
	transform: none;
	width: auto
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-prev {
	left: 0
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-prev::before {
	content: "\e910"
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-next {
	right: 0
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header .ui-datepicker-next::before {
	content: "\e91b"
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header select {
	-webkit-appearance: none;
	background-color: transparent;
	background-image: url(/wp-content/plugins/gravityforms/images/theme/down-arrow.svg);
	background-position: 100% 50%;
	background-repeat: no-repeat;
	background-size: 24px 24px;
	border: 0;
	border-radius: 0;
	box-shadow: none;
	color: #585e6a;
	cursor: pointer;
	display: inline-block;
	font-size: .875rem;
	font-weight: var(--gform-theme-font-weight-medium);
	height: auto;
	min-height: 0;
	padding: 0 22px 0 0;
	width: auto
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-header select.ui-datepicker-month {
	margin-right: 20px;
	-moz-text-align-last: right;
	text-align-last: right
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar {
	table-layout: fixed;
	width: 100%
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar a,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar span {
	font-weight: var(--gform-theme-font-weight-normal)
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar th span {
	align-items: center;
	color: #2f4054;
	display: flex;
	font-size: .8125rem;
	font-weight: var(--gform-theme-font-weight-medium);
	height: 40px;
	justify-content: center;
	width: 40px
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar td {
	font-size: .8125rem;
	height: 50px;
	width: 50px
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-default {
	align-items: center;
	background: 0 0;
	border: 1px solid transparent;
	border-radius: 100%;
	box-shadow: none;
	color: #2f4054;
	display: flex;
	height: 40px;
	justify-content: center;
	text-decoration: none;
	transition: color .3s ease-in-out, background-color .3s ease-in-out, border-color .3s ease-in-out;
	width: 40px
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-default:focus,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-default:hover {
	background: 0 0;
	border-color: #607382;
	outline: 0
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-default:active {
	background: #f2f3f5;
	border-color: #607382
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-datepicker-current-day .ui-state-default {
	background: #607382;
	border-color: #607382;
	box-shadow: 0 .125rem .125rem rgba(58, 58, 87, .0596411);
	color: #fff
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-datepicker-current-day .ui-state-default:focus,
.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-datepicker-current-day .ui-state-default:hover {
	border-color: #607382
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-disabled {
	background: 0 0
}

.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-disabled .ui-state-default {
	align-items: center;
	background: #f2f3f5;
	border: 1px solid rgba(32, 32, 46, .079);
	border-radius: 100%;
	box-shadow: 0 .125rem .125rem rgba(58, 58, 87, .0596411);
	color: #686e77;
	cursor: text;
	display: flex;
	height: 40px;
	justify-content: center;
	text-decoration: none;
	width: 40px
}

@media (max-width:640px) {
	.gform-theme-datepicker.ui-datepicker {
		max-width: 235px
	}

	.gform-theme-datepicker.ui-datepicker .ui-datepicker-header {
		margin-bottom: 10px
	}

	.gform-theme-datepicker.ui-datepicker td,
	.gform-theme-datepicker.ui-datepicker th {
		padding: 3px
	}

	.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar th span {
		height: 20px;
		width: 20px
	}

	.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar td {
		height: 30px;
		width: 30px
	}

	.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-default {
		height: 20px;
		width: 20px
	}

	.gform-theme-datepicker.ui-datepicker .ui-datepicker-calendar .ui-state-disabled .ui-state-default {
		height: 20px;
		width: 20px
	}
}

html[dir=rtl] #ui-datepicker-div.gform-theme-datepicker[style] {
	right: auto !important
}


.form-intro-block {
	display: none;
	padding: 20px 0;
}

.form-intro-block h5 {
	color: #002f5e;
}


.pagination-disabled {
	opacity: .5;
	cursor: default;
	pointer-events: none;
}


.article-top-bg::before {
	display: block;
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: url(images/texture-story-hero.png) center 0 no-repeat;
	background-size: cover;
}

.article-top-bg::after {
	display: block;
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	background: url(images/edges/edge-story-hero-bg.svg) 0 100% no-repeat;
	background-size: 100% auto;
}

.article-author a {
	color: inherit !important; 
}

.block-content-author .col-img img {
	border-radius: 50%;
}


.article-legacy-content .block-audio-player {
	margin-left: 0;
	margin-right: 0;
}

.article-ranked-content .block-btn {
	max-width: unset;
}


@media (width > 768px){

	.sweeps-item-reverse {
		flex-direction: row-reverse;
	}

}


.block-section.hero-stories::before {
	display: block;
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 0;
	background: url(images/texture-story-hero.png) center 0 no-repeat;
	background-size: cover;
}

.block-section.hero-stories::after {
	display: block;
	content: '';
	width: 100%;
	height: 100%;
	position: absolute;
	top: 0;
	left: 0;
	z-index: 1;
	background: url(images/edges/edge-story-hero-bg.svg) 0 100% no-repeat;
	background-size: 100% auto;
}


.saddle-up-container {
	padding: 0;
}


.sections-group {
	background-size: cover;
}


.billboard-badges > div + div {
	margin-left: 8px;
}

.stories-billboard .billboard-subtitle {
	padding-left: 0;
	padding-right: 0;
	margin-bottom: 16px;
}

.article-featured img {
	width: 100%;
}


.filter-side-content .checkbox-child-wrap {
	display: none;
}

.filter-side-content .field-controller + .checkbox-child-wrap {
	padding-top: 21px;
}

.filter-side-content .checkbox-child {
	padding-left: 15px
}

.filter-side-content .filter-row + .filter-row,
.filter-side-content .filter-side-body .filter-row-content .checkbox-child-wrap + .field-controller {
    margin-top: 24px
}

/*.filter-side-content .filter-tags {
	display: none;
}*/


.tabs-slider-block .tabs-block .tab-pane {
	min-height: unset;
}


.is-hero-card .card-simple-top,
.is-hero-card .card-simple-picture {
	overflow: visible;
}

.card-simple-grid .card-simple.is-hero-card .card-simple-picture img {
	object-position: 0 100%;
}

.card-hero-hidden {
	display: none;
}


.sweeps-hero-content h2 {
	margin: 20px 0 0;
}

.sweeps-hero-banner-content p:last-child {
	margin-bottom: 0;
}

.sweeps-hero h2 + p.h5 {
	margin-top: 10px;
}

.sweeps-hero-banner-content .sweeps-hero-sponsor {
	flex-direction: row;
	align-items: center;
}


.field-controller-el.button-controller>input {
	padding-left: 16px;
}

.calendar-slider,
.schedule-list-block {
	transition: opacity 1s ease;
}

.calendar-slider.disabled,
.schedule-list-block.disabled {
	opacity: .6;
	pointer-events: none;
}

.schedule-list-row-past,
.schedule-list-row-hidden {
	display: none;
}

.schedule-list-row .schedule-row-content .content-picture img {
	margin-left: auto;
}


.article-legacy-header .article-top-bg {
	min-height: 260px;
}

.article-legacy-header .col-img img {
	width: 100%;
}


.single-video .video-block-bg::before {
	background: linear-gradient(180deg, rgba(95, 78, 68, 0) 31.25%, #020C1E 100%);
}

.video-info-tags span a {
	text-decoration: none;
	color: inherit;
}

.card-video-hidden {
	display: none;
}


.card-simple-bg .frame,
.card-simple-picture {
	pointer-events: none;
}

.card-simple-bg a {
	pointer-events: all;
}

.block-content-side .card-simple-picture {
	position: absolute;
	bottom: 0;
	z-index: 10;
}

.block-content-side .card-simple-top {
	overflow: visible;
}

.block-content-side .card-simple-picture img {
	display: block;
}


.card-game-hidden {
	display: none;
}

.card-story-hidden {
	display: none;
}


.page-specials-events .page-header {
	-webkit-mask: inherit;
	mask: inherit;
}

.upcoming-list .col-2 .h6.text-blue a {
	color: #0662BB;
}

.sweeps-form .field-controller.text-phone-field {
	margin: 10px 0 20px;
}


.content-player .jw-btn {
    display: block;
    padding: 12px;
    position: absolute;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    font-size: 0;
    background: #f00;
    border-radius: 50%;
    background: #002F5E;
}

.content-player .jw-pause {
    display: none;
}

.content-player.playing .jw-play {
    display: none;
}

.content-player.playing .jw-pause {
    display: block;
}


.page-advertise .callout-block-item {
	background: #5E5045;
}  

.advertise-videos .btn-add-favorite {
	display: none !important;
}              


.home-banner-slider-block .btn-edged:hover {
	filter: brightness(1.15);
}

.home-banner-slider-block .swiper-fade .swiper-slide /*-active*/ {
	pointer-events: inherit !important;
}

@media (width > 767px)
{
	.home-banner-slider-block .jwplayer.jw-flag-aspect-mode {
		height: 100% !important;
	}

}


.home-heroes-slider-block .hero-card-bg > img {
	width: 100;
	min-width: 100%;
}

.home-heroes-slider-block .hero-card-frame {
	height: 100%;
}

.home-heroes-slider-block .hero-card-frame img {
	width: auto;
	min-width: 100%;
}

/*.block-section.texture-style-23 + .shop-block:before,
.block-section.texture-style-23 + style + .shop-block:before,*/
.block-section.texture-style-23 + .block-section:before,
.block-section.texture-style-23 + style + .block-section:before {
	content: '';
	background: url(images/edges/edge-blue-325-6.svg) left top no-repeat;
	position: absolute;
	top: 0;
	left: 0;
	width: 325px;
	height: 6.5px;
}


.card-stories-hidden {
	display: none;
}


.schedule-item {
	opacity: 0;
	transform: translateY(30px);
	transition: all 1s ease;
}

.home-schedule-ready .schedule-item {
	opacity: 1;
	transform: translate(0);
}

.home-schedule .schedule-item .col-img {
	overflow: hidden;
}

.schedule-time i {
	font-style: normal;
}


.expired-msg {
	display: inline-block;
	padding: 7px 16px 5px;
	margin: 10px 0 20px;
	text-align: center;
	background: #892B16;
}

.date-content-main p.expired-pretitle {
	margin: 0;
	color: #BA3D21;
}

.expired-msg + .sweeps-hero-logo {
	margin: 0;
}

.sweeps-hero-content .expired-msg + h2 {
	margin-top: 10px;
}

.sweeps-item-body-content {
	color: inherit;
}

.home-from-list .card-game-grid .card-game-title a {
	color: inherit;
}


.block-section.content-callout,
.sweeps-block.content-callout {
	padding: 0;
}

.sweeps-block.content-callout .sweeps-item {
	flex-direction: row-reverse;
}

.sweeps-block.content-callout-reverse .sweeps-item {
	flex-direction: row;
}


.search-page {
	height: 100vh;
	padding-top: 90px;
	overflow: auto;
}

.search-page .search-top {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 11;
	background: #002F5E;
	box-shadow: 0 0 20px 20px #002F5E;
}

.search-page .search-tag a {
	max-width: 500px;
	overflow: hidden;
	white-space: nowrap;
	text-overflow: ellipsis;
}

.search-page .search-related {
	transition: opacity .5s ease;
}

.search-page.search-in-progress .search-related {
	opacity: 0;
	pointer-events: none;
}

.search-page .card-simple-description {
	width: 100%;
}

.search-page .card-hero .card-simple-bg a img + img {
	width: auto;
	max-width: unset;
	max-height: 100%;
	position: absolute;
	bottom: 0;
	left: 0;
	object-fit: unset;
}

.search-modal {
	display: none;
	height: 100vh;
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	z-index: 999999;
}

body.show-search-modal {
	overflow: hidden;
}

.search-form {
	position: relative;
}

.search-page .search-suggestions {
	padding-left: 10px;
	padding-right: 10px;
	padding-bottom: 50px;
	position: absolute;
	top: 100%;
	left: -10px;
	right: -10px;
	z-index: 99;
	background: #002F5E;
}

.search-page .search-suggestions p a {
	text-decoration: none;
	color: inherit;
}

.no-more-results {
	display: none;
}


.account-container {
	min-height: 100vh;
}

.account-container .sidebar-logo,
.account-container .sidebar-bg {
	display: none;
}

.acc-signin .sidebar-logo-signin,
.acc-signin .sidebar-bg-signin,
.acc-forgot-password .sidebar-logo-signin,
.acc-forgot-password .sidebar-bg-signin,
.acc-forgot-password-reset .sidebar-logo-signin,
.acc-forgot-password-reset .sidebar-bg-signin,
.acc-forgot-password-complete .sidebar-logo-signin,
.acc-forgot-password-complete .sidebar-bg-signin {
	display: block;
}

.acc-signup .sidebar-logo-signup,
.acc-signup .sidebar-bg-signup {
	display: block;
}

.acc-signup-thanks .sidebar-logo-signup-thanks,
.acc-signup-thanks .sidebar-bg-signup-thanks {
	display: block;
}

.acc-complete .sidebar-logo-signup-complete,
.acc-complete .sidebar-bg-signup-complete {
	display: block;
}

.acc-complete-thanks .sidebar-logo-signup-complete-thanks,
.acc-complete-thanks .sidebar-bg-signup-complete-thanks {
	display: block;
}

.acc-delete .sidebar-logo-delete-acc,
.acc-delete .sidebar-bg-delete-acc {
	display: block;
}

.acc-delete-complete .sidebar-logo-delete-complete,
.acc-delete-complete .sidebar-bg-delete-complete {
	display: block;
}

.profile-subpage,
.account-backlink {
	display: none;
}

.profile-signin {
	display: block;
}

.profile-user-pic {
	width: 48px;
	height: 48px;
	background: center no-repeat;
	background-size: cover;
	border: var(--initial-border-width) solid #dfd7cb;
	border-radius: 50%;
}

.profile-user-dropdown .profile-user-pic {
	width: 62px;
	height: 62px;
}

.profile-sidebar .profile-user-pic {
	width: 120px;
	height: 120px;
	border-width: 4px;
}

.profile-user-name span {
	max-width: 250px;
}

i.user-name,
i.user-email {
	font-style: normal;
}

.profile-image-title-img {
	background: center no-repeat;
	background-size: cover;
}


.btn-add-favorite,
.btn-set-reminder {
	opacity: 0;
	transform: scale(0);
	transition: opacity .25s ease, tramsform .25s ease;
	pointer-events: none;
  cursor: pointer;
}

.page-ready .btn-add-favorite,
.page-ready .btn-set-reminder {
	opacity: 1;
	transform: scale(1);
	pointer-events: all;
  cursor: pointer;
}

.btn-set-reminder em {
	font-style: normal;
}

.page-ready .btn-busy {
	opacity: 5;
	transform: scale(.8);
	pointer-events: all;
}

.no-reminders .btn-set-reminder {
	display: none !important;
}

.toastify-inner a {
	color: inherit;
}

@media (max-width:767px) {
	.toastify {
		max-width: unset;
		left: 15px;
	}
}


.nice-select.list-to-top .list-wrap {
    top: auto;
    bottom: 100%;
}


.schedule-list-block {
	min-height: 500px;
}

.schedule-loading {
	display: flex;
	width: 100%;
	min-height: 500px;
	align-items: center;
	text-align: center;
}

.schedule-loading div {
	width: 100%;
	text-align: center;
	color: #999;
}


.home-from-list .card-simple-title,
.home-from-list .story-card .card-simple-content-btn a {
	color: #fff;
}


.gallery-share {
	text-decoration: none;
	color: inherit;
}


.game-icon-img {
	display: block;
	background: center no-repeat;
	background-size: cover;
}


.airtimes-no-results {
	display: none;
	padding-top: 25px;
}


.events-list .schedule-item {
	opacity: 1;
	transform: none;
}

.profile-body-gray-block .icon {
	overflow: hidden;
}

.fab-no-stars .modal-popup-content-head::after {
	display: none;
}



/* Default tables: responsive width */
/* Default tables */
.block-content-text table {
  width: auto;
  max-width: 100%;
  border-collapse: collapse;
  display: block;
  height: auto;
}

.block-content-text table img {
  max-width: 100%;
  height: auto;
}

/* Left-aligned tables: text wraps */
.block-content-text table.alignleft {
  float: left;
  margin: 0 20px 20px 0;
}

/* Right-aligned tables: text wraps */
.block-content-text table.alignright {
  float: right;
  margin: 0 0 20px 20px;
}

/* Center-aligned tables */
.block-content-text table.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  clear: both;
}

/* Responsive: left/right tables stack on small screens */
@media (max-width: 768px) {
  .block-content-text table.alignleft,
  .block-content-text table.alignright {
    float: none;
    display: block;
    margin: 0 auto 20px auto;
  }
  .block-content-text table {
    width: 100% !important;   /* force full width */
    max-width: 100% !important;
    display: block;
  }
}


/* Left aligned images: float left with text wrapping */
.block-content-text img.alignleft {
  float: left;
  margin: 0 20px 20px 0;  /* space right + bottom */
  display: inline-block;
}

/* Right aligned images: float right with text wrapping */
.block-content-text img.alignright {
  float: right;
  margin: 0 0 20px 20px;  /* space left + bottom */
  display: inline-block;
}

/* Center aligned images: block-level, centered, no wrapping */
.block-content-text img.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 20px;
  float: none;
  clear: both; /* prevents text wrapping */
}

/* Responsive: images never overflow container */
.block-content-text img {
  max-width: 100%;
  height: auto;
}

/* Base wrapper: inherit float/align */
.block-content-figure {
  display: inline-block; /* shrink to content width */
  margin-bottom: 20px;
  vertical-align: top;
}

/* Left aligned: float left, text wraps on right */
.block-content-figure.alignleft {
  float: left;
  margin: 0 20px 20px 0; /* space right + bottom */
}

/* Right aligned: float right, text wraps on left */
.block-content-figure.alignright {
  float: right;
  margin: 0 0 20px 20px; /* space left + bottom */
}

/* Center aligned: block-level, centered, no text wrap */
.block-content-figure.aligncenter {
  display: block;
  margin-left: auto;
  margin-right: auto;
  clear: both;
  text-align: center;
}

/* Make inner figure responsive */
.block-content-figure figure.wp-caption {
  margin: 0;
  display: block;
  width: auto;
  max-width: 100%; /* shrink to fit container */
}

/* Images inside figure */
.block-content-figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Figcaption styling */
.block-content-figure figcaption {
  font-size: 0.875rem;
  color: #555;
  margin-top: 4px;
  text-align: center;
}

/* MOBILE: let text wrap around left/right images instead of stacking */
@media (max-width: 768px) {
  .block-content-figure.alignleft,
  .block-content-figure.alignright {
    /* Keep float behavior for text wrap */
    float: left;  /* or right for alignright */
    margin: 0 15px 15px 0; /* smaller margin for mobile */
    width: auto;  /* let it shrink naturally */
    max-width: 50%; /* optional: limit width so text can wrap nicely */
  }

  .block-content-figure.aligncenter {
    width: 100%; /* center-aligned stays block */
  }
}

/* Target images inside block-content-text with class 'alignoffsetleft' and a width attribute */
.block-content .block-content-text img.alignoffsetleft[width] {
    width: 100% !important;  /* force full width */
    max-width: 100%;          /* never overflow container */
    height: auto;             /* maintain aspect ratio */
    display: block;           /* removes inline spacing issues */
}