/*
Theme Name:   Kulturdistriktet 2025
Description:  Chaplin Child Theme, customized for Kulturdistriktet
Author:       Jan Hesselvig Krogh
Author URI:   https://janslyn.dk
Template:     chaplin
Version:      1.0.2
Text Domain:  chaplinchild
*/
:root .wp-block-heading.has-larger-font-size {
  font-size: 2.25em;
  margin-bottom: 0.5em;
}

.hide-on-mobile {
  display: none;
}
@media screen and (min-width : 43.75em) {
  .hide-on-mobile {
    display: block;
  }
}

@media screen and (min-width : 43.75em) {
  .hide-on-desktop {
    display: none;
  }
}

li.highlight a {
  position: relative;
}
li.highlight a::before {
  content: "";
  position: absolute;
  width: calc(100% + 24px);
  height: calc(100% + 24px);
  margin-top: -12px;
  margin-left: -12px;
  border-radius: 5px;
  z-index: -1;
  background-color: #ddd68c;
}
.menu-modal li.highlight {
  background-color: #ddd68c;
}

#site-content {
  padding-top: 8rem;
}

header#site-header {
  margin-bottom: 0;
}
@media screen and (min-width : 43.75em) {
  header#site-header {
    padding-top: 3.5rem;
    padding-bottom: 1rem;
  }
}

@media (min-width: 700px) {
  header .site-logo img {
    max-height: 8rem;
  }
}

.header-inner .section-inner {
  position: relative;
}
@media screen and (min-width : 64.063em) {
  .header-inner .section-inner {
    max-width: calc(100% - 60px);
    align-items: flex-end !important;
  }
}
@media screen and (min-width: 1000px) {
  .header-inner .section-inner .header-toggles .toggle {
    height: 4rem;
    transform: translateY(8px);
  }
}

.header-inner .section-inner::before {
  content: "";
  position: absolute;
  height: 1px;
  background-color: black;
  width: 100%;
  top: calc(100% + 10px);
}
@media (min-width: 700px) {
  .header-inner .section-inner::before {
    top: calc(100% + 20px);
  }
}

@media screen and (min-width: 1000px) {
  .no-js .main-menu-alt-container.kd, .disable-menu-modal-on-desktop .main-menu-alt-container.kd {
    display: flex !important;
    justify-content: flex-end;
    margin-left: 0;
    padding-bottom: 0;
    /*ul.main-menu-alt:first-child{
      transform: translateX(-50%);
      margin-left: 0;

      > li{
        margin: 1.5rem 1.5rem 0 1.5rem
      }
    }*/
  }
}

.hero-push {
  margin-top: -12rem !important;
}
@media (min-width: 700px) {
  .hero-push {
    margin-top: -16rem !important;
  }
}

.header-inner .section-inner::before {
  z-index: -1;
}

#post-inner {
  padding-top: 2rem;
}

main h1, main .heading-size-1, main h2, main .heading-size-2 {
  margin-top: 3rem;
}
main h3, main .heading-size-3, main h4, main .heading-size-4, main h5, main .heading-size-5, main h6, main .heading-size-6 {
  margin-top: 2rem;
  margin-bottom: 1em;
}

h4.carousel-header {
  margin-bottom: 0;
}

@media screen and (min-width : 43.75em) {
  .single-place article, .single-event article, .single-host article {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: space-between;
  }
  .single-place article .single-main, .single-event article .single-main, .single-host article .single-main {
    width: calc((100% - 60px) / 3 * 2);
  }
  .single-place article .single-main h2:first-child, .single-place article .single-main h2:nth-child(2), .single-event article .single-main h2:first-child, .single-event article .single-main h2:nth-child(2), .single-host article .single-main h2:first-child, .single-host article .single-main h2:nth-child(2) {
    margin-top: 0;
  }
  .single-place article .single-side, .single-event article .single-side, .single-host article .single-side {
    width: calc((100% - 60px) / 3);
    padding-bottom: 30px;
  }
  .single-place article .single-side h5, .single-event article .single-side h5, .single-host article .single-side h5 {
    margin-top: 0;
  }
}

.single-place h1 {
  margin-bottom: 0;
}

