/* Staging header dropdowns */
.site-header .header-navigation .sub-menu,
#mobile-drawer .drawer-navigation .sub-menu {
  background: #04558c;
  border: 0;
  border-radius: 15px;
  padding: 5px;
}
.site-header .header-navigation .sub-menu {
  min-width: 180px;
  box-shadow: 0 8px 20px rgba(8, 43, 81, .23);
}
.site-header .header-navigation .sub-menu li > a,
#mobile-drawer .drawer-navigation .sub-menu li > a {
  color: #fff;
  font: 800 16px/1.35 Arial, sans-serif;
  padding: 11px 14px;
  border: 0;
  border-radius: 10px;
}
.site-header .header-navigation .sub-menu li > a:hover,
.site-header .header-navigation .sub-menu li > a:focus-visible,
#mobile-drawer .drawer-navigation .sub-menu li > a:hover,
#mobile-drawer .drawer-navigation .sub-menu li > a:focus-visible {
  background: #083e67;
  color: #fff;
}
.site-header .header-navigation .sub-menu li > a:focus-visible,
#mobile-drawer .drawer-navigation .sub-menu li > a:focus-visible {
  outline: 2px solid #fff;
  outline-offset: -3px;
}

.site-header .header-navigation .sub-menu {
  background: #04558c !important;
}
.site-header .header-navigation .sub-menu li > a {
  color: #fff !important;
  font-size: 16px !important;
  padding: 11px 14px !important;
}


/* Wider desktop layout for Kadence pages. */
@media (min-width: 1025px) {
  body.page.content-width-normal #primary > .content-container {
    width: calc(100% - 2 * clamp(18px, 2.3vw, 52px));
    max-width: 2100px;
    padding-inline: 0;
  }

  body.page.content-width-normal #primary > .content-container .entry-content-wrap {
    padding-inline: 0;
  }

  body.page .entry-content :is(.pec-info, .pec-book, .pec-guide, .pec-planner, .pec-stay, .pec-water-park) {
    max-width: none;
  }

  body.page .entry-content .pec-landing :is(.hero, .section.coastal, .section.spray, .section[style*="background"]) {
    max-width: none;
  }

  body.home .entry-content .pec26 > .hero {
    width: 100% !important;
    max-width: none !important;
    min-height: clamp(530px, 78svh, 820px);
  }

  body.home .entry-content .pec26 > .hero .shell {
    max-width: none;
    padding-inline: clamp(42px, 6vw, 122px);
  }

  body.home .entry-content .pec26 > .shell.duo {
    max-width: none;
    padding-inline: 0;
  }
}


