* {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif !important;
  font-weight: 700 !important;
}

img {
  -webkit-user-drag: none;
  -webkit-touch-callout: none;
  user-select: none;
}

#cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3000;
  background: #000;
  color: #fff;
  padding: 0.75rem 1rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
}

#cookie-consent-banner span {
  color: #fff;
}

#cookie-consent-accept {
  background: #fff;
  color: #000 !important;
  border: none;
  padding: 0.35rem 0.9rem;
  cursor: pointer;
  font-size: 0.85rem;
}

.greedy-nav a {
  font-size: 0.8rem !important;
  color: #000 !important;
}

.site-title {
  color: #000 !important;
  font-size: 2.25rem !important;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0.5rem 0;
}

body.edit-mode .page__content > * {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

.edit-box {
  outline: 1px dashed #999;
  cursor: move;
}

.edit-box--active {
  outline: 2px solid #000;
  z-index: 1000;
}

.edit-panel {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 2000;
  background: #fff;
  border: 1px solid #000;
  padding: 0.75rem;
  width: 320px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.edit-export {
  padding: 0.4rem 0.75rem;
  cursor: pointer;
}

.edit-output {
  width: 100%;
  height: 180px;
  font-family: monospace !important;
  font-size: 0.75rem;
  font-weight: 400 !important;
}

.home-hero {
  text-align: center;
  margin-bottom: 2rem;
}

.page-stack {
  text-align: center;
  margin-bottom: 2rem;
}

.page-stack img {
  max-width: 100%;
  width: 400px;
  height: auto;
  display: inline-block;
}

.home-hero img {
  max-width: 100%;
  width: 600px;
  height: auto;
  display: inline-block;
}

.portfolio-piece {
  position: relative;
  margin-bottom: 0;
}

.portfolio-piece__image-link {
  display: block;
  line-height: 0;
}

.portfolio-piece__image {
  width: 100%;
  max-height: 90vh;
  height: auto;
  object-fit: contain;
  display: block;
  background: #fff;
}

.portfolio-piece__image--la-choza-de-azucar {
  max-height: 95vh;
}

.portfolio-piece__image--like-what-you-see {
  max-height: 95vh;
}

.portfolio-piece__overlay {
  position: absolute;
  left: 0;
  bottom: 0;
  max-width: 90%;
  padding: 1.5rem 2rem;
  background: rgba(255, 255, 255, 0.85);
  pointer-events: none;
}

.portfolio-piece__overlay > * {
  pointer-events: auto;
}

.portfolio-piece__title {
  margin: 0 0 0.5rem;
}

.portfolio-piece__note {
  margin: 0 0 0.5rem;
  font-style: italic;
}

.portfolio-piece__meta {
  margin: 0 0 1rem;
  line-height: 1.5;
}

.portfolio-piece__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.7);
  color: #000 !important;
  font-size: 2rem;
  line-height: 1;
  text-decoration: none;
}

.portfolio-piece__arrow:hover {
  background: rgba(255, 255, 255, 0.95);
}

.portfolio-piece__arrow--prev {
  left: 1rem;
}

.portfolio-piece__arrow--next {
  right: 1rem;
}

@media (max-width: 1366px) {
  .portfolio-piece__overlay {
    position: static;
    max-width: 100%;
    width: 100%;
    padding: 1rem;
    background: #fff;
  }

  .portfolio-piece__arrow {
    width: 2.25rem;
    height: 2.25rem;
    font-size: 1.5rem;
  }
}

.paintings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
}

.paintings-grid__item {
  position: relative;
  display: block;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  text-decoration: none;
  background: #fff;
}

.paintings-grid__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.paintings-grid__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1rem;
  opacity: 0;
  transition: opacity 0.1s ease;
}

.paintings-grid__item:hover .paintings-grid__overlay,
.paintings-grid__item:focus .paintings-grid__overlay {
  opacity: 1;
}

.paintings-grid__title {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 0.5rem;
}

.paintings-grid__note {
  color: #fff;
  font-style: italic;
  font-size: 0.85rem;
  margin-bottom: 0.5rem;
}

.paintings-grid__desc {
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
}

.paintings-index__empty {
  color: #767676;
}

.paintings-years {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  text-align: center;
  min-height: 60vh;
}

.paintings-years__link {
  font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
  font-weight: 700;
  font-size: 2rem;
  text-decoration: none;
  color: #000 !important;
}

.paintings-years__link:hover {
  text-decoration: underline;
}

.pagination--pager {
  color: #000 !important;
}
