/* WEEK7b: GRID LAYOUT */
/* file path: add103_2026/week_07/7b_responsephoto/style.css */


body{
    font-family: "Atkinson Hyperlegible", sans-serif;
    margin: 0;
    background-color: #0b1320;
    color: #e6edf3;
}


h1, h2 {
    color: #5ef2b0;
}



.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    padding: 45px 30px;
    max-width: 1100px;
    margin: 0 auto;
}


.hero-text {
    flex: 1;
}


.hero-text h1 {
    font-size: 3rem;
    margin: 0 0 10px;
}

.hero-img {
    flex: 1;
    width: 100%;
    max-height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 0 25px rgba(94, 242, 176, 0.3);
}

/* MAIN */
main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 40px 60px;
}


/* GRID PARENT */
.photo-wall {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
    grid-auto-rows: 250px;
}

/* GRID PARENT; IMAGES */
.photo-wall img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    border-radius: 10px;
    transition: transform 0.3s;
}

.photo-wall img:hover {
    transform: scale(1.03);
}


/* FOOTER */
footer {
    background-color: #111c2e;
    text-align: center;
    padding: 25px;
}

footer a {
    color: #5ef2b0;
    font-weight: bold;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;

}


/* TABLET VIEW: 2 COLS */
@media (min-width: 600px) {
    .photo-wall {
        grid-template-columns: repeat(2, 1fr);

    }

    .hero {
    flex-direction: row;

    }

    .hero-img {
    width: 50%;

    }



}

/* DESKTOP VIEW: 3 COLS */
@media (min-width: 900px) {
    .photo-wall {
        grid-template-columns: repeat(3, 1fr);

    }
}

/* LARGER DESKTOP VIEW: 4 COLS */
@media (min-width: 1200px) {
    .photo-wall {
        grid-template-columns: repeat(4, 1fr);

    }
}


