/* Enhanced Mobile Responsiveness */
@media screen and (max-width: 768px) {
    body, html {
        margin: 0;
        padding: 0;
        overflow-x: hidden;
        width: 100%;
    }

    .custom-hello-showcase-gallery {
        width: 100vw;           /* Force full viewport width */
        max-width: 100%;        /* Ensure no overflow */
        margin: 0 auto;         /* Center the gallery */
        padding: 0;             /* Remove padding */
        box-sizing: border-box; /* Include padding in width calculation */
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 20px;              /* Reduced gap for mobile */
    }

    .showcase-container {
        width: 95%;             /* Slight margin on sides */
        max-width: 100%;        /* Ensure no overflow */
        margin: 0 auto;         /* Center each container */
        padding: 0;             /* Remove padding */
        box-sizing: border-box;
    }

    .main-image-wrapper {
        width: 100%;             /* Full width */
        max-width: 100%;         /* Prevent overflow */
        margin: 0;               /* Remove margins */
        padding: 0;              /* Remove padding */
        overflow: hidden;        /* Hide any overflow */
    }

    .custom-hello-showcase-gallery .main-image {
        width: 100%;             /* Full width */
        max-width: 100%;         /* Prevent overflow */
        margin: 0;               /* Remove margins */
        padding: 0;              /* Remove padding */
        box-sizing: border-box;  /* Include border in width */
    }
}

/* Very Small Screen Specific Adjustments */
@media screen and (max-width: 480px) {
    .custom-hello-showcase-gallery {
        width: 100%;             /* Fallback for older browsers */
        width: 100vw;            /* Full viewport width */
        margin: 0;               /* Remove margins */
        padding: 0;              /* Remove padding */
        overflow-x: hidden;      /* Prevent horizontal scroll */
    }

    .showcase-container {
        width: 100%;             /* Full width */
        margin: 0;               /* Remove margins */
        padding: 0;              /* Remove padding */
    }
}

/* Prevent Horizontal Scrolling */
* {
    -webkit-overflow-scrolling: touch;
    -webkit-box-sizing: border-box;
    -moz-box-sizing: border-box;
    box-sizing: border-box;
}






.custom-hello-showcase-gallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 100px; /* Space between slideshows */

}

.custom-hello-showcase-gallery .main-image-wrapper {
    position: relative;
    overflow: hidden;
}

.custom-hello-showcase-gallery .main-image {
    max-width: 100%;
    max-height: 400px;
    object-fit: contain;
    margin-bottom: 30px;
    transition: all 0.3s ease;
    border: 4px solid darkblue;
    border-radius: 25px;
    cursor: zoom-in;

}
#thumbnailContainer1,
#thumbnailContainer2,
#thumbnailContainer3,
#thumbnailContainer4,
#thumbnailContainer5,
#thumbnailContainer6,
#thumbnailContainer7,
#thumbnailContainer8,
#thumbnailContainer9,
#thumbnailContainer10,
#thumbnailContainer11,
#thumbnailContainer12 {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, auto)); /* Responsive auto-fit */
    justify-content: center; /* Horizontal centering */
    align-content: center;   /* Vertical centering */
    justify-items: center;   /* Center grid items */
    align-items: center;     /* Vertically align grid items */
    gap: 10px;
    width: 100%;             /* Full width of container */
    margin: 0 auto;          /* Center the entire grid container */
    padding: 10px;           /* Optional padding */
}

.text-thumbnail {
    display: inline-flex;    /* Flex display for better centering */
    justify-content: center; /* Horizontal centering of text */
    align-items: center;     /* Vertical centering of text */
    text-align: center;      /* Fallback text alignment */
    margin: 5px;
    width: auto;             /* Allow flexible width */
    min-width: 75px;         /* Minimum width */
}


.text-thumbnail.active {
    background-color: #e0e0e0; /* Highlight active thumbnail */
    font-weight: bold;
}

.text-thumbnail:hover {
    background-color: #f0f0f0; /* Hover effect */
}

/* Responsive adjustments */
@media (max-width: 768px) {
    #thumbnailContainer1,
    #thumbnailContainer2,
    #thumbnailContainer3,
    #thumbnailContainer4,
    #thumbnailContainer5,
    #thumbnailContainer6,
    #thumbnailContainer7,
    #thumbnailContainer8,
    #thumbnailContainer9,
    #thumbnailContainer10,
    #thumbnailContainer11,
    #thumbnailContainer12 {
        grid-template-columns: repeat(3, auto); /* 4 items per row on smaller screens */
    }
}

