@import url('basic.css');
:root {
  --base-size: 1.2rem;
}
.home_title {
      grid-area: 1 / 1 / 2 / 4;
}
nav {
    width: 100%;
}
p#subtitle {
    width: 100%;
    /* background-color: antiquewhite; */
}
.img_button {
    background-color: rgb(255, 255, 255);
    height: 30px;
    font-weight: 700;
    width: 30px;
    border-radius: 15px;
    position: absolute;
    top: 5%;
    align-self: start;
    right: 5%;
    border: none;
    color: black;
}
body {
    font-size: var(--base-size);
}
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;
    width: 100%;
    margin-top: 30px;
}
p,
h1,
h2,
h3,
h4,
h5,
h6,
span,
a,
li,
ul,
dt,
dd,
strong,
em,
blockquote,
pre,
code {
    width: 90%;
    max-width: 750px;
}
h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: "IBM Plex Serif", serif;
    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: row;
    justify-content: center;
    align-items: center;
    object-fit: contain;
    z-index: 1000; /* Ensure it's on top */
    background-color: rgba(41, 44, 46, 0.8);
    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;
}
.verticalimg {
    width: 47.5%;
    max-width: 1200px;
}
body > img.regularimg, body > img.verticalimg {
    margin-bottom: 15px;
}
.grid1 img {
    width: 100%;
}
img.fillgrid2 {
    width: 100%;
    grid-area: 1 / 1 / 3 / 3;
}
.fullgrid {
    width: 100%;
    max-width: 1200px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    padding: 5px 0px 5px 5px;
}
.fullgrid img {
    margin: 5px;
    height: 280px;
}
.grid1 {
    width: 90%;
    max-width: 750px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}
.grid2 {
    width: 90%;
    max-width: 1200px;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-column-gap: 10px;
    grid-row-gap: 10px;
}
hr.lineproject + div.grid2 {
    margin-top: 20px;
}
.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);
    margin-bottom: 1em;
    margin-top: 1em;
}
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: 10px;
    font-size: 13px;
    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%;
    }
    .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 {
        height: auto;
        max-width: 90%;
    }
    .regularimg {
        width: 90%;
        max-width: 90%;
    }
    .grid1 img {
        width: 90%;
    }
    .grid2 {
        grid-template-columns: repeat(1, 1fr);
        grid-column-gap: 4px;
        grid-row-gap: 4px;
    }
    .grid2 * {
        justify-self: center;
    }
    body > img.regularimg, body > img.verticalimg {
    margin-bottom: 5px;
}
}

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