body {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
}

h1, h2, h3, h4, h5, h6,
.h1, .h2, .h3, .h4, .h5, .h6 {
  font-family: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
  font-weight: 400;
}

nav.bg-primary {
  /*background: #c8fbc7;*/
  /*background: #f8d306 !important;*/
  background-color: #fff !important;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.125);
}

nav .nav-item {
  padding: 0.2rem 0 !important;
  margin: 0.1rem 0;
}

nav .nav-link {
  padding: 1rem 0;
  color: #000 !important;
}

nav .nav-link.active {
  color: #f8d306 !important;
  background-color: #fff;
}

nav .nav-link:hover {
  color: #6c757d !important;
}

.nav-item .btn {
  font-size: 80%;
  font-weight: bold;
}

nav .navbar-collapse.show,
nav .navbar-collapse.collapsing {
  padding: 1rem 0;
}

nav .navbar-collapse.show .nav-link,
nav .navbar-collapse.collapsing .nav-link,
nav .navbar-collapse.show .nav-item,
nav .navbar-collapse.collapsing .nav-item {
  padding: 0.4rem 2rem;
  text-align: left;
  font-weight: bold;
  font-size: 1.0rem;
}

nav .navbar-collapse.show .dropdown-menu,
nav .navbar-collapse.collapsing .dropdown-menu {
  margin: 0.2rem 0 0.4rem;
}

nav .navbar-collapse.show .dropdown-item,
nav .navbar-collapse.collapsing .dropdown-item {
  padding: 0.1rem 1.5rem;
}

nav .nav-item .navbar-text {
  padding: 1rem 2rem;
}

nav .nav-item .btn {
  margin: 0 0.3rem;
  /*color: #fff;*/
}

nav .nav-item .btn:hover,
nav .nav-item .btn:focus {
  /*color: #fff !important;*/
}

nav .nav-item .btn.active {
  color: #f8d306 !important;
  background-color: #fff !important;
  border-color: #fff !important;
}

.navbar .container,
.navbar .container-fluid {
  position: relative;
}

#navbarCOS {
  text-transform: uppercase;
  flex-grow: 0;
  flex-basis: auto;
  width: 300px;
  max-width: 100vw;
  position: absolute;
  top: -0.6rem;
  right: -1.2rem;
  top: -0.6rem;
  z-index: -1;
  transition: all 0.4s ease !important;
  box-shadow: 0px 0px 4px rgba(0, 0, 0, 0.125);
  overflow: auto;
  max-height: 100vh;
}

#navbarCOS.collapsing {
  overflow: hidden;
}

#navbarCOS ul {
  margin-top: 100px;
}

#navbarCOS .navbar-house {
  position: absolute;
  /*left: 50%;*/
  left: 50px;
  margin-left: -17px;
  top: 52px;
  filter: grayscale(1) brightness(1.14);
}

@media (max-width: 700px) {
  #navbarCOS {
    left: -1.2rem;
    width: auto;
  }

  #navbarCOS .navbar-house {
    display: none;
  }

  .navbar-cover {
    position: fixed;
    top: 0;
    background: #e9e9e9;
    width: 100%;
    height: 110px;
  }

  .shrink-nav .navbar-cover {
    height: 65px;
  }
}

.shrink-nav #navbarCOS ul {
  margin-top: 50px;
}

.shrink-nav #navbarCOS .navbar-house {
  top: 22px;
}

#navbarCOS .dropdown-menu {
  text-transform: none;
}

body nav .navbar-brand img {
  transition: all 0.4s ease;
  margin: -0.5rem 0;
  max-width: 50vw;
  max-height: 110px;
  height: auto;
}

body.shrink-nav nav .navbar-brand img {
  max-height: 60px;
}

main {
  /*padding-top: 8rem;*/
  padding-top: 128px;
  /*padding-top: 1rem;*/
}

#frontpage-carousel img {
  display: block;
  width: 100%;
  min-height: 40vh;
  max-height: 60vh;
  object-fit: cover;
}

footer img {
  filter: grayscale(1) invert(1) opacity(0.7);
  margin-bottom: 0.3rem;
}

.dropdown-menu {
  padding: 2px 0;
  /*margin-left: -1rem; */
  margin-top: -0.5rem;
  line-height: 2;
}

.dropdown-menu a {
  margin-right: 2rem;
}

@media screen and (min-width: 992px) {
  .dropdown:hover>.dropdown-menu {
    display: block;
  }
}

