.logo {
    background-image: url('/static/images/Logo sub-text white brown paper front.png');
    background-size: contain; /* Adjusts the image to fit the element */
    background-repeat: no-repeat; /* Prevents the image from repeating */
    background-position: center; /* Centers the background image */
    display: block; /* Allows width and height to be adjusted */
    width: 100%; /* Adjust this value to change the logo size */
    height: 400px; /* Adjust this value to change the logo size */
    text-indent: -9999px; /* Hides the text */
    margin: 0 auto; /* Centers the logo */
    text-align: center;
    font-family: 'novecentosanswide';
    font-weight: bold;
    color: #fff;
    font-size: 72px;
    line-height: 74px;
    text-transform: uppercase;
    margin: -85px auto 23px; /* Centers the margin */
}

.iframe-container {
    position: relative;
    width: 100%;
    pointer-events: none;
    top: -4.4em;
}

#iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Index-only iframe target */
.page-index #iframe {
    position: relative;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 200%;
    transform: translate(-50%, -50%);
    border: none;
}

.page-index .iframe-container {
    margin-bottom: 180px;
}

#header {
    max-width: 1170px;
    margin: 0 auto;
    padding: 69px 0 70px;
    position: relative;
}

.video-container {
    position: relative;
    width: 100%;
    max-width: 600px; /* Adjust as necessary */
}

.video-preview {
    width: 100%;
    border-radius: 8px;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: url('/static/images/play-button.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    z-index: 10;
}

.video-element {
    display: none;
    width: 100%;
    border-radius: 8px;
}

/* Popup Portfolio Styling */
.popup_portfolio {
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden;
    max-width: 1132px;
    margin: 0 auto;
    position: relative;
}

/* Background and Foreground Images */
.background-img,
.foreground-img {
    width: 100%;
    height: 530px; /* Fixed height for the images */
    background-size: cover;
    background-position: center;
}

/* Specific Background Image */
.background-img {
    background-image: url("/static/images/Nadelwerk.png");
    position: relative;
    z-index: 1;
}

/* Foreground Wrapper */
.foreground-wrapper {
    position: absolute;
    top: 20px;
    left: 20px;
    height: 530px; /* Same fixed height */
    overflow: hidden;
    z-index: 2;
    width: 95%; /* Full width to cover entire area */
}

/* Specific Foreground Image */
.foreground-img {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url("/static/images/Nadelwerk_before.png");
    clip-path: inset(0 50% 0 0); /* Initially clip half of the foreground image */
}

/* Custom Slider Styling */
.custom-slider {
    -webkit-appearance: none;
    width: 100%;
    height: 10px; /* Adjust the height for visibility */
    background: rgba(227, 91, 91, 0.3);
    outline: none;
    margin: 20px 0; /* Add spacing around the slider */
    transition: all 0.2s;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
    z-index: 3; /* Ensure it appears above the images */
}

.custom-slider::-webkit-slider-runnable-track {
    width: 100%;
    height: 10px;
    background: rgba(242, 242, 242, 0.5); /* Visible slider bar */
}

.custom-slider::-moz-range-track {
    width: 100%;
    height: 10px;
    background: rgba(242, 242, 242, 0.5); /* Visible slider bar */
}

.custom-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    background: white;
    cursor: pointer;
}

.custom-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    background: #7f2d2d;
    cursor: pointer;
}

/* Custom Slider Button */
.custom-slider-button {
    pointer-events: none;
    position: absolute;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background-color: white;
    left: calc(50% - 15px); /* Centering the button */
    top: calc(50% - 15px); /* Centering the button */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 4; /* Higher z-index to ensure it's above other elements */
    visibility: hidden;
}

.custom-slider-button:after {
    content: "";
    padding: 3px;
    display: inline-block;
    border: solid #5D5D5D;
    border-width: 0 2px 2px 0;
    transform: rotate(-45deg);
    visibility: hidden;
}

.custom-slider-button:before {
    content: "";
    padding: 3px;
    display: inline-block;
    border: solid #5D5D5D;
    border-width: 0 2px 2px 0;
    transform: rotate(135deg);
    visibility: hidden;
}

/* Ensuring the content order */
.popup_portfolio .content-section {
    position: relative;
    z-index: 3; /* Ensure text elements are above the background images */
    margin-top: 20px; /* Spacing between sections */
}
