@font-face {
  font-family: "MartaPastoral";
  src: url("../fonts/MartaPastoral-Regular.eot?#iefix");
  src: url("../fonts/MartaPastoral-Regular.eot?#iefix") format("eot"),
    url("../fonts/MartaPastoral-Regular.woff2") format("woff2"),
    url("../fonts/MartaPastoral-Regular.woff") format("woff"),
    url("../fonts/MartaPastoral-Regular.ttf") format("truetype");
}

*,
*:before,
*:after {
  box-sizing: inherit;
  letter-spacing: 0.018em;
}

html,
body {
  box-sizing: border-box;
  padding: 0;
  margin: 0;
  width: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-family: "MartaPastoral";
  letter-spacing: 0.018em;
}

@media (min-width: 1600px) {
  html,
  body {
    font-size: 18px;
  }
}

input::placeholder,
textarea::placeholder {
  letter-spacing: 0.018em;
}
input:invalid {
  box-shadow: none;
  color: red;
}
input:focus:invalid {
  color: black;
}
.honeypot {
  position: absolute;
  left: -9999px;
}
p,
h1,
h2,
h3,
h4,
h5 {
  margin: 1.4em 0 0.5em 0;
  font-weight: normal;
}
a {
  color: black;
  border-bottom: 1px solid black;
  text-decoration: none;
  cursor: pointer;
}
.underline {
  border-bottom: 1px solid black;
}
.no-underline {
  border-bottom-color: transparent;
}
.cursor-pointer {
  cursor: pointer;
}
.hide {
  display: none;
}
a.active {
  color: #a6a6a6;
}
a.hover-black:hover {
  color: black !important;
}
a:hover {
  border-bottom: 1px solid transparent;
}
a:focus {
  outline: 0;
}

.red {
  color: #930f12;
}

a.red:hover {
  color: #a6a6a6;
}

textarea:focus,
input:focus {
  outline: none;
}
img[data-lazyload] {
  filter: blur(20px);
}
img[data-lazyload][data-loaded="true"] {
  filter: none;
}
.special-a,
code {
  font-family: "MartaPastoral" !important;
  display: inline-block !important;
  -moz-font-feature-settings: "ss02";
  -webkit-font-feature-settings: "ss02";
  font-feature-settings: "ss02";
}
.xs-text {
  font-size: 0.6875rem;
}
.small-text {
  font-size: 0.94rem;
  line-height: 1.18rem;
}
.large-text,
.title-text {
  font-size: 1.875rem;
  line-height: 1.25em;
}

.grid-12-col {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 32px;
  row-gap: 1rem;
  grid-auto-flow: row;
  width: 100%;
  max-width: 1620px;
  margin: auto;
}

.grid-8-col {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 32px;
  row-gap: 1rem;
}

@media screen and (max-width: 760px) {
  .grid-8-col.single-col {
    grid-template-columns: repeat(4, 1fr);
  }
}

@media screen and (min-width: 2000px) {
  .grid-12-col {
    max-width: 1600px;
  }
}

.wrap {
  grid-column: 3 / span 8;
  /* max-width: 1440px; */
  /* margin: 0 auto; */
  /* width: 100%; */
  /* padding: 0 16.66%; */
}

.wrap.aside-left {
  grid-column: 1 / span 2;
  padding-left: 16px;
}

.wrap.no-start {
  grid-column: span 8;
}

.wrap.justify-end {
  display: flex;
  justify-content: end;
}

@media screen and (max-width: 740px) {
  .wrap.aside-left,
  .wrap.no-start {
    grid-column: 1 / span 12;
  }
}

.wrap.col-4 {
  grid-column: span 4;
}

.wrap.col-3 {
  grid-column: span 3;
}

.wrap.col-2 {
  grid-column: span 2;
}

section.full {
  grid-column: span 12;
}

.grid {
  display: grid;
  grid-template: repeat(4, 1fr);
  gap: 0px;
  grid-auto-flow: column;
  width: 100%;
}

.artist-list h1,
h2,
h3 {
  margin: 0;
  margin-bottom: 0.75em;
}

.artist-list a {
  border-color: transparent;
}

.artist-list a:hover {
  border-color: currentColor;
}

.artist-index {
  -webkit-column-count: 4;
  -moz-column-count: 4;
  -o-column-count: 4;
  column-count: 4;
  column-gap: 32px;
}

@media (max-width: 1200px) {
  .artist-index {
    -webkit-column-count: 2;
    -moz-column-count: 2;
    -o-column-count: 2;
    column-count: 2;
  }
}

#available-page .product-module h1 {
  padding-top: 7rem;
}

@media (max-width: 740px) {
  .wrap {
    padding: 0;
    grid-column: span 12;
    max-width: 550px;
  }
  #available-page .product-module h1 {
    padding-top: 70px;
    margin-top: 0;
  }
}

.wrap.post-content {
  margin-bottom: 80px;
}
.box {
  padding: 0 16px;
}

.left-floater {
  padding-left: 16px;
}

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

/* .marta-home .wrap.latest.exhibition[data-count="2"] {
  flex-wrap: nowrap;
} */

.padding {
  padding-left: 16px;
  padding-right: 16px;
}

/* general + home styles */
.marta-home,
.marta-exhibition {
  padding-top: 80px;
  margin-top: 50vh;
}
.marta-home img {
  width: 100%;
}
.marta-home .latest-img {
  width: 100%;
}
.marta-home .latest-post {
  position: relative;
  padding-top: 80px;
  padding-bottom: 80px;
}
.marta-home .latest-post .date {
  position: relative;
  display: block;
  top: auto;
  left: auto;
  margin-bottom: 8px;
}
.marta-home .latest-post p {
  margin-top: 0;
}
.marta-home .latest-post .image {
  max-width: 40%;
  width: 100%;
}
.mobile-latest-text {
  display: none;
}
.desktop-latest-text {
  display: block;
}

