.mme-events-archive-page,
.mme-single-event,
.mme-events-grid,
.mme-event-card,
.mme-event-card * {
    box-sizing: border-box;
}

.mme-events-archive-inner {
    max-width: 1600px;
    margin: 0 auto;
    padding: 40px 24px 80px;
}

.mme-events-grid {
    display: grid;
    gap: 48px 32px;
}

.mme-events-grid.columns-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.mme-events-grid.columns-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mme-event-card__link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.mme-event-card__image {
    aspect-ratio: 4 / 5;
    overflow: hidden;
    margin-bottom: 28px;
}

.mme-event-card__image img,
.mme-carousel__slide img,
.mme-single-event__author-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.mme-event-card__image-placeholder {
    width: 100%;
    height: 100%;
    background: #efebe7;
}

.mme-event-card__title,
.mme-single-event__title {
    font-size: clamp(2rem, 4vw, 4rem);
    line-height: 0.95;
    letter-spacing: -0.03em;
    margin: 0 0 14px;
    color: #3b2724;
}

.mme-event-card__date,
.mme-event-card__meta,
.mme-single-event__date,
.mme-single-event__meta {
    font-size: 1rem;
    line-height: 1.6;
    color: #6a5a56;
}

.mme-event-card__date {
    margin-bottom: 6px;
}

.mme-event-card__link:hover .mme-event-card__title {
    opacity: .8;
}

.mme-single-event__hero {
    position: relative;
    min-height: 88vh;
    display: flex;
    align-items: flex-end;
    background-size: cover;
    background-position: center;
    padding: 120px 24px 48px;
}

.mme-single-event__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.1));
}

.mme-single-event__hero-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
    color: #fff;
}

.mme-single-event__title,
.mme-single-event__date,
.mme-single-event__meta {
    color: #fff;
}

.mme-single-event__content-wrap {
    max-width: 900px;
    margin: 0 auto;
    padding: 56px 24px 80px;
}

.mme-wysiwyg,
.mme-single-event__quote,
.mme-single-event__tags,
.mme-single-event__author {
    margin-bottom: 40px;
}

.mme-wysiwyg {
    font-size: 1.05rem;
    line-height: 1.9;
    color: #3b2724;
}

.mme-single-event__quote {
    font-size: clamp(1.6rem, 3vw, 2.5rem);
    line-height: 1.2;
    color: #3b2724;
    padding-left: 24px;
    border-left: 2px solid #c7b5aa;
    margin-left: 0;
}

.mme-single-event__gallery {
    position: relative;
    margin-bottom: 40px;
}

.mme-carousel__track {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    gap: 0;
}

.mme-carousel__track::-webkit-scrollbar {
    display: none;
}

.mme-carousel__slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
    aspect-ratio: 16 / 10;
}

.mme-single-event__gallery.is-single .mme-carousel__slide {
    aspect-ratio: 16 / 10;
}

.mme-carousel__nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 0;
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    cursor: pointer;
    z-index: 2;
}

.mme-carousel__nav.prev { left: 16px; }
.mme-carousel__nav.next { right: 16px; }

.mme-single-event__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.mme-event-tag {
    border: 1px solid #d8cbc1;
    padding: 8px 14px;
    border-radius: 999px;
    font-size: .92rem;
    color: #5e4a46;
}

.mme-single-event__author {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-top: 24px;
    border-top: 1px solid #e3d8cf;
}

.mme-single-event__author-photo {
    width: 72px;
    height: 72px;
    overflow: hidden;
    border-radius: 999px;
    flex: 0 0 72px;
}

.mme-single-event__author-name {
    font-size: 1.05rem;
    color: #3b2724;
    font-weight: 600;
}

body.mme-event-single .site-header,
body.mme-event-single header.site-header,
body.mme-event-single .elementor-location-header,
body.mme-event-single #masthead {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 30;
    background: transparent !important;
    box-shadow: none !important;
}

@media (max-width: 1200px) {
    .mme-events-grid.columns-4 {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 900px) {
    .mme-events-grid.columns-3,
    .mme-events-grid.columns-4 {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .mme-single-event__hero {
        min-height: 72vh;
    }
}

@media (max-width: 640px) {
    .mme-events-grid.columns-3,
    .mme-events-grid.columns-4 {
        grid-template-columns: 1fr;
    }
    .mme-events-archive-inner,
    .mme-single-event__content-wrap {
        padding-left: 18px;
        padding-right: 18px;
    }
    .mme-carousel__nav {
        width: 40px;
        height: 40px;
    }
}

.mme-event-card {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.mme-event-card.is-visible {
    opacity: 1;
    transform: translateY(0);
}