.single-event .top-row {
  aspect-ratio: 10/3;
}
.single-event .top-row img {
  -o-object-fit: cover;
     object-fit: cover;
  width: 100%;
  height: 100%;
}

.single-main #map {
  margin-top: 30px;
  margin-bottom: 30px;
}

.single-event .single-main .wp-post-image {
  width: 100%;
  border-radius: 10px;
}

.event-data {
  aspect-ratio: 10/3;
  background-color: #f2f2f2;
  border-radius: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  margin-bottom: 15px;
}

ul.stats {
  width: 100%;
  padding-left: 0;
  margin-left: 0;
  margin-bottom: 0;
  padding-bottom: 50px;
}
@media screen and (min-width : 64.063em) {
  ul.stats {
    padding-bottom: 0;
  }
}
ul.stats li {
  width: auto;
  float: left;
  margin-right: 8px;
}
ul.stats li:first-child {
  list-style-type: none;
  margin-left: 0;
}

.single-event-map {
  aspect-ratio: 10/5;
  width: 100%;
}

.top-row .single-place-map, .top-row .image-wrapper {
  aspect-ratio: 1/1;
  width: calc((100% - 40px) / 3);
  /*@include media(medium){
    width: calc((100% - 40px) / 3) ;
  }
  */
}

.top-row .single-place-map.wide {
  width: 100%;
}
@media screen and (min-width : 43.75em) {
  .top-row .single-place-map.wide {
    aspect-ratio: 3/1;
  }
}

.top-row-wrapper {
  width: calc(100% + 4rem);
  margin-left: -2rem;
  margin-right: -2rem;
  overflow-x: scroll;
  margin-bottom: 30px;
}
@media screen and (min-width : 43.75em) {
  .top-row-wrapper {
    overflow: auto;
    width: 100%;
    margin-left: initial;
    margin-right: initial;
  }
}

.top-row {
  width: 100%;
}
.premium .top-row, .single-place .top-row {
  width: 230vw;
}
@media screen and (min-width : 43.75em) {
  .premium .top-row, .single-place .top-row {
    width: 100%;
  }
}
.top-row {
  display: flex;
  gap: 20px;
}
@media screen and (min-width : 43.75em) {
  .top-row {
    width: 100%;
  }
}

.header-navigation-wrapper ul li {
  font-weight: 600;
  letter-spacing: -0.4px;
}

