/* =========================================
   CSR SECTION — preserve the existing layout
========================================= */
.csr-wrap {
    width: 80%;
        /*minimize*/
    /* height: 800px; */
    margin: auto;
    margin-top: clamp(100px, calc(6.59vw + 205px), 180px);
    text-align: center;
    box-sizing: border-box;
}

.csr-title {
    color: var(--titlecolor, var(--color1));
    font-size: clamp(26px, calc(2.4vw + 17px), var(--titlesize));
    font-weight: 600;
    margin-bottom: 80px;
    text-align: center;
}

/* =========================================
   SUSTAINABILITY GALLERY
========================================= */
.sustainability-section {
      width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.sustainability-gallery {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    font-family: Arial, sans-serif;
    box-sizing: border-box;
}

/* Main image container */
.sustainability-image-wrap {
    position: relative;
    width: 100%;
    /*minimize*/
     /* height: clamp(300px, 52vw, 450px);  */
    overflow: hidden;
    border-radius: 8px;
    background: transparent;
}

.sustainability-image-wrap > img {
    display: block;
    width: 100%;
    height: 100%;
        /*minimize*/
    /* object-fit: contain; */
    transition: opacity 0.2s ease;
}

/* Caption */
.sustainability-caption {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 22px 70px 18px 20px;
    color: #fff;
    font-size: 16px;
    line-height: 1.5;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.78));
    text-align: left;
    pointer-events: none;
    box-sizing: border-box;
}

/* Previous / next buttons */
.sustainability-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    width: 46px;
    height: 56px;
    border: none;
    border-radius: 5px;
    background: rgba(0, 0, 0, 0.48);
    color: #fff;
    font-size: 25px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.sustainability-arrow:hover {
    background: rgba(0, 0, 0, 0.8);
}

.sustainability-arrow-left {
    left: 14px;
}

.sustainability-arrow-right {
    right: 14px;
}

/* Image counter */
.sustainability-counter {
    position: absolute;
    top: 14px;
    right: 14px;
    padding: 7px 12px;
    border-radius: 20px;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 13px;
}

/* Horizontal thumbnail strip */
.sustainability-thumbnails {
    display: flex;
    gap: 10px;
    width: 100%;
    margin-top: 12px;
    padding: 4px 2px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    box-sizing: border-box;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
}

.sustainability-thumb {
    flex: 0 0 100px;
    width: 100px;
    height: 72px;
    padding: 0;
    overflow: hidden;
    border: 2px solid transparent;
    border-radius: 5px;
    background: transparent;
    cursor: pointer;
    opacity: 0.62;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sustainability-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sustainability-thumb:hover {
    opacity: 0.9;
}

.sustainability-thumb.active {
    border-color: #f78f1e;
    opacity: 1;
}

/* =========================================
   TABLET AND MOBILE
========================================= */
@media (max-width: 800px) {
    .csr-wrap {
        width: 90% !important;
        max-width: 1000px !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 40px auto !important;
        padding: 24px 0 !important;
        box-sizing: border-box !important;
        text-align: center !important;
    }

    .csr-title {
        font-size: 26px !important;
        line-height: 1.1;
        margin-bottom: 40px !important;
    }

    .sustainability-gallery {
        width: 100%;
    }

    .sustainability-image-wrap {
        height: clamp(260px, 65vw, 450px);
    }

    .sustainability-arrow {
        width: 38px;
        height: 46px;
        font-size: 20px;
    }

    .sustainability-arrow-left {
        left: 8px;
    }

    .sustainability-arrow-right {
        right: 8px;
    }

    .sustainability-caption {
        padding: 20px 15px 14px;
        font-size: 14px;
    }

    .sustainability-thumb {
        flex-basis: 78px;
        width: 78px;
        height: 58px;
    }
}
