/* General Container Styling */
.slider-container {
    width: 100%;
    height: 100vh;
    background-color: #D9BC9A;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px; /* Added padding */
    box-sizing: border-box; /* Ensures padding doesn't affect width */
}

/* Flex container for images */
.slider-images {
    display: flex;
    align-items: center;
    gap: 21px;
    padding: 10px; /* Added padding */
    max-width: 100%; /* Ensures it stays responsive */
    overflow-x: auto; /* Enables scrolling on small screens */
}

/* Default Image Styles */
.slider-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    box-shadow: 1px 2px 10px rgb(16, 16, 16);
}

/* Slider Images */
.slider-img {
    width: 110px;
    border-radius: 6px;
    cursor: pointer;
    position: relative;
    transition: 0.7s ease;
}

.slider-img.active .details h4{
    display: block;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent background */
    padding: 10px 15px; /* Adds some spacing around the text */
    border-radius: 5px; /* Softens edges */
  }

  /* Active Image */
.slider-img.active {
    width: 766px !important;
    height: 750px !important;
}

.details {
    position: absolute;
    bottom: 43px;
    left: 43px;
}

.details h4 {
    font-family: "Playfair Display", sans-serif;
    font-size: 26px;
    font-weight: 700;
    text-align: left;
    line-height: 44px;
    color: #fff;
    text-transform: uppercase;
    transition: 0.7s ease;
    display: none;
}

.details a {
    text-decoration: none;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .details {
        bottom: 20px;
        left: 20px;
        padding: 8px 12px;
    }

    .details h4 {
        font-size: 22px;
        line-height: 36px;
    }
}

@media (max-width: 480px) {
    .details {
        position: relative;
        bottom: auto;
        left: auto;
        text-align: center;
        padding: 10px;
        width: 100%;
    }

    .details h4 {
        font-size: 20px;
        line-height: 3
    }
}

/* Specific Heights for Desktop */
@media (min-width: 1024px) {
    .slider-images .slider-img:first-child,
    .slider-images .slider-img:last-child {
        height: 480px;
    }

    .slider-images .slider-img:nth-child(2),
    .slider-images .slider-img:nth-child(6) {
        height: 560px;
    }

    .slider-images .slider-img:nth-child(3),
    .slider-images .slider-img:nth-child(4),
    .slider-images .slider-img:nth-child(5) {
        height: 665px;
    }
}

/* Make it Responsive for Mobile */
@media (max-width: 768px) {
    .slider-container {
        height: auto; /* Allow it to grow */
        padding: 10px; /* Reduce padding */
        flex-direction: column;
    }

    .slider-images {
        flex-wrap: wrap; /* Wrap images instead of scrolling */
        justify-content: center;
    }

    .slider-img {
        width: 200px; /* Smaller for mobile */
        height: auto;
    }

    .slider-img.active {
        width: 90vw !important; /* Make it occupy most of the screen */
        height: auto !important;
    }

    .details h4 {
        font-size: 20px;
        line-height: 30px;
        display: block; /* Ensures visibility */
    }
}

@media (max-width: 480px) {
    .details {
        position: absolute; /* Keeps it on the image */
        bottom: 10px; /* Adjust placement */
        left: 10px;
        width: auto; /* Prevents stretching */
        background: rgba(0, 0, 0, 0.5); /* Adds contrast for readability */
        padding: 5px 10px;
        border-radius: 5px;
    }

    .details h4 {
        font-size: 18px;
        line-height: 28px;
        color: #fff; /* Ensures readability */
        text-transform: uppercase;
        margin: 0;
        padding: 0;
        text-align: left;
    }
}

