/* Page Basics */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;700&family=Roboto:wght@400;500&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif; /* Default text font */
    background-color: #fff;
    padding-top: 50px; /* Increased padding at the top */
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}



/* Artist Profile Section */
.artist-profile {
    display: flex;
    flex-direction: row; /* Align image and info side by side */
    align-items: flex-start; /* Align items to the start (top) */
    margin-bottom: 50px;
    padding: 20px;
}

.artist-image img {
    width: auto; /* Adjust width automatically */
    height: 200px; /* Fixed height to maintain aspect ratio */
    object-fit: cover; /* Cover the container without losing aspect ratio */
    clip-path: inset(0 0 0 0 round 10px); /* Optional: Rounded corners */
    flex-shrink: 0; /* Prevent the image from shrinking */
}

.artist-info {
    flex-grow: 1; /* Take up remaining space */
    padding-left: 20px; /* Space between image and info */
}

.artist-info > div {
    margin-bottom: 20px; /* Space between sections */
}

.name h1, .bio p, .contact p {
    padding-bottom: 10px; /* Space above the underline */
    border-bottom: 1px solid #e2e2e2; /* Material Design underline */

}

.name h1 {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 64px; /* Adjusted for legibility */
    line-height: 1.2; /* Improve line spacing */
    color: #272727;
}

.bio p, .contact p {
    font-family: 'Roboto', sans-serif;
    font-weight: 400;
    font-size: 16px;
    color: #626262;
}

.icons {
    display: flex;
    gap: 15px; /* Space between icons */
    flex-direction: row; /* Ensure icons are in a row */
    justify-content: flex-start; /* Align icons to the start */
    flex-wrap: nowrap; /* Prevent icons from wrapping */
}

.icon-link {
    display: inline-flex; /* Align icons inline */
    justify-content: center; /* Center icons horizontally */
    align-items: center; /* Center icons vertically */
    width: 24px; /* Icon size */
    height: 24px; /* Icon size */
}



/* Artwork and Sculpture Sections */
.artwork-section, .sculpture-section {
    margin-bottom: 50px;
}

h2 {
    font-size: 30px;
    margin-bottom: 20px;
}

.artwork-grid, .sculpture-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}



/* Card Styling */
.card {
    background: #f5f5f5;
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    overflow: hidden;
    transition: transform 0.3s ease;
    max-width: 350px;
    height: 100%;
}

.card:hover {
    transform: translateY(-5px);
}

.card img {
    width: 100%;
    height: auto;
    display: block;
}

.card-info {
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-info .medium, .card-info .name {
    font-size: 14px;
    font-weight: medium;
}





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

/* Modal Content (Image) */
.modal-content {
    position: absolute; /* Use absolute positioning */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the image */
    max-width: 90%; /* Adjust max width for better responsiveness */
    max-height: 80%; /* Adjust max height to ensure it fits within the viewport */
}

/* Caption of Modal Image */
#caption {
    color: #ccc;
    text-align: center;
    padding: 10px 0;
    position: absolute; /* Ensure the caption is positioned correctly */
    bottom: 10px; /* Position the caption at the bottom of the modal */
    left: 50%;
    transform: translateX(-50%); /* Center the caption horizontally */
    width: 80%; /* Max width of the caption */
}

/* The Close Button */
.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #f1f1f1;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
}

.close:hover,
.close:focus {
    color: #bbb;
    cursor: pointer;
}



@media screen and (max-width: 768px) {
    .artist-profile {
        flex-direction: column; /* Stack elements vertically on smaller screens */
        align-items: center; /* Center items */
    }

    .artist-image img {
        margin-bottom: 20px; /* Space between image and info on smaller screens */
    }

    .artist-info {
        padding-left: 0; /* Remove padding between image and info on smaller screens */
    }

    .bio h1 {
        font-size: 34px;
    }

    .h2 {
        font-size: 34px;
    }

    .icons {
        flex-direction: row; /* Keep icons in a row */
        justify-content: center; /* Center icons container */
        flex-wrap: nowrap; /* Prevent icons from wrapping */
    }

    .artist-image img {
        max-width: 60%; /* Smaller image on mobile */
    }

    .artwork-grid, .sculpture-grid {
        justify-content: center;
    }

    .card {
        width: calc(50% - 10px);
    }
}


@media screen and (max-width: 480px) {
    .card {
        width: 100%;
    }
}
