/* General Styles */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f4f4f4;
}

/* Header Styles */
header {
    background: linear-gradient(90deg, #1a1919, #2b2a2a);
    color: white;
    padding: 1rem 2rem;
    text-align: center;
    font-size: 1.5rem;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}
h1 {
    padding: 5vh;
    width: 20vw;
    position: relative;
    text-align: center; /* Center text within h1 */
    font-size: 2rem;
}
nav {
    display: flex;
    justify-content: center;
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 0;
    position: relative;
    top: 0;
    width: 100%;
    z-index: 1000;
    border-radius: 20px;
}
nav a {
    padding: 10px 15px;
    text-decoration: none;
    color: white;
    font-size: 1rem;
    display: inline-block;
    vertical-align: middle; /* Align vertically */
}
nav a:hover {
    text-decoration: underline;
}
.dropdown {
    position: relative; /* Enables dropdown-menu to position relative to parent */
}

.dropdown-menu {
    display: none; /* Initially hidden */
    position: relative;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    margin-top: 5px;
    z-index: 1000;
    width: 150px; /* Optional: Adjust width */
}

.dropdown-menu a {
    color: white;
    text-decoration: none;
    display: block;
    margin: 5px 0;
    font-size: 0.9rem;
    padding: 5px 10px;
}

.dropdown-menu a:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 5px;
}

/* Display dropdown menu when hovering over parent .dropdown */
.dropdown:hover .dropdown-menu {
    display: block;
}

.overlay-text {
    position: absolute; /* Absolutely position the text over the image */
    top: 10%; /* Vertically center the text */
    left: 50%; /* Horizontally center the text */
    transform: translate(-50%, -50%); /* Offset by half the text's width and height to center */
    color: white; /* Text color */
    font-size: 1.2rem; /* Text size */
    font-weight: bold; /* Make text bold */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5); /* Add text shadow for better readability */
    padding: 10px; /* Optional: adds space around the text */
    border-radius: 5px; /* Optional: Adds rounded corners to the background */
    z-index: 10; /* Ensure the text appears above the image */
}

/* Gallery Layout */
.gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 15px;
    padding: 20px;
    margin: 0 auto;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    height: 250px;
    border: 3px #1a1919;
    border-style: solid;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    transition: transform 0.3s ease-in-out;
}

/* Hover effect */
.gallery-item:hover img {
    transform: scale(1.1);
    opacity: 1;
}

.line {
    background-color: #1a1919;
    height: 10px; /* Thickness of the line */
    margin: 0px auto; /* Center the line horizontally and add margin on top and bottom */
    width: 90%; /* Full width of the container (you can adjust the width as needed) */
    border-radius: 10px;
    display: flex; /* Enables flexbox */
    justify-content: center; /* This centers any content inside the line (if you had text or something else inside) */
    align-items: center; /* Center content vertically (though in this case, you won't have content inside) */
    text-align: center;
}

/* Lightbox Styles */
/* Lightbox Styles */
.lightbox {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* Arrow Buttons */
.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 40px;
    color: white;
    cursor: pointer;
    z-index: 1001;
}

.left {
    left: 20px; /* Position left arrow */
}

.right {
    right: 20px; /* Position right arrow */
}

/* Image inside the lightbox */
.lightbox img {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
}

/* Close button */
.lightbox .close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
}

.content {
    position: relative; /* This allows the image to float relative to this container */
}

.floating-image {
    position: absolute;
    bottom: 0vh;
    left: 10px; /* Instead of left, use right to place it on the right side */
    width: 15vw;
    height: auto;
}

/* Media Queries */

/* For screens with a maximum width of 800px */
@media (max-width: 800px) {
    body {
        font-size: 1rem;
    }

    header {
        font-size: 1.8rem; /* Slightly smaller than default */
    }

    nav {
        font-size: 1rem;
    }

    h1 {
        font-size: 2rem;
        width: 70vw;
        left: 15%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(25vw, 1fr)); /* Adjust gallery grid */
    }
}

/* Hamburger icon styles */
#hamburger-menu {
    display: none;  /* Hide the hamburger by default */
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 20px;
    cursor: pointer;
    position: relative; /* Ensure it's not hidden behind other elements */
    z-index: 1000; /* Ensure it stays on top */
}

#hamburger-menu div {
    background-color: white;
    height: 4px;
    width: 100%;
    border-radius: 2px;
}

