/*
 * Mugnana theme styles.
 * Breakpoints follow the former Elementor setup: tablet <= 1024px, mobile <= 767px.
 */

:root {
	--mg-black: #000;
	--mg-white: #fff;
	--mg-copper: #be8b65;
	--mg-charcoal: #29292a;
	--mg-gray: #848484;
	--mg-border: #d3d3d9;
	--mg-serif: Prata, Georgia, serif;
	--mg-sans: Roboto, Arial, sans-serif;
	--mg-gutter: 4%;
	--mg-header-h: 67px;
}

/* ---------- Base ---------- */

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
}

body {
	margin: 0;
	font-family: var(--mg-sans);
	font-weight: 300;
	font-size: 16px;
	line-height: 1.5;
	color: var(--mg-black);
	background: var(--mg-white);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

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

a {
	color: inherit;
}

p {
	margin: 0 0 0.9rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
	margin: 0;
}

.mg-main h1,
.mg-main h2,
.mg-main h3,
.mg-main h4,
.mg-main h5,
.mg-main h6,
.editor-styles-wrapper h1,
.editor-styles-wrapper h2,
.editor-styles-wrapper h3,
.editor-styles-wrapper h4,
.editor-styles-wrapper h5,
.editor-styles-wrapper h6 {
	font-family: var(--mg-serif);
	font-size: 55px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 2px;
	text-transform: capitalize;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

.skip-link:focus {
	clip: auto;
	width: auto;
	height: auto;
	z-index: 1000;
	top: 8px;
	left: 8px;
	padding: 8px 16px;
	background: var(--mg-white);
	color: var(--mg-black);
}

/* Heading variations */

.mg-main .is-style-eyebrow,
.editor-styles-wrapper .is-style-eyebrow,
.mg-footer .is-style-eyebrow {
	font-family: var(--mg-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 6px;
	text-transform: uppercase;
}

.mg-main .is-style-framed,
.editor-styles-wrapper .is-style-framed {
	display: inline-block;
	padding: 0 25px;
	border-left: 1px solid var(--mg-gray);
	border-right: 1px solid var(--mg-gray);
	font-family: var(--mg-sans);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.2;
	letter-spacing: 6px;
	text-transform: uppercase;
}

.mg-main .is-style-display,
.editor-styles-wrapper .is-style-display {
	font-size: 5.2vw;
	line-height: 1;
	letter-spacing: 10px;
}

/* ---------- Page loader ---------- */

#mg-loader {
	position: fixed;
	inset: 0;
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
	background: var(--mg-black);
	transition: opacity 1s ease;
}

#mg-loader.is-hidden {
	opacity: 0;
	pointer-events: none;
}

.mg-loader__ring {
	width: 60px;
	height: 60px;
	border: 6px solid #333;
	border-top-color: var(--mg-copper);
	border-radius: 50%;
	animation: mg-spin 1s linear infinite;
}

html:not(.js) #mg-loader {
	display: none;
}

@keyframes mg-spin {
	to {
		transform: rotate(360deg);
	}
}

/* ---------- Header ---------- */

.mg-header {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 90;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: var(--mg-header-h);
	padding: 0 var(--mg-gutter);
}

.admin-bar .mg-header {
	top: 32px;
}

.mg-header__bg {
	position: absolute;
	inset: 0;
	z-index: -1;
	background: var(--mg-black);
	opacity: 0.31;
	pointer-events: none;
}

/* Pages with a white background (legal pages) get a solid header. */
body:has(.mg-entry--plain) .mg-header__bg {
	opacity: 1 !important;
}

.mg-header__logo {
	display: block;
	flex-shrink: 0;
	line-height: 0;
}

.mg-header__logo img {
	display: block;
	width: auto;
	height: 40px;
	object-fit: cover;
}

.mg-header__name {
	font-family: var(--mg-serif);
	font-size: 20px;
	line-height: 40px;
	color: var(--mg-white);
}

