/*
Theme Name: Anukampa
Theme URI: https://anukampaproject.org/
Description: Custom child theme for Anukampa Bhikkhuni Project, built on Twentig One.
Author: Twentig
Template: twentig-one
Version: 1.0.0
Text Domain: anukampa
*/

:root {
	--tw-block-rounded: 4px;
	--wp--custom--spacing--media: var(--wp--preset--spacing--50);
}

img {
	max-width: 100%;
	height: auto;
}

p img.alignright,
p img.alignleft {
	display: block;
	margin-block: 24px;
}

@media (min-width: 768px) {
	p img.alignright {
		float: right;
		margin: 0 0 24px 24px;
	}

	p img.alignleft {
		float: left;
		margin: 0 24px 24px 0;
	}
}

figure.wp-caption img {
	vertical-align: bottom;
}

figure.wp-caption .wp-caption-text {
	color: var(--wp--preset--color--secondary);
	font-size: var(--wp--preset--font-size--small);
	line-height: 1.4;
	margin-top: 14px;
	font-style: normal;
}

/*** Events Manager ***/

.single-event form.post-password-form {
	padding-bottom: var(--wp--preset--spacing--60);
}

.em-event-add-to-calendar,
.em-event-bookings-meta,
.em-item-taxonomies,
section.em-event-location,
.single-event .em-item-image,
.em-event-add-to-calendar-content {
	display: none !important;
}

.single-event .em-item.em-item-single .em-item-header {
	margin-bottom: var(--wp--preset--spacing--60);
	background: var(--wp--preset--color--base-3);
	padding: var(--wp--preset--spacing--25);
	color: inherit;
	border-radius: 4px;
}

.em-item.em-item-single .em-item-meta h3 {
	font-size: clamp(1.3125rem, 1.313rem + ((1vw - 0.3rem) * 0.624), 1.625rem) !important;
	margin-block: 0 8px;
}

.em-item.em-item-single .em-item-meta > section section {
	margin-bottom: 0;
}

.em-item.em-item-single .em-item-meta {
	display: block;
}

.em-item-meta .em-item-meta-column:not(:first-child) {
	margin-top: 24px;
	padding-top: 24px;
	border-top: 1px solid var(--wp--preset--color--tertiary);
}

.em-event-where {
	margin-bottom: 0;
}

.em-item .em-item-meta .em-item-meta-line {
	display: block;
	line-height: 1.5;
	margin: 0;
	color: var(--wp--preset--color--contrast-2);
}

.em-icon {
	display: none;
}

.single-event .em-event-single h2 {
	font-size: var(--wp--preset--font-size--xx-large) !important;
	margin-block: var(--wp--preset--spacing--50) var(--wp--preset--spacing--20);
}

.single-event .em-event-single .em-event-content h3 {
	font-size: clamp(1.3125rem, 1.313rem + ((1vw - 0.3rem) * 0.624), 1.625rem);
	margin-block:  var(--wp--preset--spacing--50) var(--wp--preset--spacing--20);
	clear: both;
}

.single-event .em-event-content p {
	margin-block: 0 24px;
}

.em-event-content p:last-child {
	margin-bottom: 0;
}

.em-event-content figure {
	max-width: 100%;
}

.em-event-content figure:is(.aligncenter,.alignnone),
.em-event-content p:has(img.alignnone,img.aligncenter) {
	margin-block: var(--wp--preset--spacing--40);
}

.em-event-content div.gallery {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-block: var(--wp--preset--spacing--40);
}

.em-event-content div.gallery.gallery-columns-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.em-event-content div.gallery figure.gallery-item {
	margin: 0 !important;
}

.em-event-content div.gallery figure.gallery-item img {
	width: 100%;
	vertical-align: bottom;
	border-radius: 4px;
}

.em-event-content img {
	border-radius: 4px;
	vertical-align: bottom;
}

.em-event-booking-form {
	display: flex;
	flex-direction: column-reverse;
}

.single-event .em.em-event-booking-form h3.em-booking-section-title {
	background: transparent !important;
	padding: 0 !important;
	color: inherit !important;
	border: 0 !important;
	font-size: var(--wp--preset--font-size--large) !important;
}

.single-event .em.em-event-booking-form .em-booking-section {
	padding: 24px 0;
}

.single-event .em.pixelbones ul {
	list-style: disc inside !important;
}

