.student-gallery {
    direction: rtl;
    margin: auto;
    position: relative;
    font-family: inherit;
}

.gallery-folders {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 7rem;
    flex-wrap: wrap;
}

.folder-box {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 1rem;
    padding: 1rem;
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: bold;
    color: #ffffff !important;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    transition: all 0.25s ease;
    font-family: inherit;
    min-height: 6.5rem;
    min-width: 15rem;
    background: #ffffff00 !important;
    overflow: hidden;
    border: none;
}

.folder-box img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    width: auto;
    object-fit: cover;
    z-index: -1;
    object-position: center center;
    filter: brightness(47%) contrast(100%) saturate(100%) blur(0px) hue-rotate(0deg);
}

.folder-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.25);
}

.folder-box.active {
    box-shadow: 0 4px 12px rgba(108, 92, 231, 0.4);
}

.student-gallery .swiper {
    width: 100%;
    height: 460px;
    padding: 10px 0;
}

.student-gallery .swiper-slide {
    max-width: 30rem;
    height: 100%;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 15px;
    cursor: zoom-in;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.student-gallery .swiper-slide:hover {
    transform: translateY(-5px);
}

.student-gallery .swiper-button-next,
.student-gallery .swiper-button-prev {
    width: 45px;
    height: 45px;
    background: #6C5CE7;
    color: white;
    border-radius: 50%;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.student-gallery .swiper-button-next {
    transform: rotate(180deg) !important;
}

.student-gallery .swiper-button-next:after,
.student-gallery .swiper-button-prev:after {
    display: none;
}

.student-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.student-lightbox.active {
    opacity: 1;
    visibility: visible;
}

.student-lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 10px;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.student-lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    cursor: pointer;
    line-height: 1;
    z-index: 2;
}

.student-gallery .swiper-slide {
    opacity: 0.4;
    transition: opacity 0.4s ease, transform 0.4s ease;
}

.student-gallery .swiper-slide-active {
    opacity: 1;
}