/*
Theme Name: MGP Child Theme (Hello Elementor)
Template: hello-elementor
Version: 1.1
Description: Child theme for MGP Awardees layout using Hello Elementor as parent, with modal and grid styles.
Author: InterMusic SF
*/

/* === Grid Layout === */
.mgp-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  padding: 2rem 1rem;
}
@media (max-width: 1024px) {
  .mgp-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 768px) {
  .mgp-grid {
    grid-template-columns: 1fr;
  }
}

/* === Card Style === */
.mgp-card {
  cursor: pointer;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease;
}
.mgp-card:hover {
  transform: scale(1.02);
}
.mgp-photo {
  width: 100%;
  height: auto;
  display: block;
}
.mgp-summary {
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.4;
}
.mgp-summary h3 {
  margin-top: 0.25rem;
  font-size: 1.1rem;
}

/* === Modal Style === */
.mgp-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  justify-content: center;
  align-items: center;
  padding: 2rem;
}
.mgp-modal.show {
  display: flex;
}
.mgp-modal-content {
  background: #fff;
  max-width: 1000px;
  width: 90%;
  display: flex;
  flex-direction: row;
  gap: 2rem;
  padding: 2rem;
  position: relative;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-photo {
  width: 50%;
  object-fit: cover;
}
.modal-text {
  width: 50%;
  overflow-y: auto;
}
.modal-close {
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  font-size: 2rem;
  cursor: pointer;
}
@media (max-width: 768px) {
  .mgp-modal-content {
    flex-direction: column;
    padding: 1rem;
  }
  .modal-photo,
  .modal-text {
    width: 100%;
  }
}
