* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    }
html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}
:root {
    /* Palette: warm paper, soft charcoal ink, misty sage panels, deep sage accent */
    --ink: #26231F;
    --paper: #F8F6F4;
    --panel: #EEF3F1;
    --card: #FFFFFF;
    --accent: #44655C;
    --line: rgba(38, 35, 31, 0.14);
    --shadow-soft: 0 16px 32px -16px rgba(38, 35, 31, 0.35);
}
a {
    color: white;
    text-decoration: none;
}
body {
        font-family: serif;
        line-height: 1;
        font-weight: 300;
        color: var(--ink);
        background-color: var(--paper);
    }
header, h3 {
    text-align: center;
}
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.header-logo {
    display: block;
    width: min(88%, 32rem);
    height: auto;
    margin: 1.25rem auto 0.25rem;
}
h1 {
    font-size: 7rem;
    text-decoration: underline 1px;
}
h1, .mainnav {
    font-family: 'Oranienbaum', serif;
    font-weight: 300;
}
.topbar {
    font-size: 1.6em;
    border-radius:6px;
    display: flex;
    color: white;
    background-color: var(--ink);
    margin: 1% auto;
    justify-content: center;
    width: fit-content;
}
h5 {
    font-size: 1.7rem;
}
.subheader {
    color: #6B655D;
    font-style: italic;
    letter-spacing: 0.03em;
    margin-bottom: 0.5rem;
}
.container {
    max-width: min(92%, 1100px);
    margin: 2.5rem auto;
    font-size: 1.5rem;
    display:grid;
    grid-template-columns: 1fr .05fr 1fr;
    grid-template-rows: .05fr 1fr .05fr;
    align-items: center;
}
h2 {
    margin-bottom:1%;
    font-family: 'Oranienbaum', serif;
    letter-spacing: 0.02em;
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-decoration-color: var(--accent);
    text-underline-offset: 0.4rem;
}
.info , .about {
    line-height: 1.6rem;
    border: 1px solid var(--line);
    padding: 3.5%;
    background-color: rgba(238, 243, 241, 0.72);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    font-family: 'PT Serif', serif;
    position: relative;
    z-index: 1;
}
.about {
    grid-column: 1 / 3;
    grid-row: 1 / 3;
    box-shadow: var(--shadow-soft);
}
.about h2 {
    margin: 0 0 2%;
}
.photo {
    grid-column: 2 / 4;
    grid-row: 2 / 2;
}
.about, .subheader {
    font-family: 'PT Serif', serif;
    font-weight: 300;
}
.about, .mainphotos, .info {
    border: 1px solid var(--line);
    border-radius: 3px;
}
.about p {
    font-size: 1.1em;
    line-height: 1.45;
    padding-right:2%;
}
ul {
    list-style-type: none;
}
.services {
    margin: 1.4rem 0 0;
}
h2 + h2 {
    margin-top: 1.6rem;
}
.services li {
    font-size: 1.1em;
    line-height: 1.35;
    margin: 0.3rem 0;
    padding-left: 1.6rem;
    position: relative;
}
.services li::before {
    content: "\2022";
    position: absolute;
    left: 0;
    color: var(--accent);
    font-weight: 700;
}
ul, li {
    margin: 2%;
}
li h5{
    text-decoration: underline;
    margin-bottom:1%;
}
.mainphotos {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 15 / 11;
    object-fit: cover;
    border-radius: 6px;
    box-shadow: var(--shadow-soft);
}
.info {
    grid-column: 2 / 4;
    grid-row: 1 / 3;
    box-shadow: var(--shadow-soft);
}
.photo2 {
    grid-column: 1 / 3;
    grid-row: 2 / 3;
}
.contact {
    display: inline-block;
    text-decoration-line: none;
}
.contact-link {
    color: var(--ink);
    text-decoration: underline;
    text-decoration-color: var(--accent);
    text-decoration-thickness: 1px;
    text-underline-offset: 0.3rem;
}
.email {
    display: inline-block;
    font-size: 1.8rem;
    word-break: break-word;
    max-width: 100%;
}
.social {
    margin: 2.5rem auto 1rem;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}
