/*
  Theme Name: Rotterdamse Popweek 2025
*/

* {
  margin: 0;
  padding: 0;
}

html {
  height: 100%;
}
body {
  font-family: "neue-haas-grotesk-text", sans-serif;
  font-weight: 400;
  font-style: normal;
  height: 100%;
  color: #000000;
  background-color: #fcfae7;
  font-size: 18px;
  line-height: 26px;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
}

strong,
b,
h1,
h2,
h3,
h4 {
  font-weight: 600;
  font-style: normal;
}
h3 {
  font-size: 24px;
  line-height: 32px;
  /*text-transform: lowercase;*/
  margin-bottom: 8px;
}
p + h3 {
  margin-top: 40px;
}
h2 {
  font-size: 32px;
  line-height: 40px;
  margin-bottom: 1em;
}

a {
  color: inherit;
  text-decoration: none;
}
.site-navigation a:hover,
.social-block a:hover,
article a:hover,
p a {
  text-decoration: underline;
}
p a:hover {
  color: rgba(105,176,116,.9);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

iframe {
  max-width: 100%;
}

div.site {
  width: 90%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

/* HEADER */

header {
  padding: 40px 0 20px;
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  max-width: 1260px;
  z-index: 99;
  background-color: #fcfae7;
}
.header-invisible {
  position: relative;
  padding: 40px 0 20px;
  opacity: 0;
}

.header-inner {
  position: relative;
}

.subtitle-wrapper {
  background-color: rgba(229,161,195,.9);
  color: #41091e;
  position: absolute;
  bottom: 30px;
  left: 50px;
  font-weight: 600;
  padding: 10px 15px;
  transform: rotate(-3deg);
  text-transform: lowercase;
  font-size: 24px;
  line-height: 32px;
}

.subtitle {
  transform: rotate(.3deg);
}

#site-navigation {
  position: absolute;
  top: 20px;
  right: 70px;
  font-weight: 600;
  transform: rotate(4deg);
  text-transform: lowercase;
  font-size: 24px;
  line-height: 32px;
}

#site-navigation ul {
  list-style: none;
}

#site-navigation a {
  display: block;
  background-color: rgba(105,176,116,.9);
  color: #191515;
  padding: 10px 15px;
}

/* FOOTER */

footer {
  position: relative;
  text-align: right;
  padding-bottom: 40px;
}

@media screen and (min-width: 601px)
{
  .footer-links-wrapper {
    display: inline-block;
    position: relative;
    padding: 20px 40px 40px 0;
  }

  .footer-links {
    background-color: rgba(105,176,116,.9);
    color: #191515;
    position: relative;
    font-weight: 600;
    padding: 10px 15px;
    transform: rotate(3deg);
    display: flex;
    gap: 20px;
    text-transform: lowercase;
    font-size: 24px;
    line-height: 32px;
  }

  .footer-links ul {
    list-style: none;
  }

  .social-block {
    display: flex;
    gap: 20px;
  }

  .social-block a {
    display: block;
  }
}

.footer-description {
  text-align: left;
  max-width: 600px;
}

/* FILTERS */

.filter-wrapper {
  display: none;
}
.page-home .filter-wrapper {
  display: block;
}

.header-invisible .filter-wrapper {
  line-height: 42px;
}

.selected-filters,
.home.page .grid-error.no-results {
  display: none;
}
.selected-filters.is-visible,
.home.page .grid-error.no-results.is-active {
  display: block;
}

.selected-filters .msg,
.selected-filters .date,
.selected-filters .location,
.selected-filters .genre {
  text-transform: lowercase;
}
.selected-filters .date,
.selected-filters .location,
.selected-filters .genre {
  display: none;
  background-color: rgba(105, 176, 116, .9);
  color: #191515;
  padding: 8px 10px 6px;
  font-weight: 600;
  margin-left: 5px;
}
.selected-filters .is-active {
  display: inline;
}

.filter-types {
  display: flex;
  column-gap: 20px;
  justify-content: flex-end;
  align-items: center;
  text-transform: lowercase;
}

