main > .container {
    padding: 24px 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;
}

/* Kartik FileInput inside the quote modal: a compact strip of thumbnails
   instead of the plugin's tall cards (sized for the admin Media Library).
   The status indicator relies on an icon font the public site doesn't load. */
/* .file-input in the selector beats the plugin's own mobile rule, which
   stacks thumbnails in a single centered column. */
.modal .file-input .file-preview-thumbnails {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 0.5rem;
}

.modal .file-preview-frame.krajee-default {
    float: none;
    width: 88px;
    height: auto;
    margin: 0;
    padding: 4px;
    border: 1px solid rgba(51, 51, 51, 0.3);
    border-radius: 4px;
    box-shadow: none;
}

.modal .file-preview-frame .kv-file-content {
    width: 100%;
    height: 68px;
}

.modal .file-preview-frame .file-preview-image {
    width: 100% !important;
    height: 68px !important;
    object-fit: cover;
}

/* .krajee-default in the selector: the plugin's own CSS loads after ours and
   fixes the footer at 70px with a negative-margin caption. */
.modal .krajee-default .file-thumbnail-footer {
    height: auto;
}

.modal .krajee-default .file-footer-caption {
    margin: 2px 0 0;
    padding: 0;
    font-size: 0.7rem;
}

.modal .krajee-default .file-caption-info {
    width: 100%;
    margin: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.modal .file-upload-indicator,
.modal .file-size-info {
    display: none;
}
