.masonry {
    margin-top: 4rem;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
}

.masonry-item {
    position: relative;
    margin-bottom: 1rem;
    margin-left: 0.5rem;
    margin-right: 0.5rem;
    display: flex;
    align-items: center;
}

.masonry img {
    width: 100%;
    border-radius: 1rem;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    padding: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.masonry img:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.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: 1.5rem;
    font-weight: normal;
    margin-top: 5px;
}

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

#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;
}

.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 (max-width: 768px) {
    .date-container {
        width: 100vw;
        flex-direction: column;
        align-items: center;
    }

    .date-container input[type="date"],
    .date-container input[type="text"] {
        width: 100vw;
        margin-bottom: 1rem;
    }
}

/* Style for loading overlay */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: none;
    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);
    }
}


@media print {
    #gallery {
        display: none;
    }
}


.carousel-overlay {
    position: absolute;
    bottom: 20%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(0, 0, 0, 0.6);
    padding: 10px 15px;
    font-size: 1.2rem;
    border-radius: 10px;
    cursor: pointer;
}

.modal-fullscreen .modal-content {
    background-color: black; /* Dark mode */
}

.full-screen-img {
    /* display: flex; */
    padding: 1rem;
    width: 100vw;
    height: 100vh;
    max-width: 100%;
    max-height: 100vh;
    object-fit: contain; /* Maintain aspect ratio */
    transition: transform 0.2s ease;
}

.zoom-container {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

