.event-gallery-heading {
    font-size: 32px;
    font-weight: 700;
    color: #254a7c;
    margin-bottom: 32px;
    text-align: left;
    letter-spacing: 1px;
}

.event-gallery-wrapper {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
    margin: 0 -8px;
    justify-content: flex-start;
}

.event-gallery-item {
    border-radius: 10px;
    overflow: hidden;
    width: calc(33.333% - 22px);
    min-width: 280px;
    max-width: 420px;
    background: transparent;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    margin-bottom: 32px;
    display: flex;
    flex-direction: column;
}

@media (max-width: 1100px) {
    .event-gallery-item {
        width: calc(50% - 16px);
    }
}
@media (max-width: 700px) {
    .event-gallery-item {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}

.event-gallery-imgbox {
    position: relative;
    width: 100%;
    aspect-ratio: 16/9;
    background: #222;
    overflow: hidden;
    border-radius: 10px;
}
.event-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
}
.event-gallery-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 0 24px 18px 24px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.85) 70%, rgba(0, 0, 0, 0) 100%);
    border-bottom-left-radius: 10px;
    border-bottom-right-radius: 10px;
}
.event-gallery-title {
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    margin-top: 32px;
    line-height: 1.3;
}
.event-gallery-date {
    color: #bbb;
    font-size: 15px;
    font-style: italic;
    margin-bottom: 0;
}
.event-gallery-page {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    margin-top: 24px;
    margin-left: 10px;
}

.event-gallery-header {
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    margin-bottom: 32px;
    width: 100%;
}

.event-gallery-title-vertical {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    font-size: 18px;
    font-weight: 700;
    color: #254a7c;
    letter-spacing: 2px;
    margin-right: 32px;
    margin-left: 8px;
    margin-top: 12px;
    text-align: center;
}

.event-gallery-main-title {
    font-size: 36px;
    font-weight: 700;
    color: #254a7c;
    letter-spacing: 1px;
    text-align: center;
    flex: 1;
    margin-bottom: 0;
    margin-top: 0;
}
.event-gallery-main-title-orange {
    color: #f37021;
}

.event-gallery-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px 24px;
    justify-content: flex-start;
    width: 100%;
}

.event-gallery-card {
    width: calc(33.333% - 16px);
    min-width: 280px;
    max-width: 400px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    margin-bottom: 32px;
}

.event-gallery-imgbox {
    width: 100%;
    aspect-ratio: 16/9;
    background: #eee;
    border-radius: 8px 8px 0 0;
    overflow: hidden;
}
.event-gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.event-gallery-info {
    padding: 16px 18px 12px 18px;
    background: #fff;
    border-radius: 0 0 8px 8px;
}
.event-gallery-info-title {
    color: #222;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    line-height: 1.4;
    min-height: 38px;
}
.event-gallery-info-date {
    color: #888;
    font-size: 13px;
    font-style: italic;
    margin-bottom: 0;
}

@media (max-width: 1100px) {
    .event-gallery-card {
        width: calc(50% - 12px);
    }
}
@media (max-width: 700px) {
    .event-gallery-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
    .event-gallery-title-vertical {
        writing-mode: horizontal-tb;
        margin-bottom: 8px;
        margin-right: 0;
    }
    .event-gallery-main-title {
        font-size: 24px;
    }
    .event-gallery-card {
        width: 100%;
        min-width: 0;
        max-width: 100%;
    }
}
