@import url('basic.css');
:root {
  --base-size: 1.2rem;
}
.home_title {
      /* color: #cdcfdc; */
      grid-area: 1 / 1 / 2 / 4;
}
nav {
    /* max-width: 1200px; */
    width: 100%;
}
p#subtitle {
    width: 100%;
    /* background-color: antiquewhite; */
}
body {
    /* margin: 100px; */
    font-size: var(--base-size);
    /* background-color: var(--backColor, #fcf9f5);
    color: var(--bodyColor, #121212); */
}
a, h1, h2, h3, h4, h5, h6 {
    color: var(--frontColor, #121212);
}
h1, h2, h3, h4, h5, h6 {
    margin: 25px;
}
hr.lineproject {
    border-top: 0.5px solid var(--frontColor);
    opacity: .5;
    /* max-width: 750px; */
    width: 100%;
    margin-top: 25px;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
li,
ul,
dt,
dd,
strong,
em,
blockquote,
pre,
code {
    width: 90%;
    max-width: 750px;
    /* background-color: antiquewhite; */
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "IBM Plex Serif", serif;
    /* font-weight: 700; */
    line-height: 100%;
}
h1 {
    font-size: 3.5rem;
}
.tag {
    font-family: "IBM Plex Mono", monospace;
    line-height: 100%;
    margin-top: 10px;
    margin-bottom: -10px;
    color: var(--bodyColor, #121212);
    opacity: 0.6;
    text-transform: uppercase;
    font-size: 1rem;
    line-height: 1.3rem;
    transform: scaleX(1.1);
    transform-origin: left;
}


/* Style for the zoomed image (or overlay) */
.zoomed-image {
    position: fixed; /* Or absolute depending on your layout */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* max-width: 90%;
    max-height: 90%; */
    object-fit: contain;
    z-index: 1000; /* Ensure it's on top */
    background-color: rgba(41, 44, 46, 0.314);
    box-shadow: 0 0 20px rgba(0,0,0,0.1); /* Optional: add shadow */
}
.zoomed-image img {
    max-width: 90%;
    max-height: 90%;
    
}

img {
    cursor: pointer; /* Indicates it's clickable */
    transition: transform 0.2s ease-in-out; /* Smooth animation */
    box-sizing: border-box;
    border: 0.5px solid rgb(234, 234, 234);
}
.regularimg {
    width: 100%;
    max-width: 1200px;
}
.grid1 img {
    width: 100%;
}
.fullgrid {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    /* background-color: #797c994a; */
    padding: 5px 0px 5px 5px;
}
.fullgrid img {
    margin: 5px;
    height: 280px;
}
.grid1 {
    width: 90%;
    max-width: 750px;
    /* columns: 200px 3; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
    grid-column-gap: 1px;
    grid-row-gap: 1px;
}
.grid2 {
    width: 90%;
    max-width: 1200px;
    /* columns: 200px 3; */
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    /* grid-template-rows: repeat(3, 1fr); */
    grid-column-gap: 4px;
    grid-row-gap: 4px;
}
.grid_redbutton {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(4, 1fr);
    grid-column-gap: 2px;
    grid-row-gap: 2px;
    max-width: 750px;
}
.mediumvideo {
    display: inline-block;
    max-width: 1200px;
    width: 100%;
    -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.2); 
    box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.2);
}
ol, ul {
    padding-inline-start: 0px;
    margin-block-start: 0px;
    margin-block-end: 0px;
    display: contents;
    list-style-position: inside;
}
li {
    margin-bottom: 10px;
}
a.cta_projects {
    padding: 15px;
    font-size: calc(var(--base-size)*0.8);
    border-radius: 2px;
    background-color: var(--frontColor);
    color: var(--backColor);
    text-transform: uppercase;
    margin: 0px;
    text-decoration: none;
    letter-spacing: 0.5px;
}
a.cta_projects:hover {
    box-sizing: border-box;
    border: 1px solid var(--frontColor);
    background-color: var(--backColor);
    color: var(--frontColor);
}

/* mobile */

@media (max-width:768px) {
    body {
        padding-bottom: 40px;
    }
    nav {
        width: 90%;
    }
    /* .reduced_home_title {
        width: 100px;
    } */
    .mediumvideo {
        width: 90%;
        -webkit-box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.2); 
        box-shadow: 0px 0px 4px 0px rgba(0,0,0,0.2);
    }
    h1,h2,h3,h4,h5,h6 {
        overflow-wrap: break-word;
    }
    .grid_redbutton {
        grid-template-columns: repeat(3, 1fr);
        grid-template-rows: repeat(8, 1fr);
        max-width: 90%;
    }
    .fullgrid {
        width: 90%;
        max-width: 90%;
        flex-direction: column;
        flex-wrap: wrap;
        justify-content: flex-start;
        align-items: flex-start;
        /* background-color: #797c994a; */
        padding: 0px 0px 0px 0px;
    }
    .fullgrid img {
        /* margin: 5px; */
        height: auto;
        max-width: 90%;
    }
    .regularimg {
        width: 90%;
        max-width: 90%;
    }
    .grid1 img {
        width: 90%;
    }
    
}

@media (max-width:450px) {
    h1 {
    font-size: 2.4rem;
}
}