/* activate smoooth scrolling on root */
html {
  scroll-behavior: smooth;
}

/* reposition admin bar on mobile */
@media print, screen and (max-width: 1024px) {
  html #wpadminbar {
    top: -46px;
  }
}

/* primary nav overrides for 2024 */
@media print, screen and (min-width: 1024px) {
  div .primary-nav-menu > ul > .menu-item {
    padding-bottom: 10px;
    padding-top: 10px;
  }

  div .primary-nav-menu > ul .button.menu-item {
    border-radius: 15px;
    padding: 5px 20px;
    background-color: #f8bf00;
    color: black;
  }
  div .primary-nav-container {
    width: 80%;
    float: right;
    margin-right: 20px;
  }
  div .primary-nav-menu > ul {
    margin-top: 40px;
    display: flex;
    text-align: right;
    align-items: center;
    justify-content: flex-end;
  }
  div .primary-nav-menu li.button a {
    color: white;
    border-bottom: none;
  }

  div .primary-nav-menu li.button a:hover {
    color: white;
    border-bottom: none;
  }
}

.button.menu-item {
  border-radius: 15px;
  padding: 5px 20px;
}

.primary-nav-menu li.button a {
  padding-top: 5px;
  padding-bottom: 5px;
  color: white;
  border-bottom: none;
}

.primary-nav-menu li.button a:hover {
  color: #ddd;
  border-bottom: none;
}

/* Footer updates 2024  */
footer#nested-nav {
  background: #f8bf00;
  color: black;
}
#nested-nav .footer-content {
  /* mobile first: display columns in a row */
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: auto;
  grid-gap: 40px;
  padding: 20px;
}
#nested-nav ul > .menu-item-has-children {
  margin-bottom: 20px;
}
#nested-nav ul li a {
  color: black;
  text-transform: none;
  letter-spacing: 1px;
  font-size: 18px;
  font-weight: 500;
}
#nested-nav input::placeholder {
  color: #555;
}
#nested-nav h4,
#nested-nav ul > .menu-item-has-children > a {
  color: black;
  font-size: 18px;
  font-weight: 900;
  text-transform: none;
  letter-spacing: 1px;
  margin-bottom: 0.5rem;
}
#nested-nav ul > .menu-item-has-children > .sub-menu {
  /* remove ul styling */
  list-style: none;
  padding-left: 0;
  margin-left: 0;
}
#nested-nav .button.menu-item {
  border-radius: 15px;
  padding: 5px 20px;
  background-color: #f8bf00;
  color: black;
}
#nested-nav .button.menu-item a {
  color: black;
}
#nested-nav .button.menu-item {
  border-radius: 15px;
  padding: 5px 20px;
  background-color: #f8bf00;
  color: black;
}
#nested-nav .colophon {
  color: black;
  font-weight: 500;
  & a {
    color: black;
  }
}
#nested-nav input[type="submit"] {
  border-radius: 15px;
  padding: 5px 20px;
}

@media print, screen and (min-width: 1024px) {
  #nested-nav .footer-content {
    /* desktop: display a row */
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-rows: auto;
    grid-gap: 120px;
    padding: 20px;
  }

  #nested-nav .footer-nav-menu {
    display: flex;
    justify-content: space-between;
    margin-right: 40px;
  }
}

/* Collapsible content sections for 2024 */

.content-section.expandable .section-head {
  margin-bottom: 0;
  cursor: pointer;
  font-size: 24px;
}

.content-section.expandable.expanded .section-head {
  margin-bottom: 20px;
  cursor: pointer;
}

.content-section.expandable .section-body {
  height: 0;
  overflow: hidden;
}

.content-section.expandable.expanded .section-body {
  height: auto;
}

.content-section.expandable {
  padding-top: 2px;
  padding-bottom: 2px;
}

.content-section.expandable.expanded {
  padding-top: 2px;
  padding-bottom: 2px;
}

.expandable.expanded .section-head:after {
  content: "–";
}
.expandable .section-head a {
  &:focus,
  &:hover {
    color: black;
  }
}

.expandable .section-head {
  padding-right: 0.5rem;
  padding-left: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f8bf00;
}

.expandable .section-head:before,
.expandable .section-head:after {
  content: "";
  display: none;
  background-color: #f8bf00;
}

.expandable .section-head:after {
  transform: translateY(-10%);
  content: "+";
  display: block;
  background-color: transparent;
}

.content-section.content-slideshow,
.content-section.content-carousel {
  margin-top: 40px;
}

@media print, screen and (min-width: 1024px) {
  .co-ride-carousel {
    margin-top: 80px;
  }
}

.wp-block-embed__wrapper {
    position: relative;
    width: 100%;
    padding-top: 56.25%; /* Aspect ratio of 16:9 (360 / 640 * 100) */
    overflow: hidden; /* Optional: for hiding scrollbars */
    margin-bottom: 1rem;
}

.wp-block-embed__wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}