@media (max-width: 480px) {
    #thumbnailContainer1,
    #thumbnailContainer2,
    #thumbnailContainer3,
    #thumbnailContainer4,
    #thumbnailContainer5,
    #thumbnailContainer6,
    #thumbnailContainer7,
    #thumbnailContainer8,
    #thumbnailContainer9,
    #thumbnailContainer10,
    #thumbnailContainer11,
    #thumbnailContainer12 {
        grid-template-columns: repeat(3, auto); /* 2 items per row on mobile */
    }
}

.custom-hello-showcase-gallery .zoomed-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
}

.custom-hello-showcase-gallery .zoomed-image-container {
    position: relative;
    max-width: 100%;
    max-height: 100%;
}

.custom-hello-showcase-gallery .zoomed-image {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    transform: scale(0.8); /* Reduces the image size by 20% */
}


.custom-hello-showcase-gallery .zoomed-link {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.custom-hello-showcase-gallery .close-button {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 40px;
    color: white;
    cursor: pointer;
    background: none;
    border: none;
    z-index: 1001;
}

.custom-hello-showcase-gallery .thumbnail-container {
    display: flex;
    justify-content: center;
    gap: 15px;
    margin-top: -20px;
    flex-wrap: wrap;
}

.custom-hello-showcase-gallery .text-thumbnail {
    width: auto;
    min-width: 75px;
    height: 50px;
    padding: 0 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #f0f0f0;
    border: 4px solid darkblue;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: bold;
    white-space: nowrap;
    color: darkblue;
}

.custom-hello-showcase-gallery .text-thumbnail:hover,
.custom-hello-showcase-gallery .text-thumbnail.active {
    background-color: darkblue;
    color: lightskyblue;
    transform: scale(1.1);
}

@media (max-width: 900px) {
    .custom-hello-showcase-gallery {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .custom-hello-showcase-gallery .showcase-container {
        max-width: 100%;
    }
}
//* Mobile and Small Screen Optimization */
@media screen and (max-width: 768px) {
  .frame-container {
    width: 100vw;               /* Full viewport width */
    margin: 0;                  /* Remove any margins */
    padding: 0;                 /* Remove any padding */
    overflow-x: hidden;         /* Prevent horizontal scrolling */
  }

  .content-frame {
    width: 100%;                /* 100% of parent container */
    max-width: 100%;            /* Ensure no overflow */
    box-sizing: border-box;     /* Include padding and border in width calculation */
  }
}
.custom-octo-slideshows .custom-main-slideshow {
    grid-column: span 4;
    position: relative;
    height: 0;
    padding-bottom: 56.25%; /* 16:9 aspect ratio - consistent across all devices */
    overflow: hidden;
    border-radius: 25px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border: 4px solid darkblue;
.custom-octo-slideshows .custom-main-slideshow {
    touch-action: manipulation; /* ✅ Allows pinch zoom + panning */
}

}
@media (max-width: 768px) {
    #thumbnailContainer1,
    #thumbnailContainer2,
    /* ... other thumbnail containers ... */
    {
        grid-template-columns: repeat(4, auto); /* 4 items per row on smaller screens */
    }

    .custom-hello-showcase-gallery .text-thumbnail {
        width: auto;
        min-width: 75px; /* Reduced from 75px - half the original size */
        height: 55px; /* Reduced height */
        padding: 0 5px; /* Reduced padding */
        font-size: 0.8em; /* Smaller font size */
        transform: scale(0.8); /* Additional scaling down */
    }
}

@media (max-width: 480px) {
    #thumbnailContainer1,
    #thumbnailContainer2,
    /* ... other thumbnail containers ... */
    {
        grid-template-columns: repeat(1, auto); /* Single column on very small screens */
    }

    .custom-hello-showcase-gallery .text-thumbnail {
        width: auto;
        min-width: 50px; /* Further reduced for very small screens */
        height: 50px; /* Smaller height */
        padding: 0 12.5px; /* Minimal padding */
        font-size: 1.2em; /* Even smaller font */
        transform: scale(0.7); /* Additional scaling down */
    }
}
@media (max-width: 768px) {
    .image-thumbnail {
        width: 120px;  /* Smaller width for mobile */
        height: 120px; /* Smaller height for mobile */
        margin: 3px;  /* Reduced margin */
    }

    .image-thumbnail.active,
    .image-thumbnail:hover {
        transform: scale(1.1); /* Slightly less aggressive scaling on mobile */
    }
}
