/* Comments */
.pingback,
.logged-in-as,
.comment-notes,
.comment-form-cookies-consent {
    display: none !important;
}

.comment-subscription-form {
    /* I'm not sure what this is exactly right now. */
    display: none !important;
    margin-bottom: 4px !important;
    margin-top: 24px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.comment-subscription-form + .comment-subscription-form {
    margin-bottom: 26px;
    margin-top: 8px;
}

/* Table of contents */
.wp-block-table-of-contents::before {
	color: var(--wp--preset--color--theme-5);
	content: "Table of contents";
	display: block;
	font-size: var(--wp--preset--font-size--small);
	margin-bottom: var(--wp--preset--spacing--10);
}

/* Subscribe CTA on the footer of most pages and posts. */

.subscribe {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--10);
}

.is-style-section-1 input[type="email"].email {
    background-color: color-mix(in srgb, var(--wp--preset--color--theme-6) 90%, var(--wp--preset--color--theme-1) 10%);
    border-color: color-mix(in srgb, var(--wp--preset--color--theme-6) 70%, var(--wp--preset--color--theme-1) 30%);
    outline-color: color-mix(in srgb, var(--wp--preset--color--theme-6) 70%, var(--wp--preset--color--theme-1) 30%);
    color: var(--wp--preset--color--theme-1);
    min-height: 40px;
}

/* Shaping WordPress */

.shaping-wordpress input[type="email"] {
    background: transparent !important;
    border-color:#3858e9 !important;
    border-width: 2px !important;
    min-height: 44px !important;
}

.shaping-wordpress input[type="email"]:focus {
    border-color: #3858e9;
    outline-color: #3858e942;
}

.shaping-wordpress input[type=submit] {
    background: #3858e9 !important;
    border-color:#3858e9;
    color: #FFF !important;
}

.shaping-wordpress input[type=submit]:hover {
    background: #4b68eb !important;
}


/* Gallery block */
@media (max-width: 599px) {
	.wp-block-gallery img,
	.wp-block-gallery figure::before {
		border-radius: 0;
	}

	.wp-block-gallery figure:nth-child(1) img,
	.wp-block-gallery figure:nth-child(1)::before {
		border-top-left-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery figure:nth-child(2) img,
	.wp-block-gallery figure:nth-child(2)::before {
		border-top-right-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery figure:nth-last-child(1) img,
	.wp-block-gallery figure:nth-last-child(1)::before {
		border-bottom-right-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery figure:nth-last-child(2):not(:nth-child(even)) img,
	.wp-block-gallery figure:nth-last-child(2):not(:nth-child(even))::before {
		border-bottom-left-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery figure:last-child:nth-child(odd) img,
	.wp-block-gallery figure:last-child:nth-child(odd)::before {
		border-bottom-left-radius: var(--wp--preset--spacing--20);
		border-bottom-right-radius: var(--wp--preset--spacing--20);
	}
}

/* Gallery block: 2 Columns */

.wp-block-gallery.columns-2 img,
.wp-block-gallery.columns-2 figure::before {
	border-radius: 0;
}

.wp-block-gallery.columns-2 figure:nth-child(1) img,
.wp-block-gallery.columns-2 figure:nth-child(1)::before {
	border-top-left-radius: var(--wp--preset--spacing--20);
}

.wp-block-gallery.columns-2 figure:nth-child(2) img,
.wp-block-gallery.columns-2 figure:nth-child(2)::before {
	border-top-right-radius: var(--wp--preset--spacing--20);
}

.wp-block-gallery.columns-2 figure:nth-last-child(1) img,
.wp-block-gallery.columns-2 figure:nth-last-child(1)::before {
	border-bottom-right-radius: var(--wp--preset--spacing--20);
}

.wp-block-gallery.columns-2 figure:nth-last-child(2):not(:nth-child(even)) img,
.wp-block-gallery.columns-2 figure:nth-last-child(2):not(:nth-child(even))::before {
	border-bottom-left-radius: var(--wp--preset--spacing--20);
}

.wp-block-gallery.columns-2 figure:last-child:nth-child(odd) img,
.wp-block-gallery.columns-2 figure:last-child:nth-child(odd)::before {
	border-bottom-left-radius: var(--wp--preset--spacing--20);
	border-bottom-right-radius: var(--wp--preset--spacing--20);
}

/* Gallery block: 3 Columns */

@media (min-width: 600px) {
	.wp-block-gallery.columns-default img,
	.wp-block-gallery.columns-default figure::before {
		border-radius: 0;
	}

	.wp-block-gallery.columns-default figure:nth-child(1) img,
	.wp-block-gallery.columns-default figure:nth-child(1)::before {
		border-top-left-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery.columns-default figure:nth-child(3) img,
	.wp-block-gallery.columns-default figure:nth-child(3)::before {
		border-top-right-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery.columns-default figure:nth-child(4) img,
	.wp-block-gallery.columns-default figure:nth-child(4)::before,
	.wp-block-gallery.columns-default figure:nth-last-child(3):nth-child(1) img,
	.wp-block-gallery.columns-default figure:nth-last-child(3):nth-child(1)::before {
		border-bottom-left-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(6) img,
	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(6)::before,
	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(odd) img,
	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(odd)::before,
	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(even) img,
	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(even)::before {
		border-bottom-right-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(7) img,
	.wp-block-gallery.columns-default figure:nth-last-child(1):nth-child(7)::before,
	.wp-block-gallery.columns-default figure:nth-last-child(2):nth-child(7) img,
	.wp-block-gallery.columns-default figure:nth-last-child(2):nth-child(7)::before {
		border-bottom-left-radius: var(--wp--preset--spacing--20);
	}

	.wp-block-gallery.columns-default figure:nth-last-child(4):nth-child(4) img,
	.wp-block-gallery.columns-default figure:nth-last-child(4):nth-child(4)::before,
	.wp-block-gallery.columns-default figure:nth-last-child(5):nth-child(4) img,
	.wp-block-gallery.columns-default figure:nth-last-child(5):nth-child(4)::before {
		border-bottom-left-radius: 0;
	}
}

/* High contrast display setting */

@media (prefers-contrast: more) {
    body {
        --wp--preset--color--theme-2: color-mix(in srgb, var(--wp--preset--color--theme-1) 75%, var(--wp--preset--color--theme-6) 15%);
        --wp--preset--color--theme-3: color-mix(in srgb, var(--wp--preset--color--theme-1) 50%, var(--wp--preset--color--theme-6) 50%);
        --wp--preset--color--theme-4: color-mix(in srgb, var(--wp--preset--color--theme-1) 80%, var(--wp--preset--color--theme-6) 20%);
        --wp--preset--color--theme-5: color-mix(in srgb, var(--wp--preset--color--theme-1) 30%, var(--wp--preset--color--theme-6) 70%);
        --wp--preset--color--theme-6: hsl(0 0% 0%);
    }

    .is-style-section-1 {
        --wp--preset--color--theme-5: var(--wp--preset--color--theme-1);
    }

}