/* Reset default margins and paddings */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    height: 100%;
    width: 100%;
    font-family: Arial, sans-serif;
}

.gallery {
    position: relative;
    height: 100vh;
    width: 100vw;
    overflow: hidden;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

#image-4.slide {
    background-position: left center;
    background-size: auto 100%;
}

.slide.active {
    opacity: 1;
    z-index: 1;
}

.project-details {
    position: absolute;
    top: 75%;
    left: 50px;
    max-width: 300px;
    opacity: 0; /* Initially hidden */
    transform: translateY(20px); /* Start by being 20px down */
    transition: transform 1.5s ease, opacity 1.5s ease; /* Smooth transition */
}

.project-details.show-details {
    opacity: 1;
    transform: translateY(0); /* Slide up 20px into position */
}

.project-details.hide-details {
    opacity: 0;
    transform: translateY(-20px); /* Slide up 20px when fading out */
}

.project-details h2 {
    margin-bottom: 10px;
    color:#ffffff;
    font-size: 2.5em;
    font-family: "spectral", sans-serif;
    font-weight: 200;
    font-style: italic;
    text-transform: lowercase;
}

.project-details p {
    margin-top: -5px;
    font-size: 0.9em;
    font-family: "greycliff-cf", sans-serif;
    font-weight: 200;
    font-style: normal;
    text-transform: lowercase;
    color: #ffffff;
}

.overlay-image {
    max-width: 250px;
    height: auto;
    display: block;

}

#image-1 .image-container {
    margin-top: 5px;
    margin-left: -5px;
}

#image-2 .image-container {
    margin-left: -5px;
}


/* Arrow Styling */

/* Wrapper for centering */
.right-arrow-wrapper {
    position: absolute;
    bottom: 7%; /* 10% from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Offset by 50% of its own width to center */
    z-index: 5; /* Ensure it appears above other elements */
}

/* Container that increases the hover area */
.right-arrow-container {
    position: relative; /* Ensure container is positioned relative to its parent */
    width: 40px; /* Larger area around the arrow for hover */
    height: 30px; /* Adjust the height to cover the hover area */
    cursor: pointer; /* Indicate that the area is interactive */
    display: flex;
    justify-content: center;
    align-items: center;
    left: calc(50% + 31px); /* Move the arrow 20px to the left */
    transform: translateX(-50%); /* Offset by 50% of its own width to center */
    /*border: red solid 1px;  Debugging the hover area */
}

/* The arrow itself (container for both the tail and head) */
.right-arrow {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 2px; /* Thickness of the arrow line */
    background-color: transparent; /* We only want the tail to have color */
    transition: transform 0.3s ease; /* Smooth transition for the shift */
}

/* The tail (horizontal line) */
.right-tail {
    position: relative;
    width: 40px;
    height: 2px;
    background-color: white;
    top: 1.5px; /* Move the tail down by 1px */
    right:1px;
}

/* Arrowhead creation */
.right-arrow::before, .right-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 15px; /* Length of the arrowhead */
    height: 2px; /* Thickness matching the line */
    background-color: white;
    transform-origin: right center;
}

/* Arrowhead positioning */
.right-arrow::before {
    transform: rotate(45deg); /* Rotate to create the angled tip */
    top: 2px;
}

.right-arrow::after {
    transform: rotate(-45deg); /* Rotate to create the angled tip */
}

/* Hover effect: Shift the entire arrow (tail + head together) */
.right-arrow-container:hover .right-arrow {
    transform: translateX(20px); /* Move the whole arrow 20px to the right */
}


/* Wrapper for centering */
.left-arrow-wrapper {
    position: absolute;
    bottom: 7%; /* 10% from the bottom */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%); /* Offset by 50% of its own width to center */
    z-index: 5; /* Ensure it appears above other elements */
}

/* Container that increases the hover area */
.left-arrow-container {
    position: relative; /* Ensure container is positioned relative to its parent */
    width: 40px; /* Larger area around the arrow for hover */
    height: 30px; /* Adjust the height to cover the hover area */
    cursor: pointer; /* Indicate that the area is interactive */
    display: flex;
    justify-content: center;
    align-items: center;
    left: calc(50% - 30px); /* Move the arrow 20px to the left */
    transform: translateX(-50%); /* Offset by 50% of its own width to center */
    /*border: red solid 1px;  Debugging the hover area */
}

/* The arrow itself (container for both the tail and head) */
.left-arrow {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 2px; /* Thickness of the arrow line */
    background-color: transparent; /* We only want the tail to have color */
    transition: transform 0.3s ease; /* Smooth transition for the shift */
}

/* The tail (horizontal line) */
.left-tail {
    position: relative;
    width: 40px;
    height: 2px;
    background-color: white;
    top: 1.5px; /* Move the tail down by 1px */
}

/* Arrowhead creation */
.left-arrow::before, .left-arrow::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0; /* Position the arrowhead on the left side */
    transform: translateY(-50%);
    width: 15px; /* Length of the arrowhead */
    height: 2px; /* Thickness matching the line */
    background-color: white;
    transform-origin: left center; /* Flip the arrowhead for left alignment */
}

/* Arrowhead positioning */
.left-arrow::before {
    transform: rotate(-45deg); /* Rotate to create the left-pointing tip */
    top: 2px;
}

.left-arrow::after {
    transform: rotate(45deg); /* Rotate to create the left-pointing tip */
}

/* Hover effect: Shift the entire arrow (tail + head together) */
.left-arrow-container:hover .left-arrow {
    transform: translateX(-20px); /* Move the whole arrow 20px to the left */
}

