/**
 *
 * Base styles
 *
 */
:focus-visible {
  outline: revert !important;
}

.wp-block-post-featured-image img,
.wp-post-image,
.gb-button,
.attachment-thumbnail,
.featured-image [class*="attachment-"],
.gb-image,
.wp-block-button__link.wp-block-button__link,
.spf_item,
.main-navigation ul ul,
.rpct-card__image img,
[class*="gb-image-"],
[class*="wp-image-"] {
  border-radius: 16px;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
}

.wp-block-button__link.wp-block-button__link {
  border-radius: 36px;
}

.attachment-thumbnail,
.attachment-medium,
.attachment-full,
.gb-image,
.rpct-card__image img,
.wp-post-image {
  border: 1px solid #cfcbca;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
}

main {
  position: relative;
}

.home h1.entry-title {
  border: 0;
  clip: rect(1px, 1px, 1px, 1px);
  -webkit-clip-path: inset(50%);
  clip-path: inset(50%);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute !important;
  width: 1px;
  word-wrap: normal !important;
}

body:not(.wp-core-ui) .rpct-full-width {
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

.rpct-full-width__inner-deep.site-content {
  padding-top: 0;
  padding-bottom: 0;
}

body:not(.home) .site-header {
  border-bottom: 1px solid #dedede;
}

body.home {
  background-color: white;
}

.gb-block-image:has(img.flex-shrink-0) {
  flex-shrink: 0;
}

.stretched-link-container {
  position: relative;
}

.stretched-link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

/**
 *
 * Helpers
 *
 */

.d-block {
  display: block;
}

.d-flex {
  display: flex;
}

.fd-column {
  flex-direction: column;
}

.fd-row {
  flex-direction: row;
}

.ff-body {
  font-family: Source Sans Pro, sans-serif;
}

.ff-heading {
  font-family: var(--heading-font);
}

.justify-center {
  justify-content: center;
}

.align-center {
  align-items: center;
}

.flex-wrap {
  flex-wrap: wrap;
}

.flex-shrink-0 {
  flex-shrink: 0;
}

.mb-0 {
  margin-bottom: 0;
}

.mb-05 {
  margin-bottom: 0.5rem;
}

.mb-1 {
  margin-bottom: 1rem;
}

.m-1 {
  margin: 10px;
}

.mr-05 {
  margin-right: 0.5rem;
}

.p-container {
  padding: 50px 25px 50px 25px;
}

@media (width >= 768px) {
  .p-container {
    padding: 40px;
  }
}

.reset-list {
  padding: 0;
  margin: 0;
  list-style: none;
}

.spf_container {
  gap: 1.25rem !important;
  padding: 0 !important;
}

:where(article, .with-underlined-links) p a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

:where(article, .with-underlined-links) p a:hover {
  text-decoration: none;
}

:where(article, .with-underlined-links) p a:active {
  text-decoration: underline;
}

@media (width >= 768px) {
  .d-md-flex {
    display: flex;
  }

  .mt-md-2 {
    margin-top: 2rem;
  }

  .fd-md-column {
    flex-direction: column;
  }

  .fd-md-row {
    flex-direction: row;
  }
}

img.focused-img,
.focused-img img {
  /* border: 3px solid #555; */
}

.box {
  padding: 2rem;
  border-radius: 24px;
  background-color: #fff;
  box-shadow: 0 0 #0000, 0 0 #0000, 0 1px 3px #0000001a, 0 1px 2px -1px #0000001a;
  border: 1px solid #cfcbca;
  margin-left: -8px;
  margin-right: -8px;
}

@media (width >= 768px) {
  .box {
    padding: 3rem 4rem;
    border-radius: 32px;
    margin-left: auto;
    margin-right: auto;
  }
}

/**
 *
 * Buttons component
 *
 */
.wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background) {
  color: var(--accent);
  border: 2px solid var(--accent);
  background-color: transparent;
}

.wp-block-button.is-style-outline a.wp-block-button__link:not(.has-background):hover {
  background-color: white;
}

a.wp-block-button__link {
  border: 2px solid transparent;
}

/**
 *
 * Focus border component
 *
 */
