/* Style 3 - Simple Grid */
.eag-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 20px 0;
}

.eag-grid-item {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.eag-grid-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.16);
}

.eag-grid-image {
  position: relative;
  height: 260px;
  overflow: hidden;
}

.eag-grid-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.eag-grid-item:hover .eag-grid-image img {
  transform: scale(1.08);
}

.eag-grid-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.75) 100%);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-end;
  padding: 24px 20px;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.eag-grid-item:hover .eag-grid-overlay {
  opacity: 1;
}

.eag-grid-overlay h3 {
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 8px;
}

.eag-grid-count {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: 14px;
}

.eag-grid-overlay .eag-open-modal {
  padding: 10px 22px;
  font-size: 13px;
}

@media (max-width: 768px) {
  .eag-style-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

@media (max-width: 480px) {
  .eag-style-grid {
    grid-template-columns: 1fr;
  }
}