html {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: var(--site-bg-color);
}

body {
    font-family: "texgyreadventor";
    background-color: var(--site-bg-color);
    color: black;
    width: 100%;
}

.block {
    font-size: 1.2rem;
    width: 100%;
    background-color: var(--invite-front);
    border-color: #ffac91;
    position: relative;
    z-index: 2;
}

.block-title {
    text-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
    color: var(--isabelline);
}

.bordered-block {
    width: calc(100% - 2rem);
    border-width: 0 1rem 0 1rem;
    border-style: solid;
}

.block h2,
.block h3 {
    font-family: 'Samarata';
}

.block h2 {
    font-size: 4rem;
}

.block h3 {
    font-size: 3rem;
}

.block .portrait h2 {
    font-size: 4rem;
}

.block .portrait h3 {
    font-size: 3rem;
}




/*---------------------------------------
  HEADER
-----------------------------------------*/

header {
    width: 100%;
    height: var(--maxh);
    min-height: 420px;
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: center;
}
/* 
@media (aspect-ratio > 1/1) {
    header h1 {
        padding-top: min(35vh, calc(10vw * var(--aspect-ratio)))
    }
}
*/

header h1 {
    font-size: max(10vw, min(15vw, 15vh));
    position: relative;
    left: 0.11em;
}

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

@media (aspect-ratio < 1.2) {
    .header-content {
        bottom: min(10em, calc((15em * (1.2 - var(--aspect-ratio))) / var(--aspect-ratio)));
    }

    header::before {
        background-position: center top calc(60% + ((1.2 - var(--aspect-ratio)) / var(--aspect-ratio)));
    }
}

header::before {
    content: "";
    width: 100%;
    height: var(--maxh);
    min-height: 420px;
    background-image: url('/images/6G8A0021.jpg');
    background-size: cover;
    background-position: center top 60%;
    /* background-position: center top max(45%, min(35%, calc(33% * var(--aspect-ratio)))); */
    /* background-position: center top max(80%, min(60%, calc( 40em * var(--aspect-ratio)))); */
    position: absolute;
}

/* @media (min-aspect-ratio: 2.0) { */
    /* header h1 {
        padding-top: var(--navh);
    } */

    /* header::before {
        background-position: center bottom 45%;
    }
} */

header h1, header h2 {
    color: var(--isabelline);
    text-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
    position: relative;
    z-index: 1;
}
header h1 {
    font-family: "Samarata";
    height: max-content;
    padding-bottom: 1rem;
}

h2#wedding_date {
    font-family: "texgyreadventor";
    font-size: 1.5em;
    background-color: color-mix(in srgb, var(--bs-primary) 50%, rgb(0,0,0,0));
    padding: 0.2rem 2rem;
}

.rsvp-a button {
    background-color: color-mix(in srgb, var(--bs-primary) 95%, rgb(0,0,0,0));
}

.registry-a button {
    background-color: color-mix(in srgb, #1e7b92 95%, rgb(0,0,0,0));
}

.subtitle {
    font-size: .5em;
}

.rsvp-a {
    position: relative;
    z-index: 1;
    padding-top: 0.5em;
}

.registry-a {
    position: relative;
    z-index: 1;
    padding-top: 0.5em;
}



/* .portrait header::before {
    background-position: center top;
} */

.scroll_down {
    width: 100%;
    height: var(--maxh);
    min-height: 420px;
    position: absolute;
    z-index: 1;
    display: flex;
    align-items: end;
    justify-content: center;
}

.scroll_down I {
    font-size: 3em;
    color: var(--isabelline);
}



/*---------------------------------------
  OUR-STORY
-----------------------------------------*/

.our-story {
    background-color: transparent;
    color: var(--isabelline);
    position: relative;
    z-index: 1;
    text-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
    padding-top: var(--navh) !important;
    padding-bottom: 1rem;
}

.our-story .block-title {
    text-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
    color: var(--isabelline);
}

.story-img {
    display: block;
    object-fit: cover;
    width: 100%;
    height: 100%;
    border: .25em solid white;
    border-radius: 1em;
    box-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
    box-sizing: border-box;
}

.portrait .story-img-container {
    max-width: 100%;
    max-height: 60vw;
    margin-bottom: 1rem;
}

.portrait .story-img {
    max-width: 60vw;
    max-height: 60vw;
    min-width: 60vw;
    min-height: 60vw;
}

.landscape .story-img-container {
    max-width: 30vw;
    max-height: 30vw;
    min-width: 30vw;
    min-height: 30vw;
}

.story-row {
    width: 100%;
    height: 100%;
    justify-content: space-evenly;
}

.text-content {
    max-width: 45vw;
    /* max-height: 45vw; */
}

.text-content p {
    font-size: 1.2rem;
    line-height: 1.8;
}

.portrait .text-content {
    max-width: 100%;
    max-height: 100%;
    padding-right: 1rem;
    padding-left: 1rem;
}

.landscape .how-we-met p {
    text-align: left;
}

.landscape .the-proposal p {
    text-align: right;
}

.the-proposal {
    flex-direction: row-reverse;
}

.the-proposal img {
    object-position: left;
}

.our-story-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(0%) brightness(0.30);
    margin: 0;
    position: absolute;
    top: 0;
    z-index: -1;
}

/*---------------------------------------
PEOPLE
-----------------------------------------*/