.social-envelope {
    font-size: 5.6rem;
    color: var(--accent);
    transition: transform 0.15s ease;
}
.social a:hover .social-envelope {
    transform: translateY(-3px);
}
.social img {
    width: 7rem;
    height: 7rem;
    object-fit: contain;
    margin: 0;
    transition: transform 0.15s ease;
}
.social a:hover img {
    transform: translateY(-3px);
}
.blurb {
    text-decoration: none;
}
img {
    width: 100%;
}
.btn, .btn2 {
    display: inline-block;
    padding: 0.9rem 1.8rem;
    border-radius: 0.8rem;
    border: 1px solid rgba(33,32,35,0.9);
    background: transparent;
    color: inherit;
    font-size: 1.9rem;
    font-weight: 500;
    letter-spacing: 0.04rem;
    text-decoration: none;
    transition: transform 0.12s ease, box-shadow 0.12s ease;
}
.btn:hover, .btn2:hover {
    cursor: pointer;
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(33,32,35,0.08);
}
.testimonial {
    max-width: min(88%, 72rem);
    margin: 3.5rem auto;
    text-align: center;
}
.testimonial .stars {
    color: #E0A93E;
    font-size: 2rem;
    letter-spacing: 0.5rem;
    margin-bottom: 1.4rem;
}
.testimonial blockquote {
    font-family: 'PT Serif', serif;
    font-style: italic;
    font-size: 1.8rem;
    line-height: 1.6;
    color: var(--ink);
}
.testimonial blockquote p::before,
.testimonial blockquote p::after {
    font-family: 'Oranienbaum', serif;
    font-style: normal;
    font-size: 3.4rem;
    line-height: 0;
    vertical-align: -1rem;
    color: var(--accent);
}
.testimonial blockquote p::before {
    content: "\201C";
    margin-right: 0.5rem;
}
.testimonial blockquote p::after {
    content: "\201D";
    margin-left: 0.5rem;
}
.testimonial footer {
    margin-top: 1.2rem;
    font-style: normal;
    font-size: 1.4rem;
    letter-spacing: 0.04em;
    color: #6B655D;
}
.testimonial footer a {
    color: var(--accent);
    text-decoration: underline;
    text-underline-offset: 0.25rem;
}
#gallery {
    scroll-margin-top: 2rem;
    margin-top: 3.5rem;
}
.gallery-title {
    text-align: center;
    font-size: 3.2rem;
    text-decoration: none;
    margin-bottom: 0.8rem;
}
.gallery-subtitle {
    text-align: center;
    font-size: 1.4rem;
}
.container1 {
    width: min(94%, 1100px);
    margin: 1.75rem auto;
    display: grid;
    grid-template-columns: minmax(2.6rem, 3.6rem) repeat(2, minmax(0, 1fr)) minmax(2.6rem, 3.6rem);
    grid-gap: 1rem;
    align-items: center;
    padding: 1.25rem 0;
    background: var(--card);
    border: 1px solid rgba(38, 35, 31, 0.08);
    border-radius: 1.25rem;
    box-shadow: 0 18px 36px -18px rgba(38, 35, 31, 0.28);
}
.col0, .col1, .col2 {
    width: 100%;
    margin: 0;
}
.col0 {
    grid-column: 2;
    padding: 0.8rem;
    background: #FBFAF8;
    border: 1px solid rgba(38, 35, 31, 0.07);
    border-radius: 1rem;
}
.col1 {
    grid-column: 3;
    padding: 0.8rem;
    background: #FBFAF8;
    border: 1px solid rgba(38, 35, 31, 0.07);
    border-radius: 1rem;
}
.container1 img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 1rem;
    object-fit: cover;
    aspect-ratio: 4 / 3;
    transition: opacity 0.2s ease, transform 0.2s ease;
}
.container1 img:hover {
    transform: scale(1.02);
}
.col0::before,
.col1::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 0.9rem;
    font-family: 'PT Serif', serif;
    font-size: 1.1rem;
    font-weight: 600;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--accent);
    text-align: center;
}
.col0.unlabeled::before,
.col1.unlabeled::before {
    content: none;
    margin-bottom: 0;
}
.container1 button {
    grid-column: 1;
    justify-self: center;
    align-self: center;
    width: min(100%, 3.6rem);
    height: auto;
    aspect-ratio: 1 / 1;
    padding: 0;
    font: inherit;
    border-radius: 50%;
    border: 1px solid rgba(38, 35, 31, 0.15);
    background: rgba(255, 255, 255, 0.95);
    color: var(--ink);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
    cursor: pointer;
}
.container1 button:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 10px 22px rgba(38, 35, 31, 0.12);
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.container1 button:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}
.container1 button[id^="rightarrow"] {
    grid-column: 4;
}
.container1 button .fa-solid {
    font-size: 1.7rem;
}
.container1 button:disabled {
    opacity: 0.3;
    box-shadow: none;
    cursor: default;
}
.btn2 {
    text-align: center;
}

/* ============================
   MOBILE / TABLET (<= 750px)
   ============================ */
@media only screen and (max-width: 750px) {

    /* Header */
    h1 {
        font-size: 4rem;
    }
    .subheader {
        font-size: 1.4rem;
        padding: 0 4%;
    }

    /* Nav buttons - original 40% side margins leave almost no room for text */
    .topbar {
         margin: 3% auto;
        width: fit-content;
        padding: 1.5% 4%;
    }

    /* Home page sections stack into a single column */
    .about, .info, .photo, .photo2 {
        grid-column: 1 / 4;
    }
    .photo, .photo2 {
        grid-row: 3 / 4;
        margin-top: 4%;
    }
    .about, .info {
        grid-row: 1 / 3;
    }
    .container {
        margin: 6% auto;
        row-gap: 3%;
    }

    /* Keep body text at a readable ~16px on phones; only relax line-height */
    .about, .info {
        line-height: 1.5;
    }

    .email {
        font-size: 1.5rem;
    }

    .social img {
        width: 6rem;
        height: 6rem;
    }

    /* Social icons - give them a bit more room as tap targets */
    .fb, .ig, .gg {
        max-width: none;
    }

    /* Gallery: fall back to flexbox and show only the "after" image.
       The left/right arrows still work unchanged - the JS always
       updates both <img> elements, we're just hiding one of them. */
    .container1 {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 4%;
        width: 94%;
    }
    .col0 {
        grid-column: unset;
        flex: 1 1 auto;
        max-width: 75%;
    }
    .col1 {
        display: none;
    }
    .container1 button {
        flex: 0 0 3.4rem;
        width: 3.4rem;
    }
}

/* ============================
   SMALL PHONES (<= 480px)
   ============================ */
@media only screen and (max-width: 480px) {
    h1 {
        font-size: 3rem;
    }
    .subheader {
        font-size: 1.2rem;
    }
    .topbar {
        font-size: 1.1em;
        margin: 4% 5%;
    }
    .container {
        max-width: 96%;
    }
    .about, .info {
        padding: 5%;
        line-height: 1.5;
    }
    .email {
        font-size: 1.3rem;
    }
    .social img {
        width: 5.5rem;
        height: 5.5rem;
    }
    .col0 {
        max-width: 68%;
    }
}