#map .leaflet-popup-content {
  font-size: 14px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-gap: 20px;
  margin-top: 40px;
  margin-bottom: 50px;
}
@media screen and (min-width : 64.063em) {
  .feature-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.feature-grid > div {
  display: flex;
  align-items: center;
  font-size: 80%;
}
.feature-grid > div img {
  width: 30%;
  margin-right: 5px;
}

.selected-features, .dining-and-drinks {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 20px;
  box-shadow: 0px 1px 9px 2px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 20px 10px;
  margin-bottom: 40px;
  font-size: 80%;
}
.selected-features img, .dining-and-drinks img {
  height: 60px;
  margin-bottom: 5px;
}
.selected-features > div, .dining-and-drinks > div {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media screen and (min-width : 43.75em) {
  .selected-features {
    grid-template-columns: repeat(1, 1fr);
  }
}
@media screen and (min-width : 64.063em) {
  .selected-features {
    grid-template-columns: repeat(3, 1fr);
  }
}

.dining-and-drinks .count {
  font-size: 4rem;
  font-weight: 700;
}

h5 + .upcoming-event {
  position: relative;
}
h5 + .upcoming-event .event-date {
  position: absolute;
  background-color: black;
  font-weight: bold;
  color: white;
  padding: 5px;
  left: -10px;
  top: 40px;
}

.upcoming-event {
  box-shadow: 0px 1px 9px 2px rgba(0, 0, 0, 0.08);
  border-radius: 10px;
  padding: 20px;
  margin-bottom: 20px;
}
.upcoming-event a img {
  width: calc(100% + 40px);
  margin-left: -20px;
  margin-right: -20px;
  margin-top: -20px;
  max-width: none;
  margin-bottom: 1em;
}
.upcoming-event .event-item + .event-item {
  margin-top: 10px;
}
.upcoming-event .event-date {
  margin-top: 0.25em;
  margin-bottom: 0.25em;
  font-weight: bold;
}
.upcoming-event h4 {
  margin-top: 0;
}
.upcoming-event img {
  border-radius: 5px 5px 0 0;
}

.single-host .single-side .event-data + h5 {
  margin-top: 40px;
}

.single-main h1:first-child {
  margin-top: 0;
}

.flickity-button {
  padding: 0;
}

.flickity-prev-next-button.previous {
  left: -5px;
}
@media screen and (min-width: 1280px) {
  .flickity-prev-next-button.previous {
    left: -50px;
  }
}

.flickity-prev-next-button.next {
  right: -5px;
}
@media screen and (min-width: 1280px) {
  .flickity-prev-next-button.next {
    right: -50px;
  }
}

.host-carousel {
  margin-left: -10px;
  width: 100%;
}
@media screen and (min-width: 420px) {
  .host-carousel {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5px;
  }
}
@media screen and (min-width: 1000px) {
  .host-carousel {
    grid-template-columns: repeat(4, 1fr);
  }
}
.host-carousel .slide {
  width: 100%;
  position: relative;
}
.host-carousel .host-type {
  z-index: 3;
  position: absolute;
  left: 0;
  background-color: black;
  color: white;
  margin-top: 30px;
  font-size: 70%;
  padding: 5px;
}
.host-carousel .slide-inner {
  height: 100%;
  overflow: hidden;
}
.host-carousel .slide-inner a {
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-top: -10px;
  display: block;
}
.host-carousel .slide-inner p {
  font-size: 90%;
}

.slide {
  padding: 10px;
  width: 100%;
}
.slide .slide-inner {
  box-shadow: 0px 1px 9px 2px rgba(0, 0, 0, 0.08);
  padding: 10px;
  border-radius: 8px;
}
@media screen and (min-width : 43.75em) {
  .slide {
    width: 50%;
  }
}
@media screen and (min-width : 64.063em) {
  .slide {
    width: 25%;
  }
}

h1 span {
  font-size: 70%;
}

.logo-container {
  flex-basis: 100%;
}
.logo-container img {
  margin-left: 0;
  margin-right: auto;
}

.teaser {
  margin-top: 0.5em;
}

.list-item h4 {
  margin-bottom: 0.5em;
}

.list-item .small {
  font-size: 85%;
  font-style: italic;
}

.list-item.host h4, .list-item.event h4, .list-item.place h4, .listing.custom .list-item h4 {
  font-size: 1em;
}

h2 {
  margin-bottom: 1em;
}
h2 a {
  color: inherit;
  text-decoration: none;
}
h2 a:hover {
  text-decoration: underline;
}

.wp-block-columns {
  margin-top: 2rem !important;
  margin-bottom: 2rem !important;
}

@media screen and (min-width: 1000px) {
  .footer-widgets-wrapper.grid .column-one.grid-item, .footer-widgets-wrapper.grid .column-two.grid-item {
    width: calc(30% - 4rem);
  }
  .footer-widgets-wrapper.grid .footer-widgets:not(.column-one), .footer-widgets-wrapper.grid .footer-widgets:not(.column-two) {
    max-width: 460px;
  }
}

.alignfull .listing {
  max-width: 112rem;
  margin-left: auto !important;
  margin-right: auto;
}
.alignfull .listing .slide-inner {
  background-color: white;
}

.widget_nav_menu li.add-space {
  margin-bottom: 1.5em !important;
}

footer {
  background-image: url(images/footer_bg.webp);
  background-size: 100% auto;
  background-repeat: no-repeat;
  background-position: bottom;
}

#mc_embed_signup {
  max-width: 90vw !important;
}

.single-host #events {
  padding-top: 50px;
  border-top: solid 1px #E1E1E3;
}
.single-host #events .listing.events {
  display: grid;
  grid-template-columns: repeat(1, 1fr);
  gap: 20px;
}
@media screen and (min-width: 500px) {
  .single-host #events .listing.events {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
}
@media screen and (min-width: 800px) {
  .single-host #events .listing.events {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
  }
}
.single-host #events .image-wrapper {
  width: 100%;
}
.single-host #events .list-item.event {
  position: relative;
  padding-bottom: 5px;
}
.single-host #events .list-item.event .slide-inner {
  position: relative;
  box-shadow: 0px 1px 9px 2px rgba(0, 0, 0, 0.08);
  border-radius: 8px;
  overflow: hidden;
  padding: 10px;
  height: 100%;
}
.single-host #events .list-item.event .slide-inner a {
  display: block;
}
.single-host #events .list-item.event .slide-inner a img {
  width: calc(100% + 20px);
  margin-left: -10px;
  margin-top: -10px;
  max-width: none;
}
.single-host #events .list-item.event .event-date {
  z-index: 3;
  position: absolute;
  left: -10px;
  background-color: black;
  color: white;
  margin-top: 30px;
  font-size: 85%;
  font-weight: bold;
  padding: 5px;
}
@media screen and (min-width: 500px) {
  .single-host #events .list-item.event .event-date {
    left: -10px;
  }
}
.single-host #events .list-item.event p {
  font-size: 0.8125em;
}

