
/* Style for Linked Image Boxes Widget */
.custom-widget {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 40px;
}

.image-display {
  flex: 1 1 60%;
  text-align: center;
}

.image-display img {
  width: 100%;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  transition: opacity 0.6s ease;
  cursor: zoom-in;
}

.image-display img.fade-out {
  opacity: 0;
}

.box-list {
  flex: 1 1 30%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.box {
  background: #fff;
  border-radius: 12px;
  padding: 20px 24px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s, transform 0.2s;
  color: #333;
}

.box:hover {
  background: #f0f0f0;
  transform: translateY(-2px);
}

.box-title {
  font-size: 1.1em;
  font-weight: bold;
  margin-bottom: 5px;
}

.box-description {
  font-size: 0.95em;
  color: #666;
  line-height: 1.4;
}

.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal-content {
  max-width: 90%;
  max-height: 90%;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  animation: fadeIn 0.3s ease;
}

.image-modal-overlay {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  cursor: zoom-out;
}

@keyframes fadeIn {
  from { opacity: 0; transform: scale(0.9); }
  to { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .custom-widget {
    flex-direction: column;
    text-align: center;
  }

  .box-list {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .box {
    width: 100%;
    max-width: 280px;
  }
}