.rpct-focus-border > div:first-child,
.rpct-focus-border > div:last-child {
  width: 100%;
  height: 80px;
  border: 2px solid #91d2ca;
  border-bottom-width: 2px;
  border-bottom-style: solid;
  border-bottom-color: rgb(145, 210, 202);
  margin-left: -40px;
  width: calc(100% + 80px);
  margin-right: -40px;
}

.rpct-focus-border > div:first-child {
  border-bottom: 0;
}
.rpct-focus-border > div:last-child {
  margin-top: -40px;
  border-top: 0;
}

.rpct-focus-border > div:nth-child(2) {
  margin-top: -40px;
}

/**
 *
 * Green container component
 *
 */
.rpct-green-container-content {
  border-top: 2px solid #91d2ca;
  border-bottom: 2px solid #91d2ca;
  padding: 40px 0;
  margin: 40px 0;
}

@media (width >= 768px) {
  .rpct-green-container-top,
  .rpct-green-container-bottom {
    width: 100%;
    height: 80px;
    border: 2px solid #91d2ca;
    margin-left: -40px;
    width: calc(100% + 80px);
    margin-right: -40px;
  }

  .rpct-green-container-top {
    border-bottom: 0;
  }

  .rpct-green-container-bottom {
    border-top: 0;
  }

  .rpct-green-container-content {
    border: 0;
    padding: 0;
    margin-top: -40px;
    margin-bottom: -40px;
  }
}

/**
 *
 * Header
 *
 */
@media (width < 768px) {
  .site-header .header-image {
    width: 150px !important;
  }
}

/**
 *
 * Navigation
 *
 */
.main-navigation ul ul {
  overflow: hidden !important;
}

@media (min-width: 768px) {
  .main-navigation .main-nav ul li[class*="current-menu-"] > a {
    text-decoration: underline;
    text-underline-offset: 4px;
  }
}

body:not(.home) #primary-menu .menu-item.rpct-important a {
  border-radius: 16px;
  background: var(--accent) !important;
  color: white !important;
  border: 2px solid var(--accent) !important;
  font-weight: bold;
}

body:not(.home) #primary-menu .menu-item.rpct-important a:hover {
  background-color: white !important;
  color: var(--accent) !important;
}

body:not(.home) #primary-menu .menu-item.rpct-important a:active {
  background-color: #f5f5f5 !important;
}

body:not(.home) #primary-menu .menu-item.rpct-important.current_page_item a {
  color: var(--accent) !important;
  background-color: white !important;
  border-color: transparent !important;
}

#primary-menu .menu-item.rpct-important a {
  border: 2px solid transparent !important;
}

.mobile-menu-control-wrapper .menu-toggle {
  background: transparent !important;
}

.mobile-menu-control-wrapper .menu-toggle .gp-icon {
  position: relative;
  top: 3px;
}

.menu-bar-items .gp-icon,
.menu-item .gp-icon {
  display: inline;
}

.menu-bar-item.close-search > a {
  position: relative;
  top: -4px;
  right: 2px;
}

.navigation-search input[type="search"] {
  border: 1px solid #888 !important;
}

@media (width < 768px) {
  .menu-item-has-children .dropdown-menu-toggle {
    padding-left: 16px !important;
    border: 1px solid color-mix(in srgb, var(--contrast), #fff 20%);
    border-radius: 8px;
    margin-right: 8px;
  }
  .slideout-navigation.main-navigation .main-nav ul li[class*="current-menu-"] > a > .dropdown-menu-toggle {
    border-color: color-mix(in srgb, var(--base), #000 20%);
    border-radius: 0;
    border-top: 0;
    border-bottom: 0;
  }

  #generate-slideout-menu.main-navigation .main-nav ul ul {
    padding-left: 16px;
  }
}

/**
 *
 * Breadcrumbs
 *
 */
.Breadcrumbs {
  font-size: 1rem;
}

.Breadcrumbs a {
  color: inherit;
}

.Breadcrumbs a:hover {
  text-decoration: underline;
}
/**
 *
 * Pagination
 *
 */
.gb-query-loop-pagination .gb-block-is-current {
  font-weight: bold;
}

#nav-below {
  display: flex;
  justify-content: center;
  margin-top: 20px;
  padding-top: 3rem;
}

