
/* Grid layout */
#vn-agency-container {
  padding: 1rem;
  text-align: center;
}

.vn-agency-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}

.vn-profile-card {
  width: 160px;
  height: 160px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #ddd;
  border-radius: 8px;
  transition: transform 0.2s;
}

.vn-profile-card:hover {
  transform: scale(1.03);
}

.vn-profile-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Modal styles */
.vn-agency-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 9999;
  padding: 0;
  background: transparent; /* No dark overlay */
}

.vn-agency-modal-content {
  width: 600px;
  height: 80vh;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 0 16px rgba(0, 0, 0, 0.3); /* Optional: subtle drop shadow */
}


.vn-agency-modal.hidden {
  display: none;
}


/* Image area inside modal */
.vn-agency-image-slider {
  flex: 4;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #000;
  overflow: hidden;
}

.vn-agency-images img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
}

/* Summary text block */
.vn-agency-summary {
  flex: 1;
  padding: 1rem;
  background: #fafafa;
  font-size: 16px;
  line-height: 1.4;
  overflow-y: auto;
}

/* Close button */
.vn-agency-close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 32px;       /* Slightly larger */
    font-weight: bold;     /* Make it thicker */
    color: #fff;           /* High contrast */
    cursor: pointer;
    z-index: 10;
    text-shadow: 0 0 4px rgba(0, 0, 0, 0.7); /* Optional glow for contrast */
  }
  

/* Arrows for image nav */
.vn-agency-arrow {
  position: absolute;
  top: 50%;
  padding: 12px;
  background-color: rgba(255, 255, 255, 0.5);
  border: none;
  font-size: 24px;
  cursor: pointer;
  transform: translateY(-50%);
  z-index: 5;
}

.vn-agency-arrow.left {
  left: 0;
}

.vn-agency-arrow.right {
  right: 0;
}

/* Pagination */
.vn-agency-pagination {
  margin-top: 1.5rem;
}

.vn-page-link {
  display: inline-block;
  margin: 0 6px;
  padding: 6px 12px;
  border: 1px solid #ccc;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
  background: #fff;
}

.vn-page-link:hover {
  background-color: #eee;
}

.vn-page-link.current-page {
  background-color: #0073aa;
  color: #fff;
  border-color: #0073aa;
  pointer-events: none;
}

.vn-agency-images {
  position: relative;
  text-align: center;
}

.vn-agency-dots {
  display: flex;
  justify-content: center;
  margin-top: 10px;
}

.vn-dot {
  width: 10px;
  height: 10px;
  margin: 0 5px;
  border-radius: 50%;
  background-color: #ccc;
  display: inline-block;
  transition: background-color 0.3s;
  cursor: pointer;
}

.vn-dot.active {
  background-color: #0073aa;
}

.vn-agency-images img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  transition: opacity 0.3s ease;
  display: block;
  margin: 0 auto;
}

/* Mobile layout */
@media (max-width: 600px) {


  .vn-agency-summary {
    font-size: 15px;
  }
}

@media (max-width: 600px) {
  .vn-agency-modal-content {
    width: 90vw;
    height: 85vh;
    border-radius: 10px;
  }
}

.vn-agency-edit-link {
  display: block;
  margin-top: 10px;
  color: #0073aa;
  font-weight: bold;
  text-decoration: none;
}

.vn-agency-edit-link:hover {
  text-decoration: underline;
}
