.events-section {
    padding: 150px 0;
    background-color: #fff;
    overflow: hidden;
}

.events-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.event-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    background-color: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.event-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.event-img-wrapper {
    width: 100%;
    aspect-ratio: 3/2;
    overflow: hidden;
    position: relative;
    background-color: #f0f0f0;
}

.event-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.event-card:hover .event-img {
    transform: scale(1.05);
}

.event-info {
    background-color: #e6e6e6;
    padding: 15px 20px;
    border-bottom: 2px solid transparent;
}

.event-title {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.3px;
}

.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    flex-direction: column;
}

.lightbox-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 80%;
}

.lightbox-img {
    margin-top: 5%;
    max-width: 95%;
    max-height: 95vh;
    object-fit: contain;
    border-radius: 4px;
    transition: transform 0.3s ease, max-width 0.3s ease, max-height 0.3s ease;
    cursor: default;
}

.lightbox-img.slide-in-right {
    animation: slideInRight 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.lightbox-img.slide-in-left {
    animation: slideInLeft 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.close-lightbox {
    position: absolute;
    top: 20px;
    right: 40px;
    color: #fff;
    font-size: 50px;
    font-weight: bold;
    cursor: pointer;
    z-index: 10001;
    line-height: 1;
    transition: 0.3s;
}

.close-lightbox:hover {
    color: #ccc;
}

.lightbox-toolbar {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    z-index: 10002;
}

.toolbar-left {
    display: flex;
    gap: 5px;
}

.toolbar-right {
    display: flex;
}

.toolbar-btn {
    background: transparent;
    border: none;
    color: #fff;
    font-size: 18px;
    padding: 8px 12px;
    cursor: pointer;
    transition: background-color 0.3s;
    border-radius: 3px;
}

.toolbar-btn:hover {
    background: rgba(255, 255, 255, 0.1);
}

.toolbar-btn i {
    pointer-events: none;
}

.prev,
.next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 20px;
    margin-top: -25px;
    color: white;
    font-weight: bold;
    font-size: 40px;
    transition: 0.3s;
    user-select: none;
    z-index: 10000;
}

.prev {
    left: 20px;
}

.next {
    right: 20px;
}

.prev:hover,
.next:hover {
    color: #bbb;
    transform: scale(1.1);
}

.caption-container {
    text-align: center;
    color: #fff;
    padding: 20px;
    width: 100%;
}

#caption {
    font-size: 18px;
    font-weight: 500;
    margin: 0;
    font-family: 'Roboto', sans-serif;
}

.grid-view {
    display: none;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 10003;
    justify-content: center;
    align-items: center;
    padding: 20px 0;
}

.grid-view.active {
    display: flex;
}

.grid-view-header {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10004;
}

.close-grid-btn {
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    padding: 10px 15px;
    border-radius: 50%;
    transition: background-color 0.3s, transform 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 45px;
    height: 45px;
}

.close-grid-btn:hover {
    background-color: rgba(230, 126, 34, 0.9);
    transform: scale(1.1);
}

.grid-view-container {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    padding: 15px 0;
    width: 100%;
}

.grid-view-container::-webkit-scrollbar {
    height: 8px;
}

.grid-view-container::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.grid-view-container::-webkit-scrollbar-thumb {
    background: rgba(230, 126, 34, 0.8);
    border-radius: 4px;
}

.grid-view-container::-webkit-scrollbar-thumb:hover {
    background: rgba(230, 126, 34, 1);
}

.grid-thumbnail {
    position: relative;
    flex-shrink: 0;
    width: 220px;
    height: 140px;
    overflow: hidden;
    cursor: pointer;
    border-radius: 4px;
    transition: transform 0.3s, border 0.3s;
    border: 3px solid transparent;
}

.grid-thumbnail:hover {
    transform: scale(1.05);
    border-color: rgba(230, 126, 34, 0.5);
}

.grid-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.grid-thumbnail.active {
    border: 3px solid #e67e22;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }
}

@media (max-width: 600px) {
    .events-grid {
        grid-template-columns: 1fr;
    }

    .contact-hero-title {
        font-size: 2.5rem;
    }

    .event-card {
        margin-bottom: 20px;
    }

    .close-lightbox {
        right: 20px;
        top: 10px;
        font-size: 40px;
    }
}

.masonry-gallery {
    max-width: 1200px;
    margin: 30px auto 0;
    column-count: 3;
    column-gap: 30px;
}

.masonry-card {
    background: #fff;
    margin-bottom: 30px;
    break-inside: avoid;
    display: block;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.masonry-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.masonry-card img {
    width: 100%;
    height: auto;
    display: block;
}

.masonry-card.same-height img {
    height: 300px;
    object-fit: cover;
}

.masonry-card.small-height img {
    height: 200px;
    object-fit: cover;
}

.masonry-card.tall-height img {
    height: 500px;
    object-fit: cover;
}

.masonry-caption {
    background-color: #e6e6e6;
    padding: 15px 20px;
    border-bottom: 2px solid transparent;
}

.masonry-caption h3 {
    font-size: 16px;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    font-family: 'Roboto', sans-serif;
    letter-spacing: 0.3px;
}

@media (max-width: 992px) {
    .masonry-gallery {
        column-count: 2;
    }
}

@media (max-width: 600px) {
    .masonry-gallery {
        column-count: 1;
    }
}
button.event-card, button.masonry-card { border: 0; padding: 0; text-align: left; font: inherit; width: 100%; cursor: pointer; }
