.gallery-section {
    width: 100%;
    display: inline-flex;
}

/********** Gallery.css *************/
.gallery-container {
    width: 100%;
    background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(71, 124, 222) 100%);
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.gallery-container .heading {
    width: fit-content;
    padding: 0px 20px;
    font-size: 22px;
    margin: 20px;
    background: linear-gradient(rgb(255, 247, 247),rgb(152, 157, 180));
    border-radius: 15px;
    color: #050532;
    box-shadow: 1px 1px 2px rgb(0, 0, 0);
}

.gallery-container .heading:hover {
    box-shadow: 0px 2px 5px rgb(205, 196, 196);
    transition: 5ms ease-in-out;
}

.grouped-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.gallery-group {
    width: 100%;
    margin: 10px;
    padding: 10px;
    background: linear-gradient(90deg, rgb(255, 255, 255) 0%, rgb(146, 149, 156) 100%);
    backdrop-filter: blur(15px);
    box-shadow: 0 2px 5px rgba(68, 77, 136, 0.5);
}


.gallery-group h2 {
    text-align: center;
    color: rgb(38, 45, 45);
    margin-bottom: 10px;
}

.img-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
}

.img-gallery img {
    user-select: none;
    object-fit: cover;
    width: 300px;
    height: 200px;
    margin: 10px;
    cursor: pointer;
    border-radius: 20px;
    box-shadow: 0 0 5px rgba(68, 77, 136, 0.5);
}

.img-gallery img:hover {
    transform: scale(1.05);
    border-radius: 20px;
    box-shadow: 0 32px 75px rgba(68, 77, 136, 0.5);
}

.full-img {
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.9);
    position: fixed;
    top: 0;
    left: 0;
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    user-select: none;
}

.full-img img {
    width: 90%;
    max-width: 1000px;
    cursor: pointer;
}

.full-img span {
    position: absolute;
    top: 5%;
    right: 5%;
    font-size: 30px;
    font-weight: normal;
    color: #fff;
    cursor: pointer;
}

.full-img .fa-solid:hover {
    scale: 1.05;
}

.full-img button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    /* Initially hidden */
    display: none;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 101;
}

.full-img button:hover {
    background: rgba(0, 0, 0, 0.7);
}

#prevButton {
    left: 20px;
}

#nextButton {
    right: 20px;
}


/*********** back-to-home ************/
.back-to-home {
    position: absolute;
    top: 20px;
    right: 20px;
    display: inline-block;
    text-align: right;
    text-decoration: none;
    color: rgb(13, 48, 113);
    background-color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    font-weight: 500;
    transition: background-color 0.3s ease;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.back-to-home:hover {
    color: #fff;
    background-color: rgb(13, 32, 113);
}

.back-to-home:hover::before {
    content: "\2190";
    display: inline-block;
    margin-right: 5px;
}

.back-to-home:hover::before {
    transform: translateX(-2px);
}


/************ Scroll-to-top ************/
.scroll-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    display: none;
    width: 40px;
    height: 40px;
    background-color: #1d197e;
    color: #ffffff;
    border-radius: 50%;
    text-align: center;
    line-height: 40px;
    font-size: 20px;
    text-decoration: none;
    transition: opacity 0.3s ease;
}

.scroll-to-top:hover {
    opacity: 0.7;
}

@media (max-width: 768px) {
    .sidebar {
        display: none;
    }
    .back-to-home {
        display: none;
    }
}

@media (max-width: 991px) {
    .gallery-section {
        padding-top: 60px;
    }
}