.em-event-content:last-child {
	margin-bottom: var(--wp--preset--spacing--70);
}

.em-event-bookings h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

.em-booking-message {
	background: var(--wp--preset--color--contrast);
	color: var(--wp--preset--color--base);
	padding: 16px;
	line-height: 1.3;
	border-radius: 4px;
	margin-top: var(--wp--preset--spacing--50);
}

.em-booking-message p {
	margin: 0;
}

.em-booking-message p + p {
	margin-top: 16px;
}

.em-booking-message.em-booking-message-success {
	background: var(--wp--preset--color--accent);
}

.em-booking-message.em-booking-message-error {
	background: #ba1a1a;
	font-size: var(--wp--preset--font-size--small);
}

.em-event-location a {
	pointer-events: none;
	text-decoration: none;
}

/* Booking form */
.em-view-container,
.em-item-single  > .em-event-bookings {
	margin-inline: calc(var(--wp--style--root--padding-right) * -1) !important;
	padding-inline: var(--wp--style--root--padding-right);
	max-width: unset;
}

.em-item-single > section,
.em-item-single  > .em-event-bookings > * {
	max-width: var(--wp--style--global--content-size);
	margin-inline: auto;
}

.single-event .em-event-single section.em-event-bookings {
	background: var(--wp--preset--color--base-3);
	padding-block: var(--wp--preset--spacing--70);
	margin-top: var(--wp--preset--spacing--70);
}

.single-event .em-event-single section.em-event-bookings h2 {
	margin-top: 0 !important;
}

.em-booking-form-details {
	font-size: var(--wp--preset--font-size--small);
}

.em-booking-form-details p {
	margin-block: 0 28px;
}

.em-booking-form > section:not(:first-child) {
	margin-top: var(--wp--preset--spacing--50);
}

.em-booking-form > section.em-booking-form-section-confirm {
	margin-top: var(--wp--preset--spacing--30);
}

.em-event-bookings label {
	display: block;
	margin-bottom: 10px;
	font-weight: 500;
	line-height: 1.3;
}

.em-booking-form-details strong {
	display: block;
	margin-bottom: 28px;
}

.em-event-bookings .em-form-required {
	color: #ba1a1a;
}

.em-input-checkbox label {
	margin-bottom: 0;
}

.em-event-bookings input:where([type=email],[type=password],[type=text],[type=url]),
.em-event-bookings select,
.em-event-bookings textarea {
	width: 100%;
}

.em-event-bookings textarea {
	vertical-align: bottom;
}

.em-event-bookings select {
	background: transparent;
	font: inherit;
	border: 1px solid var(--wp--preset--color--secondary);
	border-radius: 4px;
	-webkit-appearance: none;
	appearance: none;
	background: var(--wp--preset--color--base-3) url(data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgc3Ryb2tlPSJibGFjayIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiIGNsYXNzPSJmZWF0aGVyIGZlYXRoZXItY2hldnJvbi1kb3duIj48cG9seWxpbmUgcG9pbnRzPSI2IDkgMTIgMTUgMTggOSI+PC9wb2x5bGluZT48L3N2Zz4=) no-repeat;
	background-size: 16px;
	background-position: calc(100% - 12px) 50%;
	padding-right: 42px;
	color: inherit;
}

.em-booking-form input[type="submit"] {
	background-color: var(--wp--preset--color--accent);
	border-radius: 999px;
	color: var(--wp--preset--color--base);
	font-weight: 700;
	line-height: 1.3;
	padding: 0.75rem 1.375rem;
	transition: background-color .1s;
	cursor: pointer;
	border: 0;
}

.em-booking-form input[type="submit"]:hover {
	background-color: #254444;
}

p.em-input-checkboxes {
	display: flex;
	gap: 2px;
	flex-direction: row-reverse;
}

table.em-tickets {
	border-collapse: collapse;
	width: 100%;
	font-size: var(--wp--preset--font-size--small);
}

table .ticket-desc {
	font-size: var(--wp--preset--font-size--small);
	color: var(--wp--preset--color--contrast-2);
	line-height: 1.3;
	display: block;
}

table.em-tickets tr{
	border-color: var(--wp--preset--color--tertiary);
}

table.em-tickets th {
	text-align: left;
	padding: 0 16px 20px 0;
	border-bottom: 1px solid var(--wp--preset--color--tertiary);
}

