/*
 * Gallery page additions to the original index2.html theme.
 * Add or replace individual figures in gallery.html to update the collection.
 * Source images remain in images/gallery and are shown without cropping.
 */

.gallery_page .page_intro {
    margin-bottom: 30px;
}

.gallery_collection {
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.gallery_grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
}

.gallery_item {
    min-width: 0;
    margin: 0;
}

.gallery_item > img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    border: 1px solid #000000;
    background: var(--panel);
}

.gallery_item > figcaption {
    margin-top: 13px;
    padding-left: 1px;
}

.gallery_vehicle {
    display: block;
    color: var(--ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 22px;
    font-weight: normal;
    line-height: 1.3;
}

.gallery_finish {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.5;
}

.gallery_enquiry {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 32px;
    padding: 34px 0 40px;
}

.gallery_enquiry h2 {
    margin-bottom: 12px;
}

.gallery_enquiry p:not(.eyebrow) {
    max-width: 700px;
    color: var(--muted);
    font-size: 15px;
}

.gallery_actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    flex-shrink: 0;
    gap: 14px;
    font-size: 14px;
}

@media (max-width: 1100px) {
    .gallery_grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 22px;
    }
}

@media (max-width: 700px) {
    .gallery_grid {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
    }

    .gallery_enquiry {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }

    .gallery_vehicle {
        font-size: 21px;
    }
}

/* Keep the shared contact footer readable on narrow gallery screens. */
.gallery_view .footer_links {
    flex-wrap: wrap;
}

.gallery_view .footer_links p {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* Generated period-wheel concepts share the gallery's full-image layout. */
.gallery_concepts {
    padding-top: 32px;
}

.gallery_concepts h2 {
    margin-bottom: 12px;
}

.gallery_concept_note {
    max-width: 900px;
    margin-bottom: 26px;
    color: var(--muted);
    font-size: 15px;
    line-height: 1.6;
}
