/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: Arial, sans-serif;
    background-color: darkgray;
    /*background-image: url('media/background.JPG');
    background-repeat: no-repeat;
    background-size: 100%;*/
    margin: 0;
    /* For menu to stay the same.*/
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensure the body takes at least the full viewport height */
}
/* Header Styles */
header {
    position: relative;
    text-align: center;
    max-height: 150px;
}
body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Prevents scrolling */
}

#fullscreen-video {
    position: fixed;
    left: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1; /* Places the video behind everything else */
}
#fullscreen-image {
    position: fixed;
    left: 0;
    top: 0;
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    z-index: -1; /* Places the video behind everything else */
}
header, #layout-wrapper, footer {
    position: relative;
    z-index: 1; /* Ensures these elements stay above the video */
    /* Your existing styles */
}

#header-image {
    width: 100%; /* Adjust as needed */
    height: 150px;
}

#logo-overlay {
    position: absolute;
    /*top: 10px;/* /* Adjust as needed */
    left: 10px; /* Adjust as needed */
    bottom: 10px;
}

#company-logo {
    /*height: auto; *//* Adjust as needed */
    width: 100%;
    height: 120px;
}

#logo-overlay-umt {
    position: absolute;
    /*top: 10px;/* /* Adjust as needed */
    right: 10px; /* Adjust as needed */
    bottom: 40px;
}

#company-logo-umt {
    /*height: auto; *//* Adjust as needed */
    width: 100%;
    height: 80px;
}
#layout-wrapper {
    flex-grow: 1;/* For menu to stay the same.*/
    display: flex;
}

/* Navigation Menu Styles */
#menu-button {
    display: none;
}
#main-nav {
    width: 160px; /* Adjust width as needed */
    min-width: 160px;
    background-color: rgba(0, 0, 0, 0.7); /* Dark grey with transparency */
    z-index: 1000; /* Ensures the menu is above other content */
}

#main-nav ul {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

#main-nav li {
    position: relative;
}

#main-nav a {
    display: block;
    padding: 10px;
    color: white;
    text-decoration: none;
}

#main-nav .submenu {
    display: none;
    position: absolute;
    left: 100%;
    top: 0;
    background-color: #f71a1a;
    width: 150px;
    height: fit-content;
}

#main-nav li:hover > .submenu {
    display: block;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    #main-nav {
        display: none;
    }
    #company-logo-umt {
        display: none;
    }
    #fullscreen-video {
        display: none;
    }
    body, html {
        overflow: auto; /* Allows scrolling again */
    }
    /* Add more responsive styles as needed */
}

/* Body Content Styles */
#body-content {
    flex-grow: 1;
    display: flex; /* Use flexbox to center and contain the image */
    justify-content: center; /* Center the image horizontally */
    align-items: center; /* Center the image vertically */
    overflow-y: scroll;
    overflow: visible;
    /*padding: 20px;*/
    /* Adjust as needed */
}

#body-content img {
    max-width: 100%; /* Ensures the image is not wider than its container */
    max-height: 100%; /* Ensures the image is not taller than its container */
    height: auto; /* Maintain the aspect ratio of the image */
    overflow-y: auto;
}
#body-video {
    max-width: 100%; /* Responsive width */
    max-height: 100vh;
    min-width: 100%;
    min-height: 80vh;
    width: auto;
    height: auto; /* Maintain aspect ratio */
    /* Other styling as needed */
}
@media screen and (min-width: 768px) {
    #body-video {
        max-width: none; /* Removes max-width restriction on larger screens */
        max-height: none; /* Removes max-height restriction on larger screens */
    }
}

/* Gallery */
#imageGallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr); /* 4columns */
    grid-gap: 20px;
    padding: 20px;
    max-height: 77vh;
    overflow-y: auto;
}

.gallery-header {
    grid-column: 1 / 4; /* Spans across both columns */
    grid-row: 1 / 2; /* Placed in the first row */
}
.gallery-single-item {
    grid-column: 4 / 5; /* Spans across both columns */
    grid-row: 1 / 2; /* Placed in the first row */
}
.gallery-single-item-two {
    grid-column: 1/ 5; /* Spans across both columns */
    grid-row: 2 / 3; /* Placed in second row row */
    height: auto;
    width: 100%;
    object-fit: contain;
}
.gallery-single-item-two img {
    height: auto;
    width: 100%;
    object-fit: contain;
}
.gallery-single-pdf {
    grid-column: 2 / 3; /* Adjust as needed */
    grid-row: 3 / 4; /* Adjust as needed */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 10px solid red;
    background-color: rgba(255, 255, 255, 0.76);
}

.gallery-single-pdf img {
    height: 500px;
    width: 500px;
    object-fit: contain;
}

.gallery-single-pdf .text-below-image {
    text-align: center;
    /* Additional styling for the text */
}

.gallery-single-pdf-two {
    grid-column: 3/ 4; /* Spans across both columns */
    grid-row: 3 / 4; /* Placed in second row row */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 10px solid red;
    background-color: rgba(255, 255, 255, 0.76);
}
.gallery-single-pdf-two img {
    height: 500px;
    width: 500px;
    object-fit: contain;
}
.gallery-single-pdf-two .text-below-image {
    text-align: center;
    /* Additional styling for the text */
}
.gallery-single-item-three {
    grid-column: 1/ 5; /* Spans across both columns */
    grid-row: 4 / 5; /* Placed in second row row */
    height: auto;
    width: 100%;
    object-fit: contain;
}
.gallery-single-item-three img {
    height: auto;
    width: 100%;
    object-fit: contain;
}
.gallery-item {
    /*width: 100%;*/
    overflow: hidden;
    width: 150px;
    height: 150px;
}