.mg-nav__menu {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 33px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.mg-nav__menu li {
	position: relative;
	list-style: none;
}

.mg-nav__menu > li > a {
	position: relative;
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 4px 0;
	font-family: var(--mg-serif);
	font-size: 16px;
	font-weight: 300;
	line-height: 1.5;
	color: var(--mg-white);
	text-decoration: none;
	transition: color 0.3s;
}

.mg-nav__menu > li > a::after {
	content: "";
	position: absolute;
	left: 50%;
	right: 50%;
	bottom: 0;
	height: 1px;
	background: var(--mg-copper);
	opacity: 0;
	transition: left 0.3s, right 0.3s, opacity 0.3s;
}

.mg-nav__menu > li > a:hover,
.mg-nav__menu > li > a:focus-visible,
.mg-nav__menu > li.current-menu-item:not(.lang-item) > a,
.mg-nav__menu > li.current_page_item:not(.lang-item) > a {
	color: var(--mg-copper);
}

.mg-nav__menu > li:not(.lang-item) > a:hover::after,
.mg-nav__menu > li:not(.lang-item) > a:focus-visible::after,
.mg-nav__menu > li.current-menu-item:not(.lang-item) > a::after,
.mg-nav__menu > li.current_page_item:not(.lang-item) > a::after {
	left: 0;
	right: 0;
	opacity: 1;
}

/* Language switcher (Polylang menu item) */

.mg-nav__menu > li.menu-item-has-children > a::before {
	content: "";
	order: 2;
	width: 0;
	height: 0;
	margin-left: 4px;
	border-left: 5px solid transparent;
	border-right: 5px solid transparent;
	border-top: 5px solid currentColor;
}

.mg-nav__menu .pll-switcher-flag,
.mg-nav__menu .lang-item img {
	display: inline-block;
	width: 18px;
	height: auto;
}

.mg-nav__menu .sub-menu {
	position: absolute;
	top: 100%;
	left: 50%;
	z-index: 10;
	min-width: 60px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--mg-white);
	transform: translateX(-50%);
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.2s, visibility 0.2s;
}

.mg-nav__menu li:hover > .sub-menu,
.mg-nav__menu li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
}

.mg-nav__menu .sub-menu a {
	display: flex;
	justify-content: center;
	padding: 13px 20px;
	color: #171717;
	text-decoration: none;
	border-bottom: 1px solid var(--mg-border);
}

.mg-nav__menu .sub-menu li:last-child a {
	border-bottom: 0;
}

.mg-nav-toggle {
	display: none;
	align-items: center;
	justify-content: center;
	width: 33px;
	height: 33px;
	padding: 0;
	border: 0;
	background: transparent;
	color: var(--mg-white);
	cursor: pointer;
}

.mg-nav-toggle:hover {
	color: var(--mg-copper);
}

.mg-nav-toggle__close {
	display: none;
}

/* ---------- Content patterns ---------- */

.mg-main {
	display: block;
}

:where(.mg-main > .mg-entry > .mg-entry__content > *) {
	margin-top: 0;
	margin-bottom: 0;
}

.mg-main .wp-block-group,
.mg-main .wp-block-cover {
	margin-top: 0;
	margin-bottom: 0;
}

/* Full-screen image sections with a translucent title bar (home) */

.mg-main .wp-block-cover.mg-fullbg {
	min-height: 100vh;
	padding: 0;
	align-items: flex-start;
}

.mg-fullbg > .wp-block-cover__inner-container {
	width: 100%;
	max-width: none;
}

.mg-titlebar {
	padding: 20px;
}

.mg-titlebar h2 {
	color: var(--mg-white);
	text-align: center;
}

.mg-main .mg-titlebar .mg-title-sm {
	font-size: 40px;
}

.mg-main .mg-titlebar .mg-title-xs {
	font-size: 36px;
}

/* Hero with background video */

.mg-main .wp-block-cover.mg-hero {
	min-height: 100vh;
	padding: 0;
}

.mg-main .wp-block-cover.mg-video-band {
	min-height: 500px;
	padding: 0;
}

.mg-main .wp-block-cover.mg-video-band--offset {
	margin-top: 70px;
}

.wp-block-cover:has(> .wp-block-cover__inner-container > .is-style-background-video) > .wp-block-cover__inner-container {
	position: static;
}

.wp-block-cover__inner-container > :not(.is-style-background-video) {
	position: relative;
	z-index: 2;
}

.wp-block-embed.is-style-background-video {
	position: absolute;
	inset: 0;
	z-index: 1;
	margin: 0;
	overflow: hidden;
	pointer-events: none;
}

.wp-block-embed.is-style-background-video .wp-block-embed__wrapper {
	position: absolute;
	inset: 0;
}

.wp-block-embed.is-style-background-video .wp-block-embed__wrapper::before {
	display: none;
}

