/* Homepage-only layout; the shared historical stylesheet remains untouched. */
*, *::before, *::after { box-sizing: border-box; }
body { margin: 8px; }
img { max-width: 100%; height: auto; }
#backhomeHead {
    width: 100%; min-width: 0; height: auto; min-height: 105px;
    display: flex; align-items: center; gap: clamp(12px, 8vw, 120px);
    background-image: url('/transparent-header.png');
}
#backhomeHead img { width: auto; height: 100px; max-width: 45%; object-fit: contain; }
.neutral-link {
    margin-bottom: 10px; padding: 11px 14px; text-align: center;
    background: #333; border: 1px solid #777; border-radius: 5px;
    font-family: Tahoma, Geneva, sans-serif; line-height: 1.4;
}
.neutral-link a { color: #fff; font-weight: bold; }
.neutral-link a:hover { color: #ffe368; }
.backH1NoHighHome { width: 100%; }
.backH1NoHighHome h1 { font-size: clamp(1.4rem, 3vw, 2rem); }
.backH1NoHighHome .text { line-height: 1.45; }
.homepage-panels { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.homepage-panels .backhomePanel {
    float: none; width: auto; min-width: 0; height: auto; margin: 0;
    padding: 10px 7px; overflow-wrap: anywhere;
}
.homepage-panels .awesome, #back-footer .awesome { margin: 3px 1px; line-height: 1.25; }
.homepage-panels .awesome:hover, #back-footer .awesome:hover { background-color: #ffb515; }
.homepage-panels .panel-content { padding: 5px; }
.homepage-panels .back-image3:hover { border-color: #fff; }
.homepage-gallery {
    clear: both; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
    gap: 10px; margin-top: 10px;
}
.homepage-gallery .back400tile, .homepage-gallery .back400tilem {
    float: none; display: flex; flex-direction: column; align-items: center;
    width: auto; height: auto; min-width: 0; margin: 0; padding: 8px;
}
.homepage-gallery .imagename { width: 100%; text-align: center; margin-bottom: 8px; }
.homepage-gallery .awesomegrey { max-width: 100%; line-height: 1.25; }
.homepage-gallery .centreimage { width: 100%; text-align: center; }
.homepage-gallery img { display: inline-block; max-width: 100%; height: auto; }
#back-footer { width: 100%; padding: 5px; }
a:focus-visible { outline: 3px solid #ffe368; outline-offset: 3px; }
@media (max-width: 800px) {
    .homepage-panels { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
    #backhomeHead { min-height: 0; justify-content: space-around; gap: 8px; }
    #backhomeHead img { height: auto; max-height: 85px; }
    .homepage-panels { grid-template-columns: 1fr; }
    .backH1NoHighHome .text { text-align: left; }
}
