/* 🔥 Bio Dropdown Effect (Only This Was Added) */
.bio-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, padding 0.4s ease-in-out, opacity 0.4s ease-in-out;
    background-color: #f1f1f1;
    border-radius: 5px;
    text-align: left;
    margin: 10px auto;
    width: 80%;
    padding: 0;
    opacity: 0;
}

.bio-section.show {
    max-height: 600px;
    padding: 15px;
    opacity: 1;
}

.bio-section p {
    margin-bottom: 15px; /* Adds space between paragraphs */
    line-height: 1.6; /* Improves readability */
    font-size: 16px;
    color: #333;
}
.bio-content {
    max-width: 700px; /* Limits text width for better readability */
    margin: 50px auto; /* Centers the text and adds top/bottom space */
    padding: 20px;
    text-align: left;
    font-size: 16px;
    line-height: 1.8; /* Increases line spacing for a more elegant feel */
    color: #333;
}
#slideshowMediaWrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 80vw;
    max-height: 80vh;
    overflow: hidden;
}

#slideshowMedia {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain; /* Ensures proper scaling */
}


/* Slideshow Overlay */
.slideshow-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    flex-direction: row; /* Arrange content in a row */
    text-align: left;
}

/* Slideshow Content (Now Side-by-Side) */
.slideshow-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px; /* Space between text and image */
    max-width: 90%;
    max-height: 90vh;
}

/* Artwork Info Box (Now on Left) */
.slideshow-info {
    background: rgba(255, 255, 255, 0.9);
    padding: 15px;
    border-radius: 5px;
    width: 250px; /* Keeps it compact */
    max-height: 80vh; /* Prevents overflow */
    overflow-y: auto; /* Adds scrolling if needed */
}

.slideshow-info h2 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px; /* Reduce space under the title */
    line-height: 1.2; /* Tighter text spacing */
}

/* Details (Year, Medium, Description) */
.slideshow-info p {
    font-size: 12px;
    line-height: 1.3; /* Reduce vertical space between lines */
    margin: 2px 0; /* Less space between elements */
    color: #444;
}

/* Slideshow Image (Now on Right) */
.slideshow-overlay img {
    max-width: 60vw;
    max-height: 80vh;
    border-radius: 5px;
    object-fit: contain;
}


#loadMoreBtn:hover {
    transform: scale(1.1) translateY(5px); /* Grow + Move down slightly */
}

#loadMoreBtn {
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
    background: none !important;
    transition: transform 0.2s ease-in-out; /* Smooth animation */
}

#loadMoreBtn {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 16px;
    background-color: #d63384;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}

#loadMoreBtn:hover {
    background-color: #b0256b;
}

/* Navigation Arrows */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    padding: 8px;
    cursor: pointer;
    font-size: 14px;
}

.prev {
    left: 5%;
}

.next {
    right: 5%;
}


/* Maintain the existing hover effect for links */
a:hover {
    background: yellow;
    text-decoration: inherit;
    cursor: url(/Photos/2015/bananaredo.png), auto;
}

/* 🔥 Dropdown Effect for Projects, CV & Contact */
.dropdown-section {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s ease-in-out, padding 0.4s ease-in-out, opacity 0.4s ease-in-out;
    background-color: #f1f1f1;
    border-radius: 5px;
    text-align: left;
    margin: 10px auto;
    width: 80%;
    padding: 0;
    opacity: 0;
}

.dropdown-section.show {
    max-height: 400px; /* Adjusted to fit content */
    padding: 15px;
    opacity: 1;
}

/* Style for project, CV, and contact text */
.dropdown-section p, .dropdown-section ul {
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

.dropdown-section ul {
    padding-left: 20px;
}

body {
    background-color: #e6e5e1; /* Soft off-white */
}

a {
    text-decoration: none;
    text-decoration-color: whitesmoke;
    color: #d63384;
}

/* Center name at the top */
#name {
    position: absolute;
    font-size: 10pt;
    font-family: monospace;
    text-align: center;
    color: aliceblue;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
    padding-top: 3%;
}

/* Keep your header style but remove uppercase */
.header {
    color: #3b3a36;
    padding-left: 75%;
    font-size: 30px;
    font-family: "Arial Narrow", sans-serif;
    font-weight: 400;
    letter-spacing: 1px;
    text-transform: none;
}

/* Adjust bio/contact section to be centered */
.bio-contact {
    text-align: center;
    margin: 20px 0;
}

.bio-contact a {
    margin: 0 10px;
}

/* Image Grid - Ensure all images are square */
.image-grid {
    max-width: 1200px; /* Keeps a max width for clean layout */
    margin: 20px auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 10px;
    padding: 200px;
    padding-top: 50px;
}

.image-item {
    width: 100%;
    aspect-ratio: 1 / 1;
}

/* Ensure all images and GIFs are perfect squares */
.image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures proper cropping */
    aspect-ratio: 1 / 1; /* Forces a perfect square */
    display: block;
    transition: transform 0.3s ease;
}

.image-grid .image-item {
    width: 100%; /* Make sure images fully fit in the grid */
}

/* Image hover effect */
.image-item:hover img {
    transform: scale(1.05);
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .image-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    }

    .image-item {
        width: 120px;
        height: 120px;
    }

    .header {
        font-size: 28px;
    }
    
   .hidden-header {
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0 !important; /* Completely hides text rendering */
    line-height: 0 !important;
    visibility: hidden !important; /* Hides it visually */
    
}
  h2.hidden-header {
    all: unset !important; /* Reset all default styles */
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    line-height: 0 !important;
    visibility: hidden !important;
    display: none !important; /* Completely remove it from layout */
}
html body h2.hidden-header {
    all: unset !important;
    display: none !important;
    visibility: hidden !important;
    position: absolute !important;
    left: -9999px !important;
    top: -9999px !important;
    width: 1px !important;
    height: 1px !important;
    overflow: hidden !important;
    white-space: nowrap !important;
    font-size: 0 !important;
    line-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}


}