.paging-navigation .nav-links > * {
  display: inline-block;
  padding: 4px 12px !important;
}

.paging-navigation .nav-links a:hover {
  text-decoration: underline;
}

.paging-navigation .nav-links a:active {
  text-decoration: none;
}

/**
 *
 * Footer
 *
 */
.footer-widgets {
  line-height: 1.3;
  border-top: 1px solid #ccc;
}

.footer-widgets h2,
.footer-widgets h3 {
  color: inherit;
}

.footer-widgets h2 {
  font-size: 1.25rem;
}

.footer-widgets li a,
.footer-widgets p,
.footer-widgets p a {
  font-size: 1rem;
}

.footer-widgets li a:hover,
.footer-widgets p a:hover {
  text-decoration: underline;
}

.footer-widgets li a:active,
.footer-widgets p a:active {
  text-decoration: none;
}

.widget-title {
  margin-bottom: 1rem !important;
}

/**
 *
 * Generic excerpt (like a media/card component)
 *
 */
.rpct-card {
  gap: 0.5rem;
}

@media (width >= 768px) {
  .rpct-card {
    gap: 2rem;
  }
}

.rpct-card + .rpct-card {
  margin-top: 2.5rem;
}

.rpct-card__image {
  line-height: 1;
  display: block;
  --rpct-card-image-width: 100%;
  flex: 0 0 var(--rpct-card-image-width);
  max-width: var(--rpct-card-image-width);
  margin-bottom: 0.5rem;
}

:where(.rpct-card--member, .rpct-card--partner) .rpct-card__image {
  --rpct-card-image-width: 240px;
}

.rpct-card__image img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.rpct-card--no-read-more .read-more {
  display: none;
}

.rpct-card__read-more {
  text-align: right;
}

:where(.rpct-card--member, .rpct-card--partner) .rpct-card__image img {
  aspect-ratio: 1 / 1;
}

@media (width >= 576px) {
  .rpct-card__image {
    --rpct-card-image-width: 240px;
  }

  :where(.rpct-card--member, .rpct-card--partner) .rpct-card__image {
    --rpct-card-image-width: 144px;
  }
}

@media (width >= 768px) {
  .rpct-card__image {
    --rpct-card-image-width: 304px;
    margin-bottom: 0;
  }

  :where(.rpct-card--member, .rpct-card--partner) .rpct-card__image {
    --rpct-card-image-width: 176px;
  }
}

/**
 *
 * Homepage
 *
 */
body.home .site-content {
  padding-bottom: 0 !important;
}

.homepage__subheading strong {
  position: relative;
  z-index: 1;
}

.homepage__subheading strong::before {
  content: "";
  position: absolute;
  inset: -2px -5px;
  z-index: -1;
  transform: rotate(-1deg);
  font-weight: inherit;
  background-color: rgba(255, 182, 193, 0.4); /* light rose with transparency */
  box-decoration-break: clone; /* handles line breaks */
}

.homepage__subheading strong:nth-child(2)::before {
  transform: rotate(1deg);
}

.homepage__projects hr {
  width: 80%;
  border: 0;
  opacity: 0.5;
  border-top: 1px solid #55bcaf;
  margin: 3rem auto;
}

.homepage__projects article:last-of-type + hr {
  display: none;
}

@media (width >= 768px) {
  .homepage__projects-more-button,
  .homepage__news-more-button {
    margin-left: calc(304px + 2rem);
  }
}

/**
 *
 * Single project content page
 *
 */
.project-page-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
}
.rpct-project-metadata {
  display: flex;
  flex-wrap: wrap;
}

@media (width < 768px) {
  .rpct-project-metadata {
    flex-direction: column;
  }
}

.rpct-project-metadata--item {
  margin: 0;
  margin-right: 2rem;
  margin-bottom: 1rem;
}

.rpct-project-metadata--itemLabel {
  display: inline-block;
  padding: 0 14px;
}

span.rpct-project-metadata--itemValue,
ul.rpct-project-metadata--itemValue li {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 0;
  border-radius: 18px;
  border: 1px solid transparent;
  background-color: #52bcad45;
  padding: 4px 18px;
  width: fit-content;
}

