/* ------------------------- */
/* ----- Global Styles ----- */
/* ------------------------- */

@import url('https://fonts.googleapis.com/css2?family=Tektur:wght@400..900&display=swap');

body { 
    margin: 0; background: #111;
    font: 'Tektur', sans-serif;
}

h2 {
    font-size: 2rem;
}

p {
    font-size: 1.2rem;
}

/* -------------------------- */
/* ----- Gallery Styles ----- */
/* -------------------------- */

#gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(480px, 1fr));
    gap: 2rem;
    padding: 3rem;
}

#gallery img {
    width: 100%;
    object-fit: cover;
}

/* ------------------------- */
/* ----- Button Styles ----- */
/* ------------------------- */

.floating {
    position: -webkit-fixed;
    position: fixed;
    bottom: 10px;
    right: 10px;
    z-index: 9999;
}

.floating button {
    border: none;
    border-radius: 100%;
    aspect-ratio: 1;
    cursor: pointer;
    width: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Mobile responsiveness */
@media (max-width: 600px) {
    #gallery {
        grid-template-columns: 1fr;
        padding: 1rem;
        gap: 1rem;
    }

    .floating {
        bottom: 20px;
        right: 20px;
    }

    .floating button {
        width: 64px;
    }

    .floating button img {
        width: 32px;
        height: 32px;
    }
}

/* ------------------------ */
/* ----- Modal Styles ----- */
/* ------------------------ */

.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    padding-top: 100px; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    border-radius: 10px;
    justify-content: center;
    align-items: center;
}

/* Modal Content */
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
}

/* The Close Button */
.close {
    color: #aaaaaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}  