.gallery_main_container{
    padding: 20px;
}

input {
    display: none;
}

.photo_container {
    width: 100%;
    text-align: center;
    

}

.gallery_head {
    font-weight: normal;
    font-size: 35px;
    position: relative;
    margin: 40px 0;
}

.gallery_head::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: crimson;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: animate 4s linear infinite;
}

@keyframes animate {
    0% {
        width: 100px;
    }

    50% {
        width: 200px;
    }

    100% {
        width: 100px;
    }
}

.top-content {
    /* background-color: rgb(243, 238, 238); */
    background-color: #B1040E;
    width: 90%;
    margin: 0 auto 20px auto;
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgb(80, 70, 70);
}

h3 {
    height: 100%;
    background-color: rgb(221, 221, 221);
    line-height: 60px;
    padding: 0 50px;
    color: white;

}

label {
    display: inline;
    height: 100%;
    margin: 0 20px;
    line-height: 60px;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    transition: .5s;
}

label:hover {
    color: rgb(255, 208, 0);
}

.gallery_container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px;
    /* border: 2px solid rgb(8, 243, 86); */
}


.alb {
    width: 200px;
    height: 200px;
    padding: 5px;
    margin: 0;
}

.alb img {
    width: 100%;
    height: 100%;
}



.convocation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px;
    /* border: 2px solid red; */
}


/* General Container Styling */
.gallery_main_container {
    padding: 20px;
}

input {
    display: none;
}

.photo_container {
    width: 100%;
    text-align: center;
}

.gallery_head {
    font-weight: normal;
    font-size: 35px;
    position: relative;
    margin: 40px 0;
}

.gallery_head::before {
    content: "";
    position: absolute;
    width: 100px;
    height: 3px;
    background-color: crimson;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    animation: animate 4s linear infinite;
}

@keyframes animate {
    0%, 100% {
        width: 100px;
    }
    50% {
        width: 200px;
    }
}

/* Top Content Styling */
.top-content {
    background-color: #B1040E;
    width: 90%;
    margin: 0 auto 20px auto;
    height: 60px;
    display: flex;
    align-items: center;
    border-radius: 5px;
    box-shadow: 3px 3px 5px rgb(80, 70, 70);
    flex-wrap: wrap; /* Responsive */
}

h3 {
    height: 100%;
    background-color: rgb(221, 221, 221);
    line-height: 60px;
    padding: 0 30px;
    color: white;
    flex-grow: 1; /* Adjust for responsiveness */
    text-align: center;
}

label {
    display: inline-block;
    height: 100%;
    margin: 0 10px;
    line-height: 60px;
    font-size: 18px;
    color: #ffffff;
    cursor: pointer;
    transition: .5s;
}

label:hover {
    color: rgb(255, 208, 0);
}

/* Gallery Styling */
.gallery_container, .convocation {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    min-height: 60px;
}

.alb {
    width: 100%;
    max-width: 200px;
    height: 200px;
    padding: 5px;
    margin: 0;
}

.alb img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures image fits within the frame */
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .gallery_head {
        font-size: 28px;
    }

    .alb {
        width: 45%;
        height: auto;
    }
}

@media (max-width: 768px) {
    .gallery_head {
        font-size: 24px;
    }

    .alb {
        width: 100%;
        height: auto;
    }

    .top-content {
        /* flex-direction: column; */
        height: auto;
    }

    h3, label {
        /* width: 100%; */
        text-align: center;
    }
}

@media (max-width: 480px) {
    .gallery_head {
        font-size: 20px;
    }

    label {
        font-size: 16px;
    }
}

.slider-container {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.slider-container img {
    max-width: 80%;
    max-height: 80%;
    border: 3px solid #fff;
    border-radius: 10px;
}

.close-btn {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 30px;
    cursor: pointer;
}

.slider-nav {
    margin-top: 20px;
}

.slider-nav button {
    background-color: crimson;
    color: #fff;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    margin: 0 10px;
    font-size: 18px;
}

.slider-nav button:hover {
    background-color: #ff4d4d;
}
