/* Import Poppins font */
@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

/* Reset and base styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    margin: 0;
    font-size: 1.2em;
    font-weight: 300;
    color: #444;
    font-family: 'Poppins', sans-serif;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
}

/* Container styles - mimicking Material-UI Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 16px;
    min-height: 70vh;
}

.content {
    width: 90%;
    margin: 0 auto;
    padding: 2em 0;
}

/* Typography */
h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    color: #444;
    margin-bottom: 1em;
}

h2 {
    font-weight: 200;
    margin-bottom: 0.8em;
}

h3 {
    font-weight: 200;
    margin-bottom: 0.5em;
}

h5 {
    font-family: 'Poppins', sans-serif;
    font-weight: 200;
    font-size: 1.2em;
    color: #DDD;
}

p {
    margin-bottom: 1.2em;
}

/* Links */
a {
    text-decoration: none;
    color: #444;
    transition: all 0.3s ease;
}

a:hover {
    text-decoration: underline;
}

.contact-link {
    margin: 0;
    margin-bottom: 0.5em;
}

/* Logo styles */
.logo {
    width: 50%;
    max-width: 256px;
    display: block;
    margin: 2em auto;
}

/* Phone image */
.phone-image {
    width: 50%;
    max-width: 400px;
    display: block;
    margin: 2em auto 4em auto;
}

/* Image gallery - mimicking Material-UI ImageList masonry layout */
.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 10px;
    margin-top: 2em;
}

/* On larger screens, use 2 columns */
@media (min-width: 900px) {
    .image-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

.gallery-item {
    break-inside: avoid;
}

.gallery-image {
    width: 100%;
    height: auto;
    border-radius: 5px;
    transition: border-radius 0.5s ease;
    cursor: pointer;
    display: block;
}

.gallery-image:hover {
    border-radius: 40px;
}

/* Footer */
.footer {
    text-align: center;
    font-size: 0.5em;
    margin-bottom: 1em;
    margin-top: 5em;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    position: relative;
    margin: auto;
    padding: 0;
    width: 90%;
    max-width: 80vw;
    top: 50%;
    transform: translateY(-50%);
    text-align: center;
}

.modal-image {
    max-width: 100%;
    max-height: 80vh;
    width: auto;
    height: auto;
    background-color: #EFEFEF;
    border-radius: 3px;
    padding: 20px;
    box-shadow: 0px 11px 15px -7px rgba(0,0,0,0.2), 0px 24px 38px 3px rgba(0,0,0,0.14), 0px 9px 46px 8px rgba(0,0,0,0.12);
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    position: absolute;
    top: 15px;
    right: 35px;
    z-index: 1001;
}

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

/* Responsive adjustments */
@media (max-width: 600px) {
    .container {
        padding: 0 8px;
    }
    
    .content {
        width: 95%;
    }
    
    body {
        font-size: 1em;
    }
    
    .logo {
        width: 70%;
    }
    
    .phone-image {
        width: 70%;
    }
    
    .image-gallery {
        grid-template-columns: 1fr;
        gap: 8px;
    }
}