@import url('https://fonts.googleapis.com/css2?family=SUSE:wght@100..800&display=swap');

:root {
    --primary: rgb(245, 245, 245);
    --primary-bg: rgb(245, 245, 245, 0.9);
    --secondary: rgb(0, 55, 134);
    --secondary-bg: rgb(0, 55, 134, 0.8);
    --sub-heading: rgb(115, 168, 248);
}   

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: SUSE;
}

/* Header */

header {
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url("../assets/bg-1.jpg");
    background-size: cover;
    background-position-y: 30%;
}

.page-heading {
    padding: 20vh 25%;
    text-align: center;
    color: var(--primary);
    font-size: 1.2rem;
}

/* NAVBAR */

nav {
    position: absolute;
    display: flex;
    width: 100%;
    justify-content: space-around;
    align-items: center;
    padding: 2rem;
}

.nav-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    text-decoration: none;
    color: var(--primary);
}

.nav-left img {
    height: 4rem;
}

.nav-links a {
    padding: 0.5rem;
    text-decoration: none;
    color: var(--primary);
}

/* Hover button */

.hover-btn {
    display: inline-block;
    width: fit-content;
    text-decoration: none;
    padding: 0.8rem 1rem;
    border: 1px solid;
    border-radius: 3px;
    transition: transform 300ms;
    margin-top: 0.5rem;
}

.hover-btn:hover {
    font-weight: bold;
    transform: translateX(10%);
}

/* Main */

main {
    margin: 2rem 0;
}

#gallery {
    margin: 0 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gallery-container {
    column-count: 4;
    column-gap: 10px;
}

.gallery-item {
    background-color: white;
    box-shadow: 0 0 10px 10px rgba(0, 0, 0, 0.1);
    margin-bottom: 10px;
    display: inline-block;
    width: 100%;
}

.gallery-item img {
    width: 100%;
    height: auto;
}

.gallery-item p {
    padding: 0.5rem;
    font-weight: bold;
    text-align: center;
}

/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    background: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5));
}

.modal-content {
    margin: 1rem;
    height: 95%;
    text-align: center;
    overflow: hidden;
}

.close {
    color: #aaa;
    float: right;
    font-size: 5rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.modal-image {
    max-width: 100%;
    max-height: 100%;
    margin: 0 auto;
}

/* Footer */

footer {
    text-align: center;
    background-color: black;
    color: white;
    padding: 2rem 1rem;
}

footer a {
    color: goldenrod;
    text-decoration: none;
}

footer p {
    padding-top: 0.5rem;
}

/* Laptops */

@media (width < 1440px) {
    .gallery-container {
        column-count: 3;
    }
}

/* Tablets */

@media (width < 1280px) {
    .gallery-container {
        column-count: 2;
    }
}

/* mobiles */

@media (width < 768px) {
    .nav-left {
        font-size: 14px;
    }
    
    .nav-right {
        display: none;
    }
    
    .page-heading {
        padding: 20vh 5%;
        font-size: 1rem;
    }
    
    .gallery-container {
        column-count: 1;
    }
}