a.latest-exhibition-link {
  border-bottom: 0;
  flex-basis: 100%;
}

a.latest-exhibition-link.half {
  flex-basis: 50%;
}

/* Exhibition pages */
.exhibition-index {
  margin-bottom: 10rem !important;
}

.exhibition-year.wrap {
  margin-bottom: 80px;
}

.exhibition-index-item {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0 !important;
}

.exhibition-index .exhibition-year_label {
  margin-bottom: 4rem;
}

.exhibition-index .exhibition-year_list {
  row-gap: 4rem;
}

@media screen and (max-width: 760px) {
  .exhibition-index .exhibition-year_label {
    margin-bottom: 2rem;
  }
  .exhibition-index .exhibition-year_list {
    row-gap: 2rem;
  }
}

.exhibition-index-item img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

#works-only {
  display: none;
}
#works-only:checked ~ .items-container .item:not(.product-module),
#works-only:checked ~ .image-module {
  display: none;
}

#works-only-toggle {
  line-height: 1em;
  z-index: 20;
  position: relative;
  padding-bottom: 2em;
}

@media screen and (max-width: 760px) {
  #works-only-toggle {
    text-align: center;
  }
}

#works-only-toggle span {
  border-bottom: 1px solid transparent;
  pointer-events: none;
}

#works-only-toggle #exhibition-toggle {
  border-color: black;
  pointer-events: auto;
}

#works-toggle-separator {
  margin: 0 0.15em;
}

body[data-works-only="true"] #works-only-toggle #exhibition-toggle {
  border-color: transparent;
  pointer-events: none;
}
body[data-works-only="true"] #works-only-toggle #works-toggle {
  border-color: black;
  pointer-events: auto;
}

.works-only__title {
  display: none;
}
#works-only:checked ~ .items-container .works-only__title,
#works-only:checked ~ .items-container #works-only-toggle {
  display: block !important;
}

/* Index pages */
.marta-exhibition.index-page {
  margin-top: 10rem;
  padding: 0;
}

.index-list {
  margin-bottom: 10rem;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}

@media (max-width: 740px) {
  .index-list.wrap {
    padding-bottom: 5rem;
  }
}

.index-list .box {
  grid-column: span 1;
}

.index-list .box:not(:nth-of-type(4n + 1)) {
  padding-left: 0;
}

@media screen and (max-width: 768px) {
  .index-list .box {
    grid-column: span 2;
  }
  .index-list .box:not(:nth-of-type(4n + 1)) {
    padding-left: 16px;
  }
}

.index-list p {
  margin-top: 0.25em;
}

.index-list a {
  border-bottom: 0;
}

/* Info page styles */

.marta-exhibition.info {
  padding-top: 16px;
}
.marta-exhibition.enquire {
  margin-top: 10vh;
}
.info .text-module.title {
  width: 16.66vw;
  text-align: left !important;
}

.info .title p {
  font-size: 0.94rem;
  line-height: 1.18rem;
  margin-top: 0;
}

.info .aside-left .box {
  padding-left: 0;
}

.info .text-module p:first-of-type {
  margin-top: 0;
}

/* Mezzanine pages */

#mezzanine-index label {
  display: none;
}

#mezzanine-index[data-limit="1"] label {
  display: block;
}

/* Hide items after 8 */
#mezzanine-index .box:nth-of-type(8) ~ .box:not(label) {
  display: none;
}

@media screen and (max-width: 768px) {
  #mezzanine-index[data-limit-mobile="1"] label {
    display: block;
  }
  /* Hide items after 4 */
  #mezzanine-index .box:nth-of-type(4) ~ .box:not(label) {
    display: none;
  }
}

/* Show all when checked */
#mezzanine-index-all:checked
  ~ #mezzanine-index
  .box:nth-of-type(4)
  ~ .box:not(label) {
  display: block;
}

/* Hide the show all button */
#mezzanine-index-all:checked ~ #mezzanine-index label {
  display: none;
}

@media (max-width: 1024px) {
  .wrap {
    grid-column: span 12;
  }
}

@media (min-width: 1200px) {
  .marta-home .latest-post .date {
    position: relative;
    line-height: 1.4em;
    font-size: 0.94rem;
  }
}

@media (min-width: 741px) {
  .left-floater {
    position: absolute;
    left: 0;
    text-align: right;
  }
}

@media (max-width: 740px) {
  input::placeholder,
  textarea::placeholder {
    font-size: 12px;
  }
  .wrap {
    padding: 0;
    width: 100%;
    margin: auto;
  }
  .wrap.flex {
    flex-direction: column;
  }
  .items-container {
    padding-bottom: 40px;
  }
  .marta-home,
  .marta-exhibition {
    padding-top: 40px;
    margin-top: 260px;
  }
  .mobile-latest-text {
    display: block;
  }
  .desktop-latest-text {
    display: none;
  }
  .latest-post .box {
    padding: 0 50px;
  }
  .small-text {
    font-size: 0.75rem;
    line-height: 1.5em;
  }
  .large-text {
    font-size: 0.94rem;
    line-height: 1.3em;
  }
  .title-text {
    font-size: 0.94rem;
    line-height: 1.3em;
  }
  .marta-home .latest-post .image {
    margin-top: 25px;
    max-width: 100%;
  }
  .info .text-module.title {
    margin-left: 0;
    margin-bottom: -1em;
    width: auto;
    transform: translateX(0);
  }
  .info .text-module.title p {
    font-size: 0.75rem;
  }
}
.three-dots-button span,
#page-title {
  cursor: pointer;
}
