/* styles.css */

/* Reset some default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Global styles */
body {
    font-family: Arial, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    background-color: #f9f9f9;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Header styles */
header {
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: flex-start;
    /* Updated to move options to the left */
    align-items: center;
    padding: 20px 0;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    text-decoration: none;
    color: #333;
}

.nav-links {
    margin-left: 20px;
    /* Added margin to the left side of the menu options */
}

.nav-links li {
    display: inline-block;
    margin-left: 15px;
}

.nav-links li a {
    text-decoration: none;
    color: #333;
}

.hero {
    text-align: center;
    padding: 150px 0;
    background-color: #f1f1f1;
}

.hero h1 {
    font-size: 48px;
    font-weight: bold;
    margin-bottom: 20px;
    color: #333;
}

.hero p {
    font-size: 20px;
    margin-bottom: 30px;
    color: #777;
}

.cta-btn {
    display: inline-block;
    cursor: pointer;
    padding: 10px 30px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    background-color: #333;
    color: #fff;
    border-radius: 5px;
}

/* Biography styles */
.biography {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.biography-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 60px 20px;
}

.biography-content {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 30px;
}

.biography-image {
    grid-column: 1 / span 4;
}

.biography-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 50%;
    object-fit: cover;
}

.biography-text {
    grid-column: 6 / span 7;
}

.biography-text h3 {
    font-size: 24px;
    margin-bottom: 20px;
}

.biography-text p {
    margin-bottom: 30px;
}

/* Footer styles */
footer {
    background-color: #333;
    color: #fff;
    margin-top: auto;
    padding: 20px 0;
    text-align: center;
}


footer p {
    font-size: 14px;
}

footer hr {
    border-color: #fff;
}

.exhibition-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    padding: 20px;
}

.exhibition-item {
    padding: 10px;
    text-align: center;
}

.exhibition-item img {
    width: 100%;
    height: auto;
    border-bottom: 1px solid #ddd;
    margin-bottom: 10px;
}

.exhibition-item h3 {
    margin: 10px 0;
    font-size: 1.2em;
}

.exhibition-item p {
    font-size: 0.9em;
    color: #666;
}

/* Artwork grid styles */
.artwork-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
    align-items: start;
    /* Align items at the start of each cell */
}

.artwork-item img {
    cursor: pointer;
    transition: transform 0.3s ease;
    /* Transition for both states */
}

.artwork-item img:hover:not(.rotate-90) {
    transform: scale(1.05);
    /* Scale on hover */
    transition: transform 0.3s ease
}


.artwork-item {
    position: relative;
    transition: transform 0.3s;
    /* Remove box-shadow transition */
    cursor: pointer;
    margin: 10px;
    padding: 5px;
    /* Remove background color and border to make it transparent */
    background-color: transparent;
    border: none;
}

.artwork-item {
    margin: 10px;
    padding: 5px;
    /* Adjust padding if needed */
    overflow: hidden;
    /* To handle any overflow due to rotation */
}


.artwork-item img {
    width: 100%;
    height: auto;
}

/* Style for enlarged image */
.enlarged-image {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 999;
    text-align: center;
    max-width: 100%;
    height: auto;

}

.enlarged-image img {
    max-width: 80%;
    max-height: 80%;
    margin: 10% auto;
    cursor: pointer;
}

.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    cursor: pointer;
    color: white;
    font-size: 24px;
}


/* Rotate specific images by 90 degrees clockwise */
.rotate-90 {
    transform: rotate(90deg);
    transform-origin: center center;
    /* Adjust if needed */
    transition: transform 0.3s ease;
}
/* Rotate images the are in carousel 90 degrees clockwise */
.rotate-90-carousel {
    transform: rotate(90deg);
}

.rotate-90:hover {
    transform: rotate(90deg) scale(1.05);
    /* Scale on hover */
}

/* Press Section Styles */
.press {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.press-article {
    margin-bottom: 30px;
}

.press-article h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.press-article p {
    font-size: 16px;
    color: #666;
}

/* Assuming .active class is added to the current page's nav link */
.nav-links li a.active {
    color: #d35400;
    /* Change the color to something that stands out */
    font-weight: bold;
    /* Make it bold */
    text-decoration: underline;
    /* Underline the active page link */
    background-color: #f0f0f0;
    /* Optional: add a subtle background color */
    border-radius: 5px;
    /* Optional: round the corners if there's a background color */
    padding: 5px 10px;
    /* Optional: add some padding if there's a background color */
}

/* Add a hover effect for all nav links */
.nav-links li a:hover {
    color: #f56a00;
    /* Darker shade for hover state */
    transition: color 0.3s ease;
    /* Smooth transition for color change */
}

/* ... (Your existing styles) ... */

/* Initial styles for larger screens */
.nav-links {
    display: flex;
    /* Rest of the nav-links styles */
}

/* Hamburger menu initially not displayed */
.hamburger {
    display: none;
    font-size: 24px;
    user-select: none;
    cursor: pointer;
    position: absolute;
    right: 20px;
    top: 20px;
}

/* Style for nav-links in mobile view */
@media (max-width: 768px) {
    .hamburger {
        display: block;
    }

    .nav-links {
        display: none;
        position: absolute;
        background-color: #fff;
        top: 60px;
        /* Adjusted to the height of your nav bar */
        left: 0;
        right: 0;
        flex-direction: column;
        border-top: 1px solid #333;
        /* Optional: adds a border at the top of the drop-down */
    }

    .nav-links li {
        margin: 0;
        /* Reset margin */
        padding: 15px;
        /* Add padding */
        border-bottom: 1px solid #333;
        /* Adds a border between menu items */
        background-color: #333;
        /* Background color for the dropdown items */
    }

    .nav-links li a {
        color: white;
        /* Text color for dropdown items */
        padding: 10px 20px;
        /* Padding for dropdown items */
        display: block;
        /* Makes the link fill the li */
        text-align: left;
        /* Aligns the text to the left */
    }

    .nav-links li a:hover {
        background-color: #555;
        /* Color for hover state */
    }
}

/* Ensure nav-links are visible on larger screens */
@media (min-width: 769px) {
    .nav-links {
        display: flex;
        justify-content: flex-start;
        align-items: center;
        margin-left: 20px;
    }

    .hamburger {
        display: none;
    }
}

/* Positioning context for absolute elements */
header {
    position: relative;
    /* This makes the header the parent context for positioning */
}

/* ... (Your other styles) ... */