span.rpct-project-metadata--itemValue--interactive,
ul.rpct-project-metadata--itemValue--interactive li {
  border: 1px solid #52bcad;
}

ul.rpct-project-metadata--itemValue {
  display: flex;
}

ul.rpct-project-metadata--itemValue {
  margin: 0;
  padding: 0;
}

.rpct-project-metadata--itemValue,
.rpct-project-metadata--itemValue a {
  color: #214d47;
}

.rpct-project-metadata--itemValue li + li {
  margin-left: 1rem;
}

.rpct-productions {
  display: flex;
  gap: 1rem;
  list-style-type: none;
  padding-left: 0;
  margin-left: 0;
}

.rpct-productions li {
  list-style-type: none;
}
.rpct-production-item {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}

.rpct-production-item .rpct-legende {
  font-family: var(--heading-font);
  font-weight: bold;
}

.rpct-production-item a {
  width: fit-content;
}

.calameo-container iframe {
  width: 100%;
  min-height: 600px;
}

.calameo-container > div > div {
  display: none;
}

/**
 *
 * Projects loop
 *
 */
.rpct-projects-loop .gb-block-image {
  flex-shrink: 0;
}

/**
 *
 * Posts loop
 */
.one-container.blog .post:not(:last-child):not(.is-loop-template-item) {
  padding-bottom: 0 !important;
  margin-bottom: 3rem !important;
}

/**
 *
 * Partner excerpt
 *
 */
.rpct-partner {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--base-2);
  padding: 15px 0;
}

.rpct-partner-list .rpct-partner {
  margin: 0 10px;
}

.rpct-partner__title {
  margin-bottom: 0;
}

.rpct-partner__title img {
  border: 1px solid var(--contrast-3);
}

.rpct-partner-logo {
  max-width: 200px;
  border-radius: 0;
}

.rpct-partner-list .rpct-partner:first-of-type {
  margin-left: 0;
}

.rpct-partner-list .rpct-partner:last-of-type {
  margin-right: 0;
}

/**
 *
 * Member tiny excerpt
 *
 */
.rpct-member {
  text-align: center;
}

.rpct-member__title {
  font-size: 1.25rem;
  margin-bottom: 0.25rem;
}

.rpct-member__title a {
  color: inherit;
}

.rpct-member-list .rpct-member {
  margin: 0 1.25rem 2rem;
}

.rpct-member-list .rpct-member:first-of-type {
  margin-left: 0;
}

.rpct-member-list .rpct-member:last-of-type {
  margin-right: 0;
}

/**
 *
 * Member single page and Partner single page: put image below the heading
 *
 */
body.single:where(.single-member, .single-partner) article .inside-article {
  display: flex;
  flex-direction: column;
}
body.single:where(.single-member, .single-partner) article .inside-article > .entry-header {
  order: -1;
}
body.single:where(.single-member, .single-partner) article .inside-article > .featured-image {
  text-align: left;
  margin-top: 2em;
  margin-bottom: 0;
  width: 100%;
}

/**
 *
 * Search results
 *
 */
body:where(.search-results) .entry-title {
  font-size: 1.5rem !important;
}
body:where(.search-results) .entry-summary {
  margin-top: 0 !important;
}
body:where(.search-results) main article .post-image {
  display: none;
}

/**
 *
 * Quick & dirty fixes
 *
 */
:where(
    body.blog,
    body.post-type-archive-member,
    body.post-type-archive-partner,
    body.post-type-archive-project,
    body.archive.tax-place,
    body.archive.tax-medium
  )
  .generate-columns-container
  > .gb-grid-column.gb-query-loop-item {
  width: 100%;
  margin-left: 30px;
}
body.blog .generate-columns-container > .gb-headline {
  margin-left: 30px;
}

/* all loops */
body.blog .rpct-card--post,
body.post-type-archive .rpct-card + .rpct-card {
  margin-top: 4rem;
}
@media (width >= 768px) {
  body.blog .rpct-card--post,
  body.post-type-archive .rpct-card + .rpct-card {
    margin-top: 0;
  }
}
