/*
Theme Name: ColliCarrington Theme
Template: twentytwentyfive
Text Domain: collicarrington
*/

:root {
	--header-height: 100px;
	--creamy-pink: #f1e5da;
	--creamy-accent: #d9cdc4;
	--creamy-dark-grey: #57514f;
	--red: #ed1c24;
	--black: #231f20;
}

html {
	scroll-behavior: smooth;
}

body {
	background-color: var(--creamy-pink);
}

h1, h2, h3 {
	letter-spacing: 0.1em;
}

h1 {
	text-transform: uppercase;
	text-align: center;
}

h1::before {
	content: '';
	display: inline-block;
	background: url('assets/images/ampersand.svg') no-repeat center / contain;
	height: 2.5cap;
	aspect-ratio: 57.46 / 62.90;
	vertical-align: -0.5cap;
	margin-right: 0.2em;
}

header.fixed {
	position: fixed;
	top: 0;
	left: 0;
	right: 0;
	z-index: 2;
	transition: opacity .2s ease;
	height: var(--header-height);
	font-weight: 350;
	letter-spacing: 0.05em;
	background-color: var(--creamy-pink);
	opacity: 0;
}

body.scrolled header.fixed {
	color: var(--black);
	box-shadow: 0 4px 20px rgba(0,0,0,.8);
	opacity: 1;
}

body:not(.scrolled) header.fixed .wp-block-site-logo, body:not(.scrolled) header.fixed .wp-block-navigation-item__content {
	display: none;
}

.wp-block-navigation-item {
	text-transform: uppercase;
}

.wp-block-navigation-item.active {
	color: var(--red);
}

header div {
	height: 100%;
}

main [id] {
	scroll-margin-top: calc(var(--header-height) + 12px);
}

@media (orientation: portrait) {
    .hero-logo-group figure {
        max-width: 80% !important;
		margin-top: var(--wp--preset--spacing--60)!important;
    }
}

.banner-headline-white {
	color: white;
	background: var(--black);
	padding: 0.15em;
	text-align: center;
}

.wp-block-media-text.poster-image {
    align-items: center;
    grid-column-gap: 4%;
}

.wp-block-media-text.poster-image .wp-block-media-text__content {
    padding: 0;
}

.wp-block-media-text.poster-image .wp-block-media-text__media {
    min-width: 0;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.wp-block-media-text.poster-image .wp-block-media-text__media img {
    width: 100%;
    height: auto;
    max-height: 100%;
    object-fit: contain;
    display: block;
    border-radius: 5px;
}

.wp-block-media-text.square-image {
	align-items: center;
	grid-column-gap: 4%;
}

.wp-block-media-text.square-image .wp-block-media-text__content {
	padding: 0;
}

.wp-block-media-text.square-image .wp-block-media-text__media {
	min-width: 0;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
	align-self: stretch;
}

.wp-block-media-text.square-image .wp-block-media-text__media img {
	width: 100%;
	height: auto; /* disable to fit the image into the whole height of the div */
	max-height: 100%;
	aspect-ratio: 1;
	object-fit: cover;
	display: block;
	border-radius: 5px;
}

#tnp-modal[style*="display: block"],
#tnp-modal[style*="display:block"] {
	display: flex !important;
	align-items: center;
	justify-content: center;
}

#tnp-modal-content {
	background-color: var(--creamy-pink) !important;
	margin: 0 !important;
	max-height: 90vh !important;
	overflow-y: auto !important;
}
