:root {
  --bulma-burger-item-width: 3rem;
  --bulma-burger-item-height: .3rem;
}
.navbar-burger span:nth-child(3) {
  bottom: 1.85rem;
}
.navbar-burger span:nth-child(4) {
  top: 1.85rem;
}

body {
  display: flex;
  min-height: 100vh;
  flex-direction: column;
}

.navbar > .navbar-brand img.logo {
  max-height: 2rem;
}

.navbar > .navbar-brand img.logo-touch {
  max-height: 4rem;
}

.navbar .navbar-end > .navbar-item {
  border-radius: .5rem;
  border: none;
}

body > .container {
  overflow-x: hidden;
  overflow-y: scroll;
}

body > .container > .title {
  margin-top: 1.5rem;
  margin-bottom: .5rem;
}

.columns.main-sections .column .card > a {
  width: 100%;
}

.columns.main-sections .card.card-art {
  background-image: url(/static/images/art_bg.jpg);
  background-size: cover;
  height: 32rem;
}
.columns.main-sections .card.card-yoga {
  background-image: url(/static/images/yoga_bg.jpg);
  background-size: cover;
  background-position-x: 65%;
  height: 32rem;
}

.columns.main-sections .column .card span {
  font-size: 3rem;
}
.columns.main-sections .column .card .card-content .button {
  height: 5rem;
  font-weight: lighter;
  /* antique white, with ~90% transparency */
  background-color: #faebd70f;
  border-radius: .5rem;
  border: none;
}

/* Use css mask to control the drawing color with dark mode */
.main-svg {
  width: 4rem;
  height: 4rem;
}
.main-svg-art {
  mask: url('/static/images/art.svg#maskelement') no-repeat center;
  mask-size: 2.3rem;
  margin-right: -1rem;
}
.main-svg-yoga {
  mask: url('/static/images/yoga.svg#maskelement') no-repeat center;
  mask-size: 1.7rem;
  margin-left: -1.1rem;
}


.facet_tag_medium {
  background-color: #4b58a0 !important;
}

.facet_tag_dark {
  background-color: #2d376f !important;
}

.facet {
  padding: 0.2em;
}

.active-facet {
  def get_queryset(self):background-color: #0002;
  margin: 0;
  border-radius: var(--bulma-radius);
}

.active-facet .facet-tag-dark {
  background-color: #4e5371 !important;
}

/* Masonry */
.masonry-container {
  max-height: 100dvh;
  /* Firefox */
  scrollbar-width: none;

  /* Internet Explorer / old Edge */
  -ms-overflow-style: none;
}

/* Chrome, Safari, Chromium-based Edge */
.masonry-container::-webkit-scrollbar {
  display: none;
}

.masonry {
  column-gap: 1rem;
}

/*
 * CSS magic that split the dom into columns automatically
 * See: https://developer.mozilla.org/en-US/docs/Web/CSS/columns
 */
.masonry.columns-4 {
  columns: 4;
}
.masonry.columns-2 {
  columns: 2;
}

.masonry .item{
  margin: 0 1rem 1rem 0;
  width: 100%;
  background-color: #efefef;
  border-radius: var(--bulma-radius);
  box-shadow: rgba(0, 0, 0, 0.18) 0px 2px 4px;
  /* Crop the content so we can see the border-radius */
  overflow: hidden;
}

/* Any element inside the item will fill his container and prevent his content to be deformed */
.masonry .item * {
  width: 100%;
  height: 100%;
  cursor: pointer;
}

/* Display line breaks */
.has-text-break > * {
  white-space: break-spaces;
  word-break: break-all;
}

/* Do only load images when the modal is opened */
.modal img {
  content: var(--img);
  max-height: 100%;
  max-width: 100%;
}
.modal:not(.is-active) img {
  --img:initial!important;
}
.modal button.modal-close {
  font-size: 7rem;
  right: 3rem;
  top: -2rem;
  font-weight: 100;
  color: white;
}
.modal .modal-content.art-details {
  height: calc(100vh - 5rem);
  width: calc(100vw - 5rem);
  overflow-x: hidden;
}
.modal .modal-content .columns .column img{
  max-height: 80vh;
}
.modal .modal-content .columns .column.publication-description {
  max-width: 40vw;
}