.filters-dropdown-wrapper {
  display: none;
  background-color: rgba(229,161,195,.95);
  position: fixed;
  left: 0;
  top: 0;
  width: 100%;
  height: 100dvh;
  z-index: 99;
  overflow: auto;
  box-sizing: border-box;
  padding: 40px 0;
  text-transform: lowercase;
  font-size: 24px;
  line-height: 32px;
  font-weight: 600;
}
.filter-genre-active .filters-dropdown-wrapper.filter-genres {
  display: block;
}
.filter-location-active .filters-dropdown-wrapper.filter-locations {
  display: block;
}
.filter-date-active .filters-dropdown-wrapper.filter-dates {
  display: block;
}

.filters-dropdown-wrapper > * {
  width: 90%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
}

.dropdown-title {
  font-size: 100px;
  line-height: 100px;
  color: #41091e;
  margin-bottom: 40px;
}

.filter-close {
  position: absolute;
  top: 40px;
  right: 40px;
  width: auto;
  font-size: 40px;
  line-height: 40px;
}
.filter-close:hover {
  cursor: pointer;
}

ul.filters-dropdown {
  list-style: none;
}

ul.filters-dropdown button {
  background: none;
	color: inherit;
	border: none;
	padding: 0;
	font: inherit;
	cursor: pointer;
	outline: inherit;
  text-transform: lowercase;
}
ul.filters-dropdown button:hover {
  color: rgba(105,176,116,1);
}

.filter-dropdown-item .is-disabled {
  display: none;
}

ul.filters-dropdown button span {
  color: #000000;
  opacity: .3;
}

.filter-types .type {
  border: 3px solid #69b074;
  padding: 5px 10px;
}
.filter-types .type:hover {
  cursor: pointer;
  background-color: #69b074;
}

/* EVENTS */

.event-grid {
  padding: 20px 0 0;
  position: relative;
}

.event-item,
.grid-sizer {
  width: 100%;
}

@media (min-width: 640px) {
  .event-item,
  .grid-sizer {
    width: calc(50% - 15px);
  }

  .gutter-sizer {
    width: 30px;
  }
}

@media (min-width: 1024px) {
  .event-item,
  .grid-sizer {
    width: calc(33.33333% - 20px);
  }

  .gutter-sizer {
    width: 30px;
  }
}

.event-item {
  margin-bottom: 30px;
}

.event-item__header,
.event-item .text-block,
.event-item__footer {
  padding: 8px 15px;
}
.event-item .text-block {
  padding: 15px;
}

.event-item:nth-child(4n+1) .event-item__header,
.event-item:nth-child(4n+1) .event-item__footer {
  background-color: rgba(229,161,195,.9);
}
.event-item:nth-child(4n+1) .event-item__body {
  background-color: rgba(229,161,195,.5);
}

.event-item:nth-child(4n+2) .event-item__header,
.event-item:nth-child(4n+2) .event-item__footer {
  background-color: rgba(234,215,86,.9);
}
.event-item:nth-child(4n+2) .event-item__body {
  background-color: rgba(234,215,86,.5);
}

.event-item:nth-child(4n+3) .event-item__header,
.event-item:nth-child(4n+3) .event-item__footer {
  background-color: rgba(105,176,116,.9);
}
.event-item:nth-child(4n+3) .event-item__body {
  background-color: rgba(105,176,116,.5);
}

.event-item:nth-child(4n+4) .event-item__header,
.event-item:nth-child(4n+4) .event-item__footer {
  background-color: rgba(53,147,200,.9);
}
.event-item:nth-child(4n+4) .event-item__body {
  background-color: rgba(53,147,200,.5);
}

/*
.event-item__header,
.event-item__footer {
  background-color: rgba(229,161,195,.9);
}
.event-item__body {
  background-color: rgba(229,161,195,.5);
}

.special-event .event-item__header,
.special-event .event-item__footer {
  background-color: rgba(105,176,116,.9);
}
.special-event .event-item__body {
  background-color: rgba(105,176,116,.5);
}*/

.event-item__header,
.event-item__footer {
  font-weight: 600;
  font-size: 14px;
  line-height: 20px;
  text-transform: lowercase;
  display: flex;
  justify-content: space-between;
}

.event-item__header > span,
.event-item__footer > span {
  display: block;
}

.event-item__header span:nth-child(2),
.event-item__footer span:nth-child(2) {
  text-align: right;
}