.gallery-item img {
    width: 100%;
    height: auto;
    transition: transform 0.2s;
    object-fit: cover;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    overflow: hidden;
}

/* Lightbox Container */
.lightbox-content {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 75vw; /* Maximum width as a percentage of the viewport width */
    max-height: 75vh; /* Maximum height as a percentage of the viewport height */
    display: flex; /* Use flexbox to center the image */
    align-items: center; /* Center align vertically */
    justify-content: center; /* Center align horizontally */
    overflow: hidden; /* In case of very large images */
}

/* Lightbox Image */
.lightbox-content img {
    max-width: 100%; /* Maximum width within the container */
    max-height: 100%; /* Maximum height within the container */
    width: auto; /* Maintain aspect ratio */
    height: auto; /* Maintain aspect ratio */
    object-fit: contain; /* Ensures full image is visible without distortion */
}
/* Close Button */
.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 30px;
    z-index: 1010; /* Above the lightbox image */
    cursor: pointer;
}

/* Navigation Buttons (Next and Previous) */
.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -50px; /* Adjust as necessary */
    color: white;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
    z-index: 1010; /* Above the lightbox image */
}

.next {
    right: 20px; /* Adjust as necessary */
}

.prev {
    left: 20px; /* Adjust as necessary */
}

#item-pdf {
    width: 600px;
    height: 600px;
}

#small-content-area {
    display: none;
}

#small-text-content, #small-image-content #small-single-item-two {
    display: none;
}
/* Footer Styles */
footer {
    width: 100%;
    background-color: white; /* Change as needed */
    color: rgb(10, 10, 10);
    text-align: center;
    padding: 10px;
    position:fixed;
    bottom: 0px;
    z-index: 1004;
}

footer img {
    height: 50px; /* Adjust as needed */
    padding-left: 25px;
    padding-right: 25px;
}

/* Responsive Styles */
@media screen and (max-width: 768px) {
    #layout-wrapper {
        flex-direction: column;
    }
    /* Display the menu button on smaller screens */
    #menu-button {
        width: 160px; /* Adjust width as needed */
        display: block;
        background-color: rgba(0, 0, 0, 0.7); /* Dark grey with transparency */
        color: white; /* Example text color */
        padding: 10px;
        text-align: center;
        cursor: pointer;
        position: absolute;
        z-index: 1001; /* Higher than the menu and other content */
    }
    #main-nav {
        width: 160px; /* Adjust width as needed */
        display: block;
        background-color: rgba(0, 0, 0, 0.7); /* Dark grey with transparency */
        position:absolute;
        z-index: 1002;
    }

    #main-nav ul {
        display: none;
        width: 160px; /* Adjust width as needed */
    }

    #main-nav.active ul {
        display: block;
    }

    #main-nav li {
        text-align: left;
    }

    #main-nav .submenu {
        position: relative;
        left: 0;
        top: 0;
        width: 160px; /* Adjust width as needed */
    }
    #content-area {
        flex-direction: column; /* Stacks the items vertically */
    }

    #text-content, #image-content {
        flex: none; /* Resets the flex-grow behavior */
        width: 100%; /* Full width on smaller screens */
        padding-right: 0; /* Removes the right padding */
    }
    /* Gallery */
    #imageGallery {
        display: grid;
        grid-template-columns: repeat(1, 1fr); /* 3 columns */
        grid-gap: 20px;
        padding: 20px;
    }

    .gallery-header {
        grid-column: 1 / 2; /* Spans across both columns */
        grid-row: 2 / 3; /* Placed in the first row */
    }
    .gallery-single-item {
        grid-column: 1/ 2; /* Spans across both columns */
        grid-row: 1 / 2; /* Placed in the first row */
    }
    .gallery-single-item-two {
        grid-column: 1/ 2; /* Spans across both columns */
        grid-row: 3 / 4; /* Placed in second row row */
        height: auto;
        width: 100%;
        object-fit: contain;
    }
    .gallery-single-item-two img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }
    .gallery-single-pdf {
        grid-column: 1 / 2; /* Adjust as needed */
        grid-row: 4 / 5; /* Adjust as needed */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        border: 10px solid red;
        background-color: rgba(255, 255, 255, 0.76);
    }
    
    .gallery-single-pdf img {
        height: 200px;
        width: 200px;
        object-fit: contain;
    }
    
    .gallery-single-pdf .text-below-image {
        text-align: center;
        /* Additional styling for the text */
    }
    
    .gallery-single-pdf-two {
        grid-column: 1/ 2; /* Spans across both columns */
        grid-row: 5 / 6; /* Placed in second row row */
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        width: 100%;
        border: 10px solid red;
        background-color: rgba(255, 255, 255, 0.76);
    }
    .gallery-single-pdf-two img {
        height: 200px;
        width: 200px;
        object-fit: contain;
    }
    .gallery-single-pdf-two .text-below-image {
        text-align: center;
        /* Additional styling for the text */
    }
    .gallery-single-item-three {
        grid-column: 1/ 2; /* Spans across both columns */
        grid-row: 6 / 7; /* Placed in second row row */
        height: auto;
        width: 100%;
        object-fit: contain;
    }
    .gallery-single-item-three img {
        height: auto;
        width: 100%;
        object-fit: contain;
    }
    .gallery-item {
        /*width: 100%;*/
        overflow: hidden;
        width: 150px;
        height: 150px;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        transition: transform 0.2s;
        object-fit: cover;
    }

    .gallery-item:hover img {
        transform: scale(1.1);
    }

    footer img {
        height: 50px; /* Adjust as needed */
    }
}

