﻿#mainheader {
    margin: 0px;
    font-size: 290%;
    text-align: right;
    font-family: BlackJackRegular, Georgia, cursive;
    line-height: 100%;
    color: var(--mt-blue);
}

#subtitle {
    line-height: 40px;
    font-size: 15px;
}

#photos {
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    margin: 3em 0 calc(1.5em - 1.92%);
    clear: both;
}

#photos > * {
    flex: none;
    position: relative;
}

#photos > :first-child {
    width: 58.16%;
    margin-left: -2.21%;
    margin-right: -9.13%;
    margin-top: 1.36%;
    transform: rotate(-7deg);
    transform-origin: 46.79% 48.33%;
    z-index: 1;
}

#photos > :last-child {
    width: 58.72%;
    margin-top: 0.36%;
    transform: rotate(3deg);
    transform-origin: 47.99% 48.36%;
    z-index: 2;
}

.photo > img {
    display: block;
    width: 100%;
    height: auto;
}

#photos img {
    border-width: 0px;
}

#menu {
    height: 100px;
}

#gift {
    width: 50%;
    float: right;
}

#gift > h1, #wedding > h1 {
    width: 60%;
    min-width: max-content;
    border-bottom: 2px dotted #cdc9c6;
    margin: auto;
}

#gift > ul, #wedding > ul {
    list-style-type: none;
    padding: 0;
    margin: 1em 0 0 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
}

#gift > ul > li, #wedding > ul > li {
    white-space: nowrap;
    padding: 0 3em;
}

#gift > ul > li:first-child, #wedding > ul > li:first-child {
    justify-self: end;
    padding-left: 0;
}

#gift > ul > li:last-child, #wedding > ul > li:last-child {
    justify-self: start;
    padding-right: 0;
}

#gift > ul > li + li, #wedding > ul > li + li {
    border-left: 2px solid #959595;
}

#gift > ul > li > a, #wedding > ul > li > a {
    display: block;
    font-family: "Nobile",Arial,sans-serif;
    font-weight: bold;
    color: var(--mt-blue);
    text-decoration: none;
    font-size: medium;
}

    #gift > ul > li > a:hover, #wedding > ul > li > a:hover {
        text-decoration: underline;
    }

#wedding {
    width: 50%;
    float: left;
}

@media screen and (max-width: 930px) {
    #gift, #wedding {
        vertical-align: bottom !important;
    }

    #mainheader, #subtitle {
        float: none !important;
        text-align: center !important;
    }

    /* The 40px line height double-spaces the subtitle once it wraps on a phone. Same height as a
       single line (22.5px line + 9px margins), normal spacing when it wraps. */
    #subtitle {
        line-height: 1.5;
        margin: 0.6em 0;
    }

    #menu {
        margin-bottom: 2em;
    }

    /* Narrower columns: tighter gaps around the separators */
    #gift > ul > li, #wedding > ul > li {
        padding: 0 1.5em;
    }

    #gift > ul > li:first-child, #wedding > ul > li:first-child {
        padding-left: 0;
    }

    #gift > ul > li:last-child, #wedding > ul > li:last-child {
        padding-right: 0;
    }
}

@media screen and (max-width: 885px) {
    #gift, #wedding {
        margin-bottom: 3em !important;
    }

    #menu {
        height: 150px !important;
    }
}

@media screen and (max-width: 700px) {
    #gift > ul > li, #wedding > ul > li {
        border-left: none !important;
    }

    #gift, #wedding {
        float: none !important;
        width: 100% !important;
        margin-bottom: 3em !important;
    }

    #menu {
        height: 100% !important;
    }

    #menu > * {
        float: none !important;
    }
}

@media screen and (max-width: 382px) {
    #menu {
        margin-bottom: 3em !important;
    }
}

@media screen and (max-width: 400px) {
    #gift > ul > li, #wedding > ul > li {
        padding: 0 1em;
    }

    #gift > ul > li:first-child, #wedding > ul > li:first-child {
        padding-left: 0;
    }

    #gift > ul > li:last-child, #wedding > ul > li:last-child {
        padding-right: 0;
    }

    #gift > ul > li > a, #wedding > ul > li > a {
        font-size: 15px;
    }
}