.people h4 {
    font-size: 1em;
}

.people {
    padding-top: var(--navh) !important;
    background-color: var(--invite-green);
    border-color: #89ca7d;
    color: var(--isabelline);
    text-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
}

.person-picture {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* .best-man-img {
    height: 155%;
    object-position: center center;
} */

.person-border {
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
    margin-left: 1rem;
    margin-right: 1rem;
    overflow: hidden;
}

.landscape .person-border {
    width: 12vw;
    height: 12vw;
}

.portrait .person-border {
    width: 18vw;
    height: 18vw;
}

.maids-of-honor {
    position: relative;
     z-index: 2;
}

/* .person-picture[class*='caryn'] {
    object-position: center center;
}

.person-picture[class*='kemiah'] {
    object-position: center center;
} */

.best-man {
    padding-top: 3em;
    padding-bottom: 0.4em;
    position: relative;
    z-index: 2;
}

.people-daisy img {
    position: absolute;
    bottom: 0;
}
.people-daisy {
    position: absolute;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: 0.4;
    overflow: hidden;
}

.wedding-party-block {
    width: 100%;
    justify-content: space-evenly;
    flex-direction: column;
}

.landscape .wedding-party-block {
    align-items: start;
    flex-direction: row;
}

.wedding-party-block h4 {
    font-family: 'Samarata';
    font-size: 2em;
}

.wedding-party-block p {
    font-size: .95em;
}

.wedding-party-block .bridesmaids,
.wedding-party-block .groomsmen{
    width: 50%;
}

.portrait .wedding-party-block .bridesmaids,
.portrait .wedding-party-block .groomsmen{
    padding-top: 1em;
}

/*---------------------------------------
  TIMELINE
-----------------------------------------*/

.schedule {
    padding-top: var(--navh) !important;
    padding-bottom: 0;
    /* background-color: var(--street-green);
    border-color:var(--dark-moss-green); */
}

.schedule h2 {
    text-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
}

.people-block {
    gap: 4rem;
}

.timeline {
    position: relative;
    width: 100%;
}

.timeline::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 100%;
    background-color: transparent;
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin: 20px 0;
    display: flex;
    align-items: center;
    z-index: 2;
}

.timeline-dot {
    width: 1em;
    height: 1em;
    border-radius: 50%;
    background-color: var(--isabelline);
    border: 2px solid black;
}

.timeline-dot-container {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.timeline-item-content {
    background-color: #ffffffd4;
    border-radius: 12px;
    box-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
    position: relative;
    left: 60%;
    padding: 0.5em;
    text-align: left;
    max-width: 18vw;
    
}

@media (max-aspect-ratio: 1.35) {
    .timeline-item-content {
        max-width: 35vw;
    }
}


.timeline-item h3 {
    font-family: 'Samarata';
    font-size: 2em;
}

.timeline-item h4 {
    margin-bottom: .25em;
    font-size: .8em;
    font-weight: bold;
}

.timeline-item p {
    font-size: .8em;
}

.timeline-item:nth-child(odd) {
    flex-direction: row-reverse;
}

.timeline-item:nth-child(odd) .timeline-dot-container {
    left: auto;
    right: 50%;
    transform: translateX(50%);
}

.timeline-item:nth-child(odd) .timeline-item-content {
    right: 60%;
    left: auto;
    text-align: right;
}

.timeline-rose {
    position: absolute;
    z-index: 1;
    width: 100%;
    height: 100%;
    opacity: 0.5;
    overflow: hidden;
}

.timeline-rose img {
    height: 85%;
    rotate: -2.3deg;
    position: relative;
    top: 1.5em;
    left: .5em;
}

.portrait .timeline-rose img {
    left: .7em;
}

/*---------------------------------------
  The Venue / Location
-----------------------------------------*/

.the-venue {
    /* background-color: rgb(255, 155, 116);
    border-color: #e86c30; */
    /* background-color: var(--apricot);
    border-color: var(--pumpkin); */
    justify-content: start;
}

.the-venue h2 {
    text-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
}

.splitter {
    display: flex;
    flex-direction: row;
    width: 100%;
    position: relative;
}

.venue_map_iframe {
    width: 32vw;
    height: 30vw;
    border: none;
    bottom: -.2em;
    position: relative;
}

.location-content {
    background: var(--isabelline);
    border-radius: 1em;
    border: none;
    overflow: hidden;
    padding: 1em;
    box-shadow: 2pt 2pt 4px rgba(26, 26, 26, 0.325);
}

.location-text{
    text-align: left;
    width: 100%;
    font-size: 0.8em;
    font-style: italic;
}

@media (max-aspect-ratio: 1.35) {
    .splitter {
        display: flex;
        flex-direction: column;
    }

    .venue_map_iframe {
        width: 60vw;
        height: 60vw;
        border: none;
    }
}

/*---------------------------------------
FOOTER
-----------------------------------------*/

@media (orientation: portrait) {
    footer{
        height: 25svh;
    }
}
  
footer {
    height: 35vw;
    width: 100%;
    background-size: 110% auto;
    background-position-y: bottom;
    position: relative;
    z-index: 2;
}
  
.footer-gradient {
    height: 50%;
    width: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 1), rgba(0, 0, 0, 0));
    position: relative;
    top: 50%;
}