.feed-rows .views-row {
  margin-bottom: 16px;
}

@media (min-width: 640px) {
  .feed-rows .views-row {
    margin-bottom: 24px;
  }
}

.image-viewer-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: #000;
  opacity: 0;
  transition: opacity 0.2s ease;
  display: flex;
  flex-direction: column;
}

.image-viewer-header {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 10;
  display: flex;
  justify-content: flex-end;
  padding: 12px 16px;
  padding-top: env(safe-area-inset-top, 12px);
}

.image-viewer-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  border: none;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.image-viewer-close:active {
  background: rgba(255, 255, 255, 0.3);
}

.image-viewer-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

.image-viewer-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transform-origin: center center;
  will-change: transform;
}

.image-viewer-hint {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 20px;
  transition: opacity 0.5s ease;
  pointer-events: none;
}
