.event-page .sec-1 {

    padding-top: 64px;





}



.event-page .sec-1 .event-banner {

    background-image: url('Assests/events/E-max.png');

    background-position: center;

    background-repeat: no-repeat;

    background-size: cover;

    width: 100%;

    height: 492px;



}



.event-page .sec-2 {

    padding-top: 64px;

    width: 100%;

    justify-self: center;

    background: linear-gradient(90deg, rgba(252, 255, 222, 1) 0%, rgba(255, 207, 207, 1) 50%, rgba(255, 234, 201, 1) 100%);

    overflow: hidden;

    padding: 40px;

}



.event-page .sec-2 .sec-title {

    font-size: 40px;

    font-weight: 600;

    width: 100%;

    text-align: center;

    margin-bottom: 32px;

    position: relative;

    z-index: 1;

}



.event-page .sec-2 .event-card-holder {

    display: grid;

    grid-template-columns: 1fr 1fr 1fr 1fr;

    gap: 60px;



    max-width: 1600px;

    justify-self: center;

}



.event-page .sec-2 .event-card {

    width: 100%;

    max-width: 470px;

    overflow: hidden;

    border-radius: 16px;

    margin: 0 auto;

    background: white;

    transition: transform 0.1s ease;

    perspective: 1000px;

    background: rgba(255, 255, 255, .5);

    backdrop-filter: blur(20px);

    z-index: 2;

    border: 1px solid #fff;

}



.event-page .sec-2 .event-date {

    font-size: 16px;

    font-family: "inter", sans-serif;

}



.event-card .image-wrapper {

    display: flex;

    flex-direction: column;

    height: 323px;

    align-items: center;

    justify-content: center;

    gap: 10px;

    position: relative;

    align-self: stretch;

    width: 100%;

    overflow: hidden;

    max-height: 250px;

    overflow: hidden;

}



.event-card img {

    position: relative;

    flex: 1;

    align-self: stretch;

    width: 100%;

    flex-grow: 1;

    object-fit: cover;

}



.event-card .card-wrapper {

    align-items: flex-start;

    gap: 10px;

    padding: 0px 25px;

    display: flex;

    flex-direction: column;

    position: relative;

    align-self: stretch;

    width: 100%;

    flex: 0 0 auto;

}







.card-title {

    max-width: 300px;

    max-height: 3em;

    /* 1.5em * 2 lines = 3em, adjust as needed */

    overflow: hidden;

    text-overflow: ellipsis;

    display: -webkit-box;

    /* -webkit-line-clamp: 2; */

    -webkit-box-orient: vertical;

    line-height: 1.5em;

    /* controls the height of each line */

    text-align: center;

    margin: 0;

}



.event-card .card-info {

    align-items: center;

    padding: 0px 16px;

    overflow: hidden;

    display: flex;

    flex-direction: column;

    position: relative;

    align-self: stretch;

    width: 100%;

    height: 150px;

    flex: 0 0 auto;

}



.card-info a {

    margin-top: auto;

    margin-bottom: 12px;

}



.event-gallery-text {

    font-family: "inter", sans-serif;

    font-size: 12px;

}



.event-page .circle {

    position: absolute;

    border-radius: 50%;

    opacity: 0.6;





}



.event-page .circle1 {

    width: 580px;

    height: 580px;

    background: linear-gradient(90deg,

            rgba(255, 50, 50, 0.5),

            rgba(255, 163, 98, 0.5));

    top: 10%;

    left: 20%;

    animation: move 50s linear infinite alternate;

    animation-delay: 0s;

}



.event-page .circle2 {

    width: 600px;

    height: 600px;

    background: linear-gradient(90deg,

            rgba(94, 239, 255, 0.5),

            rgba(98, 143, 255, 0.5));

    top: 50%;

    left: 60%;

    animation: move2 40s linear infinite alternate;

    animation-delay: -2s;

}



.event-page .circle3 {

    width: 380px;

    height: 380px;

    background: linear-gradient(90deg,

            rgba(255, 94, 145, 0.5),

            rgba(255, 109, 112, 0.5));

    top: 30%;

    left: 40%;

    animation: move3 30s linear infinite alternate;

    animation-delay: -4s;

}



@keyframes move {

    0% {

        transform: translate(-200px, 600px) rotate(0deg);

    }



    50% {

        transform: translate(1500px, 1000px) rotate(180deg);

    }



    100% {

        transform: translate(-200px, 600px) rotate(360deg);

    }

}



@keyframes move2 {

    0% {

        transform: translate(0, 400px) rotate(0deg);

    }



    50% {

        transform: translate(-1500px, 200px) rotate(180deg);

    }



    100% {

        transform: translate(0px, 700px) rotate(360deg);

    }

}