.wp-block-embed.is-style-background-video iframe {
	position: absolute;
	top: 50%;
	left: 50%;
	width: 100%;
	height: 100%;
	border: 0;
	transform: translate(-50%, -50%);
}

.editor-styles-wrapper .wp-block-embed.is-style-background-video {
	position: relative;
	inset: auto;
	max-width: 320px;
	opacity: 0.6;
}

/* Inline autoplay video (weddings) */

.wp-block-embed.is-style-autoplay {
	margin: 0;
}

.wp-block-embed.is-style-autoplay iframe {
	pointer-events: none;
}

/* Page title hero (History) */

.mg-page-hero {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-end;
	gap: 25px;
	min-height: 390px;
	padding: 10% 4% 4%;
	background: var(--mg-black);
	text-align: center;
}

/* Split layout: text column + media column */

.mg-split {
	display: flex;
	flex-direction: row;
	align-items: stretch;
	min-height: 674px;
	padding: 13% 0 7% 8.5%;
	background: var(--mg-black);
	color: var(--mg-white);
}

.mg-split__text {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 20px;
	width: 47%;
	flex: none;
	padding: 0 12% 8% 0;
}

.mg-split__text > * {
	margin: 0;
}

.mg-split__text p {
	margin: 0 0 0.9rem;
}

.mg-split__text .wp-block-heading + .wp-block-heading:not(.is-style-eyebrow) {
	margin-top: 10px;
}

.mg-split__media {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: flex-end;
	align-self: flex-end;
	gap: 3%;
	width: 51.919%;
	flex: none;
}

.mg-split__media > * {
	width: 100%;
	margin: 0;
}

.mg-split--reverse .mg-split__media {
	align-self: flex-end;
	width: 45%;
}

.mg-split--reverse .mg-split__media > .wp-block-gallery {
	align-self: center;
	padding-top: 59px;
}

.mg-split--reverse .mg-split__text {
	align-items: flex-end;
	width: 54%;
	padding: 0 8% 8% 5%;
}

.mg-split--reverse .mg-split__text .wp-block-heading {
	text-align: right;
}

.mg-split--top .mg-split__media {
	align-items: flex-start;
	justify-content: flex-start;
	min-height: 504px;
}

/* Decorative divider */

.mg-band {
	padding: 15px 0;
	background: var(--mg-black);
}

.wp-block-separator.is-style-leaves {
	width: 100%;
	max-width: none;
	height: 20px;
	margin: 0;
	padding: 0;
	border: 0;
	background-color: var(--mg-copper);
	opacity: 1;
	-webkit-mask: url("../img/leaves.svg") repeat-x left center / auto 20px;
	mask: url("../img/leaves.svg") repeat-x left center / auto 20px;
}

/* Section intro (title + subtitle + text, centered on black) */

.mg-intro {
	padding: 75px 25px 55px;
	background: var(--mg-black);
	color: var(--mg-white);
	text-align: center;
}

.mg-intro > * {
	margin-left: auto;
	margin-right: auto;
}

.mg-intro .mg-intro__lead {
	max-width: 1090px;
	margin-top: 44px;
	font-family: var(--mg-serif);
	font-size: 15px;
	font-style: italic;
}

/* Section heading on black with gray text (Inside) */

.mg-section-title {
	padding: 50px 0;
	background: var(--mg-black);
	text-align: center;
}

/* Rooms: text + image */

.mg-room {
	display: flex;
	align-items: stretch;
	padding: 50px;
	background: var(--mg-black);
	color: var(--mg-white);
}

.mg-room__text {
	display: flex;
	flex-direction: column;
	justify-content: space-evenly;
	width: 50%;
	flex: none;
	padding-right: 40px;
}

.mg-room__text .wp-block-heading {
	margin-bottom: 10px;
}

.mg-room__lead {
	color: #bebdbd;
	font-style: italic;
}

.mg-room__text ul {
	margin: 0 0 0.9rem;
}

.mg-room__media {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: space-around;
	width: 50%;
	flex: none;
}

.mg-room__media > * {
	width: 100%;
	margin: 0;
}

/* Generic black section */

.mg-black {
	background: var(--mg-black);
	color: var(--mg-white);
}

/* ---------- Slider (group with cover slides) ---------- */

.wp-block-group.is-style-slider {
	position: relative;
	padding-bottom: 30px;
	background: var(--mg-black);
}

.mg-slider__viewport {
	overflow: hidden;
}

.wp-block-group.is-style-slider.mg-slider--inset {
	padding: 5px 5px 35px;
}

