:root{
  --event-bg: var(--body-bg-lighter);
  --event-accent: var(--brand-accent);
  --event-muted: var(--brand-muted);
  --event-radius: 10px;
  --event-gap: 12px;
  --event-shadow: 0 8px 20px rgba(20,30,40,0.08);
  --event-max-width: 1200px;
  --event-photo-height: 180px;
  --event-photo-mobile-height: 160px;
}

.wedding-events-module {
  color: var(--text-color);
  max-width: var(--event-max-width);
  margin: 0 auto;
}

.wedding-events-module__outer {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  align-items: start;
  padding: 6px 0;
}

.wedding-events-module__card{
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  background: linear-gradient(180deg, rgba(106,160,219,0.04), rgba(106,160,219,0.01));
  border-radius: var(--event-radius);
  box-shadow: var(--event-shadow);
  overflow: hidden;
  border: 1px solid rgba(16,24,40,0.04);
  width: 100%;
  box-sizing: border-box;
}

.wedding-events-module__photo{
  width: 100%;
  height: var(--event-photo-height);
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid rgba(16,24,40,0.03);
  flex: 0 0 auto;
}

.wedding-events-module__edit{
  position: absolute;
  top:0;
  left: 0;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: 0.875rem;
  z-index: 3;
  text-decoration: none;
}

.wedding-events-module__content{
  padding: 16px;
  padding-left: 26px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 1;
  min-width: 0;
}

.wedding-events-module__event-title {
    background-color: var(--brand-primary);
}

.wedding-events-module__event-title h3 {
    margin: 0;
    text-align: center;
    padding: 5px 0;
    font-size: 38px;
    color: var(--body-bg);
}

.wedding-events-module__info{
  display:flex;
  flex-direction: column;
  gap: var(--event-gap);
  margin-top: 4px;
}
.wedding-events-module__row{
  display:flex;
  gap: 12px;
  align-items: center;
  color: var(--event-muted);
  font-size: 1.5rem;
  min-width: 0;
}
.wedding-events-module__icon{
  width:20px;
  height:20px;
  min-width:20px;
  color: var(--event-accent);
  opacity: 0.95;
}

/* Meta text */
.wedding-events-module__meta{ display:block; min-width:0; }
.wedding-events-module__date,
.wedding-events-module__time { font-weight:600; color:#0f172a; display:block; }
.wedding-events-module__address{ font-style: normal; line-height:1.3; color:var(--event-muted); margin:0; }

.wedding-events-module__button{
  display: inline-block;
  margin: 8px auto 0;
  text-decoration:none;
  background:var(--event-accent);
  color:white;
  padding:8px 12px;
  border-radius:8px;
  font-weight:600;
  font-size:0.9rem;
  width: fit-content;
  box-shadow: 0 4px 10px rgba(106,160,219,0.18);
}

.wedding-events-module__header,
.wedding-events-module__footer{
  margin: 8px 0;
  color: var(--event-muted);
}

/* Responsive: reduce photo height on small screens */
@media (max-width: 680px){
  .wedding-events-module__photo{ height: var(--event-photo-mobile-height); }
  .wedding-events-module__content{ padding: 14px; padding-left: calc(14px + var(--event-stripe-width)); }
}