@keyframes move3 {

    0% {

        transform: translate(-700px, 900px) rotate(0deg);

    }



    50% {

        transform: translate(600px, 300px) rotate(180deg);

    }



    100% {

        transform: translate(-700px, 900px) rotate(360deg);

    }

}



/* ----------------------------------event-gallery--------------------------------- */





.event-gallery-page .sec-1 {

    display: grid;

    grid-template-columns: .5fr 1.5fr;

    gap: 20px;

    max-width: 1600px;

    padding: 24px;

    margin: 0 20px;

    justify-self: center;

    padding-top: 96px;



}



.event-gallery-page .gallery-text-wrapper {

    position: relative;

    padding: 20px;

    border: 1px solid #ddd;

    border-radius: 24px;

    height: fit-content;

}



.event-gallery-page .event-gallery-page-title {

    font-family: "inter", sans-serif;

    font-size: 24px;

    font-weight: 600;

}



.event-gallery-page .backButton {

    height: fit-content;

    position: absolute;

    left: -26px;



}







.masonry-wrapper {

    max-height: 800px;

    overflow: hidden;

    overflow-y: auto;

}



.masonry {

    /*margin-top: 40px;*/

    column-count: 4;

    column-gap: 1rem;

    padding: 20px;

}



.masonry img {

    width: 100%;

    margin-bottom: 1rem;

    display: block;

    border-radius: 8px;



}



.masonry img:hover {

    animation: scaleIn 0.3s ease-in-out forwards;

}

.event-gallery-page .event-modal-image {
  border-radius: 5px;
  cursor: pointer;
  transition: 0.3s;
  object-fit: cover;
}

.event-gallery-page #myImg:hover {opacity: 0.7;}

/* The Modal (background) */
.event-gallery-page .modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 100; /* Sit on top */
  padding-top: 100px; /* Location of the box */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0,0,0); /* Fallback color */
  background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
}

/* Modal Content (image) */
.event-gallery-page .modal-content {
  margin: auto;
  display: block;
  width: 80%;
  max-width: 700px;
}

/* Caption of Modal Image */


/* Add Animation */
.event-gallery-page .modal-content, #caption {  
  animation-name: zoom;
  animation-duration: 0.6s;
}

@keyframes zoom {
  from {transform: scale(0.1)} 
  to {transform: scale(1)}
}

/* The Close Button */
.event-gallery-page .close {
  position: absolute;
  top: 15px;
  right: 35px;
  color: #f1f1f1;
  font-size: 40px;
  font-weight: bold;
  transition: 0.3s;
}

.event-gallery-page .close:hover,
.event-gallery-page .close:focus {
  color: #bbb;
  text-decoration: none;
  cursor: pointer;
}

/* 100% Image Width on Smaller Screens */
@media only screen and (max-width: 700px){
  .event-gallery-page .modal-content {
    width: 100%;
  }
}


/* .event-gallery-page .modal-content {

    height: 100vh;

    width: 100vw;

    background: unset;

}



.event-gallery-page .modal-content>* {

    border: unset;

}



.event-gallery-page .modal-dialog {

    margin: unset;

}



.event-gallery-page .modal img {

    max-height: 700px;

    max-width: 100%;

}



.event-gallery-page .modal-body {

    display: flex;

    justify-content: center;

    align-items: center;

}



.event-gallery-page .modal-head {

    position: absolute;

} */







/* ----------------------------------responsive--------------------------------- */





@media (max-width:1024px) {



    .event-page .sec-2 .event-date {

        font-size: 12px;

        font-family: "inter", sans-serif;

    }



    .masonry {

        column-count: 3;

        column-gap: 1rem;

    }



    .event-gallery-page .sec-1 {



        grid-template-columns: .8fr 1.2fr;

    }



    .event-page .sec-2 .event-card-holder {

        display: grid;

        grid-template-columns: 1fr 1fr;

        gap: 16px;



    }





}



@media (max-width:767px) {

    .event-page .sec-2 {

        padding: 20px;

    }



    .event-card .card-wrapper {

        padding: 16px;

    }





    .masonry {

        column-count: 2;

        column-gap: 1rem;

        padding: unset;

    }



    .event-gallery-page .sec-1 {

        grid-template-columns: 1fr;

    }



    .event-page .sec-2 .event-card-holder {

        display: grid;

        grid-template-columns: 1fr;

        gap: 16px;



    }



    .event-gallery-page .event-gallery-page-title {

        font-family: "inter", sans-serif;

        font-size: 16px;

        font-weight: 600;

    }

}