.mg-slider__track {
	display: flex;
	transition: transform 0.5s ease;
	will-change: transform;
}

.mg-slider__track > .wp-block-cover {
	flex: 0 0 100%;
	width: 100%;
	margin: 0;
}

.wp-block-group.is-style-slider .wp-block-cover {
	padding: 50px;
	align-items: center;
	justify-content: center;
}

.wp-block-group.is-style-slider .wp-block-cover__inner-container {
	max-width: 66%;
	text-align: center;
	color: var(--mg-white);
}

.mg-main .mg-slide-title,
.editor-styles-wrapper .mg-slide-title {
	margin: 0 0 30px;
	color: var(--mg-white);
	font-size: 35px;
	font-weight: 700;
	line-height: 1;
	text-align: center;
}

.mg-slide-desc {
	margin: 0;
	font-family: var(--mg-serif);
	font-size: 17px;
	font-weight: 400;
	line-height: 1.4;
	text-transform: capitalize;
	text-align: center;
}

.mg-slider--big .mg-slide-desc {
	font-size: 32px;
}

.mg-slider__track .wp-block-cover.is-active .wp-block-cover__inner-container > * {
	animation: mg-fade-in-up 1s both;
}

.mg-dots {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 5px;
	display: flex;
	justify-content: center;
	gap: 12px;
	line-height: 0;
}

.mg-dots button {
	width: var(--mg-dot, 16px);
	height: var(--mg-dot, 16px);
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--mg-white);
	cursor: pointer;
}

.mg-dots button.is-active {
	background: var(--mg-copper);
}

.mg-dots--dark button {
	background: rgba(0, 0, 0, 0.2);
}

.mg-dots--dark button.is-active {
	background: var(--mg-black);
}

/* ---------- Carousel (gallery) ---------- */

.wp-block-gallery.is-style-carousel {
	position: relative;
	display: block !important;
	padding-bottom: 30px;
}

.wp-block-gallery.is-style-carousel .mg-slider__track {
	align-items: center;
}

.wp-block-gallery.is-style-carousel .mg-slider__track > figure.wp-block-image {
	flex: 0 0 100% !important;
	width: 100% !important;
	margin: 0 !important;
	display: flex;
	justify-content: center;
}

.wp-block-gallery.is-style-carousel figure.wp-block-image img {
	width: 100%;
	height: auto !important;
	object-fit: contain !important;
	flex: none !important;
}

.wp-block-gallery.is-style-carousel.mg-fade .mg-slider__track {
	display: grid;
	transform: none !important;
}

.wp-block-gallery.is-style-carousel.mg-fade .mg-slider__track > figure.wp-block-image {
	grid-area: 1 / 1;
	opacity: 0;
	transition: opacity 0.5s ease;
}

.wp-block-gallery.is-style-carousel.mg-fade .mg-slider__track > figure.wp-block-image.is-active {
	opacity: 1;
}

.mg-carousel-arrow {
	position: absolute;
	top: calc(50% - 15px);
	z-index: 2;
	width: 25px;
	height: 25px;
	padding: 0;
	border: 0;
	background: transparent;
	color: rgba(238, 238, 238, 0.9);
	transform: translateY(-50%);
	cursor: pointer;
}

.mg-carousel-arrow svg {
	display: block;
	width: 25px;
	height: 25px;
	fill: currentColor;
}

.mg-carousel-arrow--prev {
	left: 10px;
}

.mg-carousel-arrow--next {
	right: 10px;
}

.wp-block-gallery.is-style-carousel .mg-dots {
	gap: 6px;
	bottom: 9px;
}

.wp-block-gallery.is-style-carousel .mg-dots button,
.wp-block-gallery.is-style-carousel .mg-dots button.is-active {
	width: 6px;
	height: 6px;
	background: var(--mg-black);
}

.wp-block-gallery.is-style-carousel.mg-dots-copper .mg-dots {
	gap: 10px;
}

.wp-block-gallery.is-style-carousel.mg-dots-copper .mg-dots button {
	width: 12px;
	height: 12px;
	background: var(--mg-white);
}

.wp-block-gallery.is-style-carousel.mg-dots-copper .mg-dots button.is-active {
	background: var(--mg-copper);
}

.editor-styles-wrapper .wp-block-gallery.is-style-carousel {
	display: flex !important;
	overflow: visible;
}

/* ---------- Image grid (Property Outside) ---------- */