/* Staging hero photos and dunes footer. */
body .pec-photo-hero, body .pec26 .sunset { position: relative; isolation: isolate; overflow: hidden; }
body .pec-photo-hero > .pec-hero-photo-layer {
  position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none;
}
.pec-hero-photo-motion {
  position: absolute; inset: -3%; background-position: center; background-size: cover;
  background-repeat: no-repeat; opacity: 0;
  animation: var(--pec-hero-animation) var(--pec-hero-cycle) linear infinite;
  animation-delay: var(--pec-hero-delay);
}
.pec-hero-photo-motion:first-child { --pec-hero-start-opacity: 1; }
.pec-hero-photo-motion:last-child { --pec-hero-end-opacity: 0; }
.pec-hero-photo-motion:nth-child(1) { --pec-hero-from: translate3d(-3%, 1%, 0) scale(1.03); --pec-hero-to: translate3d(3%, -1%, 0) scale(1.17); }
.pec-hero-photo-motion:nth-child(2) { --pec-hero-from: translate3d(4.5%, 0, 0) scale(1.15); --pec-hero-to: translate3d(-4.5%, 0, 0) scale(1.15); }
.pec-hero-photo-motion:nth-child(3) { --pec-hero-from: translate3d(-2%, -3%, 0) scale(1.20); --pec-hero-to: translate3d(2%, 0, 0) scale(1.04); }
.pec-hero-photo-motion:nth-child(4) { --pec-hero-from: translate3d(-4.5%, 0, 0) scale(1.14); --pec-hero-to: translate3d(4.5%, 0, 0) scale(1.14); }
.pec-hero-photo-motion:nth-child(5) { --pec-hero-from: translate3d(2%, 2%, 0) scale(1.04); --pec-hero-to: translate3d(-2%, -2%, 0) scale(1.18); }
.pec-hero-photo-motion:nth-child(6) { --pec-hero-from: translate3d(3%, -2%, 0) scale(1.19); --pec-hero-to: translate3d(-2%, 0, 0) scale(1.04); }
.pec-hero-photo-layer:has(> :nth-child(3):last-child) { --pec-hero-animation: pec-hero-motion-3; }
@keyframes pec-hero-motion-3 {
  0% { opacity: var(--pec-hero-start-opacity, 0); transform: var(--pec-hero-from); }
  5.71429%, 33.33333% { opacity: 1; }
  39.04286% { opacity: var(--pec-hero-end-opacity, 1); }
  39.04762%, 100% { opacity: 0; transform: var(--pec-hero-to); }
}
.pec-hero-photo-layer:has(> :nth-child(4):last-child) { --pec-hero-animation: pec-hero-motion-4; }
@keyframes pec-hero-motion-4 {
  0% { opacity: var(--pec-hero-start-opacity, 0); transform: var(--pec-hero-from); }
  4.28571%, 25.00000% { opacity: 1; }
  29.28214% { opacity: var(--pec-hero-end-opacity, 1); }
  29.28571%, 100% { opacity: 0; transform: var(--pec-hero-to); }
}
.pec-hero-photo-layer:has(> :nth-child(6):last-child) { --pec-hero-animation: pec-hero-motion-6; }
@keyframes pec-hero-motion-6 {
  0% { opacity: var(--pec-hero-start-opacity, 0); transform: var(--pec-hero-from); }
  2.85714%, 16.66667% { opacity: 1; }
  19.52143% { opacity: var(--pec-hero-end-opacity, 1); }
  19.52381%, 100% { opacity: 0; transform: var(--pec-hero-to); }
}
.pec-photo-hero-single .pec-hero-photo-motion {
  opacity: 1; animation: pec-hero-single-drift 12s ease-in-out infinite alternate;
}
@keyframes pec-hero-single-drift {
  from { transform: var(--pec-hero-from); }
  to { transform: var(--pec-hero-to); }
}
body .pec26 .sunset::before {
  content: ""; position: absolute; inset: -2%; z-index: -1; pointer-events: none;
  background: url('https://princeedwardcountyvacation.com/wp-content/uploads/2026/03/sandbanks-water-bluer.webp') center / cover no-repeat;
  animation: pec-dunes-drift 24s ease-in-out infinite alternate;
}
@keyframes pec-dunes-drift {
  from { transform: translate3d(-1%, .5%, 0) scale(1.01); }
  to { transform: translate3d(1%, -.5%, 0) scale(1.065); }
}
@media (prefers-reduced-motion: reduce) {
  .pec-hero-photo-motion, body .pec26 .sunset::before { animation: none; }
  .pec-hero-photo-motion:first-child { opacity: 1; }
}


/* Motion for photo banners and Slider Revolution backgrounds on older pages. */
body:is(.page-id-114783, .page-id-113556) .entry-content .wpb_single_image:first-child .vc_single_image-wrapper,
body.page-id-102731 .entry-content .wp-block-media-text:first-child .wp-block-media-text__media {
  overflow: hidden;
}
body:is(.page-id-114783, .page-id-113556) .entry-content .wpb_single_image:first-child .vc_single_image-wrapper img,
body.page-id-102731 .entry-content .wp-block-media-text:first-child .wp-block-media-text__media img {
  animation: pec-legacy-photo-drift 12s ease-in-out infinite alternate;
}
body.page .entry-content sr7-module:is([data-alias="main-home"], [data-alias="slider01"]) sr7-bg[data-subtype="slidebg"] > canvas {
  animation: pec-legacy-photo-drift 9s ease-in-out infinite alternate;
}
body.page .entry-content sr7-module:is([data-alias="main-home"], [data-alias="slider01"]) sr7-slide:nth-child(even) sr7-bg[data-subtype="slidebg"] > canvas {
  animation-direction: alternate-reverse;
}
@keyframes pec-legacy-photo-drift {
  from { translate: -1% 0; scale: 1.04; }
  to { translate: 2% 0; scale: 1.13; }
}
@media (prefers-reduced-motion: reduce) {
  body:is(.page-id-114783, .page-id-113556) .entry-content .wpb_single_image:first-child .vc_single_image-wrapper img,
  body.page-id-102731 .entry-content .wp-block-media-text:first-child .wp-block-media-text__media img,
  body.page .entry-content sr7-module:is([data-alias="main-home"], [data-alias="slider01"]) sr7-bg[data-subtype="slidebg"] > canvas {
    animation: none;
  }
}


/* Keep older Jet Ski and Edgewater photo motion on the first banner row. */
body:is(.page-id-114783, .page-id-113556) .entry-content > .vc_row ~ .vc_row .wpb_single_image:first-child .vc_single_image-wrapper {
  overflow: visible;
}
body:is(.page-id-114783, .page-id-113556) .entry-content > .vc_row ~ .vc_row .wpb_single_image:first-child .vc_single_image-wrapper img {
  animation: none;
}


