/* =========================================
   DAILY MODAL
========================================= */

.daily-modal-wrapper {
  /* Wrapper for Elementor; modal is fixed so does not affect layout */
}

.daily-modal {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.daily-modal.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

body.daily-modal-open {
  overflow: hidden;
}

.daily-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
}

.daily-modal-content {
  position: relative;
  max-width: 1200px;
  max-height: 85vh; 
  overflow-y: auto;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  padding: 40px;
}

.daily-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  padding: 0;
  border: none;
  background: transparent;
  font-size: 28px;
  line-height: 1;
  color: #666;
  cursor: pointer;
  transition: color 0.2s;
}

.daily-modal-close:hover {
  color: #000;
}

.daily-modal-title {
  margin: 0 0 16px;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
}

.daily-modal-description {
  margin: 0 0 28px;
  font-size: 16px;
  line-height: 1.6;
}

.daily-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.daily-modal-card {
  background: #f8f9fa;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.daily-modal-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.daily-modal-card-image {
  overflow: hidden;
  background: #e9ecef;
}

.daily-modal-card-image a {
  display: block;
  height: 100%;
}

.daily-modal-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.daily-modal-card-title {
  margin: 16px 16px 8px;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

.daily-modal-card-desc {
  margin: 0 16px 16px;
  font-size: 14px;
  line-height: 1.5;
  color: #555;
}

/* Responsive */
@media (max-width: 1024px) {
  .daily-modal-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .daily-modal-content {
    padding: 24px;
  }

  .daily-modal-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .daily-modal-title {
    font-size: 22px;
  }
}
