.screen-reader-text {
	display: none;
}
.wp-video {
	max-width: 100%;

	iframe,
	video {
		max-width: 100%;
		height: auto;
	}
}
.wp-caption,
.wp-caption-text,
.sticky,
.gallery-caption,
.alignright,
.alignleft,
.aligncenter,
.bypostauthor {
	color: inherit;
}

.alignright {
  float: none;
  margin: 0;

  @include min-break($break-small) {
  	float: right;
  	margin: 0 0 0 20px;
  }

	.non-VC-page & {
		margin-bottom: 1rem;
	}
}
.alignleft {
  float: none;
  margin: 0;

  @include min-break($break-small) {
  	float: left;
  	margin: 0 20px 0 0;
  }
	.non-VC-page & {
		margin-bottom: 1rem;
	}
}

.alignright img,
.alignleft img,
.aligncenter img {
	max-width: 100%;
}
img.center {
	margin: 0 auto;
	display: block;
}
img.full {
	width: 100%;
}
.aligncenter {
	display: block;
    margin: 0 auto;
}
.wp-caption {
	position: relative;
	max-width: 100%;

	&:not(.thb_image_link) {
		margin-bottom: 20px;
	}
	.wp-caption-text {
		display: block;
		margin: 0;
		font-weight: 400;
		font-size: 13px;
		line-height: 1;
		color: $black;
		padding: 13px 0;
		border-bottom: 1px solid $border;
	}
}
.wp-block-image {
	figcaption {
		display: block;
		margin: 0;
		font-weight: 400;
		font-size: 13px;
		line-height: 1;
		color: $black;
		padding: 13px 0;
		border-bottom: 1px solid $border;

		.mfp-image {
			display: inline-block;
		}
		a {
			text-decoration: underline;
		}
	}
}
.gallery {
	display: block;
	margin: 0 auto 30px;
	width: 100%;
	clear: both;
	&.gallery-columns-2 .gallery-item {
		width: 50%;
	}
	&.gallery-columns-3 .gallery-item {
		width: 33%;
	}
	&.gallery-columns-4 .gallery-item {
		width: 25%;
	}
	&.gallery-columns-5 .gallery-item {
		width: 20%;
	}
	.gallery-item {
		display: inline-block;
		position: relative;
		width: 100%;
		padding: 0 1px 1px 0;
		margin: 0;
		@include single-transition(opacity, 0.2s, $transition);

		&:hover {
			@include opacity(0.8);
		}
		img {
			width: 100%;
			max-width: 100%;
		}
		.gallery-icon a:not(.thb-pin-it) {
			line-height: 0;
			display: block;
			width: 100%;
		}
		.gallery-icon {
			margin: 0;
		}
		.gallery-caption {
			position: absolute;
			bottom: 1px;
			left: 0;
			right: 1px;
			padding: 7px 9px;
			background: rgba($black,0.4);
			color: #fff;
			font-size: 11px;
			line-height: 13px;
			font-weight: 400;

			@include max-break($break-medium) {
				max-height: 40%;
			}
		}
	}
}
.more-link {
	display: inline-block;
	font-weight: 600;
	color: $black;
	text-transform: uppercase;
	font-size: 11px;
	text-align: center;
	&:after {
		content: '›';
		display: inline-block;
		margin-left: 7px;
	}
}
.tag-cloud-link {
	display: inline-flex;
	background: transparent;
	color: #383838;
	font-size: 10px;
	padding: 9px 12px;
	margin: 0 7px 10px 0;
	line-height: 1;
	text-transform: uppercase;
	font-weight: 400;
	border: 1px solid $border;

	.rtl & {
		margin: 0 0 10px 10px;
	}
	&:hover {
		border-color: $black;
		color: $black;
	}
	.tag-link-count {
		margin-left: 5px;

		.rtl & {
			margin-left: 0;
			margin-right: 5px;
		}
	}
}
.searchform {
	margin: 0;
	fieldset {
		position: relative;
		border: 0;
		@extend .reset;

		input {
			margin-bottom: 0;
		}
	}
}
q {
	font-size: 24px;
	font-weight: 400;
	color: $black;
	line-height: 1.4;
	margin: 0;
}
cite {
	font-weight: 500;
	font-size: 16px;
	color: $black;
	font-style: normal;
	line-height: 1;
	&:before {
		display: none;
	}
}
blockquote {
	position: relative;
	clear: both;
	border: 0;
	padding: 15px 25px;
	margin: 35px 0;

	&:before {
		content: '“';
		line-height: 1;
		color: $black;
		opacity: 0.1;
		font-size: 8rem;
		position: absolute;
		content: '“';
		left: -1rem;
		top: -1rem;
		pointer-events: none;
	}
	p {
		text-rendering: auto;
		@extend q;

		& + .post.thumbnail-seealso {
			margin-top: 30px;
		}
		.post-content & {
			@extend q;
		}
	}
	&.tiktok-embed {
		padding: 0;
		&:before {
			content: none;
		}
	}
	cite {
		margin-top: 20px;
	}
	&.alignleft {
		float: left;
		width: 40%;
		margin: 5px 30px 30px 0;
		@include max-break($break-small) {
			margin-right: 0;
			width: 100%;
		}
	}
	&.alignright {
		float: right;
		width: 40%;
		margin: 5px 0 30px 30px;
		@include max-break($break-small) {
			margin-left: 0;
			width: 100%;
		}
	}
}
pre {
  background: #eee;
  font-family: "Courier 10 Pitch", Courier, monospace;
  font-size: 1em;
  font-size: 0.9375rem;
  line-height: 1.6;
  margin-bottom: 1.6em;
  max-width: 100%;
  overflow: auto;
  padding: 1.6em;
	&.wp-block-verse {
    white-space: nowrap;
    overflow: auto;
	}
}
.searchform {
	[type="submit"] {
		display: none;
	}
	.search-field {
		width: 100%;
		border-radius: 0;
		border-top: 0;
		border-left: 0;
		border-right: 0;
		border-bottom-color: $black;
	}
}
/* Tables */
table:not(.variations):not(.shop_table):not(.group_table) {
  border-collapse: collapse;
  width: 100%;
  margin-bottom: 1rem;
  border-radius: 0;

  thead,
  tbody,
  tfoot {
    border: 1px solid #f1f1f1;
    background-color: #fefefe; }
  caption {
    padding: 0.5rem 0.625rem 0.625rem;
    font-weight: bold; }
  thead {
    background: #f8f8f8;
    color: #0a0a0a; }
  tfoot {
    background: #f1f1f1;
    color: #0a0a0a; }
  thead tr,
  tfoot tr {
    background: transparent; }
  thead th,
  thead td,
  tfoot th,
  tfoot td {
    padding: 0.5rem 0.625rem 0.625rem;
    font-weight: bold;
    text-align: left; }
  tbody th,
  tbody td {
    padding: 0.5rem 0.625rem 0.625rem; }
  tbody tr:nth-child(even) {
    border-bottom: 0;
    background-color: #f1f1f1; }

	&.wp-block-table {
		&.is-style-stripes {
			tbody tr:nth-child(even) {
				background: transparent !important;
			}
			thead,
		  tbody,
		  tfoot {
				border-left: 0 !important;
				border-right: 0 !important;
			}
		}
		&.is-style-regular {
			tbody tr:nth-child(even) {
				background: #f7f7f7;
			}
			thead,
		  tbody,
		  tfoot {
				border-color: rgba(0,0,0,0.2);
			}
		}
	}
}

/* Non-VC Page */
.non-VC-page {
	padding: 40px 0;
	@include min-break($break-small) {
		padding: 80px 0;
	}
	.page-title {
		margin-bottom: 40px;
		line-height: 1;

		@include min-break($break-small) {
			margin-bottom: 80px;
		}
		h1 {
			font-weight: 400;
			margin-bottom: 0;
		}
	}
}

/* 404 Page */
.content404 {
	text-align: center;
	padding: 25vh 0;
	p {
		margin: 0;
	}
}

/* Gutenberg */
.has-thb-accent-background-color {
	background-color: $accent;
}
.has-thb-accent-color {
	color: $accent;

	p {
		color: $accent;
	}
}

.wp-block-pullquote {
	padding: 0;
}
.wp-block-button {
	.wp-block-button__link {
		&.has-thb-accent-background-color {
			background-color: $accent;
		}
		&.has-thb-accent-color {
			color: $accent;

			p {
				color: $accent;
			}
		}
	}
	&.is-style-outline {
		.wp-block-button__link {
			background: transparent !important;
		}
	}
}
.alignwide {
	position: relative;
	@include min-break($break-medium) {
		margin-left: -3%;
		margin-right: -3%;
		max-width: none;
		width: 106%;
	}
	/* No - Sidebar */
	.post-detail.post-detail-style2 &,
  .post-detail.post-detail-style5 &,
  .post-detail.post-detail-style6 &,
  .post-detail.post-detail-style8 & {

		@include min-break($break-medium) {
			margin-left: -170px;
			margin-right: -170px;
			width: calc(100% + 340px);
		}
	}
}
.alignfull {
	position: relative;
	width: 100vw;
	@include min-break($break-medium) {
		margin-left: calc(50% - 44vw);
		max-width: calc(50% + 44vw);
	}

	/* No - Sidebar */
	.post-detail.post-detail-style2 &,
  .post-detail.post-detail-style5 &,
  .post-detail.post-detail-style6 &,
  .post-detail.post-detail-style8 & {
		margin-left: 0;
		max-width: 100%;
		@include min-break($break-medium) {
		  left: 50%;
		  right: 50%;
			width: 100vw;
		  margin-left: -50vw;
		  margin-right: -50vw;
			max-width: none;
		}
	}
	.page & {
		width: 100vw;
		margin-left: calc(50% - 50vw);
		@include min-break($break-medium) {
			margin-left: calc(50% - 50vw);
			max-width: 100vw;
		}
	}
}
.wp-block-image {
	&.thb-pin-it-container {
		max-width: 100vw;
	}
}
.post-detail .wp-block-gallery {
	margin-bottom: 1rem;

	.blocks-gallery-image,
	.blocks-gallery-item {
		margin-bottom: 1rem;
	}
}
.blocks-gallery-item__caption {
	a {
		color: #fff;
	}
}
.wp-block-media-text {
	margin-bottom: 1rem;
}
.wp-block-latest-comments {
	margin-left: 0;
}

.has-medium-font-size {
	font-size: 1.2em;
}
.has-large-font-size {
	font-size: 2em;
}
.has-huge-font-size {
	font-size: 3em;
}
.wp-block-button {
	&:not(.is-style-outline) {
		.wp-block-button__link:not(.has-text-color) {
			color: #fff;
		}
	}
}

/* FB Video */
.fb_iframe_widget_fluid_desktop span {
	width: 100% !important;
}

/* WP Block Image */
.wp-block-image {
	.mfp-image {
		display: block;
	}
}