/* Keep the complete site name and the Kadence menu visible on mobile. */
@media (max-width: 1024px) {
  body #masthead #mobile-header .site-main-header-wrap > .site-header-row-container-inner > .site-container,
  body #masthead #mobile-header .site-main-header-wrap .site-container {
    padding-inline: clamp(10px, 3vw, 24px) !important;
  }
  body #masthead #mobile-header .site-main-header-inner-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    min-height: 70px !important;
  }
  body #masthead #mobile-header .site-header-main-section-left,
  body #masthead #mobile-header .site-branding,
  body #masthead #mobile-header .site-branding .site-title-wrap {
    min-width: 0;
  }
  body #masthead #mobile-header .site-branding .brand {
    display: flex !important;
    gap: 9px;
    align-items: center;
    padding-block: 6px !important;
  }
  body #masthead #mobile-header .site-branding picture { flex: 0 0 auto; }
  body #masthead #mobile-header .site-branding img.custom-logo {
    display: block;
    width: clamp(48px, 15vw, 68px) !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
  }
  body #masthead #mobile-header .site-branding .site-title-wrap { margin: 0 !important; }
  body #masthead #mobile-header .site-branding .site-title {
    margin: 0 !important;
    color: #fff;
    font-size: clamp(15px, 4.1vw, 20px) !important;
    font-weight: 750;
    line-height: 1.18 !important;
    white-space: normal !important;
  }
  body #masthead #mobile-header #mobile-toggle {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 44px;
    padding: 0 8px;
    border: 1px solid rgba(255, 255, 255, .65);
    border-radius: 8px;
    color: #fff;
    white-space: nowrap;
  }
  body #masthead #mobile-header #mobile-toggle::after {
    content: "Menu";
    font: 700 13px/1 Arial, sans-serif;
  }
  body #masthead #mobile-header #mobile-toggle .kadence-menu-svg { width: 1.25rem; height: 1.25rem; }
  body #masthead #mobile-header #mobile-toggle:focus-visible { outline: 2px solid #ffdb00; outline-offset: 2px; }
}

/* Match staging photo heroes to the homepage sizing. */
body.page:not(.home) .entry-content :is(.pec-photo-hero, .pec-book > .hero),
body.single-post #main .content-wrap > .article-post-thumbnail {
  --pec-hero-width: min(calc(100vw - 92px), 2100px);
  --pec-hero-height: 510px;
  --pec-hero-radius: 26px;
  box-sizing: border-box;
  width: var(--pec-hero-width);
  max-width: none;
  margin-inline: calc((100% - var(--pec-hero-width)) / 2);
  min-height: var(--pec-hero-height);
  border-radius: var(--pec-hero-radius) !important;
}

body.single-post #main .content-wrap > .article-post-thumbnail {
  padding-bottom: 0;
}

body.single-post #main .content-wrap > .article-post-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media (min-width: 1025px) {
  body.page:not(.home) .entry-content :is(.pec-photo-hero, .pec-book > .hero),
  body.single-post #main .content-wrap > .article-post-thumbnail {
    --pec-hero-width: min(calc(100vw - (2 * clamp(18px, 2.3vw, 52px))), 2100px);
    --pec-hero-height: clamp(530px, 78svh, 820px);
  }
}

@media (min-width: 601px) and (max-width: 920px) {
  body.page:not(.home) .entry-content :is(.pec-photo-hero, .pec-book > .hero),
  body.single-post #main .content-wrap > .article-post-thumbnail {
    --pec-hero-height: 490px;
  }
}

@media (max-width: 600px) {
  body.page:not(.home) .entry-content :is(.pec-photo-hero, .pec-book > .hero),
  body.single-post #main .content-wrap > .article-post-thumbnail {
    --pec-hero-width: calc(100vw - 80px);
    --pec-hero-radius: 18px;
  }
}

@media (max-width: 600px) {
  body.page .entry-content .pec-landing > .pec-photo-hero .shell {
    padding-block: 32px;
  }

  body.page .entry-content .pec-landing > .pec-photo-hero h1 {
    font-size: clamp(29px, 8vw, 39px);
  }

  body.page .entry-content .pec-landing > .pec-photo-hero p {
    line-height: 1.45;
    margin-bottom: 16px;
  }

  body.page .entry-content .pec-landing > .pec-photo-hero .buttons {
    gap: 8px;
    margin-top: 16px;
  }

  body.page .entry-content .pec-landing > .pec-photo-hero .buttons .pill {
    padding: 10px 12px;
    font-size: 15px;
    line-height: 1.3;
  }
}