.property-gallery-viewer {
  width: min(96vw, 1120px);
  max-height: 95dvh;
  padding: 12px;
  border: 0;
  border-radius: 12px;
  background: #29241f;
  color: #fffaf2;
}
.property-gallery-viewer::backdrop { background: #17130def; }
.property-gallery-viewer img {
  display: block;
  width: 100%;
  height: min(68dvh, 680px);
  object-fit: contain;
  touch-action: pan-y pinch-zoom;
}
.property-gallery-controls {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.property-gallery-controls button {
  min-height: 44px;
  min-width: 44px;
  padding: 8px 12px;
  border: 1px solid #eadbc7;
  border-radius: 6px;
  background: #fffaf2;
  color: #29241f;
}
.property-gallery-controls button:focus-visible {
  outline: 2px solid #f8c675;
  outline-offset: 3px;
}
.property-gallery-controls[hidden] { display: none; }
.property-gallery-viewer [data-gallery-error] { margin: 12px 0; }
.elementor-gallery__container.property-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.property-gallery-grid > .e-gallery-item {
  position: relative;
  display: block;
  width: auto;
  overflow: hidden;
  border-radius: 8px;
  aspect-ratio: 4 / 3;
}
.property-gallery-grid .property-gallery-thumbnail {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
@media (max-width: 767px) {
  .elementor-gallery__container.property-gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