.single-host .byline, .single-host .intro {
  width: 100%;
}
.single-host .byline {
  font-size: 150%;
  font-style: italic;
  font-weight: bold;
}
.single-host h1 + .byline {
  margin-top: -1em;
}

.logo-container {
  aspect-ratio: 1/1;
  border-radius: 50%;
  width: 200px;
  display: flex;
  align-items: center;
  background-color: #f7f7f7;
  margin-top: -170px;
  padding: 10px;
  position: relative;
  margin-left: 10px;
}
@media screen and (min-width : 43.75em) {
  .logo-container {
    margin-left: 80px;
  }
}
.logo-container img {
  -o-object-fit: contain;
     object-fit: contain;
}

@media screen and (min-width : 43.75em) {
  h1 + .premium-host-fields {
    margin-top: -40px;
  }
  h1 + .premium-host-fields .byline {
    transform: translateY(-10px);
  }
}

.premium-host-fields {
  width: 100%;
}
@media screen and (min-width : 43.75em) {
  .premium-host-fields {
    display: flex;
  }
  .premium-host-fields .text-wrap {
    flex-grow: 1;
  }
  .premium-host-fields .selected-features {
    width: calc((100% - 60px) / 3);
  }
}

.list-item .info-icons, .slide .banner-content .info-icons {
  display: flex;
  gap: 5px;
  margin-bottom: 5px;
}
@media screen and (min-width : 43.75em) {
  .list-item .info-icons, .slide .banner-content .info-icons {
    flex-wrap: wrap;
  }
}
@media screen and (min-width : 64.063em) {
  .list-item .info-icons, .slide .banner-content .info-icons {
    flex-wrap: nowrap;
  }
}
.list-item .info-icons div, .slide .banner-content .info-icons div {
  width: calc(50% - 3px);
}
@media screen and (min-width : 64.063em) {
  .list-item .info-icons div, .slide .banner-content .info-icons div {
    width: calc(25% - 2px);
  }
}
.list-item .count, .slide .banner-content .count {
  font-size: 0.8125em;
  font-weight: bold;
  text-align: right;
  background-position: left center;
  background-size: auto 31px;
  background-repeat: no-repeat;
  height: 40px;
  display: flex;
  align-items: center;
  padding-left: 33px;
}
.list-item .count.cafes, .slide .banner-content .count.cafes {
  background-image: url(images/icon-cafe.png);
}
.list-item .count.restaurants, .slide .banner-content .count.restaurants {
  background-image: url(images/icon-restaurant.png);
}
.list-item .count.bars, .slide .banner-content .count.bars {
  background-image: url(images/icon-bar.png);
}
.list-item .count.events, .slide .banner-content .count.events {
  background-image: url(images/icon-event.png);
}

.list-item.host .count.events {
  float: right;
  margin-top: -5px;
}

.wp-social-link.has-light-background-background-color {
  background-color: #ededed !important;
}

.place-nav {
  margin-top: 40px;
  display: flex;
  gap: 10px;
}
.place-nav .wp-block-button {
  margin-top: 0;
  margin-bottom: 0;
}
.place-nav .wp-block-button .wp-element-button {
  padding: 8px 16px;
}
