.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: 32px;



    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: 150px;

    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: 880px 1fr;
    gap: 40px;
    max-width: 1600px;
    padding-top: 100px;
    margin: 0 auto;
    align-items: start;
        padding-bottom: 20px;
}

.event-gallery-page .gallery-text-wrapper {
    position: sticky;
    top: 100px;

    background: rgba(255,255,255,0.9);
    backdrop-filter: blur(12px);

    padding: 32px;

    border-radius: 24px;

    border: 1px solid rgba(0,0,0,0.05);

    box-shadow:
        0 10px 30px rgba(0,0,0,0.08),
        0 1px 3px rgba(0,0,0,0.05);

    height: fit-content;
}

.event-gallery-page .event-gallery-page-title {
    font-family: "inter", sans-serif;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.2;
}
.event-gallery-page .event-gallery-page-desc {
    font-size: 15px;
    line-height: 1.8;
    color: #555;
    margin-top: 16px;
}.event-gallery-page .gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 16px;
}


.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 {
    width: 100%;
    height: 260px;

    object-fit: cover;

    border-radius: 16px;

    cursor: pointer;

    transition: all .3s ease;

    box-shadow: 0 6px 20px rgba(0,0,0,.08);
}

.event-gallery-page .event-modal-image:hover {
    transform: translateY(-6px);
}


/* 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;

    }

}



/* ----------------------------------event overlay card (new design)--------------------------------- */

.event-page .sec-2 .event-overlay-card {
    position: relative;
    display: block;
    width: 100%;
    max-width: 470px;
    margin: 0 auto;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #fff;
    z-index: 2;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
    transition: transform .3s ease, box-shadow .3s ease;
}

.event-page .sec-2 .event-overlay-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .22);
}

.event-page .sec-2 .event-overlay-media {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.event-page .sec-2 .event-overlay-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.event-page .sec-2 .event-overlay-card:hover .event-overlay-img {
    transform: scale(1.06);
}

.event-page .sec-2 .event-overlay-shade {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg,
            rgba(0, 0, 0, 0) 30%,
            rgba(0, 0, 0, .55) 65%,
            rgba(0, 0, 0, .88) 100%);
}

.event-page .sec-2 .event-overlay-content {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    text-align: left;
}

.event-page .sec-2 .event-overlay-school {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.event-page .sec-2 .event-overlay-location {
    font-family: "Poppins", sans-serif;
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: #fff;
    margin: 0;
}

.event-page .sec-2 .event-overlay-date {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    margin-top: 8px;
    color: rgba(255, 255, 255, .85);
}

.event-page .sec-2 .event-overlay-name {
    font-family: "Poppins", sans-serif;
    font-size: 13px;
    font-weight: 400;
    line-height: 1.4;
    color: rgba(255, 255, 255, .8);
}

@media (max-width:1024px) {

    .event-page .sec-2 .event-overlay-media {
        height: 280px;
    }

    .event-page .sec-2 .event-overlay-school,
    .event-page .sec-2 .event-overlay-location {
        font-size: 16px;
    }

    .event-page .sec-2 .event-overlay-content {
        padding: 16px;
    }

}

@media (max-width:767px) {

    .event-page .sec-2 .event-overlay-media {
        height: 260px;
    }

    .event-page .sec-2 .event-overlay-school,
    .event-page .sec-2 .event-overlay-location {
        font-size: 16px;
    }

    .event-page .sec-2 .event-overlay-date,
    .event-page .sec-2 .event-overlay-name {
        font-size: 12px;
    }

}


/* ----------------------------------event gallery image modal--------------------------------- */

.event-gallery-page .event-image-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1050;
    padding: 40px 20px;
    overflow: auto;
    background-color: rgba(0, 0, 0, .9);
}

.event-gallery-page .event-image-modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

.event-gallery-page .event-modal-content {
    display: block;
    margin: auto;
    width: auto;
    max-width: 90vw;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    animation-name: zoom;
    animation-duration: 0.3s;
}

.event-gallery-page .event-modal-close {
    position: fixed;
    top: 15px;
    right: 25px;
    z-index: 2;
    padding: 0;
    border: 0;
    background: transparent;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    line-height: 1;
    cursor: pointer;
    transition: color 0.3s;
}

.event-gallery-page .event-modal-close:hover,
.event-gallery-page .event-modal-close:focus {
    color: #bbb;
}

@media only screen and (max-width: 700px) {

    .event-gallery-page .event-image-modal {
        padding: 20px 12px;
    }

    .event-gallery-page .event-modal-content {
        max-width: 95vw;
    }

}