.mg-grid-title {
	display: table;
	margin: 68px auto 20px;
	padding-bottom: 7px;
	border-bottom: 3px solid var(--mg-black);
	color: var(--mg-copper);
	text-align: center;
}

.mg-main .wp-block-gallery.mg-grid {
	--wp--style--unstable-gallery-gap: 10px;
	gap: 10px;
	margin: 0;
}

.mg-main .wp-block-gallery.mg-grid figure.wp-block-image {
	flex-grow: 0;
}

.mg-main .wp-block-gallery.mg-grid .wp-block-image img {
	aspect-ratio: 3 / 2;
	object-fit: cover;
}

/* ---------- Experiences ---------- */

.mg-main .wp-block-group.mg-xp-hero {
	display: flex;
	flex-direction: column;
	justify-content: center;
	min-height: 400px;
	margin-top: 60px;
	padding: 0 40px;
}

.mg-xp-hero p {
	color: var(--mg-white);
	font-style: italic;
}

.mg-xp-intro {
	padding: 10px 10px 23px;
	background: var(--mg-black);
	color: var(--mg-white);
	text-align: center;
}

.wp-block-group.is-style-slider + .mg-xp-intro {
	padding-top: 40px;
}

.mg-xp-intro > * {
	margin-left: auto;
	margin-right: auto;
}

.mg-main .mg-xp-intro .mg-xp-intro__title {
	color: var(--mg-copper);
	font-size: 40px;
}

.mg-main .mg-xp-intro .mg-xp-intro__subtitle {
	width: fit-content;
	margin: 20px auto 33px;
	text-align: left;
	color: var(--mg-white);
	font-size: 30px;
}

.mg-xp-intro p {
	padding: 0 40px;
	font-family: var(--mg-serif);
	font-size: 16px;
}

/* ---------- Contact ---------- */

.mg-contact {
	display: flex;
	min-height: 800px;
	padding-top: 79px;
	background: var(--mg-black);
	color: var(--mg-white);
}

.mg-contact__image {
	width: 34%;
	flex: none;
	min-height: 100%;
	padding: 0;
}

.mg-contact__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 1;
	padding: 0 24% 0 7%;
}

.mg-main .mg-contact__title {
	margin-bottom: 1.9vw;
	color: var(--mg-white);
}

.mg-contact__title mark,
.mg-contact__title .mg-accent {
	background: none;
	color: var(--mg-copper);
}

.wp-block-list.is-style-icons {
	margin: 0;
	padding: 0;
	list-style: none;
}

.wp-block-list.is-style-icons li {
	position: relative;
	display: flex;
	align-items: center;
	gap: 5px;
	list-style: none;
}

.wp-block-list.is-style-icons li::before {
	content: "";
	flex: none;
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: var(--mg-icon) no-repeat center / contain;
	mask: var(--mg-icon) no-repeat center / contain;
}

.wp-block-list.is-style-icons a {
	text-decoration: none;
	transition: color 0.3s;
}

.wp-block-list.is-style-icons a:hover {
	color: var(--mg-copper);
}

.mg-contact .wp-block-list.is-style-icons li {
	gap: 7px;
	padding: 3px 0 6px;
	font-size: 24px;
	line-height: 1.5;
	border-bottom: 1px solid #ddd;
}

.mg-contact .wp-block-list.is-style-icons li:last-child {
	border-bottom: 0;
}

.mg-contact .wp-block-list.is-style-icons li::before {
	width: 25px;
	height: 25px;
}

.mg-i-phone {
	--mg-icon: url("../img/icon-phone.svg");
}

.mg-i-whatsapp {
	--mg-icon: url("../img/icon-whatsapp.svg");
}

.mg-i-telegram {
	--mg-icon: url("../img/icon-telegram.svg");
}

.mg-i-mail {
	--mg-icon: url("../img/icon-mail.svg");
}

.mg-map-section {
	display: flex;
	align-items: center;
	padding-top: 24px;
	background: var(--mg-white);
}

.mg-address {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	width: 34%;
	flex: none;
	text-align: center;
}

.mg-address__box {
	padding: 30px 40px;
	background: var(--mg-white);
}

.mg-main .mg-address h5 {
	color: var(--mg-charcoal);
	font-size: 18px;
	letter-spacing: 1.1px;
	line-height: 1;
}

.mg-address .wp-block-separator {
	width: 30px;
	margin: 15px auto;
	border: 0;
	border-top: 1px solid var(--mg-charcoal);
	opacity: 1;
}

