﻿/* General container styling */
#event .container {
    margin-top: 4rem;
}

/* Event Box (Row) */
.event-box {
    min-height: 300px;
    width: 100%;
    display: flex;
    margin: 4.5rem 0;
}



/* Text Section */
.event-text {
    line-height: 2;
    padding: 2.5rem;
}

.event-title {
    font-weight: 600;
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.event-description {
    text-align: justify;
}
/* Image Container */
.event-image-container {
    overflow: hidden;
    position: relative;
    padding: 0;
    cursor: pointer;
}

/* Image Overlay */
.image-overlay {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(23, 23, 23, 0.6);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 20px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.event-image-container:hover .image-overlay {
    opacity: 1;
}

/* Event Image */
.event-image {
    position: absolute;
    height: 100%;
    width: 100%;
    transition: transform 2s;
}

.event-image-container:hover .event-image {
    transform: scale(1.1)
}

@media only screen and (min-width: 992px) {
    .event-box {
        border: 2px solid #ddd;
        box-shadow: 4px 8px 28px rgba(39, 44, 49, 0.1), 1px 3px 8px rgba(39, 44, 49, 0.075);
        border-radius: 10px;
        overflow: hidden;
    }

    .container .event-box:nth-child(even) {
        flex-direction: row-reverse !important;
    }
}

@media only screen and (max-width: 992px) {

    .event-text {
        border-radius: 20px;
        box-shadow: rgba(14, 30, 37, 0.12) 0px 2px 4px 0px, rgba(14, 30, 37, 0.32) 0px 2px 16px 0px;
    }

    .event-title {
        font-weight: 700;
        font-size: 1.2rem;
        margin-bottom: 0.5rem;
    }

    .event-image-container {
        height: 250px;
        width: 80%;
        margin: 0 auto;
        border-radius: 15px;
        transform: translate(4px, 24px);
    }
}
/* Modern Modal Styling */

.custom-modal {
    /*display: none;*/
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    z-index: 9999;
    padding-top: 10em;
}

/* Modal Content Wrapper */
.modal-content-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

/* Gallery Image */
.gallery-img {
    max-height: 80vh;
    border-radius: 10px;
    box-shadow: 0px 10px 40px rgba(255, 255, 255, 0.2);
}

/* Fade-in and Fade-out Animations */
.fade-in {
    opacity: 0;
    animation: fadeIn 0.3s ease-in forwards;
}

.fade-out {
    opacity: 1;
    animation: fadeOut 0.3s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }

    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: scale(1);
    }

    to {
        opacity: 0;
        transform: scale(0.95);
    }
}

/* Close Button */
.close-modal {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 30px;
    color: white;
    cursor: pointer;
}

/* Navigation Buttons */
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: none;
    font-size: 24px;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
}

.left {
    left: 0;
}

.right {
    right: 0;
}

/* Thumbnails */
.thumbnail-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    overflow-x: auto;
    padding: 10px;
    width: 80%;
}

.thumbnails {
    display: flex;
    gap: 10px;
}

.thumbnail {
    width: 60px;
    height: 60px;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.2s ease-in-out, opacity 0.2s ease-in-out;
    opacity: 0.7;
}

    .thumbnail:hover {
        transform: scale(1.1);
        opacity: 1;
    }

    .thumbnail.active {
        border: 2px solid white;
        opacity: 1;
    }

/* Responsive */
@media (max-width: 768px) {
    .gallery-img {
        max-height: 70vh;
    }

    .thumbnail {
        width: 50px;
        height: 50px;
    }

    .nav-button {
        font-size: 20px;
        padding: 8px 12px;
    }
}


/*swiper*/
.hide {
    display: none;
}


swiper-container {
    width: 50%;
    height: 50%;
}

swiper-slide {
    text-align: center;
    font-size: 18px;
    display: flex;
    justify-content: center;
    align-items: center;
}

    swiper-slide img {
        display: sw </swiper-slidek;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

swiper-container {
    width: 50%;
    height: 300px;
    margin-left: auto;
    margin-right: auto;
}

swiper-slide {
    background-size: cover;
    background-position: center;
}

.mySwiper {
    height: 50%;
    width: 50%;
}

.mySwiper2 {
    height: auto;
    box-sizing: border-box;
    padding: 10px 0;
    margin-top: 0.5em;
}

    .mySwiper2 swiper-slide {
        width: 25%;
        height: 100%;
        opacity: 0.7;
        max-height: 116px;
    }

    .mySwiper2 .swiper-slide-thumb-active {
        opacity: 1;
    }

swiper-slide img {
    display: sw </swiper-slidek;
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 0px !important;
}

.mobile-event {
    display: none;
}

@media screen and (max-width: 1440px) {
    .mySwiper {
        width: 80%;
        height: auto;
    }

    swiper-container {
        width: 80%;
    }

    .mySwiper2 {
        height: auto;
    }

    .custom-modal {
        padding-top: 7em;
    }
}

@media screen and (max-width: 990px) {
    .desktop-event {
        display: none;
    }

    .mobile-event {
        display: block;
    }

    .event-image {
        width: auto !important;
        height: auto !important;
    }
}

@media screen and (max-width: 500px) {
    .mySwiper {
        width: 95%;
    }

    swiper-container {
        width: 95%;
    }

    .custom-modal {
        padding-top: 15em;
    }

    .event-image {
        width: 100% !important;
        height: 100% !important;
    }
}

/*swiper*/
