/* Luna-style event cards; scoped so sage/violet .lv-events-section timeline rules do not apply. */

.luvvite-when-where {
  --lww-accent: #d4b0a5;
  --lww-border: #eee1dd;
  --lww-img-line: #d4b0a5;
  --lww-muted: #828282;
  --lww-card-bg: #fff;
  padding-bottom: 90px;
}

.luvvite-when-where.pb-0 {
  padding-bottom: 0;
}

@media (max-width: 767px) {
  .luvvite-when-where:not(.pb-0) {
    padding-bottom: 70px;
  }
}

.luvvite-when-where.lv-style-lavender {
  --lww-accent: #b5a2bd;
  --lww-border: #efe6ee;
  --lww-img-line: #b5a2bd;
}

.luvvite-when-where.theme-velvet-purple {
  --lww-accent: #93779f;
  --lww-border: #e8dff0;
  --lww-img-line: #93779f;
}

.luvvite-when-where .lv-events-wrap .lv-event-card {
  border: 4px solid var(--lww-border);
  position: relative;
  margin: -2px;
  max-width: 100%;
}

@media (max-width: 991px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card {
    margin: 0 auto 24px;
  }
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img {
  padding: 30px;
  position: relative;
}

@media (max-width: 575px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img {
    padding: 15px;
  }
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img .title {
  position: absolute;
  left: 50%;
  top: 50%;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  width: 100%;
  text-align: center;
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img .title h2 {
  padding: 15px 20px;
  background: rgba(255, 255, 255, 0.4);
  font-weight: 400;
  font-size: 35px;
  line-height: 50px;
  text-align: center;
  display: inline-block;
  margin: 0;
}

@media (max-width: 1399px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img .title h2 {
    font-size: 30px;
  }
}

@media (max-width: 1199px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img .title h2 {
    font-size: 25px;
  }
}

@media (max-width: 991px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img .title h2 {
    font-size: 22px;
    padding: 10px 15px;
  }
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img img {
  width: 100%;
  display: block;
}

@media (max-width: 1399px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img img {
    min-height: 284px;
    -o-object-fit: cover;
    object-fit: cover;
  }
}

@media (max-width: 1199px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img img {
    min-height: 234px;
  }
}

@media (max-width: 991px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img img {
    min-height: unset;
  }
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img::before {
  position: absolute;
  left: 50%;
  bottom: -20px;
  content: "";
  background: var(--lww-img-line);
  width: 2px;
  height: 100px;
  -webkit-transform: translateX(-50%);
  transform: translateX(-50%);
}

@media (max-width: 575px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-img::before {
    height: 70px;
  }
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body {
  padding: 50px 35px;
  text-align: center;
  background: var(--lww-card-bg);
  border-top: 4px solid var(--lww-border);
}

@media (max-width: 1200px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body {
    padding: 25px 15px;
  }
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body ul li {
  font-weight: 400;
  font-size: 20px;
  line-height: 27px;
  text-align: center;
  max-width: 270px;
  margin: 0 auto 20px;
  color: var(--lww-muted);
}

@media (max-width: 575px) {
  .luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body ul li {
    font-size: 18px;
  }
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body ul li:last-child {
  margin-bottom: 0;
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body ul li a {
  font-weight: 500;
  font-size: 20px;
  line-height: 29px;
  text-align: center;
  color: var(--lww-accent);
  position: relative;
  display: inline-block;
  margin-top: 20px;
}

.luvvite-when-where .lv-events-wrap .lv-event-card .lv-event-body ul li a::before {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 1px;
  content: "";
  background: var(--lww-accent);
}

.luvvite-when-where .lv-events-wrap .col {
  padding: 0;
}

@media (max-width: 767px) {
  .luvvite-when-where .lv-events-wrap .col {
    padding: 0 15px;
  }
}

/* Middle card: details on top, photo below (matches love theme even-column pattern) */
.luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-card {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
}

.luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-img {
  -webkit-box-ordinal-group: 3;
  -ms-flex-order: 2;
  order: 2;
}

.luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-img::before {
  bottom: auto;
  top: -20px;
}

.luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-body {
  border-top: none;
  border-bottom: 4px solid var(--lww-border);
  -webkit-box-ordinal-group: 2;
  -ms-flex-order: 1;
  order: 1;
  -webkit-box-flex: 1;
  -ms-flex: 1;
  flex: 1;
}

@media (max-width: 991px) {
  .luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-card {
    display: block;
  }

  .luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-img {
    -webkit-box-ordinal-group: unset;
    -ms-flex-order: unset;
    order: unset;
  }

  .luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-img::before {
    bottom: -20px;
    top: auto;
  }

  .luvvite-when-where .lv-events-wrap .row > .col:nth-child(2) .lv-event-body {
    border-top: 4px solid var(--lww-border);
    border-bottom: none;
    -webkit-box-ordinal-group: unset;
    -ms-flex-order: unset;
    order: unset;
    -webkit-box-flex: unset;
    -ms-flex: unset;
    flex: unset;
  }
}
