@import "./CSS Reset.css";

/* * {
    border: 1px solid white;
} */



body {
    background-color: #222222;
    color: #0A5EB0;
}

header {
    font-family: "Poiret One", sans-serif;
    font-weight: bold;
    letter-spacing: 4px;
    text-align: center;
    margin: 2rem;
    font-size: 3rem;
}

h2 {
    font-family: "Poiret One", sans-serif;
    font-weight: bold;
    letter-spacing: 4px;
    text-align: center;
    font-size: 2.5rem;
    background-color:#F0F0DB;
}

#batch {
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem;
}

.person {
    height: 500px;
    min-width: 20%;
    max-width: 25%;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    position: relative;
    gap: 10px;
    font-size: 1.2rem;
}

/* Dedicated image container */
.image-wrapper {
    position: absolute;
    bottom: 100px; /* right above the name */
    height: 420px; /* space for the image */
    width: 100%;
    overflow: hidden;
    display: flex;
    justify-content: center;
}

.image-wrapper img {
    height: 100%;
    transform: translateY(100%);
    opacity: 0;
    object-fit: contain;
    transition: transform 400ms ease-in-out, opacity 400ms ease;
}

/* Hover reveal */
.person:hover .image-wrapper img {
    transform: translateY(0);
    opacity: 1;
}

/* Text stays above */
.person h3,
.person p {
    position: relative;
    z-index: 2;
}

.person p {
    opacity: 0;
    transition: all 300ms linear;
    font-size: 1.5rem;
}

.person h3 {
    padding: 10px;
    border-radius: 20px;
    transition: all 200ms linear;
    color:#222222;
    background-color: #0A5EB0;
}

.person a {
    transition: all 200ms linear;
    opacity: 0;
    color: inherit;
}

.person:hover a {
    opacity: 1;
}

.person:hover p {
    opacity: 1;
}

.person:hover h3 {
    color: aliceblue;
    transform: scale(1.1);
}

#gallery {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}

#gallery h3 {
    font-size: 2rem;
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
    border-radius: 30px;
    padding: 1rem;
    margin: 1rem;
    border-bottom: 3px solid #0A5EB0;
}

#gallery figure {
    margin: 1rem;
    column-count: 2;
    column-gap: 20px;
}

#gallery figure a img, #gallery figure video {
    width: 100%;
    margin-bottom: 20px;
    border-radius: 10px;
    height: auto;
}

@media (max-width: 1010px) and (min-width: 780px) {
    :root {
        font-size: 14px;
    }

    header {
        font-size: 2.5rem;
    }

    .person {
        height: 450px;
        font-size: 1.2rem;
}

/* Dedicated image container */
.image-wrapper {
    height: 300px; /* space for the image */
}

}

@media (max-width: 779px) and (min-width: 600px) {
    :root {
        font-size: 14px;
    }

    header {
        font-size: 2rem;
    }

    h2 {
        font-size: 2rem;
    }

    .person {
        height: 400px;
        max-width: 45%;
        min-width: 30%;
        font-size: 1rem;
    }

    .person p {
        font-size: 1.3rem;
    }
    
    .person h3 {
        padding: 5px;
    }

    /* Dedicated image container */
    .image-wrapper {
        bottom: 70px; /* right above the name */
        height: 250px; /* space for the image */
    }
}

@media (max-width: 599px) and (min-width: 375px) { 
    :root {
        font-size: 12px;
    }

    header {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    .person {
        height: 300px;
        max-width: 45%;
        min-width: 30%;
        font-size: 1rem;
    }

    .person p {
        font-size: 1.5rem;
    }
    
    .person h3 {
        padding: 5px;
    }

    /* Dedicated image container */
    .image-wrapper {
        bottom: 70px; /* right above the name */
        height: 250px; /* space for the image */
    }

    #gallery figure {
        margin: 1rem;
        column-count: 1;
        column-gap: 20px;
    }
}

@media (max-width: 374px) {
    :root {
        font-size: 12px;
    }

    header {
        font-size: 1.2rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    .person {
        height: 300px;
        max-width: 45%;
        min-width: 30%;
        font-size: 1rem;
    }

    .person p {
        font-size: 1.2rem;
    }
    
    .person h3 {
        padding: 5px;
    }

    /* Dedicated image container */
    .image-wrapper {
        bottom: 70px; /* right above the name */
        height: 200px; /* space for the image */
    }

    #gallery figure {
        margin: 1rem;
        column-count: 1;
        column-gap: 20px;
    }
}