/* ----------- Main Body ------------*/
@font-face {
 font-family: 'OrbitronRegular';
 src: url(../Fonts/Orbitron-Regular.ttf);
}
@font-face {
    font-family: 'OrbitronBold';
    src: url(../Fonts/Orbitron-Bold.ttf);
}
*{
 box-sizing: border-box;
 background-color: #0f0f0f;
}
/* ----------- NAVIGATION ------------*/
body {
 font-family: Arial, Helvetica, sans-serif;
 margin: 0px;
 padding: 0px;
 background-color: #000000;
}

ul {
 list-style-type: none;
 margin: 0;
 padding: 0;
 overflow: hidden;
 background-color: #0f0f0f;
}

ul li {
 float: left;
}

ul li a {
 display: block;
 color: white;
 text-align: center;
 padding: 20px 30px;
 text-decoration: none;
}

ul li a:hover {
 background-color: #300000;
 color: #ff0000;
 cursor: crosshair; /*Changes the mouse cursor when hovering on the Navbox*/
}

.PortfolioSubMenu{
 display: none; /*Hides submenu from the portfolio tab*/
}

.NavLineBox ul li:hover .PortfolioSubMenu{ /*Shows submenu from the portfolio tab*/
 display: block;
 position: absolute;
}

#NavMenuActive {
 border-bottom: 6px solid #D71818;
 color: #D71818;;
 border-radius: 1px;
 margin-bottom: 1px;
 position: relative;
 opacity: 100%;
}
/* ----------- CSS GRID CONTAINER ------------*/

.grid-container {
 display: grid;
 background-color: #000000;
 grid-template-columns: 1fr 1fr 1fr 1fr;
 grid-auto-rows: 30em 10em 60em;
 gap: 0.0em;
 right: 10px;

 margin-top: 1px;
 margin-left: 1px;
 margin-bottom: 1px;

 grid-template-areas:
"box-1 box-1 box-1 box-1"
"box-2 box-2 box-2 box-2"
"box-2 box-2 box-2 box-2";
}

/* ----------- CSS GRID CONTENT ------------*/

div.box1 h1 {
 color: #D71818;
 background:none;
 font-family: 'OrbitronRegular';
 font-size: 9rem;
 margin: 0.1em;
 display: flex;
 align-content:flex-end;
 justify-content: center;
 text-overflow: ellipsis;
}

.box1 {
 border-top: 1px solid #D71818;
 background-size: cover;
 background-attachment: fixed;
 background-color: #000000;
 align-content: flex-end;
}

.box2 {
 padding: min(20px, 7%);
 background-color: #000000;
 display: flex;
 flex-wrap: wrap;
 gap: 15px;
 justify-content: center;
 overflow: auto;
}

.box2 .PhotoGallery {
 position: relative;
 height: 20.5em;
 width: 20.5em;
 margin: 0px;
 cursor: pointer;
}

.PhotoGallery h2{ 
 color: #D71818;
 background: none;
 text-align: center;
 font-family: 'OrbitronRegular';
 font-size: 2em;
 word-wrap: break-word;
 align-items: center;
 cursor: pointer;
 margin: 0px;
}

.imageItem{ /* Styles the Image to fit in grid container */
 display: block;
 width: 100%;
 height: 100%;
 overflow: hidden;
 object-fit: cover;
 border: 0.15em solid #D71818;
}

.OverlayBG { 
 position: absolute;
 top: 0;
 left: 0;
 width: 100%;
 height: 100%;
 background: rgba(0,0,0,0.6); /* RBGA, alpha is 0.6 to give overlay effext*/
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 opacity: 0;
 transition: opacity 0.25s; 
}

.OverlayBG > * { /*Targets the direct child of the overlay (the title and the description)*/
    transform: translateY(20px); /*Animates the texts upwards*/
    transition: transform 0.25s;
}

.OverlayBG:hover {
    opacity: 1;
}

.OverlayBG:hover > * {
    transform: translateY(0px); /*Repositions  text to center. Animates based by transition*/
}

.Image_Title {
font-family:'OrbitronBold';
color: #D71818;
font-size: 2em;
background: none;
cursor: default;
text-align: center;
}

.ImageDescription {
    font-family: 'OrbitronRegular';
    font-size: 1.35em;
    margin-top:0.50em;
    background: none;
    color:aliceblue;
    cursor: default;
    text-align: center;
}

/* ----------- popup image ------------*/

@media (max-width:786px){
    .popup-image img{
        width:95%;
    }
}