/*
Theme Name: Hello Elementor Child
Theme URI: https://github.com/elementor/hello-theme/
Description: Hello Elementor Child is a child theme of Hello Elementor, created by Elementor team
Author: Elementor Team
Author URI: https://elementor.com/
Template: hello-elementor
Version: 1.0.1
Text Domain: hello-elementor-child
License: GNU General Public License v3 or later.
License URI: https://www.gnu.org/licenses/gpl-3.0.html
Tags: flexible-header, custom-colors, custom-menu, custom-logo, editor-style, featured-images, rtl-language-support, threaded-comments, translation-ready
*/

:root {
  --primary-color: #872127;
  --background-color: #f2efe9;
  --text-hover-color: black;
  --font-body: 'Rubik', -apple-system, BlinkMacSystemFont, Segoe UI,
    Helvetica Neue, Arial, sans-serif;
  --font-title: 'Berlingske Serif Extra Condensed', 'Times New Roman', Times,
    serif;
}

html,
body {
  min-height: 100vh;
  background: var(--background-color);
  font-family: var(--font-body);
}
body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
body main + div,
.elementor-location-footer {
  margin-top: auto;
}

p:only-child {
  margin-bottom: 0;
}

.galerias img {
  height: 160px;
  width: auto;
}

.raf-galeries a {
  display: inline-block;
  position: relative;
}
.raf-galeries a:after {
  content: '';
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTc2IiBoZWlnaHQ9IjIyIiB2aWV3Qm94PSIwIDAgMTc2IDIyIiBmaWxsPSJub25lIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciPgo8dGV4dCBmaWxsPSIjNjA2RTZCIiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0id2hpdGUtc3BhY2U6IHByZSIgZm9udC1mYW1pbHk9IlJ1YmlrIiBmb250LXNpemU9IjE4IiBmb250LXdlaWdodD0iYm9sZCIgbGV0dGVyLXNwYWNpbmc9IjBlbSI+PHRzcGFuIHg9IjAiIHk9IjE3LjY2NSI+QW5hciBhIGdhbGVyaWE8L3RzcGFuPjwvdGV4dD4KPHBhdGggZD0iTTE3NS41IDEyTDE2OCA3LjY2OTg3VjE2LjMzMDFMMTc1LjUgMTJaTTEzMCAxMi43NUgxNjguNzVWMTEuMjVIMTMwVjEyLjc1WiIgZmlsbD0iIzYwNkU2QiIvPgo8dGV4dCBmaWxsPSIjRjJFRkU5IiB4bWw6c3BhY2U9InByZXNlcnZlIiBzdHlsZT0id2hpdGUtc3BhY2U6IHByZSIgZm9udC1mYW1pbHk9IlJ1YmlrIiBmb250LXNpemU9IjE4IiBmb250LXdlaWdodD0iYm9sZCIgbGV0dGVyLXNwYWNpbmc9IjBlbSI+PHRzcGFuIHg9IjAiIHk9IjE2LjY2NSI+QW5hciBhIGdhbGVyaWE8L3RzcGFuPjwvdGV4dD4KPHBhdGggZD0iTTE3NS41IDExTDE2OCA2LjY2OTg3VjE1LjMzMDFMMTc1LjUgMTFaTTEzMCAxMS43NUgxNjguNzVWMTAuMjVIMTMwVjExLjc1WiIgZmlsbD0iI0YyRUZFOSIvPgo8L3N2Zz4K');
  width: 176px;
  height: 21px;
  position: absolute;
  top: 50%;
  left: 50%;
  opacity: 0;
  transform: translate(-50%, 10%);
  transition: transform 0.5s ease-out, opacity 0.3s ease-out;
}
.raf-galeries a:hover:after,
.raf-galeries a:focus:after {
  opacity: 1;
  transform: translate(-50%, -50%);
}

select {
  appearance: none;
  background-color: transparent;
  border: none;
  padding: 0.15em 2em 0.15em 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
  z-index: 1;
  outline: none;
  color: var(--primary-color);
  /* text-transform: uppercase; */
  font-size: 0.875rem;
}
select::-ms-expand {
  display: none;
}

.select {
  display: grid;
  grid-template-areas: 'select';
  align-items: center;
  position: relative;
  max-width: 30ch;
  border-bottom: 1px solid var(--primary-color);
  padding: 0;
  cursor: pointer;
  line-height: 1.5;
  text-align: right;
}
.select select,
.select::after {
  grid-area: select;
}
.select:not(.select--multiple)::after {
  content: '';
  justify-self: end;
  width: 0.8em;
  height: 0.5em;
  background-color: var(--primary-color);
  clip-path: polygon(100% 0%, 0 0%, 50% 100%);
}

select:focus + .focus {
  position: absolute;
  top: -1px;
  left: -1px;
  right: -1px;
  bottom: -1px;
  border: 2px solid var(--primary-color);
  border-radius: inherit;
}

select[multiple] {
  padding-right: 0;
  height: 6rem;
}
select[multiple] option {
  white-space: normal;
  outline-color: var(--primary-color);
}