.mg-address p {
	margin: 0 0 0.9rem;
	color: var(--mg-charcoal);
}

.mg-map {
	width: 66%;
	flex: none;
	padding-left: 7%;
}

.mg-map iframe {
	display: block;
	width: 100%;
	height: 480px;
	border: 0;
	filter: saturate(0);
}

/* ---------- Weddings ---------- */

.mg-video-full {
	background: #010101;
}

.mg-video-full .wp-block-embed {
	margin: 0;
}

.mg-video-full .wp-block-embed__wrapper {
	position: relative;
	aspect-ratio: 16 / 9;
}

.mg-video-full .wp-block-embed__wrapper iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.mg-heading-band {
	padding: 10px 25px;
	background: var(--mg-black);
	text-align: center;
}

.mg-heading-band .wp-block-heading {
	color: var(--mg-copper);
}

/* ---------- Legal / plain pages ---------- */

.mg-entry--plain {
	max-width: 1140px;
	margin: 0 auto;
	padding: calc(var(--mg-header-h) + 60px) 25px 60px;
}

.mg-entry__title {
	margin: 0 0 30px;
	font-family: var(--mg-serif);
	font-size: 42px;
	font-weight: 400;
	line-height: 1.2;
	color: var(--mg-charcoal);
}

.mg-entry--plain h2,
.mg-entry--plain h3 {
	margin: 1.5em 0 0.6em;
	font-family: var(--mg-serif);
	font-weight: 400;
	color: var(--mg-charcoal);
}

.mg-entry--plain h2 {
	font-size: 28px;
}

.mg-entry--plain h3 {
	font-size: 22px;
}

.mg-entry--plain a {
	color: var(--mg-copper);
}

/* ---------- 404 ---------- */

.mg-404 {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 80vh;
	padding: 120px 25px 80px;
	background: var(--mg-black);
	text-align: center;
}

.mg-404__title {
	margin: 0;
	font-family: var(--mg-serif);
	font-size: 120px;
	font-weight: 400;
	line-height: 1;
	letter-spacing: 10px;
	color: var(--mg-copper);
}

.mg-404__subtitle {
	margin: 25px 0 40px;
	font-size: 16px;
	font-weight: 400;
	letter-spacing: 6px;
	text-transform: uppercase;
	color: var(--mg-white);
}

.mg-404__button {
	display: inline-block;
	padding: 6px 15px;
	border-left: 1px solid var(--mg-gray);
	border-right: 1px solid var(--mg-gray);
	font-size: 12px;
	font-weight: 400;
	letter-spacing: 1px;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--mg-white);
}

.mg-404__button:hover {
	color: var(--mg-copper);
}

/* ---------- Footer ---------- */

.mg-footer {
	min-height: 200px;
	padding: 3% var(--mg-gutter) 2%;
	background: var(--mg-black);
	color: var(--mg-white);
}

.mg-footer__cols {
	display: flex;
	justify-content: space-between;
	gap: 8%;
}