.event-item__information {
  display: flex;
  gap: 10px;
}

.event-link img {
  height: 16px;
  width: auto;
  display: block;
  margin-top: 2px;
}

/* MAIN */

main {
  margin-bottom: 40px;
}

.clear {
  position: relative;
}

p {
  margin-bottom: 1.2em;
}
p:last-child {
  margin-bottom: 0;
}
.entry-content > p:last-child {
  margin-bottom: 40px;
}

.entry-content > .wp-block-image {
  background-color: rgba(105,176,116,.9);
  margin-bottom: 40px;
}

.entry-content > .wp-block-image img {
  width: 100%;
  max-width: 500px;
  margin: 0 auto;
}

.popweken {
  margin: 40px 0 1em;
}

.popweken > .wp-block-group__inner-container {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
}

.popweken > .wp-block-group__inner-container > * {
  width: calc(33.33333% - 20px);
}

@media screen and (max-width: 980px)
{
  #site-navigation {
    top: 0;
    right: 20px;
  }

  .subtitle-wrapper {
    bottom: 20px;
    left: 30px;
  }

  @media screen and (min-width: 601px)
  {
    .footer-links-wrapper {
      padding-right: 20px;
    }
  }

  .popweken > .wp-block-group__inner-container > * {
    width: calc(50% - 15px);
  }
}

@media screen and (max-width: 720px)
{
  .subtitle-wrapper,
  #site-navigation {
    font-size: 18px;
    line-height: 26px;
  }
  .subtitle-wrapper {
    bottom: 0;
    left: 10px;
  }
  #site-navigation {
    top: 0;
    right: 10px;
  }

  h1 {
    margin-bottom: 20px;
  }

  @media screen and (min-width: 601px)
  {
    .social-block,
    .footer-links {
      gap: 15px;
    }

    .footer-links-wrapper {
      padding-right: 0px;
    }

    #site-navigation-footer {
      display: none;
    }

    .footer-links {
      font-size: 18px;
      line-height: 26px;
    }
  }
}

@media screen and (max-width: 600px)
{
  body {
    font-size: 16px;
    line-height: 24px;
  }

  main {
    margin-bottom: 20px;
  }

  header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    width: auto;
  }
  .header-invisible {
    display: none;
  }

  h1 img {
    display: none;
  }

  h1 a {
    display: block;
    width: 100%;
    height: 0;
    padding-top: 89%;
    background-image: url('images/rotterdamse-popweek-2025-mobile.png');
    background-repeat: no-repeat;
    background-size: 100% auto;
  }

  .footer-links,
  .filter-types {
    font-size: 14px;
    line-height: 20px;
    column-gap: 10px;
  }

  .filters-dropdown-wrapper,
  h3 {
    font-size: 20px;
    line-height: 28px;
  }

  h2 {
    font-size: 28px;
    line-height: 36px;
    margin-bottom: 20px;
  }

  p + h3 {
    margin-top: 20px;
  }

  .popweken > .wp-block-group__inner-container {
    gap: 20px;
  }

  .popweken > .wp-block-group__inner-container > * {
    width: calc(50% - 10px);
  }

  .event-item {
    margin-bottom: 20px;
  }

  .event-item__header, .event-item__footer {
    font-size: 13px;
    line-height: 20px;
  }

  .entry-content > .wp-block-image {
    margin-bottom: 26px;
  }

  .footer-links {
    margin-bottom: 20px;
    text-transform: lowercase;
  }

  .footer-links .label {
    display: none;
  }

  .footer-links ul {
    list-style: none;
  }

  .footer-links a {
    border: 3px solid rgba(229,161,195,1);
    padding: 5px 10px;
  }
  .footer-links a:hover {
    background-color: rgba(229,161,195,1);
    text-decoration: none;
  }

  .footer-links,
  .footer-links .social-block {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .footer-links > *,
  .footer-links .social-block > *,
  .footer-links a {
    display: block;
  }

  .dropdown-title {
    font-size: 60px;
    line-height: 60px;
    margin-bottom: 20px;
  }

  .filters-dropdown-wrapper {
    padding: 30px 0;
  }

  .filter-close {
    top: 30px;
    right: 30px;
    font-size: 30px;
    line-height: 30px;
  }
}
