/*
Theme Name:     Wedding
Theme URI:
Description:    Twentytwentyfive child theme.
Author:         Me
Author URI:
Template:       twentytwentyfive
Version:        0.1.0
*/

strong {
	font-weight: 700;
}

.position-relative {
	position: relative;
	z-index: 1;
}

p.is-style-separator {
	display: flex;
	align-items: center;
    justify-content: center;
    gap: 2rem;

	&::before {
		content: '';
		display: block;

		flex-grow: 1;

		max-width: 10rem;

		border-block-end: 0;
		border-block-start: 1px solid var(--wp--preset--color--accent-1);
	}
	&::after {
		content: '';
		display: block;

		flex-grow: 1;

		max-width: 10rem;

		border-block-end: 0;
		border-block-start: 1px solid var(--wp--preset--color--accent-1);
	}
}

.is-style-deco1,
.is-style-deco2,
.is-style-deco3,
.is-style-deco4,
.is-style-deco5 {
	display: flex;
    flex-wrap: wrap !important;

	&::before {
		content: '';
		display: block;

		flex: 0 0 100%;

		height: 10rem;

		background-size: 10rem;
		background-repeat: no-repeat;
		background-position: center;
	}
}
.is-style-deco1 {
	&::before {
        margin-bottom: -6.3rem;
        margin-left: -3rem;

		background-image: url(./images/deco1.png);

		transform: rotate(45deg);
	}
}
.is-style-deco2 {
	&::before {
		margin-bottom: -1rem;

		background-image: url(./images/deco2.png);
		background-size: 8rem;
	}
}
.is-style-deco3 {
	&::before {
		margin-bottom: -2.3rem;

		background-image: url(./images/deco3.png);
		background-size: 10rem 7rem;
	}
}
.is-style-deco4 {
	&::before {
		margin-bottom: -2.8rem;

		background-image: url(./images/deco4.png);
        background-size: 5rem 9rem;

        transform: rotate(14deg);
	}
}
.is-style-deco5 {
	&::before {
		margin-bottom: -7rem;
		margin-top: -3.3rem;

		background-image: url(./images/deco5.png);
	}
}

.frm_style_formidable-style.with_frm_style .frm_inline_box {
	box-shadow: none;
	font-size: 0.9rem;
    color: var(--wp--preset--color--accent-4);
}

.frm-you {
	border-top: 1px solid #d1d1d1;
    padding-top: 1.5rem;

	h3 {
		font-size: 1.2rem !important;
	}
}

.frm_form_fields {
	.field-mairie,
	.field-vendredi,
	.field-soiree,
	.field-dimanche {
		display: none;
	}
}
.role-witness_hon,
.role-witness {
	.field-mairie,
	.field-soiree,
	.field-dimanche {
		display: grid;
	}
	.field-vendredi {
		display: none !important;
	}
}
.role-administrator,
.role-family {
	.field-mairie,
	.field-vendredi,
	.field-soiree,
	.field-dimanche {
		display: grid;
	}
}
.role-party {
	.field-soiree,
	.field-dimanche {
		display: grid;
	}
	.field-mairie,
	.field-vendredi {
		display: none !important;
	}
}
.role-cocktail {
	.field-mairie,
	.field-vendredi,
	.field-soiree,
	.field-dimanche {
		display: none !important;
	}
}
.frm_forms .frm_submit button.frm_button_submit {
	background: transparent none;
    border-color: currentColor;
    border-width: 1px;
    border-style: solid;
    color: currentColor;
    font-size: 0.75rem;
    letter-spacing: 4px;
    padding-top: 12px;
    padding-right: 30px;
    padding-bottom: 12px;
    padding-left: 30px;
    text-transform: uppercase;
}

.login-content {
	position: relative;
	top: -4rem;
}
.tml-rememberme-wrap,
.tml-links {
	display: none !important;
}
.tml-field-wrap {
	position: relative;

	text-align: center;

	.tml-field[id="user_pass"] {
		padding-right: 3rem;
		margin-right: -1.3rem;
	}

	.password-toggle-eye {
		position: relative;
        right: 1rem;
        bottom: -0.3rem;

		cursor: pointer;
	}
}
.tml-label {
	text-transform: uppercase;
    font-weight: 600;
    font-size: var(--wp--preset--font-size--small);
    margin-bottom: 0.3rem !important;
}
.tml-field{
	padding: 0.4rem 0.6rem;
    width: 100%;
    max-width: 20rem;
    font-size: var(--wp--preset--font-size--normal);
	border: 1px solid;

	&:focus {
		outline: none;
		border-color: var(--wp--preset--color--accent-1);
	}
}
.tml-button {
	appearance: none;
    border: none;
    background: var(--wp--preset--color--accent-1);
    color: #fff;
    font-size: 0.75rem;
    letter-spacing: 4px;
    padding-top: 12px;
    padding-right: 30px;
    padding-bottom: 12px;
    padding-left: 30px;
    text-transform: uppercase;
}

