/*
 * CSS para o portfolio do TP1 de PCM :: Responsive 
 * Media queries breakpoints for 2024
 * https://devfacts.com/media-queries-breakpoints/
 */

/* MIN-WIDTH */
/* Small devices (landscape phones, 576px and up) */
@media (min-width: 576px) {}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {

    #sidebar {
        position: fixed;
        top: 0;
        left: 0;
        height: 100vh;
        width: 200px;
        /*     background: rgb(0,0,3);
    background: linear-gradient(180deg, rgba(0,0,3,1) 0%, rgba(0,0,0,0.9) 100%); */
        transform: none !important;
        visibility: visible !important;
    }

    .main-content {
        margin-left: 280px;
    }
}

/* Large devices (desktops, 992px and up) */
@media (min-width: 992px) {}

/* Extra large devices (large desktops, 1200px and up) */
@media (min-width: 1200px) {}

/* MAX-WIDTH */

@media (max-width: 575.98px) {
    .carousel-item {
        width: 100vw;
        height: auto;
    }

    .carousel-item img {
        object-fit: cover;
        width: 100%;
        height: auto;
    }

    .carousel-caption h1 {
        font-size: 2rem;
    }

    .carousel-caption p {
        font-size: 1rem;
    }
}

/* Small devices (landscape phones, less than 768px) */
@media (max-width: 768px) or ((max-width: 932px) and (max-height: 430px)) {

    #sidebar {
        background: rgb(0, 0, 3);
        min-width: 100vw;
    }

    .navbar-toggler {
        position: fixed;
        top: 20px;
        left: 20px;
        z-index: 1050;
        /*         background: rgba(0, 0, 0, 0.8); 
        border: 1px solid rgba(255, 255, 255, 0.3); */
    }

    .navbar-toggler-icon {
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 576 512'%3E%3C!--!Font Awesome Free v7.2.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free Copyright 2026 Fonticons, Inc.--%3E%3Cpath fill='rgb(177, 151, 252)' d='M384 128c70.7 0 128 57.3 128 128S454.7 384 384 384l-192 0c-70.7 0-128-57.3-128-128s57.3-128 128-128l192 0zM576 256c0-106-86-192-192-192L192 64C86 64 0 150 0 256S86 448 192 448l192 0c106 0 192-86 192-192zM192 336a80 80 0 1 0 0-160 80 80 0 1 0 0 160z'/%3E%3C/svg%3E");
    }

    #projectModal .modal-dialog {
        max-width: 95vw;
        min-height: auto;
        margin: 1rem auto;
    }

    #projectModal .modal-content {
        min-height: auto;
    }

    #featured-display {
        width: 100%;
        max-height: 90vh;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    #featured-display img {
        max-width: 90vw;
        max-height: 85vh;
        /* Slightly less than container */
        width: auto;
        height: auto;
        object-fit: contain;
    }

    .project-media-layout {
        flex-direction: column;
        max-height: none;
    }

    .thumbnails-column {
        flex-direction: row;
        width: 100%;
        max-height: none;
        overflow-x: auto;
        overflow-y: hidden;
        order: 2;
    }

    .media-thumbnail {
        width: 200px;
        flex-shrink: 0;
        display: inline-flex;
    }

}

/* Medium devices (tablets, less than 992px) */
@media (max-width: 991.98px) {}

/* Large devices (desktops, less than 1200px) */
@media (max-width: 1199.98px) {}