table.em-tickets td {
	padding-block: 20px;
	border-bottom: 1px solid var(--wp--preset--color--tertiary);
}

.em-tickets td.em-bookings-ticket-table-type {
	padding-right: 16px;
}

.em-tickets th.em-bookings-ticket-table-spaces {
	padding-right: 0;
}

.em-tickets td.em-bookings-ticket-table-spaces {
	min-width: 72px;
}

/* Ninja Forms */
.nf-before-form-content {
	margin-bottom: 24px;
}

.label-above .nf-field-label {
    margin-bottom: 10px;
}

#ninja_forms_required_items, .nf-field-container {
	margin-bottom: 28px;
}

.nf-error-msg,
.ninja-forms-req-symbol {
	color: #ba1a1a;
}

.nf-field-label .nf-label-span,
.nf-field-label label {
	display: block;
	line-height: 1.3;
	font-weight: 500;
}

.nf-error-msg {
	font-size: var(--wp--preset--font-size--small);
	margin-top: 8px;
}

.nf-field-element textarea {
	vertical-align: bottom;
	resize: vertical;
}

.nf-field-container.submit-container {
	margin-block: 36px 0;
}

.nf-response-msg p {
	margin: 0;
}

.nf-response-msg {
	padding: 24px;
	background: var(--wp--preset--color--base-3);
	border-radius: 4px;
}

.nf-response-msg p + p{
	margin-top: 0px;
}

/* YouTube list */
.epyt-gallery > .epyt-figure {
	border-radius: 4px;
	overflow: hidden;
}

.epyt-gallery-list .epyt-gallery-list {
	margin: 0;
}

.epyt-gallery-list .epyt-gallery-thumb {
	padding-inline: 0;
	padding-bottom: 0;
}

.epyt-gallery-allthumbs .epyt-gallery-img {
	border-radius: 4px;
	padding-top: 54.5% !important;
}

.epyt-gallery-list .epyt-gallery-title {
	font-size: 18px;
	line-height: 1.25;
	padding: 12px 8px 0 0;
	text-align: left;
	font-weight: 500;
	font-family: var(--wp--preset--font-family--secondary);
}

.epyt-pagination:first-child {
	margin: 32px 0;
}

.epyt-gallery-list .epyt-gallery-playhover {
	top: 0;
}

.epyt-gallery .wp-block-embed__wrapper iframe {
	aspect-ratio: 16 / 9;
	height: auto;
}

.epyt-gallery-allthumbs {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(max(min(260px, 100%), (100% - (var(--wp--preset--spacing--15) * 2)) / 3), 1fr));
	container-type: inline-size;
	gap: var(--wp--preset--spacing--30) var(--wp--preset--spacing--15);
}

.epyt-gallery-allthumbs .epyt-gallery-thumb {
	width: 100% !important;
}

.epyt-gallery-rowbreak {
	display: none;
}

.epyt-gallery .epyt-gallery-subscribe {
	padding-block: var(--wp--preset--spacing--60) 42px;
	text-align: left;
}

.epyt-gallery .epyt-gallery-subscribe a.epyt-gallery-subbutton,
.epyt-gallery .epyt-gallery-subscribe a.epyt-gallery-subbutton:hover {
	background: #ba1a1a !important;
	line-height: 1.3;
	border-radius: 999px;
	padding: 0.75rem 1.375rem;
	font-weight: 700;
	border: 2px solid transparent;
}

.epyt-gallery .epyt-gallery-subscribe a.epyt-gallery-subbutton img {
	width: 24px !important;
	padding: 0;
	margin: 0 10px 4px 0;
}

div.epyt-gallery-list {
	margin: 0;
}

.epyt-gallery-list > .epyt-pagination:first-child {
	display: none;
}

.epyt-prev .epyt-arrow,
.epyt-next .epyt-arrow {
	display: none;
}

.epyt-prev div:last-child::before {
	content: "\2190";
	margin-right: 8px;
}

.epyt-next div:first-child::after {
	content: "\2192";
	margin-left: 8px;
}

.epyt-gallery-list .epyt-pagination {
	padding: 10px 22px;
	margin-top: 24px;
	display: inline-flex;
	background: var(--wp--preset--color--base-3);
	border-radius: 4px;
	align-items: center;
	font-weight: 500;
}

