/* Updated 2025 02 13 */

/* RESET */
* { position: relative; box-sizing: border-box;	background-clip: padding-box; max-width: 100%; line-height: calc(1em + 0.5rem); hyphens: auto; }
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; overscroll-behavior: contain; }

@font-face {
    font-family: 'playlist';
    src: url('/wp-content/themes/it2025/playlist_script-webfont.woff2') format('woff2'),
         url('/wp-content/themes/it2025/playlist_script-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

:root {
	text-spacing-trim: trim-start allow-end trim-adjacent ideograph-alpha ideograph-numeric;

	--dark: 	#1A5E63;
	--medium:	#999;
	--light: 	#eee;

	--hover:			all .4s ease-in-out;
	--scale:			scale(1.1);
}

html {
	-moz-text-size-adjust: none;
	-webkit-text-size-adjust: none;
	text-size-adjust: none;
	/* font adjust is now available */
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { min-height: 100px; background: #6896CC; border-radius: 10px; }


body { 
	display: grid;
	grid-template-rows: 1fr auto 1fr;
	margin: unset;
	min-height: 97vh;
	font: normal 1rem/1.56 'Open Sans', sans-serif;
	color: #222;
	hanging-punctuation: first last;
	text-rendering: optimizeSpeed;

	scroll-behavior: smooth;
}


/* TYPOGRAPHY */

h1, .h1, h2 {
	font: normal 6rem/1.5 'Alkatra', sans-serif;
	color: var(--dark);
	letter-spacing: -2px;
	text-align: center;
}

.page-10 h1:first-of-type {
	margin-top: 1rem;
}
	
h2 {
	font-size: 3rem;
}

:is(h2, h3, h4):target, [id] {
  scroll-margin-top: var(--header-height);
  scroll-margin-top: 2rem;
}





p, dl, ol, ul, address {
	margin: 0 0 24px;
	text-wrap: pretty;
	overflow-wrap: break-word;
}



dd, li { 
	margin: 0 0 8px 32px; 
}

/* Links without a class get default styling. */
a:not([class]) { 
	text-decoration: none; 
	cursor: pointer; 
}

caption, figcaption {
    text-wrap: balance;
}

iframe[src*="youtube"],
iframe[src*="vimeo"] {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

pre { white-space: pre-wrap; }
hr { border: .5px solid; }
blockquote { quotes: none; }
blockquote:before, blockquote:after { content: none; }


/* Layout */

.flex { 				display: flex; gap: 1rem; }
.flex-row, .fr { 		flex-direction: row; }
.flex-column, .fc { 	flex-direction: column; }
.justify-center, .jc { 	justify-content: center; }
.justify-around, .ja { 	justify-content: space-around; }
.justify-between, .jb { justify-content: space-between; }
.justify-end, .je { 	justify-content: flex-end; }
.align-center, .ac { 	align-items: center; }
.align-start, .as { 	align-items: flex-start; }
.flex-wrap, .fw { 		flex-wrap: wrap; }
.gap1 { gap: 1rem; }
.gap2 { gap: 2rem; }

header {
	display: flex; 
	justify-content: center; 
	align-items: center;
	padding: 2rem;
	background-color: var(--dark);
}

header .inner {
	display: flex; 
	justify-content: center;
	align-items: center; 
	flex-wrap: wrap;
	gap: 2rem;
}

.logo a {
	margin: 0;
	font: normal 2.5rem/1.5 sans-serif; 
	color: #fff;
}


header img {
	height: 100px;
	width: auto;
}

main {
	margin: 0 auto;
	padding: 0 1rem;
	width: 850px; max-width: 100%;
}

.inner {
	margin-inline: auto;
	width: min(1200px, 100% - 4rem);
}

.menu-button {
	display: flex;
	flex-direction: column;
	gap: 5px;
	cursor: pointer;
}

.menu-button span {
	border-radius: 1px;
    height: 5px;
    width: 35px;
    background: #ccc;
}


#menu {
  position: fixed;
  top: 0;
  left: 0;
  inset: auto;
  height: 100svh;
  border: 0;
  box-shadow: 0 0 1rem 2px rgba(0, 0, 0, 0.2);
  width: 250px;

  transform: translateX(-100%);
  transition: transform 0.2s ease-in-out;
  transition-behavior: allow-discrete;
}

@starting-style {
  #menu:popover-open {
    transform: translateX(-100%);
  }
}

#menu:popover-open {
  transform: translateX(0);
}


[popover] {
  padding: 1rem;
}

[popover] button {
	position: absolute; top: 8px; right: 8px;
	height: 32px;
	width: 32px; min-width: 32px;
	background-color: var(--dark);
	font-weight: bold;
	font-size: 1.5rem;
	color: #fff;
	text-align: center;
	border-radius: 100%;
}


.menu {
	list-style-type: none; 
	display: flex;
	flex-direction: column;
	overflow: auto;
}

.menu > li {
	margin: 0 0 .5em;
}

.menu li {
	margin: 0;
}

.menu a {
	display: block;
	padding: 0 .5rem;
}

.sub-menu {
    list-style-type: none;
    margin: 0 0 0 1rem;
	padding: .25rem;
	border-left: 1px solid #ccc;
}



.story {
	justify-content: center; 
	padding: 3rem;
	background-color: #fcfcfc;
	background-image: url(/wp-content/uploads/river-1.jpg);
	background-position: 0 -250px;
	background-size: cover;
}

.story-page {
	padding: 2rem;
	max-width: 400px;
	background-color: #fff;
	border-radius: 3px;
}

.story-page h2 {
	margin-bottom: 1rem; 
	text-align: left;
}

.story-pic {
	flex-basis: unset !important;
	flex-grow: unset !important;
}

.story-pic figure {
	margin: 0;
}

.story-pic img {
	border-radius: 3px;
}

/* GOWNS */

#gowns {
	margin-bottom: 2rem;
}

h2 {
	margin: 0 0 1rem;
	font-size: 3rem;
	color: #1A5E63;
	text-align: center;
}

.gown-grid > div {
	display: flex;
	justify-content: center;
	align-items: center;
	flex-wrap: wrap;
	gap: 1rem;
}


/* FLOWERS */

#flowers {
	margin-bottom: 2rem; 
	padding: 2rem 0;
	background-color: aliceblue;
}

