@import '../../components/mentahan.css';
@import '../../components/herosection.css';
@import '../../components/backtotop.css';
@import '../../components/navbar.css';
@import '../../components/footer.css';
@import '../../components/musicplayer.css';
@import '../../components/skeletonGallery.css';


/* Semester content */
#semester-content {
    background-color: #ffffff;
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 2rem 0;
}

#semester-content .badge {
    font-weight: 500;
    letter-spacing: 0.5px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(67, 0, 255, 0.1);
}

#semester-content .display-5 {
    background: linear-gradient(45deg, #2c3e50, #3498db);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
    display: inline-block;
    position: relative;
}

#semester-content .display-5 .text-primary {
    background: linear-gradient(135deg, #5D3EFF, #00F0FF);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-fill-color: transparent;
}

#semester-content .lead {
    color: #6c757d !important;
    line-height: 1.7;
    font-size: 16px;
    font-family: 'Montserrat', sans-serif !important;
}

@media (max-width: 991.98px) {
    #semester-content {
        padding: 3rem 0;
    }

    #semester-content .display-5 {
        font-size: 2.2rem;
    }

    #semester-content .lead {
        font-size: 1.1rem;
    }
}

@media (max-width: 767.98px) {
    #semester-content .display-5 {
        font-size: 2rem;
    }

    #semester-content .lead {
        font-size: 14px;
    }
}


/* Button Filter Semester */
.gallery-filter-btn {
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: #002aff5a transparent;
    padding: 0 1rem;
}

.gallery-filter-btn::-webkit-scrollbar {
    height: 2px;
}

.gallery-filter-btn::-webkit-scrollbar-track {
    background: transparent;
}

.gallery-filter-btn::-webkit-scrollbar-thumb {
    background-color: #002aff5a;
    border-radius: 4px;
}

.gallery-filter-btn .btn {
    padding: 0.5rem 1rem !important;
    font-size: 14px !important;
    flex: 1 1 auto;
    min-width: 100px;
    max-width: 200px;
    white-space: nowrap;
}

.filter-btn.active {
    background-color: #0d6efd;
    color: white;
    border-color: #0d6efd;
}

@media (max-width: 576px) {
    .gallery-filter-btn .btn {
        font-size: 13px !important;
        padding: 0.4rem 0.8rem !important;
    }
}

/* Gallery Masonry Grid */
.gallery-grid {
    column-count: 2;
    column-gap: 1rem;
    padding: 0 1rem;
    transition: all 0.3s ease;
}

@media (min-width: 480px) {
    .gallery-grid {
        column-count: 2;
    }
}

@media (min-width: 768px) {
    .gallery-grid {
        column-count: 3;
    }
}

@media (min-width: 992px) {
    .gallery-grid {
        column-count: 4;
    }
}

@media (min-width: 1200px) {
    .gallery-grid {
        column-count: 5;
    }
}

@media (min-width: 1400px) {
    .gallery-grid {
        column-count: 6;
    }
}

.gallery-item {
    break-inside: avoid;
    margin-bottom: 1rem;
    opacity: 1;
    transform: scale(1);
    transition: all 0.3s ease-in-out;
    overflow: hidden;
    border-radius: 1rem !important;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    will-change: transform;
    display: block;
}

.gallery-item.size-small {
    height: 150px;
}

.gallery-item.size-medium {
    height: 250px;
}

.gallery-item.size-large {
    height: 350px;
}

.gallery-item.size-xlarge {
    height: 450px;
}

.gallery-item:hover img,
.gallery-item:focus-within img {
    transform: scale(1.08);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.gallery-item:active img {
    transform: scale(1.1);
}

.gallery-item.hide {
    opacity: 0;
    transform: scale(0.95);
    pointer-events: none;
    height: 0;
    margin: 0;
    padding: 0;
}

/* Overylay Download */
.overlay-gallery {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0.5rem;
    border-radius: 0.5rem;
}

.gallery-item:hover .overlay-gallery {
    opacity: 1;
}

.btn-download {
    background-color: white;
    color: #333;
    padding: .3rem .5rem;
    font-size: 1.2rem;
    text-decoration: none;
    border-radius: .8rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.btn-download:hover {
    background-color: var(--bs-gray-300);
    color: var(--bs-black);
}

.fade-in {
    animation: fadeIn 0.4s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}