/* Galeria de projetos */
.gallery {
  background: var(--cream, #f8f6f0);
}
.gallery-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.gallery-filters button {
  font: inherit;
  font-size: 12px;
  border: 1px solid var(--sand, #c9bda9);
  background: transparent;
  color: var(--ink, #342d27);
  border-radius: 24px;
  padding: 12px 20px;
  cursor: pointer;
}
.gallery-filters button[aria-pressed='true'] {
  background: var(--wood, #755d48);
  color: white;
  border-color: var(--wood, #755d48);
}
.gallery-count {
  font-size: 12px;
  color: #655c53;
  margin-bottom: 24px;
}
.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px 24px;
}
.gallery-card[hidden] {
  display: none;
}
.gallery-card {
  margin: 0;
  min-width: 0;
}
.gallery-open {
  display: block;
  position: relative;
  width: 100%;
  border: 0;
  padding: 0;
  background: #e4dfd6;
  cursor: pointer;
  overflow: hidden;
}
.gallery-open img {
  width: 100%;
  height: auto;
  aspect-ratio: 4/3;
  object-fit: contain;
  display: block;
  transition: transform 0.35s;
}
.gallery-open:hover img {
  transform: scale(1.025);
}
.gallery-zoom {
  position: absolute;
  bottom: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(35, 28, 24, 0.86);
  color: #fff;
  font-size: 11px;
  padding: 10px 12px;
}
.gallery-card figcaption {
  padding-top: 16px;
}
.gallery-card figcaption > span {
  font-size: 10px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: #655c53;
}
.gallery-card h3 {
  font-size: 22px;
  margin-top: 8px;
  line-height: 1.3;
}
.gallery-note {
  font-size: 12px;
  color: #655c53;
  max-width: 680px;
  margin: 32px 0 20px;
}
.gallery-dialog {
  width: min(1200px, 96vw);
  max-width: 96vw;
  border: 0;
  padding: 18px;
  background: #f8f6f0;
  color: #342d27;
  max-height: 92dvh;
  overflow: auto;
  margin: auto;
}
.gallery-dialog::backdrop {
  background: rgba(18, 15, 12, 0.9);
}
.gallery-dialog-bar,
.gallery-dialog-controls {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}
.gallery-dialog-title {
  font-size: 13px;
}
.gallery-dialog button {
  border: 1px solid #c9bda9;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 12px;
  padding: 12px;
  min-height: 44px;
  cursor: pointer;
}
.gallery-full {
  display: block;
  width: 100%;
  height: min(65dvh, 800px);
  object-fit: contain;
  margin: 16px 0;
}
.gallery-current {
  font-size: 12px;
}
.gallery-close span {
  font-size: 22px;
  margin-left: 8px;
}
.gallery :focus-visible,
.gallery-dialog :focus-visible {
  outline: 3px solid #755d48;
  outline-offset: 4px;
}
.room figure img {
  object-fit: cover;
  object-position: center;
  background: #e4dfd6;
}
.gallery-dialog-open {
  overflow: hidden;
}
@media (min-width: 640px) {
  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (min-width: 1100px) {
  .gallery-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}
@media (prefers-reduced-motion: reduce) {
  .gallery-open img {
    transition: none;
  }
}
