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

html, body {
    overflow-x: hidden;
    max-width: 100vw;
}
body {
    font-family: 'Arial', sans-serif;
    background-color: #f4f4f4;
    color: #333;
}

/* Section Spacing */
section,
.art-section,
.hero-header,
#artwork-list,
footer {
    margin-bottom: 10px;
}

body > *:not(:last-child) {
    margin-bottom: 10px;
}

/* Header Styles */
.u-avatar {
    border-radius: 50%;
    width: 105px;
    height: 105px;
    object-fit: cover;
    margin: 25px;
}

.hero-header {
    position: relative;
    background: url('./img/hd1.JPG') center center/cover no-repeat;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    flex-direction: column;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.55);
}

.header-content {
    position: relative;
    z-index: 2;
    max-width: 900px;
    width: 100%;
}

.header-content h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.header-content p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;
}

/* Navigation Bar */
nav {
    background-color: #333;
    padding: 10px;
    text-align: center;
}

nav a {
    color: white;
    padding: 14px 20px;
    text-transform: uppercase;
    font-weight: bold;
    letter-spacing: 1px;
    text-decoration: none;
    margin: 0 10px;
}

nav a:hover {
    color: #5cd890;
}


.hero {
    text-align: center;
    padding: 5rem 1rem;
    background: #34495e;
    color: #fff;
  }
  
  .hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    
  }
  
  .hero p {
    font-size: 1.1rem;
    line-height: 1.6;
    color: #f0f0f0;
  }
  
/* Main Section */
.artworks h2 {
    font-size: 4em;
    font-weight: bold;
    text-align: center;
    color: #333;
    margin: 60px 0;
    letter-spacing: 2px;
    text-transform: uppercase;
    background-image: linear-gradient(to right, #007bff, #00d2ff);
    -webkit-background-clip: text;
    background-clip: text;
    padding: 10px 0;
    border-bottom: 3px solid #00d2ff;
    opacity: 0;
    animation: fadeInAnimation 1.5s forwards;
}

@keyframes fadeInAnimation {
    0% {
        opacity: 0;
        transform: translateY(-30px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

.art-section {
    margin: 60px 0;
    padding: 40px 40px;
    background-color: #f9f9f9;
    border-radius: 8px;
}

.artwork-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.artwork-item {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    text-align: center;
    padding: 15px;
    transition: transform 0.3s ease;
}

.artwork-item:hover {
    transform: scale(1.05);
}

.artwork-item img {
    width: 100%;
    height: auto;
    border-radius: 0px;
}

.artwork-item h4 {
    font-size: 1.2em;
    margin-top: 10px;
}

.artwork-item p {
    margin: 5px 0;
}

button {
    background-color: #5cd890;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1em;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4bb876;
}

/* Footer Styles */
footer {
    background-color: #333;
    color: white;
    text-align: center;
    padding: 20px;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 3;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto; /* Allow scrolling when content overflows */
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px 0; /* Optional: add space at top/bottom */
    box-sizing: border-box;
}

.modal-content {
    display: block;
    max-width: 90%;
    max-height: 90vh; /* Ensures it fits within viewport */
    margin: 0 auto;
    border-radius: 0;
    object-fit: contain; /* Maintain aspect ratio */
}

#caption {
    text-align: center;
    color: white;
    font-size: 18px;
    padding: 10px;
    max-width: 90%;
    margin: 0 auto;
    word-wrap: break-word;
}

.close {
    position: fixed;
    top: 20px;
    right: 30px;
    color: white;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 4;
}

.close:hover {
    color: #ddd;
}


/* Responsive Layouts */
@media (max-width: 812px) {
    .artwork-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
        padding: 0 10px;
    }
    .artwork-item {
        padding: 12px;
    }
    .hero-header {
        padding: 40px 15px;
        min-height: 50vh;
        background-position: center center;
    }
    .header-content h1 {
        font-size: 1.6rem;
    }
    .header-content p {
        font-size: 1rem;
    }
    nav a {
        display: inline-block;
        margin: 5px 10px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .artwork-container {
        grid-template-columns: 1fr;
        padding: 0 8px;
    }
    .artwork-item {
        padding: 10px;
    }
    #artwork-list h2 {
        font-size: 2em;
    }
    .artwork-item h4 {
        font-size: 1em;
    }
    .hero-header {
        padding: 30px 10px;
        min-height: auto;
    }
    .header-content h1 {
        font-size: 1.4rem;
    }
    .header-content p {
        font-size: 0.95rem;
    }
    button {
        padding: 8px 16px;
    }
}

@media screen and (max-height: 450px) and (orientation: landscape) {
    .hero-header {
        padding: 30px 25px;
        height: auto;
    }
    .header-content h1 {
        font-size: 1.2rem;
    }
    .header-content p {
        font-size: 0.9rem;
    }
    .artwork-container {
        grid-template-columns: repeat(2, 1fr);
        padding: 0 8px;
        gap: 10px;
    }
    nav a {
        font-size: 0.85rem;
        margin: 4px 6px;
        padding: 8px 10px;
    }
    button {
        padding: 6px 12px;
        font-size: 0.9rem;
    }
}


#more {display: none;}