* {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
}

body {
    padding: 20px;
    background-color: #FFFFFF;
    overflow-x: hidden;
}

.filter-sidebar {
    padding: 20px;
    position: sticky;
    top: 20px;
}

.filter-section {
    margin-bottom: 20px;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-check {
    margin-bottom: 5px;
}

.form-check-input {
    cursor: pointer;
}

.form-check-label {
    cursor: pointer;
    user-select: none;
}

.dropdown-menu {
    min-width: 250px;
}

.gallery-container {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    padding: 20px;
    grid-auto-rows: 10px;
    grid-auto-flow: dense;
}

.gallery-item {
    width: 100%;
    break-inside: avoid;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.gallery-item.loaded {
    opacity: 1;
    transform: translateY(0);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-item-title {
    padding: 10px;
    text-align: center;
}

.mobile-filter {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 10px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    display: flex;
    justify-content: center;
}

.mobile-filter .btn {
    width: auto;
    min-width: 200px;
    padding: 6px 12px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.mobile-filter .btn i {
    font-size: 0.8rem;
    transition: transform 0.3s ease;
}

.mobile-filter .btn[aria-expanded="true"] i {
    transform: rotate(180deg);
}

.mobile-filter .dropdown-menu {
    width: 100%;
    margin-top: 0;
    border-radius: 0;
    border: none;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 10px;
}

/* Modal Styles */
.modal-dialog {
    max-width: 95vw;
    margin: 1.75rem auto;
}

.modal-content {
    background: transparent;
    border: none;
}

.modal-header {
    border: none;
    padding: 10px;
}

.modal-header .btn-close {
    background-color: white;
    opacity: 0.8;
}

.modal-body {
    padding: 0;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
}

.modal-image {
    width: 100%;
    height: auto;
    max-height: 90vh;
    object-fit: contain;
}

.modal-nav-buttons {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 20px;
    z-index: 1050;
}

.modal-nav-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.modal-nav-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-navigation {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.prev-btn {
    left: 10px;
}

.next-btn {
    right: 10px;
}

.modal-thumbnails {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    overflow-x: auto;
}

.thumbnail {
    width: 80px;
    height: 80px;
    cursor: pointer;
    border-radius: 4px;
    overflow: hidden;
    opacity: 0.6;
    transition: opacity 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    opacity: 1;
}

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

.modal-close-btn {
    position: fixed;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s ease;
    z-index: 1050;
}

.modal-close-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Media Queries */
@media (max-width: 768px) {
    body {
        padding: 0;
        margin: 0;
        overflow-x: hidden;
    }

    .gallery-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 2px;
        padding: 2px;
        width: 100%;
        margin: 0;
        box-sizing: border-box;
        grid-auto-rows: auto;
        grid-auto-flow: row;
    }

    .gallery-item {
        width: 100%;
        height: 0;
        padding-bottom: 100%;
        margin: 0;
        position: relative;
        overflow: hidden;
        border-radius: 0;
    }

    .gallery-item img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

    .filter-sidebar {
        position: static;
        width: 100%;
        padding: 10px;
        margin-bottom: 10px;
        box-sizing: border-box;
    }

    .filter-group {
        margin-bottom: 10px;
    }

    .filter-group label {
        display: block;
        margin-bottom: 5px;
    }

    .filter-group input[type="checkbox"],
    .filter-group input[type="radio"] {
        margin-right: 5px;
    }

    .modal-dialog {
        max-width: 100vw;
        margin: 0;
        height: 100vh;
    }

    .modal-content {
        height: 100%;
        border-radius: 0;
    }

    .modal-body {
        display: flex;
        align-items: center;
        justify-content: center;
        height: 100%;
        padding: 0;
    }

    .modal-image {
        max-height: 95vh;
        width: auto;
        max-width: 100%;
    }

    .modal-nav-buttons {
        bottom: 10px;
        gap: 10px;
    }

    .modal-nav-btn {
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .modal-close-btn {
        top: 10px;
        right: 10px;
        width: 35px;
        height: 35px;
        font-size: 1.2rem;
    }

    .mobile-filter {
        padding: 8px;
    }

    .mobile-filter .btn {
        min-width: 200px;
        padding: 6px 12px;
        font-size: 0.9rem;
    }
} 
.btn{
    border-radius: 0%;
   background-color: #344358;
   border-color: #344358;

}

.btn:hover{
    background-color: #344358;
    border-color: #344358;
}

/* Hide scrollbar for Chrome, Safari and Opera */
::-webkit-scrollbar {
    display: none;
}

/* Hide scrollbar for IE, Edge and Firefox */
* {
    -ms-overflow-style: none;  /* IE and Edge */
    scrollbar-width: none;  /* Firefox */
}