.flower-grid > div {
	columns: 7;
	margin-bottom: 3rem;
	padding: 0 20%; 
}

/* DECOR */

.decor-grid > div {
	columns: 7;
	margin-bottom: 3rem;
	padding: 0 20%; 
}

/* ALTERATIONS / ABOUT */

#about {
	margin-bottom: 2rem;
	padding: 2rem;
	background-color: aliceblue;
}

#about div:not(.alterations, .about) {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	gap: 0 2rem;
}

.alterations, .about {
	width: 500px;
}

.fb {
	display: inline-block;
}

.form {
	margin: 0 auto;
	width: 400px;
}

/* MIRRORS */

#mirrors {
	margin-bottom: 2rem; 
	padding: 2rem 0;
	background-color: aliceblue;
}

.mirror-grid > div {
	display: flex;
	justify-content: center;
	flex-wrap: wrap;
	margin-bottom: 3rem;
	padding: 0 20%;
}

.mirror-grid figure, .mirror-grid img {
	height: auto; 
	max-width: 200px;
	gap: 1rem;
}

.top {
	position: fixed; right: 40px; bottom: 120px;
	display: none; 
	justify-content: center;
	align-items: center; 
	height: 40px; 
	width: 40px; 
	background-color: #4199FD;
	border-radius: 100%;
}

.top.show { 
	display: flex; 
}

.top img {
	width: 22px;
}

.sidebar {
	padding-top: 175px !important;
}

.sidebar h2 {
	font-size: 2rem;
	text-align: left; 
}


footer { 
	background: #1A5E63; 
}

.copyright {
		margin: 0;
		padding: 24px;
		font-size: 12px;
		color: #fff;
		text-align: center;
		text-transform: uppercase; 
}

.center {
	text-align: center; 
}

/* ANCHOR LINKS */

a {
	scroll-margin-top: 3rem;
}

a:target { 
  color: red;
  background-color: yellow; 
}

:has(:target) {
  border-color: red;
}

/* Tables */

table {
	border-collapse: collapse;
	border-spacing: 0; }

		
:focus-visible {
	outline: 2px solid red;
  	outline-offset: 2px; 
}

:focus:not(:focus-visible) {
  outline: none;
}


/* Forms */

label:has(required)::after {
	content: "(Required)";
	color: #ccc;
}

label:has(>textarea) { display:block; }

button,
input,
textarea,
select {
  font: inherit;
  letter-spacing: inherit;
  word-spacing: inherit;
}

input,
textarea,
button {
  border: 1px solid gray;
}

textarea {
	min-height: 100px;
}

button {
	appearance: none;
	padding: 0;
	min-width: 100px;	
	background: none;
	border: none;
	border-radius: 0;
	text-align: inherit;
	box-shadow: none;
	cursor: pointer;
}

button.frm_button_submit {
	background-color: var(--dark) !important;
}


/* Utility Classes */

.red { color: #f00; }
.alignleft { float: left; margin: 0 24px 24px 0; }
.alignright { float: right; margin: 0 0 24px 24px; }
b, strong { font-weight: bold; }
i, em { font-style: italic; }



[hidden], 
[type="hidden"], 
.visually-hidden,
[aria-hidden="true"] {
	border: 0;
	clip: rect(0 0 0 0); 
	clip-path: inset(50%);
	height: 1px;
	margin: -1px;
	overflow: hidden;
	padding: 0;
	position: absolute;
	white-space: nowrap; 
	width: 1px;
}



@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}


@media (prefers-reduced-motion: no-preference) {
	:has(:target) {
		scroll-behavior: smooth;
		scroll-padding-top: 3rem;
	}
}

@media (prefers-reduced-transparency: reduce) {
    * { opacity: 1; }
  }

@media (max-width: 800px) {
	.story { padding: 1rem; background-position: 0 0; }
	.story-pic img { display: block; margin: 0 auto; }
	.gown-grid figure { max-width: 300px; }
	.flower-grid > div { columns: 3; }
	.decor-grid > div { columns: 3; }
	.mirror-grid > div { columns: 3; }
}

@media (max-width: 500px) {
	.flower-grid > div, .decor-grid > div { columns: 2; }
}

@media (max-width: 475px) {
	h2:not(.story h2) { font-size: 2rem; }
} 

