/* Shared controls and accessible enhancements. */
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 100; top: 8px; left: 8px; padding: 12px 18px; color: #fff; background: #164e72; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
#content:focus { outline: none; }
#footer .footer-phone a { font-size: inherit; }
#footer .footer_section_title, #footer_contact, #footer_contact a, #copy, #copy a { color: #666; }
#nav { background: #2673a3; }
#nav a:focus-visible, #nav summary:focus-visible { outline-color: #fff; outline-offset: -4px; }
.contact-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 12px 24px; color: #666; margin: 24px 0; }
.contact-details dt { font-weight: 700; }
.contact-details dd { min-width: 0; overflow-wrap: anywhere; }
#prices th { text-align: left; font-weight: 400; padding-bottom: 5px; }
#prices .w250 { width: 250px; }
#slider1 { position: relative; display: grid; float: none; width: 100%; height: auto; margin: 0; }
.sliderImage { grid-area: 1 / 1; width: 100%; height: auto; min-width: 0; }
.sliderImage img { display: block; }
#slider1:not(.slideshow-ready) .sliderImage:not(:first-child) { display: none; }
.slideshow-ready .sliderImage { opacity: 0; visibility: hidden; transition: opacity 600ms ease, visibility 600ms; }
.slideshow-ready .sliderImage.is-active { opacity: 1; visibility: visible; }
#slider1 .slideshow-toggle { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0; border: 0; background: transparent; cursor: pointer; }
.slideshow-toggle span { position: absolute; bottom: 12px; left: 12px; right: 12px; padding: 10px; border-radius: 5px; color: #164e72; background: #fff; opacity: 0; }
.slideshow-toggle:focus-visible { outline: 3px solid #164e72; outline-offset: -4px; }
.slideshow-toggle:focus-visible span { opacity: 1; }
.photo-viewer button { border: 1px solid #2673a3; border-radius: 5px; background: #fff; color: #164e72; padding: 8px 10px; font-size: 0.875rem; min-width: 44px; min-height: 44px; }
.photo-viewer button:hover { background: #eaf4fa; }
.photo a { display: block; }
.photo-viewer { width: min(1000px, calc(100% - 24px)); max-width: none; max-height: calc(100vh - 24px); max-height: calc(100dvh - 24px); margin: auto; padding: 12px; border: 0; border-radius: 8px; color: #333; background: #fff; overflow: auto; }
.photo-viewer::backdrop { background: rgb(0 0 0 / 85%); }
.viewer-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.photo-viewer figure { margin: 0; text-align: center; }
.photo-viewer .viewer-image { display: block; width: auto; max-width: 100%; height: auto; max-height: calc(100vh - 230px); max-height: calc(100dvh - 230px); object-fit: contain; margin: 0 auto; }
.photo-viewer .viewer-image[hidden] { display: none; }
.photo-viewer figcaption { font-size: 1rem; line-height: 1.5; padding: 12px 0; }
.viewer-controls { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.viewer-original { color: #164e72; font-size: 0.875rem; padding: 10px 4px; }
.photo-viewer-open { overflow: hidden; }
@media (max-width: 650px) {
    #prices .w250 { width: 62%; padding-right: 16px; }
}
@media (max-width: 400px) {
    .contact-details { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .contact-details dd { margin-bottom: 14px; }
    .viewer-original { order: 1; flex-basis: 100%; text-align: center; }
}
@media (prefers-reduced-motion: reduce) {
    .slideshow-ready .sliderImage { transition: none; }
}