/*@media screen and (max-height: 500px) {
  main {
    padding-top: 4.3rem;
  }
  body nav img {
    height: 60px;
  }
}*/
dt {
  font-weight: normal;
  text-transform: uppercase;
  font-size: 0.8em;
  color: #6c757d;
}

#nav-cards .card {
  position: relative;
  overflow: hidden;
}

#nav-cards img {
  height: 300px;
  object-fit: cover;
}

#nav-cards a {
  color: #ffffff;
}

#nav-cards a:hover img {
  opacity: 0.7;
}

#nav-cards a h2 {
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 10%;
  font-size: 1.25rem;
  text-align: center;
  padding: 0.6rem 0.8rem;
  background: #000000aa;
  margin-bottom: 0;
  border: 1px solid #ffffff;
  border-radius: 4px;
}

#nav-cards a:hover h2 {
  background: #00000077;
}

#main-header {
  display: block;
  width: 100%;
  height: 40vh;
  object-fit: cover;

  &[src^="/media/images/COS25_page_image_2."] {
    /* Fix for event press release */
    object-position: top;
  }
}

.media.audio a {
  cursor: pointer;
}

a.card-link:hover {
  opacity: 0.7;
}

a.contact-links {
  line-height: 2;
  color: #80797b;
}

a.contact-links:hover {
  filter: brightness(75%) contrast(150%);
}

a.contact-links.btn {
  background: #80797b;
  color: #fff;
  padding: 0 8px;
  line-height: 1.6;
}

a.contact-links i {
  font-size: 2rem;
  vertical-align: middle;
  display: inline-block;
  width: 1.1em;
  text-align: center;
}

a.contact-links span {
  vertical-align: middle;
}

a.contact-links:hover {
  text-decoration: none;
}

a.contact-links:hover span {
  text-decoration: underline;
}

.artist,
.venue {
  position: relative;
  font-size: 1.25rem;
}

.artist img,
.venue img {
  display: block;
  width: 100%;
  height: auto;
}

.artist-overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  height: 100%;
  width: 100%;
  opacity: 0;
  transition: .5s ease;
  background-color: #e9e9e9;
}

.artist:hover .artist-overlay {
  opacity: 0.7;
}

.artist-overlay span {
  color: #212529;
  position: absolute;
  top: 50%;
  left: 50%;
  -webkit-transform: translate(-50%, -50%);
  -ms-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  text-align: center;
}

.venue {
  margin-bottom: 0.5rem;
}

.venue img {
  margin-bottom: 0.5rem;
  transition: .5s ease;
}

.venue a:hover img {
  opacity: 0.7;
}

.venue a span {
  display: inline-block;
  margin: 0 0.5rem;
  color: #212529 !important;
  text-decoration: none !important;
}

.venue a h5 {
  margin: 0 0.5rem;
}

.btn {
  border-radius: 24px;
}

.grayscale {
  filter: grayscale(1);
}

.card-columns {
  column-count: 1;
}

@media (min-width: 768px) {
  .card-columns {
    column-count: 2;
  }
}

@media (min-width: 992px) {
  .card-columns {
    column-count: 3;
  }
}

/* new-style cards */
.cards {
  display: grid;
  gap: 2rem 1.5rem;
}

@media (min-width: 768px) {
  .cards {
    grid-template-columns: 1fr 1fr;
  }
}

.cards h3 {
  margin-bottom: 0.25rem;
}

.cards .card-body {
  padding: 1rem;
}

figcaption {
  font-size: smaller;
  color: #6c757d;
  text-align: center;
  margin-top: 0.25rem;
}

.disabled-region,
.disabled-region a {
  opacity: 0.75;
  filter: grayscale(100%);
  cursor: not-allowed;
  text-decoration: none !important;
}

.disabled-region a {
  pointer-events: none;
  text-decoration: none !important;
}

.form-group {
  margin-bottom: 1.5rem;
}

.form-group>label {
  color: #6c757d;
  font-weight: bold;
  margin-bottom: 0;
}

.form-check {
  border: 3px solid #ced4da;
  border-radius: 0.25rem;
  padding: 0.5rem 1.25rem 0.5rem 1.75rem;
  margin-bottom: 0.5rem;
}

.form-check .form-check-label {
  display: block;
}

.input-group input {
  padding-top: 1.15rem;
  padding-bottom: 1.15rem;
}

.venue-info dt {
  margin-top: 1rem;
}

.opening-times {
  margin: 0.5rem 0;
}

.opening-times th {
  color: #6c757d;
  text-align: right;
  font-size: 0.8em;
  font-weight: normal;
  text-transform: uppercase;
  padding-top: 0.3em;
  padding-right: 0.5rem;
  width: 8.5em;
  vertical-align: top;
}