/* For screens with a maximum width of 1024px */
@media (max-width: 1024px) {
    body {
        font-size: 1.1rem;
    }

    header {
        font-size: 2rem; /* Default header size */
    }

    #hamburger-menu {
        display: flex;
        position: absolute;
        top: 5vh; /* Adjust if needed */
        right: 2vw; /* Adjust if needed */
        z-index: 1000;
    }

    .dropdown-menu {
        display: none; /* Hide by default */
        position: absolute; /* Position relative to the parent */
        top: 5vh; /* Adjust this to move the dropdown below the hamburger button */
        left: 50vw;
        background-color: rgba(0, 0, 0, 0.8); /* Dark background for contrast */
        padding: 10px;
        width: 150px; /* Set a fixed width for the dropdown menu */
        border-radius: 5px; /* Rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Slight shadow for depth */
        z-index: 10000; /* Make sure it's below the hamburger button */
    }

    /* Make sure dropdown content is not stretched too much */
    .dropdown-menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-menu li {
        padding: 8px;
        text-align: center;
    }

    .dropdown-menu li:hover {
        background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
    }

    nav {
        font-size: 1.1rem;
    }

    h1 {
        display: flex;
        justify-content: center;
        font-size: 2.0rem;
        width: 70vw;
        left: 5%;   
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(20vw, 1fr)); /* Adjust gallery grid */
    }
}

/* For screens with a maximum width of 1280px and a max height of 720px */
@media (max-width: 1280px) and (max-height: 720px) {
    body {
        font-size: 1.2rem;
    }

    header {
        font-size: 2rem; /* Maintain standard size for medium screens */
    }

    nav {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 2.5rem;
        width: 55vw;
        left: 22%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(18vw, 1fr)); /* Adjust for larger small screens */
    }
}

/* For screens with a width of 1280px and above */
@media (min-width: 1281px) {
    body {
        font-size: 1.2rem;
    }

    header {
        font-size: 2rem; /* Default large header font-size */
    }

    nav {
        font-size: 1.2rem;
    }

    h1 {
        font-size: 3rem; /* Default h1 size */
        width: 38vw;
        left: 30%;
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(15vw, 1fr)); /* Gallery grid remains responsive */
    }
}

@media (max-width: 768px) {
    #hamburger-menu {
        display: flex;
        position: absolute;
        top: 5vh; /* Adjust if needed */
        right: 2vw; /* Adjust if needed */
        z-index: 1000;
    }

    .dropdown-menu {
        display: none; /* Hide by default */
        position: absolute; /* Position relative to the parent */
        top: 5vh; /* Adjust this to move the dropdown below the hamburger button */
        left: 50vw;
        background-color: rgba(0, 0, 0, 0.8); /* Dark background for contrast */
        padding: 10px;
        width: 150px; /* Set a fixed width for the dropdown menu */
        border-radius: 5px; /* Rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Slight shadow for depth */
        z-index: 5; /* Make sure it's below the hamburger button */
    }

    /* Make sure dropdown content is not stretched too much */
    .dropdown-menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-menu li {
        padding: 8px;
        text-align: center;
    }

    .dropdown-menu li:hover {
        background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
    }
}

/* For screens with a maximum width of 640px */
@media (max-width: 640px) {
    body {
        font-size: 0.875rem; /* Smaller font size for mobile devices */
    }

    header {
        font-size: 1.5rem; /* Smaller font-size in header */
    }

    nav {
        font-size: 0.9rem; /* Adjust nav font size */
    }

    nav a {
        font-size: 0.8rem; /* Adjust nav font size */
    }

    h1 {
        font-size: 1.5rem; /* Reduce size of h1 */
        width: 80vw; /* Use 80% of viewport width */
        left: -12%; /* Align h1 more to the center */
    }

    .gallery {
        grid-template-columns: repeat(auto-fit, minmax(30vw, 1fr)); /* Adjust for small screens */
    }
}

@media (max-width: 400px) {
    #hamburger-menu {
        display: flex;
        position: absolute;
        top: 5vh; /* Adjust if needed */
        right: 2vw; /* Adjust if needed */
        z-index: 1000;
    }

    .dropdown-menu {
        display: none; /* Hide by default */
        position: absolute; /* Position relative to the parent */
        top: 5vh; /* Adjust this to move the dropdown below the hamburger button */
        left: 35vw;
        background-color: rgba(0, 0, 0, 0.8); /* Dark background for contrast */
        padding: 10px;
        width: 100px; /* Set a fixed width for the dropdown menu */
        border-radius: 5px; /* Rounded corners */
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3); /* Slight shadow for depth */
        z-index: 5; /* Make sure it's below the hamburger button */
    }

    /* Make sure dropdown content is not stretched too much */
    .dropdown-menu ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }

    .dropdown-menu li {
        padding: 8px;
        text-align: center;
    }

    .dropdown-menu li:hover {
        background-color: rgba(255, 255, 255, 0.2); /* Light hover effect */
    }

    .floating-image {
        position: absolute;
        bottom: 0vh;
        left: 33vw;
        width: 35vw;
        height: 7vh;
    }
}