/* Newsletter */
.newsletter-group {
	display: flex;
	flex-wrap: wrap;
	gap: 12px 8px;
	font-size: var(--wp--preset--font-size--small);
}

.newsletter-group input[type="email"]{
	width: 360px;
	max-width: 100%;
	padding: 10px 16px;
	border-radius: 4px;
}

.newsletter-group .wp-element-button {
	background: var(--wp--preset--color--base);
	color: var(--wp--preset--color--accent);
	padding-block: 10px;
}

.mc4wp-response {
	display: flex;
}

.mc4wp-response .mc4wp-alert {
	font-size: var(--wp--preset--font-size--x-small);
	text-wrap: balance;
	padding: 12px 16px;
	border-radius: 4px;
	background: #214040;
	margin-top: var(--wp--preset--spacing--20);
}

.mc4wp-response p {
	margin: 0;
}

@media (max-width: 540px) {
	.newsletter-group label,
	.newsletter-group input[type="email"] {
		width: 100%;
	}
}

@media (max-width: 767px) {
	.tw-sm-column {
		flex-direction: column !important;
		align-items: flex-start;
	}

	.wp-block-image.alignleft,
	.wp-block-image.alignright {
		float: none;
	}
}

@media (max-width: 1023px) {
	.tw-md-w-100 {
		max-width: 100% !important;
	}
}

footer.wp-block-template-part .wp-block-social-links.has-large-icon-size {
	font-size: 28px;
}

footer.wp-block-template-part .wp-social-link a {
	padding: 10px;
}

.site-meta {
	row-gap: 8px !important;
}

.header-transparent + main .wp-block-post-content > .wp-block-cover.is-position-bottom-center:first-child span.wp-block-cover__background,
header.header-transparent + main > .wp-block-cover.is-position-bottom-center:first-child span.wp-block-cover__background { 
	opacity: 1;
	background: linear-gradient(180deg, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0.1) 29%, rgba(0, 0, 0, 0.1) 59%, rgba(0, 0, 0, 0.7) 100%);
}

button.lightbox-trigger {
	display: none;
}

.wp-lightbox-overlay .wp-block-image {
	border-radius: 4px;
	overflow: hidden;
}

.wp-block-column.castos-wrapper {
	margin-inline: -8px;
}

.castos-iframe-player {
	border: 0;
}

.wp-block-navigation .wp-block-navigation__submenu-icon {
	margin-top: -1px;
}

.wp-block-navigation .wp-block-navigation-item.open-on-click .wp-block-navigation-submenu__toggle {
	padding-inline-end: 18px;
}

.wp-block-navigation:not(.has-background) ul.wp-block-navigation__submenu-container {
	border-radius: 4px;
	overflow: hidden !important;
}

.wp-block-navigation__responsive-container.disable-default-overlay.is-menu-open .wp-block-navigation__submenu-container .wp-block-navigation-item__content {
	font-size: var(--wp--preset--font-size--large);
}

.wp-element-button {
	transition: background-color .1s;
}

.wp-element-button:hover {
	opacity: 1;
}

.important-text {
	color: #ba1a1a;
}

.info-text {
	color: #8143a9;
}

.cover-quote {
	min-height: max(400px, 50vh) !important;
}

.cover-quote blockquote p {
	font-weight: 450;
}

@media (max-width: 480px) {
	.cover-quote .wp-block-quote {
		max-width: 225px !important;
	}
}

.wp-block-post-featured-image[style*=aspect-ratio] img {
	height: 100% !important;
	width: 100% !important;
}

.precepts-list {
	list-style-position: inside;
	padding-left: 0;
	font-weight: 500;
}

.precepts-list em {
	color: var(--wp--preset--color--contrast-2);
	font-weight: 400;
	margin-top: 4px;
	display: block;
}

.wp-block-query .wp-block-post-featured-image img {
	width: 100% !important;
	border-radius: 4px;
}

.header-transparent + main .wp-block-post-content > .wp-block-cover:first-child h1,
header.header-transparent + main > .wp-block-cover:first-child h1 {
	font-weight: 400;
}

.single-post h2 {
	font-size: var(--wp--preset--font-size--xx-large);
}

.single-post h3 {
	font-size: var(--wp--preset--font-size--x-large);
}

:where(.wp-block-search__button-inside .wp-block-search__inside-wrapper) {
	border-radius: 4px;
}