footer.wp-block-template-part {
	margin-top: 0;

	.wp-block-image {
		height: 100%;
		width: 100%;

		img {
			height: 100%;
			width: 100%;
			object-fit: cover;
		}
	}
}

.wp-block-post-template {
	display: block !important;
	column-count: 4;

	&>.wp-block-post {
		margin-bottom: var(--wp--preset--spacing--40);

		break-inside: avoid;

		.wp-block-post-author {
			align-items: center;

			margin-bottom: 0.6rem;

			font-weight: 600;
			font-size: 0.9rem;
		}
		.wp-block-post-author__avatar {
			width: 2rem;
			height: 2rem;

			border-radius: 100%;
			overflow: hidden;

			img {
				width: 100%;
				height: 100%;
				object-fit: cover;
			}
		}
		.wp-block-post-featured-image {
			margin-bottom: 0.6rem;
		}
		.wp-block-post-content {
			font-size: 1rem;
		}
	}
}

.wp-block-columns {
	&.reverse-mobile {
		@media (max-width: 768px) {
			flex-direction: column-reverse;

			.wp-block-column {
				order: 2;

				&:first-child {
					order: 1;
				}

				&:last-child {
					order: 2;
				}
			}
		}

		&.has-3-columns {
			@media (max-width: 768px) {
				.wp-block-column:nth-child(1) {
					order: 3;
				}

				.wp-block-column:nth-child(2) {
					order: 2;
				}

				.wp-block-column:nth-child(3) {
					order: 1;
				}
			}
		}

		&.has-4-columns {
			@media (max-width: 768px) {
				.wp-block-column:nth-child(1) {
					order: 4;
				}

				.wp-block-column:nth-child(2) {
					order: 3;
				}

				.wp-block-column:nth-child(3) {
					order: 2;
				}

				.wp-block-column:nth-child(4) {
					order: 1;
				}
			}
		}

		&.has-5-columns {
			@media (max-width: 768px) {
				.wp-block-column:nth-child(1) {
					order: 5;
				}

				.wp-block-column:nth-child(2) {
					order: 4;
				}

				.wp-block-column:nth-child(3) {
					order: 3;
				}

				.wp-block-column:nth-child(4) {
					order: 2;
				}

				.wp-block-column:nth-child(5) {
					order: 1;
				}
			}
		}

		&.has-6-columns {
			@media (max-width: 768px) {
				.wp-block-column:nth-child(1) {
					order: 6;
				}

				.wp-block-column:nth-child(2) {
					order: 5;
				}

				.wp-block-column:nth-child(3) {
					order: 4;
				}

				.wp-block-column:nth-child(4) {
					order: 3;
				}

				.wp-block-column:nth-child(5) {
					order: 2;
				}

				.wp-block-column:nth-child(6) {
					order: 1;
				}
			}
		}
	}
}

@media (min-width:600px) and (max-width: 1024px){
	.wp-block-navigation__responsive-container-close,
	.wp-block-navigation__responsive-container-open:not(.always-shown) {
		display: flex;
		background: #0000;
		border: none;
		color: currentColor;
		cursor: pointer;
		margin: 0;
		padding: 0;
		text-transform: inherit;
		vertical-align: middle;
	}
	.wp-block-navigation__responsive-container {
		bottom: 0;
		display: none !important;
		left: 0;
		position: fixed;
		right: 0;
		top: 0;

		&.is-menu-open {
			background-color: inherit;
			display: flex !important;
			flex-direction: column;
			overflow: auto;
			padding: clamp(1rem, var(--wp--style--root--padding-top), 20rem) clamp(1rem, var(--wp--style--root--padding-right), 20rem) clamp(1rem, var(--wp--style--root--padding-bottom), 20rem) clamp(1rem, var(--wp--style--root--padding-left), 20rem);
			z-index: 100000;
		}
	}
}

@media (max-width: 781px) {
	.text-center-mobile {
		text-align: center;

		.wp-block-heading,
		p {
			text-align: center;
		}
	}
	.justify-center-mobile {
		justify-content: center;
	}
}

.wp-admin.user-edit-php {
	.user-admin-color-wrap,
	.user-comment-shortcuts-wrap,
	.user-admin-bar-front-wrap,
	.user-language-wrap,
	.user-url-wrap,
	.user-facebook-wrap,
	.user-instagram-wrap,
	.user-twitter-wrap,
	.user-linkedin-wrap,
	.user-youtube-wrap,
	.user-pinterest-wrap,
	.user-tiktok-wrap,
	.user-wikipedia-wrap,
	.user-myspace-wrap,
	.user-soundcloud-wrap,
	.user-tumblr-wrap,
	.user-profile-picture,
	.application-passwords,
	.yoast-settings {
		display: none;
	}
}
