main > .container {
    padding: 70px 15px 20px;
    display: flex;
    flex-direction: column;
    min-height: 100%;
}

/* form cards (Contact, quote modal) — same card vocabulary as DESIGN.md
   "Cards / Containers": 8px radius, card-rest shadow, no border. */
.form-card {
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(10, 29, 52, 0.08);
    background-color: var(--elh-white);
}

/* centered error page layout */
.site-error {
    flex: 1;
}

.site-error-content {
    width: 100%;
    max-width: 90%;
}

@media (min-width: 576px) {
    .site-error-content {
        max-width: 80%;
    }
}

@media (min-width: 768px) {
    .site-error-content {
        max-width: 60%;
    }
}

@media (min-width: 992px) {
    .site-error-content {
        max-width: 50%;
    }
}

/* Home hero */
.hero-banner {
    background-color: var(--elh-harbor-navy);
    color: var(--elh-white);
    position: relative;
    overflow: hidden;
}

.hero-banner h1 {
    color: var(--elh-white);
}

/* Service / Portfolio cards — DESIGN.md "Cards / Containers" + Shadow
   Vocabulary: 8px radius, card-rest at rest, card-hover + 2px lift on
   hover/focus. */
.elh-card {
    border: none;
    border-radius: 8px;
    background-color: var(--elh-white);
    overflow: hidden;
    transition: transform 150ms cubic-bezier(0.25, 1, 0.5, 1), box-shadow 150ms cubic-bezier(0.25, 1, 0.5, 1);
    box-shadow: 0 1px 3px rgba(10, 29, 52, 0.08);
}

.elh-card:hover,
.elh-card:focus-within {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(10, 29, 52, 0.16);
}

.elh-card-media {
    aspect-ratio: 4 / 3;
    background-color: var(--elh-sea-mist);
    overflow: hidden;
}

.elh-card-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@media (prefers-reduced-motion: reduce) {
    .elh-card {
        transition: none;
    }
}

/* Reviews */
.review-card {
    border: none;
    border-radius: 8px;
    background-color: var(--elh-sea-mist);
}

.review-stars {
    color: var(--elh-anchor-gold);
    letter-spacing: 2px;
}

/* Legal pages */
.legal-page-body {
    max-width: 75ch;
}

/* Generic placeholder image slot (About block, etc.) — same card
   vocabulary as .elh-card until real photography replaces it. */
.placeholder-image {
    border-radius: 8px;
    overflow: hidden;
    background-color: var(--elh-sea-mist);
}

.placeholder-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Gallery grid (_gallery.php) — "+N" overlay on the last visible tile
   when a gallery has more photos than fit in the capped grid. */
.elh-gallery-item::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 8px;
    background: rgba(10, 29, 52, 0);
    transition: background-color .15s ease-out;
}

.elh-gallery-item:hover::before {
    background: rgba(10, 29, 52, .15);
}

.elh-gallery-more {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    background: rgba(10, 29, 52, .55);
    color: #fff;
    font-size: 1.5rem;
    font-weight: 600;
}
