html {
  --carouselw: calc((50vw + 20em) * 0.7);
  --carouselh: calc(((50vw + 20em) * 0.7) * 0.67);
  --carouselmaxw: calc(80em * 0.7);
  --carouselmaxh: calc(80em * 0.67 * 0.7);
}

.page {
  background-image: url("../assets/gallery/functionback.jpg");
  background-repeat: no-repeat;
  background-attachment: fixed;
  background-position: center;
  width: 100%;
  max-width: 100vw;
  height: 100%;
  margin-left: 0;
  margin-right: 0;
  overflow: hidden;
  padding-bottom: 1em;
  transition: height 0.5s;
}
.page .page * {
  z-index: 1;
}

.page::after {
  content: "";
  background-color: rgba(255, 255, 255, 0.2941176471);
  position: absolute;
  top: 0;
  left: 0;
  bottom: 0;
  right: 0;
  z-index: 0;
}

.functions {
  display: block;
  width: calc(30vw + 40em);
  max-width: 100vw;
  min-height: 40em;
  z-index: 2;
}
.functions .heading {
  align-self: flex-start;
  color: white;
  margin: 1em;
  margin-bottom: 0;
  margin-top: 0;
}
.functions .navigation-buttons {
  display: flex;
  justify-content: flex-start;
  align-self: flex-start;
  flex-wrap: wrap;
  margin-left: 1em;
  margin-right: 1em;
}
.functions .navigation-buttons a {
  background-color: white;
  cursor: pointer;
  padding: 1em;
  margin: 1em;
  margin-left: 1em;
  margin-right: 1em;
  text-decoration: none;
  color: black;
  transition: 0.2s;
  box-shadow: 0 0px 1px 0 rgba(37, 37, 37, 0.4588235294), 0.2;
  border-radius: 1em;
}
.functions .navigation-buttons a:first-of-type {
  margin-left: 1em;
}
.functions .navigation-buttons a:hover {
  color: rgba(0, 0, 0, 0.5);
  box-shadow: 0px 4px 8px 2px rgba(255, 255, 255, 0.2);
}
.functions .navigation-pages {
  display: flex;
  flex-direction: column;
  height: max-content;
}
.functions .navigation-pages > div {
  background-color: white;
  visibility: hidden;
  max-height: 0;
  opacity: 0;
  transition: height 0.4s;
  transition: opacity 0.4s;
  transition: padding 0.4s;
}
.functions .navigation-pages .navigation-active {
  visibility: visible;
  opacity: 100;
  height: inherit;
  max-height: fit-content;
  padding: 2em;
  border-radius: 1em;
  z-index: 1;
}
.functions .navigation-pages .navigation-fadeout {
  visibility: visible;
  opacity: 0;
  height: 0;
  padding: 2em;
  border-radius: 1em;
  z-index: 1;
  transition: 0.4s;
}
.functions .venue-hire ol h3 {
  margin-bottom: 0.5em;
}
.functions .venue-hire ol li {
  padding-left: 2em;
}
.functions .venue-hire table {
  padding-left: 2em;
}
.functions .venue-hire table th {
  padding-right: 4em;
}
.functions .venue-hire img {
  margin-left: 1em;
  width: 30em;
  max-width: 90%;
  border-radius: 0.5em;
}
.functions .beverages-package table {
  padding-left: 2em;
}
.functions .beverages-package table th {
  padding-right: 4em;
}
.functions .beverages-package .sample-menu {
  width: calc(30vw + 15em);
  max-width: 50em;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  flex-direction: column;
}
.functions .beverages-package .sample-menu p {
  margin: 0;
  margin-bottom: 0.5em;
}
.functions .beverages-package .sample-menu h2 {
  font-size: 2em;
}
.functions .beverages-package .sample-menu .sample-menu-header {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 1em;
  margin-bottom: 1em;
}
.functions .beverages-package .sample-menu .sample-menu-header h3 {
  margin: 0;
  text-transform: uppercase;
}
.functions .beverages-package .sample-menu .basic-spirits h4, .functions .beverages-package .sample-menu .cocktails h4 {
  margin: 0;
  text-transform: uppercase;
}
.functions .beverages-package .sample-menu .basic-spirits > span {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.functions .beverages-package .sample-menu .basic-spirits > span *:first-child {
  font-weight: bold;
}
.functions .beverages-package .sample-menu .cocktails > span {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}
.functions .beverages-package .sample-menu .cocktails > span *:first-child {
  font-weight: bold;
}
.functions .canapes-package table {
  padding-left: 2em;
}
.functions .canapes-package table th {
  padding-right: 4em;
}
.functions .grazing-station {
  display: flex;
  flex-direction: row;
}
.functions .grazing-station img {
  margin-left: 1em;
  width: 30em;
  max-width: 90%;
  border-radius: 0.5em;
}
.functions .highlight video {
  width: 100%;
  max-width: 100%;
  margin: 0;
  margin-bottom: auto;
  background-color: black;
  border-radius: 1em;
}
.functions .highlight p {
  margin-top: 0;
}
.functions .calendar iframe {
  margin-top: 1em;
  height: calc((30vw + 40em) * 0.67);
}

@media screen and (max-width: 768px) {
  .functions .grazing-station {
    flex-direction: column;
  }
}