.select--disabled {
  cursor: not-allowed;
  background-color: #eee;
  background-image: linear-gradient(to top, #ddd, #eee 33%);
}

.llista-per-anys {
  margin: 1.5rem auto 2.5rem auto;
}
.llista-per-anys .page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  margin-bottom: 2rem;
}
.llista-per-anys .page-header .breadcrumbs {
  letter-spacing: 0.15em;
  font-size: 0.875rem;
  text-transform: uppercase;
  margin-top: 0.5rem;
}
.llista-per-anys .page-header .filter {
  margin-top: 0.5rem;
  margin-left: auto;
}
.llista-per-anys .page-header .filter form {
  display: flex;
  flex-flow: wrap;
  justify-content: flex-end;
  gap: 1rem;
}
.llista-per-anys .page-content {
  width: 100%;
  max-width: 790px;
  margin: 2rem auto;
  font-size: 1.15rem;
}
.llista-per-anys .page-content h2.year {
  font-size: 2.5rem;
  font-family: var(--font-title);
  display: inline-block;
  border-bottom: solid 6px var(--primary-color);
}
.llista-per-anys .page-content article {
  margin-bottom: 2rem;
}
.llista-per-anys .page-content article p:not(:first-child) {
  margin-top: 0.75rem;
}
.llista-per-anys .page-content article p.enllac {
  margin-top: 0.5rem;
}
.llista-per-anys .page-content article p.enllac a {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
  transition: color 0.3s ease-out;
}
.llista-per-anys .page-content article p.enllac a:hover,
.llista-per-anys .page-content article p.enllac a:focus {
  color: var(--text-hover-color);
}
.llista-per-anys .page-content article p.enllac a:after {
  content: '';
  display: inline-block;
  background-image: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDkiIGhlaWdodD0iMTAiIHZpZXdCb3g9IjAgMCA0OSAxMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQ5IDVMNDEuNSAwLjY2OTg3M1Y5LjMzMDEzTDQ5IDVaTTAuNDg3NzkzIDUuNzVINDIuMjVWNC4yNUgwLjQ4Nzc5M1Y1Ljc1WiIgZmlsbD0iIzg3MjEyNyIvPgo8L3N2Zz4K');
  width: 49px;
  height: 1em;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  vertical-align: middle;
  transition: filter 0.3s ease-out, transform 0.5s ease-out;
  margin-left: 1rem;
}
.llista-per-anys .page-content article p.enllac a:hover:after,
.llista-per-anys .page-content article p.enllac a:focus:after {
  transform: translateX(0.5rem);
  filter: grayscale(100%);
}

.llista-per-anys.videos .page-content {
  max-width: 560px;
}
.youtube-embed {
  max-width: 100%;
  aspect-ratio: 16 / 9;
  margin: 0.25rem auto 1rem auto;
  height: auto;
  display: block;
}
.llista-per-anys.videos .page-content audio {
  width: 100%;
  border-radius: 2rem;
}
.llista-per-anys.videos .page-content audio::-webkit-media-controls-panel {
  background-color: white;
}
.llista-per-anys.videos
  .page-content
  audio::-webkit-media-controls-play-button {
  color: var(--primary-color);
}
.llista-per-anys.videos
  .page-content
  audio::-webkit-media-controls-play-button:hover {
  color: var(--text-hover-color);
}

.data-publicacio {
  font-family: var(--font-title);
  font-size: 1.5em;
  line-height: 1.25;
  border-left: solid 1px var(--primary-color);
  padding: 0 0.5em;
  margin-top: 0.5em;
}

nav.pagination {
  text-align: center;
  margin: 2rem 0;
  font-family: var(--font-body);
}
nav.pagination > * {
  margin: 0 0.5em;
  color: var(--primary-color);
}
nav.pagination > span {
  font-weight: bold;
}
nav.pagination a {
  transition: color 0.5s ease-out;
}
nav.pagination a:hover,
nav.pagination a:focus {
  color: var(--text-hover-color);
}
nav.pagination.first:before {
  content: '<';
  display: inline-block;
  font-weight: bold;
  margin: 0 0.5em;
  color: var(--primary-color);
  opacity: 0.2;
}
nav.pagination.last:after {
  content: '>';
  display: inline-block;
  font-weight: bold;
  margin: 0 0.5em;
  color: var(--primary-color);
  opacity: 0.2;
}

.galeria-wrapper {
  overflow: hidden;
  max-width: 100%;
}
.galeria.justified-gallery {
  margin: 0 -15px;
  width: calc(100% + 30px);
}
.galeria:not(.justified-gallery) {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}
.galeria:not(.justified-gallery) img {
  height: 189px;
  width: auto;
}

li#wp-admin-bar-elementor_edit_page,
li#wp-admin-bar-customize,
li#wp-admin-bar-elementor_notes,
li#wp-admin-bar-elementor_inspector {
  display: none;
}

#content .pagination {
	max-width: 790px;
	margin-left: auto;
	margin-right: auto;
}

#content.llista-per-anys.videos .pagination {
	max-width: 560px;
}