/* SyncBooking Hospitality - accessibility and layout fixes */
/* sbt-a11y */
.sbtw-skip-link { background:#1d2327; border-radius:0 0 6px; color:#fff; font:600 14px/1 system-ui,sans-serif; left:0; padding:14px 20px; position:absolute; text-decoration:none; top:-100px; transition:top .15s ease; z-index:999999; }
.sbtw-skip-link:focus { top:0; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [tabindex]:focus-visible { outline:2px solid #2271b1; outline-offset:2px; }
/* Long words and long titles wrap inside their column instead of
   overflowing the content area and disappearing. */
h1, h2, h3, h4, h5, h6, p, li, dd, dt, figcaption, .sbtw-article-body, .sbtw-crumb { overflow-wrap:break-word; word-wrap:break-word; }
h1, h2, h3, h4, h5, h6 { max-width:100%; }
/* Hidden UI must stay out of the keyboard focus order: the off-canvas
   drawer and its collapsed accordion panels are only moved/clipped by
   the imported CSS, so their links stayed tabbable while invisible. */
.sbtw-drawer:not(.sbtw-open) { visibility:hidden; transition:transform .5s cubic-bezier(.7,0,.2,1), visibility 0s linear .5s; }
.sbtw-drawer.sbtw-open { visibility:visible; transition:transform .5s cubic-bezier(.7,0,.2,1), visibility 0s; }
.sbtw-drawer .sbtw-sub-m:not(.sbtw-expanded) { visibility:hidden; transition:max-height .4s ease, visibility 0s linear .4s; }
.sbtw-drawer .sbtw-sub-m.sbtw-expanded { visibility:visible; transition:max-height .4s ease, visibility 0s; }
/* Keyboard navigation: dropdown parents are focusable (tabindex added by
   the footer script) and the submenu opens while focus is anywhere
   inside it - the keyboard twin of the imported CSS's :hover rules. */
.sbtw-has-sub:focus-within .sbtw-sub { opacity:1; visibility:visible; transform:translateX(-50%) translateY(0); }
.sbtw-has-sub:focus-within > .sbtw-top { opacity:1; }
.sbtw-has-sub:focus-within > .sbtw-top::after { width:100%; left:0; }

/* sbt-admin-bar-offset */
/* The header is position:fixed at top:0, so the logged-in admin toolbar
   covers it and the menu text becomes unreadable. Push the header (and
   the mobile drawer) below the toolbar, at both of its heights. */
body.admin-bar header { top: 32px; }
body.admin-bar .sbtw-drawer { top: 32px; }
@media screen and (max-width: 782px) {
	body.admin-bar header { top: 46px; }
	body.admin-bar .sbtw-drawer { top: 46px; }
}

/* sbt-header-contrast */
/* Pages with no hero photo behind the fixed header (blog, archives,
   search, 404): the menu is drawn in the light "over a photo" colour,
   which on the light page background is unreadable. Give the header a
   solid background there. */
body.sbtw.sbt-no-hero header#hdr { background: var(--ink, #2b2723); }
body.sbtw.sbt-no-hero header#hdr a,
body.sbtw.sbt-no-hero header#hdr .sbtw-top,
body.sbtw.sbt-no-hero header#hdr .sbtw-logo-text { color: #f7f2ea; opacity: 1; }
/* Site name shown when no logo image exists (fresh install). */
body.sbtw .sbtw-logo-text { font-family: var(--serif, Georgia, serif); font-size: 22px; letter-spacing: .06em; line-height: 1; white-space: nowrap; }

/* sbt-flick-uniform */
/* The imported weddings CSS sizes flick photos as fixed-height/auto-width,
   so user-uploaded portrait or odd-ratio photos render at wildly different
   widths. Force a uniform 3:2 card per photo (width follows the strip's own
   height clamp via aspect-ratio; cover-crop absorbs any source ratio). The
   extra .sbtw-w-flick ancestor outranks the imported rule at any load order. */
.sbtw-w-flick .sbtw-w-flick-track img { aspect-ratio:3/2; width:auto; object-fit:cover; }
