.dw-events-section {
    max-width: 1200px;
    margin: 70px auto;
    padding: 0 24px;
}

.dw-events-section-title {
    margin: 0 0 36px;
    text-align: center;
    text-transform: capitalize !important;
    font-size: clamp(32px, 4vw, 52px);
    line-height: 1;
}

.dw-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 38px 28px;
}

.dw-event-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.dw-event-image {
    display: block;
    width: 100%;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    background: #111;
}

.dw-event-image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.dw-event-card:hover .dw-event-image img {
    transform: scale(1.04);
    opacity: 0.9;
}

.dw-event-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 22px 0 0;
}

.dw-event-title {
    margin: 0 0 12px;
    font-size: 22px;
    line-height: 1.1;
}

.dw-event-meta {
    display: flex;
    flex-direction: column;
    gap: 5px;
    margin-bottom: 16px;
    font-size: 14px;
    font-weight: 700;
    line-height: 1.4;
}

.dw-event-description {
    flex: 1;
    margin-bottom: 22px;
    font-size: 14px;
    line-height: 1.75;
}

.dw-event-description p {
    margin: 0 0 14px;
}

.dw-event-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    min-width: 115px;
    padding: 12px 20px;
    margin-top: auto;
    background: #333;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    border-radius: 3px;
    transition: background 0.2s ease, transform 0.2s ease;
}

.dw-event-button:hover,
.dw-event-button:focus {
    background: #555;
    color: #fff;
    transform: translateY(-1px);
}

.dw-event-card-gallery {
    grid-column: 1 / -1;
}

.dw-event-gallery .gallery {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
    margin: 0;
}

.dw-event-gallery .gallery-item {
    margin: 0;
    width: auto !important;
}

.dw-event-gallery .gallery-icon {
    overflow: hidden;
    aspect-ratio: 4 / 3;
}

.dw-event-gallery img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border: 0 !important;
}

@media (max-width: 991px) {
    .dw-events-section {
        margin: 55px auto;
    }

    .dw-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 768px) {
    .dw-event-gallery .gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .dw-events-section {
        padding: 0 18px;
        margin: 45px auto;
    }

    .dw-events-grid {
        grid-template-columns: 1fr;
        gap: 42px;
    }

    .dw-event-image {
        aspect-ratio: 16 / 11;
    }

    .dw-event-title {
        font-size: 20px;
    }
}

@media (max-width: 520px) {
    .dw-event-gallery .gallery {
        grid-template-columns: 1fr;
    }
}