.square-img-container {
    position: relative;
    width: 100%;
    padding-top: 100%; /* 1:1 Aspect Ratio (square) */
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    cursor: pointer; /* Pointer cursor for clickable effect */
}

.square-img-container img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Full size image container */
.square-img-container.full-size {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80vw; /* Adjusted width for full-size image */
    max-width: 50%; /* Limit maximum width */
    max-height: 50%; /* Limit maximum height */
    z-index: 1000;
    cursor: zoom-out;
}

.square-img-container.full-size img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    backdrop-filter: blur(8px); /* Apply blur effect only in full-size mode */
}

/* Overlay for blur effect */
.image-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7); /* Semi-transparent black background */
    z-index: 100%;
     /* Ensure overlay is behind full-size image */
    display: none;
    cursor: zoom-out; /* Ubah cursor saat overlay aktif */
}

/* Styling untuk teks "Zoom Out" di atas overlay */
.image-overlay::after {
   
    position: absolute;
    top: 140%;
    left: 140%;
    transform: translate(-40%, -40%);
    color: white;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.image-overlay img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /* Center the image within the overlay */
    max-width: 80%; /* Limit max width to avoid overflowing the viewport */
    max-height: 80%; /* Limit max height to avoid overflowing the viewport */
    object-fit: contain; /* Contain image within the overlay area */
}

/* Custom styles for filter dropdown */
.filter-dropdown {
    position: relative;
    display: inline-block;
}

/* CSS untuk dropdown filter */
.filter-dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}

.filter-dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.filter-dropdown-content a:hover {background-color: #f1f1f1;}

.show {display: block;}


.active-category {
    background-color: #00A9FF;
    color: white;
}

h1.title {
    color: #00A9FF; /* Set title color to dark grey */
    font-weight: bold; /* Make the title bold */
    font-size: 34px; /* Set title font size */
    margin-bottom: 10px;
    margin-top: 10px;/* Add space below the title */
}

/* Fixing image height for uniformity */
.col-md-4 .card {
    height: 100%;
    width: 100%;;
}

/* Additional styling for desktop filter buttons */
.d-none.d-md-flex .btn-secondary {
    margin-right: 10px; /* Add some right margin */
    background-color: #007bff; /* Change background color to blue */
}

/* Styling for category text */
.category-text {
    margin-top: 10px;
    font-size: 18px;
    font-weight: bold;
}