section.image-slider{
    padding: 0;
    position: relative;
}
img-comparison-slider {
    width: 100%;
    margin: auto;
    height: 90vh;
    min-width: 1229px;
  }
  
  
  .custom-animated-handle {
    transition: transform 0.2s;
  }

img-comparison-slider:hover .custom-animated-handle {
    transform: scale(1.2);
}

section.image-slider .comparison-text{
    position: absolute;
    top: 20%;
    left: 50%;
    transform: translateX(-50%);
    text-shadow: 1px 1px 2px black;

    h1{
        text-transform: uppercase;
        font-weight: bold;
        color: #FCFCFC;
        font-size: 50px;
    }
    p{
        text-transform: uppercase;
        color: #FCFCFC;
        font-size: 24px;
        z-index: 10;
    }
}


.gallery-container{
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Three equal-width columns */
    grid-auto-rows: 350px; 
    gap: 15px; /* Space between items */
    width: 90%;
}



.gallery-container .image-card{
    width: 100%;
    height: 100%;
    grid-column: span 1; /* Default span for each image */
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;

    .subgallery{
        display: none;
    }

    img{
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .card-hover-text{
        position: absolute;
        top: 0;
        left:0;
        bottom: 0;
        right: 0;
        background-color: rgba(0, 0, 0, 0.5);
        padding: 20px;


        .card-info{
            color: #DBDBDB;
            text-align: left;
            display: flex;
        flex-direction: column;
        justify-content: end;
        height: 100%;
            

            h3{
                font-weight: bold;
                font-size: 20px;
                text-transform: uppercase;
                
            }
            h4{
                font-size: 12px;
                text-transform: uppercase;
                font-weight: bold;
            }

            p{
                letter-spacing: 1;
                font-size: 16px;
            }

            button{
                border: none;
                border-bottom: #DBDBDB solid 1px;
                padding: 0;
                background-color: transparent;
                color: #DBDBDB;
                margin-top: 10px;
                width: fit-content;
            }
        }
    }

    
  }

  .gallery-container .image-card:nth-child(4n + 1) {
    grid-column: span 2; /* First item in every row spans 2 columns */
    display: flex;

    .card-hover-text .card-info{
        width: 45%;
        height: 100%;
        margin-left: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        
        text-align: left;
    }
  }
  
  .gallery-container .image-card:nth-child(4n + 2) {
    grid-column: span 1; /* Second item in every row spans 1 column */

    .card-hover-text{
        padding: 20px;
    }

    .card-hover-text .card-info{
        display: flex;
        flex-direction: column;
        justify-content: end;
        height: 100%;

        button{
            width: fit-content;
        }
    }
  }

  .gallery-container .image-card:nth-child(4n + 3) {
    grid-column: span 1; /* Third image spans 3 columns */
    grid-column: span 1; /* Second item in every row spans 1 column */

    .card-hover-text{
        padding: 20px;
    }

    .card-hover-text .card-info{
        display: flex;
        flex-direction: column;
        justify-content: end;
        height: 100%;

        button{
            width: fit-content;
        }
    }
  }

  .gallery-container .image-card:nth-child(4n + 4) {
    grid-column: span 2; /* Third image spans 3 columns */

    display: flex;

    .card-hover-text .card-info{
        width: 45%;
        height: 100%;
        margin-left: auto;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
        
        text-align: left;
    }
  }

  .image-card .card-hover-text{
    opacity: 0;
    transition: 0.4s ease all;
  }

  .image-card:hover .card-hover-text{
    opacity: 1;
  }


  #image_viewer{
    position: fixed;
    top: 0;
    left:0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 10002;
    display: none;

    .main-frame-container{
        margin-top: 50px;
        position: relative;
        display: flex;

        figure{
            display: flex;
            justify-content: center;
            align-items: center;
            img{
                max-width: 100%; /* Prevent exceeding container width */
                max-height: 100%; /* Prevent exceeding container height */
                object-fit: contain; /* Maintain aspect ratio */
            }
        }

        svg{
            width: 30px;
            height: 30px;
            fill: white;
        }

        .close-cross{
            position: absolute;
            top: 10px;
            right: 10px;
            cursor: pointer;
        }

        .arrow-left{
            position: absolute;
            left: 20px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
        }

        .arrow-right{
            position: absolute;
            right: 20px;
            top: 50%;
            transform: translateY(-50%);
            cursor: pointer;
        }

        .page-controls{
            position: absolute;
            bottom: 10px;
            left: 50%;
            transform: translateX(-50%);
            display: flex;
            gap: 10px;

            .page-circle{
                height: 10px;
                width: 10px;
                border-radius: 50%;
                background-color: rgba(255, 255, 255, 0.9);
                cursor: pointer;
            }

            .page-circle.selected{
                background-color: rgba(190, 190, 190, 0.9);
            }
        }
        
    }

  }