.opening-times td {
  vertical-align: top;
}

#photo-zoomed {
  position: fixed;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  padding: 1rem;
  overflow: hidden;
  z-index: 10000;
  background: #000a;
}

#photo-zoomed.fullsize {
  overflow: auto;
}

#photo-zoomed img {
  display: block;
  max-height: 100%;
  max-width: 100%;
  margin: auto;
  cursor: zoom-in;
  touch-action: pan-x pan-y;
}

#photo-zoomed.fullsize img {
  max-height: none;
  max-width: none;
  cursor: zoom-out;
}

#photo-zoomed::after {
  content: "✕ Close";
  font-size: 1.4em;
  cursor: pointer;
  position: fixed;
  top: 0;
  right: 0;
  background: #000;
  color: #fff;
  padding: 0.1rem 0.3rem;
  /*pointer-events: none;*/
}

body.is-zoomed {
  overflow: hidden;
}

.block-paragraph+.block-members_only_paragraph,
.block-members_only_paragraph+.block-members_only_paragraph,
.block-members_only_paragraph+.block-paragraph {
  margin-top: -2.6rem !important;
}

#map {
  height: 80vh;
  width: 100%;
  /* fix accidental selection of unwanted text (1/3) */
  user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

#map-venue {
  height: 15rem;
  width: 100%;
  margin-bottom: 2rem;
}

#map .leaflet-bar a .fa {
  line-height: 30px;
}

#map .leaflet-bar-horizontal a {
  display: inline-block;
  width: auto;
  padding: 0 0.5rem;
  border-bottom: none;
  border-right: 1px solid #ccc;
  cursor: pointer;
}

#map .leaflet-bar-horizontal a:last-child {
  border-right: none;
}

#map .leaflet-control-scale {
  margin-left: 10px;
  margin-bottom: 10px;
}

#map .leaflet-zoom-to {
  margin-left: 100px;
}

@media (max-width: 600px) {
  #map .leaflet-zoom-to {
    margin-bottom: 40px;
    margin-left: 0;
  }
}

#map .extra-marker .fa-number::before,
#map-venue .extra-marker .fa-number::before {
  font-style: normal;
  font-weight: bold;
}

#map .extra-marker-square-black,
/* black markers appear on top */
#map-venue .extra-marker-square-black {
  z-index: 10000 !important;
}

#map .leaflet-popup-content {
  max-width: 65vw;
}

#map .leaflet-popup-content img {
  width: 150px;
  height: auto;
  max-width: 100%;
}

#map .leaflet-popup {
  /* fix accidental selection of unwanted text (2/3) */
  user-select: initial;
  -webkit-user-select: initial;
  -khtml-user-select: initial;
  -moz-user-select: initial;
  -ms-user-select: initial;
}

.decode-content[data-content] {
  cursor: pointer;
}

/* run this on all systems, not just mobile
@media (max-width: 500px), (max-height: 500px) { */
body.template-map {
  overflow: hidden;
  /* fix accidental selection of unwanted text (3/3) */
  user-select: none;
  -webkit-user-select: none;
  -khtml-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
}

body.template-map nav {
  position: absolute;
}

body.template-map .navbar-cover {
  height: 65px;
}

body.template-map #navbarCOS ul {
  margin-top: 50px;
}

body.template-map nav .navbar-brand img {
  max-height: 60px;
}

body.template-map main {
  position: absolute;
  left: 0;
  right: 0;
  top: 73.2px;
  bottom: 0;
  margin: 0 !important;
  padding: 0 !important;
}

body.template-map #map-container {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  margin: 0;
  z-index: 10;
  background: #fff;
}

body.template-map #map {
  height: 100%;
}

body.template-map #map::after {
  content: "Loading map...";
  font-size: 1.5rem;
  position: fixed;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  pointer-events: none;
}

body.template-map footer {
  display: none;
}

/* } */

.block-embed iframe,
.event-bar-video iframe {
  width: 100%;
  height: auto;
  aspect-ratio: 1.778;
  margin: 0;
}

.social-media {
  margin: 0;
  display: flex;
  gap: 0.6rem;
}

.social-media a {
  font-size: 1.8rem !important;
  padding: 0 !important;
}

nav .nav-item .navbar-text.social-media {
  padding: 0 2rem;
  justify-content: center;
}

footer a {
  font-size: 1.25rem;
}

footer .social-media {
  margin-bottom: 1rem;
}

footer .social-media a {
  color: #a8a7a7;
}

footer .social-media a:hover {
  color: #fff;
}