.masonry {
    column-count: 4; /* Number of columns */
    column-gap: 1rem; /* Spacing between columns */
}

.masonry-item {
    break-inside: avoid; /* Prevent items from breaking between columns */
    margin-bottom: 1rem; /* Space between items */
    position: relative; /* Ensure overlay positions correctly */
}

.masonry img {
    width: 100%; /* Ensure images fill their container width */
    border-radius: 1rem; /* Optional: Rounded corners */
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1); /* Optional: Shadow for styling */
    padding: 0.25rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry img:hover {
    transform: scale(1.5); /* Zoom in by 30% */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2); /* Slightly stronger shadow on hover */
    position: relative; /* Ensure it can stack above other elements */
    z-index: 10; /* Bring it to the front */
}


.masonry {
    column-count: 2; /* Default to 1 column for smaller screens */
}

@media (min-width: 576px) {
    .masonry {
        column-count: 3;
    }
}

@media (min-width: 768px) {
    .masonry {
        column-count: 4;
    }
}

@media (min-width: 1200px) {
    .masonry {
        column-count: 5;
    }
}

.click-overlay {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    font-size: 1.5rem;
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.364);
    color: white;
    border-radius: 0.4rem;
    height: 20%;
    width: 100%;
    position: absolute;
    bottom: 0;
    text-align: center;
    cursor: pointer;
    z-index: 5;
    -webkit-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

.deselect-text {
    font-size: 0.8rem;  /* Smaller font size */
    font-weight: normal;  /* Lighter font weight */
    margin-top: 5px;  /* Adds some space between the texts */
}

.modal-content {
    background-color: transparent !important;
    border: none !important;
    max-width: 100%;
    width: auto;
}

#modalImage {
    width: 100%;
    height: 90vh;
    object-fit: contain;
}

#imageModal {
    background-color: rgba(0, 0, 0, 0.5);
}

.date-container {
    width: 80vw;
    position: relative;
    display: flex;
    justify-content: center;
    gap: 1rem;
    flex-wrap: wrap; /* Allow items to wrap on smaller screens */
}

.date-container input[type="date"],
.date-container input[type="text"] {
    padding: 10px 15px;
    border: 2px solid #3498db;
    border-radius: 10px;
    font-size: 16px;
    background-color: #fff;
    color: #333;
    outline: none;
    transition: all 0.3s ease-in-out;
}

.date-container input[type="date"]:focus,
.date-container input[type="text"]:focus {
    border-color: #2ecc71;
    box-shadow: 0 0 10px rgba(46, 204, 113, 0.5);
}

.date-container input[type="date"]::-webkit-calendar-picker-indicator {
    background-color: #3498db;
    border-radius: 50%;
}

.date-container input[type="date"]:hover,
.date-container input[type="text"]:hover {
    border-color: #2980b9;
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .date-container {
        width: 100vw;
        flex-direction: column; /* Stack items vertically */
        align-items: center; /* Center items */
    }
    .date-container input[type="date"],
    .date-container input[type="text"] {
        width: 100vw;
        margin-bottom: 1rem; /* Add space between inputs */
    }
}

/* Style for the loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Spinner animation */
.loading-spin {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    animation: spin 2s linear infinite;
}

/* Spinner animation keyframes */
@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}




.swipe-image {
    width: 50px; /* Adjust the size as needed */
    animation: swipe 1.5s infinite;
}

@keyframes swipe {
    0%, 100% {
        transform: translateY(100px);
    }
    50% {
        transform: translateY(0);
    }
}

/* Style the watermark (logo) */
.logo-overlay {
    position: absolute;
    width: 10%; /* Adjust size of the logo */
    opacity: 0.1;  /* Make it slightly transparent */
    z-index: 10; /* Ensure it stays on top of the image */
    pointer-events: none; /* Prevent the logo from blocking clicks */
}

