.container {
    margin: 50px auto;
}

.rounded-pic {
    border-radius: 100px;
}

.breadcrumb {
    background-color: #f5f5f5;
    padding: 0.75rem 1rem;
    margin-bottom: 1rem;
    list-style: none;
    border-radius: 0.25rem;
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item+.breadcrumb-item::before {
    display: inline-block;
    padding-right: 0.5rem;
    padding-left: 0.5rem;
    color: #6c757d;
    content: "/";
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
}

.breadcrumb-item a:hover {
    text-decoration: underline;
}

.breadcrumb-item.active {
    color: #6c757d;
}

#screen {
    position: absolute;
    top: 1%;
    left: 1%;
    width: 98%;
    height: 98%;
    background: #000;
    color: #fff;
}

#screen div {
    position: absolute;
    overflow: hidden;
    cursor: pointer;
}

#screen img {
    position: absolute;
    width: 100%;
    height: 100%;
}

#screen .label {
    position: absolute;
    color: #FFF;
    background: #000;
    font-family: arial;
    white-space: no-wrap;
}

/* Gallery */

#gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 10px;
    width: 100%;
    max-width: 1200px;
    margin: auto;
    background-color: #000;
}

.gallery-item {
    position: relative;
    cursor: pointer;
    overflow: hidden;
    transition: transform 0.3s ease-in-out, opacity 0.5s ease-in-out;
    /* Add opacity transition */
    opacity: 0.2;
}

.gallery-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover {
    transform: scale(1.05);
    opacity: 1;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    text-align: center;
    padding: 5px;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.gallery-item:hover .caption {
    opacity: 1;
}

/* Base Modal */
/* Base Modal */
.jg-modal {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.9);
    /* Single dark background */
    border-radius: 10px;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 100vw;
    /* Ensure no fixed width */
    max-height: 100vh;
    /* Ensure no fixed height */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    padding: 15px;
}

/* When jg-modal is active */
.jg-modal.show {
    display: flex;
}

/* Remove unnecessary inner layers */
.jg-modal-content {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: none;
    /* Remove white background */
}

/* Ensure the image does not stretch */
.jg-modal-content img {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    /* Prevent distortion */
    transition: transform 0.5s ease-in-out;
}

/* Top Bar */
.jg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 8px 15px;
    color: white;
    font-size: 16px;
}

/* Caption & Description */
.jg-modal-footer {
    position: absolute;
    bottom: 10px;
    text-align: center;
    background: rgba(0, 0, 0, 0.6);
    /* Match background */
    color: white;
    padding: 10px;
    border-radius: 5px;
    font-size: 14px;
    max-width: 90%;
}

.jg-modal.portrait-mode {
    width: 50vw;
    height: auto;
}

.jg-modal.landscape-mode {
    width: auto;
    height: 60vh;
}

/* Close Button */
.close-btn {
    color: gainsboro;
    font-weight: lighter;
    cursor: pointer;
}


/* Blog */

.blog-post {
    border-bottom: 1px solid #ddd;
}

.blog-post h1 {
    color: #333;
}

.blog-post h2 {
    color: #333;
}

.blog-post img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
}


/* Login Page */
.login-body {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f8f9fa;
}

.login-container {
    max-width: 500px;
    background: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.login-left {
    background: url('https://via.placeholder.com/150') center/cover;
    width: 40%;
    min-height: 300px;
}

.login-right {
    padding: 30px;
    width: 60%;
}


.credits {
    display: none;
}

.off-canvas-sidebar .nav,
.sidebar .nav {
    width: 99%;
}

.user-logo {
    font-size: 20px;
    padding: 10px 10px 10px 30px !important;
}

.user-logo i {
    margin-right: 10px;
}