.mg-footer__col {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.mg-footer__col--address {
	width: 47%;
}

.mg-footer__col--contact {
	width: 44%;
}

.mg-footer h4 {
	margin: 0;
	color: var(--mg-white);
}

.mg-footer ul {
	margin: 0;
	padding: 0;
	list-style: none;
}

.mg-footer li {
	line-height: 1.5;
}

.mg-footer a {
	text-decoration: none;
}

.mg-copyright {
	display: flex;
	align-items: center;
	min-height: 45px;
	padding: 0 var(--mg-gutter);
	background: var(--mg-copper);
}

.mg-copyright__col {
	width: 50%;
}

.mg-copyright__text {
	display: block;
	width: 50%;
	color: var(--mg-white);
	text-align: center;
}

.mg-copyright p {
	margin: 0 0 0.9rem;
}

.mg-copyright a {
	color: var(--mg-black);
	text-decoration: underline;
}

.mg-copyright a:hover {
	color: var(--mg-charcoal);
	text-decoration: none;
}

/* ---------- Entrance animations ---------- */

.js .mg-anim {
	opacity: 0;
}

.js .mg-anim.is-visible {
	animation: mg-fade-in 1.25s both;
}

.js .mg-anim-up.is-visible {
	animation-name: mg-fade-in-up;
}

.js .mg-anim-left.is-visible {
	animation-name: mg-fade-in-left;
}

.js .mg-delay-300.is-visible {
	animation-delay: 0.3s;
}

.js .mg-delay-650.is-visible {
	animation-delay: 0.65s;
}

@keyframes mg-fade-in {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes mg-fade-in-up {
	from {
		opacity: 0;
		transform: translate3d(0, 100%, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes mg-fade-in-left {
	from {
		opacity: 0;
		transform: translate3d(-100%, 0, 0);
	}
	to {
		opacity: 1;
		transform: none;
	}
}

@media (prefers-reduced-motion: reduce) {
	.js .mg-anim,
	.js .mg-anim.is-visible {
		opacity: 1;
		animation: none;
	}

	.mg-slider__track {
		transition: none;
	}
}

/* ---------- Tablet ---------- */

@media (max-width: 1024px) {
	:root {
		--mg-gutter: 5%;
		--mg-header-h: 75px;
	}

	body {
		font-size: 14px;
	}

	.mg-main h1,
	.mg-main h2,
	.mg-main h3,
	.mg-main h4,
	.mg-main h5,
	.mg-main h6 {
		font-size: 42px;
	}

	.mg-main .is-style-eyebrow,
	.mg-main .is-style-framed,
	.mg-footer .is-style-eyebrow {
		font-size: 14px;
	}

	.mg-main .is-style-display {
		font-size: 6.9vw;
		letter-spacing: 5px;
	}

	.mg-main .mg-titlebar h2.mg-title-sm,
	.mg-main .mg-titlebar h2.mg-title-xs {
		font-size: 42px;
	}

	.wp-block-cover.has-parallax,
	.wp-block-cover__image-background.has-parallax {
		background-attachment: scroll !important;
	}

	.mg-header__logo img {
		width: 180px;
	}

	.mg-nav-toggle {
		display: flex;
	}

	.mg-nav {
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		max-height: 0;
		overflow: hidden;
		background: var(--mg-white);
		transition: max-height 0.3s ease;
	}

	.mg-header.is-open .mg-nav {
		max-height: 80vh;
		overflow-y: auto;
	}

	.mg-header.is-open .mg-nav-toggle__open {
		display: none;
	}

	.mg-header.is-open .mg-nav-toggle__close {
		display: block;
	}

	.mg-nav__menu {
		flex-direction: column;
		align-items: stretch;
		gap: 0;
	}

	.mg-nav__menu > li > a {
		justify-content: center;
		padding: 17px 20px;
		font-size: 16px;
		color: #171717;
		border-bottom: 1px solid var(--mg-border);
	}

	.mg-nav__menu > li > a::after {
		display: none;
	}

	.mg-nav__menu .sub-menu {
		position: static;
		display: none;
		transform: none;
		opacity: 1;
		visibility: visible;
	}

	.mg-nav__menu li.is-sub-open > .sub-menu {
		display: block;
	}

	.mg-nav__menu .sub-menu a {
		border-bottom: 1px solid var(--mg-border);
	}

	.mg-page-hero {
		min-height: 360px;
		padding: 10% 5%;
	}

	.mg-main .wp-block-cover.mg-video-band {
		min-height: 470px;
	}

	.mg-split,
	.mg-split--reverse {
		flex-wrap: wrap;
		gap: 80px;
		margin-top: 20%;
		padding: 0 10%;
	}

	.mg-split__text,
	.mg-split__media,
	.mg-split--reverse .mg-split__text,
	.mg-split--reverse .mg-split__media {
		width: 100%;
		padding: 0;
		align-items: center;
		justify-content: center;
		text-align: center;
	}

	.mg-split--reverse .mg-split__text .wp-block-heading {
		text-align: center;
	}

	.mg-room {
		flex-wrap: wrap;
		gap: 27px;
	}

	.mg-room__text,
	.mg-room__media {
		width: 100%;
	}

	.mg-main .wp-block-gallery.mg-grid figure.wp-block-image:not(#individual-image) {
		width: calc(50% - 5px);
	}

	.mg-slider--big .mg-slide-desc {
		font-size: 22px;
	}

	.mg-contact {
		flex-wrap: wrap;
		margin-top: 12%;
	}

	.mg-contact__image {
		width: 100%;
		min-height: 370px;
	}

	.mg-contact__body {
		padding: 10% 10% 0;
		text-align: center;
	}

	.mg-main .mg-contact__title {
		margin-bottom: 0;
	}

	.mg-contact .wp-block-list.is-style-icons li {
		font-size: 14px;
	}

	.mg-map-section {
		flex-direction: column-reverse;
		margin-bottom: 0;
		padding: 0 10%;
	}

	.mg-address,
	.mg-map {
		width: 100%;
	}

	.mg-map {
		padding: 10% 0;
	}

	.mg-map iframe {
		height: 390px;
	}

	.mg-footer {
		padding: 8% var(--mg-gutter);
	}

	.mg-footer__cols {
		flex-wrap: wrap;
		gap: 60px;
	}

	.mg-footer__col--address,
	.mg-footer__col--contact {
		width: auto;
	}
}

/* ---------- Mobile ---------- */

@media (max-width: 767px) {
	:root {
		--mg-gutter: 6%;
		--mg-header-h: 65px;
	}

	.mg-main h1,
	.mg-main h2,
	.mg-main h3,
	.mg-main h4,
	.mg-main h5,
	.mg-main h6 {
		font-size: 28px;
	}

	.mg-main .is-style-eyebrow,
	.mg-main .is-style-framed,
	.mg-footer .is-style-eyebrow {
		font-size: 12px;
		line-height: 1.4;
	}

	.mg-main .is-style-framed {
		padding: 0 5%;
	}

	.mg-main .is-style-display {
		font-size: 40px;
		line-height: 1.1;
	}

	.mg-main .mg-titlebar h2.mg-title-sm,
	.mg-main .mg-titlebar h2.mg-title-xs {
		font-size: 28px;
	}

	.admin-bar .mg-header {
		top: 46px;
	}

	.mg-page-hero {
		min-height: 350px;
		gap: 20px;
		padding: 10% 6% 20%;
	}

	.mg-main .wp-block-cover.mg-video-band {
		min-height: 390px;
	}

	.mg-split,
	.mg-split--reverse {
		gap: 5px;
		margin-top: 0;
		padding: 35px 10px 0;
	}

	.mg-split__text {
		gap: 15px;
	}

	.mg-intro {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 100vh;
		padding: 25px;
	}

	.mg-intro .mg-intro__lead {
		margin-top: 64px;
		padding: 0 50px;
		font-size: 14px;
	}

	.mg-section-title {
		padding: 40px 0;
	}

	.mg-main .mg-slide-title,
	.wp-block-group.is-style-slider .mg-slide-title {
		font-size: 23px;
	}

	.mg-slide-desc {
		font-size: 13px;
	}

	.mg-slider--big .mg-slide-desc {
		font-size: 18px;
	}

	.wp-block-group.is-style-slider .wp-block-cover {
		padding: 30px;
	}

	.mg-video-full {
		display: flex;
		flex-direction: column;
		justify-content: center;
		min-height: 100vh;
	}

	.mg-heading-band {
		padding: 25px;
	}

	.mg-main .mg-xp-intro .mg-xp-intro__title,
	.mg-main .mg-xp-intro .mg-xp-intro__subtitle {
		font-size: 28px;
	}

	.mg-xp-intro p {
		font-size: 14px;
	}

	.mg-main .wp-block-gallery.mg-grid figure.wp-block-image:not(#individual-image) {
		width: 100%;
	}

	.mg-main .wp-block-gallery.mg-grid {
		--wp--style--unstable-gallery-gap: 6px;
		gap: 6px;
	}

	.mg-contact {
		margin-top: 0;
	}

	.mg-contact__body {
		padding: 40px 10% 30px;
		text-align: left;
	}

	.mg-main .mg-contact__title {
		margin-bottom: 20px;
		text-align: center;
	}

	.mg-map-section {
		flex-direction: column;
	}

	.mg-map,
	.mg-address {
		padding-top: 63px;
	}

	.mg-map {
		padding-bottom: 0;
	}

	.mg-footer {
		padding: 20% var(--mg-gutter);
		text-align: center;
	}

	.mg-footer__cols {
		gap: 45px;
		justify-content: center;
	}

	.mg-footer__col {
		gap: 5px;
		align-items: center;
	}

	.mg-footer .wp-block-list.is-style-icons li {
		justify-content: center;
	}

	.mg-copyright {
		flex-wrap: wrap;
		min-height: 60px;
		padding-top: 8px;
		text-align: center;
	}

	.mg-copyright__col {
		width: 100%;
	}

	.mg-copyright__text {
		margin: 0 auto;
	}

	.mg-copyright p {
		margin: 0 0 6px;
	}

	.mg-404__title {
		font-size: 80px;
	}
}
