@font-face {
    font-family: "Eurostile";
    src: url(../fonts/Eurostile.woff2) format("woff2");
    font-weight: 400;
    font-style: normal;
}
@font-face {
    font-family: "Eurostile";
    src: url(../fonts/EUROSTIB.woff2) format("woff2");
    font-weight: 700;
    font-style: normal;
}
:root{
    --columns: 32;
    --rows: 4;
}
*,
*::before,
*::after {
    box-sizing: border-box;
}
h1, h2, h3, h4, h5, h6, p {
    margin: 0;
}
body {
    font-family: "Eurostile", sans-serif;
    margin: 0;
    overflow: hidden;
    /* background-color: #008fa4; */
}
/* header{
    position: fixed;
    top: 8%;
    left: 50%;
    transform: translate(-50%, -8%);
    z-index: 2;
    pointer-events: none;
}
.logo{
    width: 300px;
} */
main {
    position: absolute;
    display: grid;
    grid-template-columns: repeat(var(--columns), 1fr);
    z-index: 1;
    transition: all 250ms ease;
    /* gap: 5px; */
}
.lightbox-opened article{
    pointer-events: none;
}
article{
    width: 216px;
    aspect-ratio: 4 / 5;
    overflow: hidden;
    position: relative;
    transition: all 200ms ease-in-out;
    opacity: 0;
    /* border-radius: 5px; */
}
/* article::before{
    content: '';
    opacity: 1;
    width: 101%;
    height: 101%;
    position: absolute;
    transition: opacity 200ms ease-in-out;
    background-color: #4498AD;
    z-index: 1;
    mix-blend-mode: multiply;
} */

article:hover::before{
   opacity: 0; 
}
article img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
}
/* article .color_img{
    opacity: 0;
}
article:hover .color_img{
    opacity: 1;
} */

.details {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 1050px;
    /* height: 525px; */
    z-index: 3;
    pointer-events: none;
}
.lightbox-opened .details{
    pointer-events: all;
}
.details-card{
    display: flex;
    flex-direction: row;
    overflow: hidden;
    
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
.card__avatar{
    aspect-ratio: 4 / 5;
    width: 420px;
    object-fit: cover;
}
.details-content {
    padding: 50px;
    background-color: white;
    width: 100%;
}
.card__title {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    font-size: 20pt;
}
.card__title h2 {
    font-size: inherit;
}
.card__job {
    font-size: 19px;
}
.quote-icon {
    width: 100px;
    padding: 75px 0 16px;
}
.close-icon{
    position: absolute;
    padding: 8px;
    top: 0;
    right: 0;
    cursor: pointer;
}
.close-icon:hover{
    opacity: 0.7;
}
p.card__description {
    line-height: 1.2;
    font-size: 19px;
}

article:focus, article:focus-visible{
    border: 3px solid #004494;
}

/* footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    pointer-events: none;
    align-items: flex-end;
    padding: 16px;
}
footer div {
    display: flex;
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
}
footer div a{
    pointer-events: auto;
}
footer p {
    padding: 10px 20px;
    background-color: white;
    font-size: 12px;
    border-radius: 8px;
    box-shadow: rgba(0, 0, 0, 0.1) 0px 10px 15px -3px, rgba(0, 0, 0, 0.05) 0px 4px 6px -2px;
}
footer p a {
    text-decoration: none;
    color: black;
    pointer-events: auto;
}
footer p a:hover {
    color: #008fa4;
} */

@media (max-width: 1108px) {
    :root{
        --rows: 3;
    }
    article{
        width: 165px;
    }
    .details{
        width: 650px;
        /* height: 302px; */
    }
    .card__avatar{
        width: 242px;
    }
    .details-content{
        padding: 25px;
    }
    .card__title {
        font-size: 16pt;
    }    
    .quote-icon{
        width: 50px;
        padding: 25px 0 12px; 
    }
}
@media (pointer: coarse) {
    body{
        overflow: auto;
    }
    article{
        min-height: calc(1/5 * 100dvh);
    }
}
body.touchscreen {
    overflow: auto;
}
body.touchscreen article {
    min-height: calc(1/5*100dvh);
}
@media (max-width: 768px) {
    body{
        overflow: auto;
    }
    /* .logo{
        width: 200px;
    } */
    article{
        width: 100px;
    }
    .details{
        width: calc(100vw - 64px);
        max-height: calc(100dvh - 60px);
        height: auto;
    }
    .details-card{
        flex-direction: column;
        height: 100%;
        position: relative;
    }
    .card__avatar{
        width: 100%;
        min-width: 242px;
        border-radius: 8px 8px 0 0;
    }
    .details-content{
        border-radius: 0 0 8px 8px;
    }
    .card__title{
        flex-direction: column;
    }
    .quote-icon{
        width: 40px;
        padding: 20px 0 8px;
    }
    p.card__description{
        font-size: 16px;
    }

    .details.absolute-position{
        height: calc(100dvh - 60px);
    }
    .details.absolute-position .details-card{
        overflow-y: scroll;
        position: relative;
    }
    .details.absolute-position .card__avatar{
        position: sticky;
        top: 0;
    }
    .details.absolute-position .close-icon{
        position: fixed;
    }
    .details-content.absolute-position{
        z-index: 4;
    }    
}