/* Custom Navigation Styles */

/* Desktop Hover Behavior */
@media (min-width: 992px) {
    .dropdown:hover>.dropdown-menu {
        display: block;
        margin-top: 0;
    }

    /* Submenu Hover */
    .dropdown-submenu:hover>.dropdown-menu {
        display: block;
    }
}

/* Submenu Styles */
.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -1px;
}

/* Dropdown Styling */
.dropdown-menu {
    background-color: #343a40;
    /* Match navbar bg-dark */
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

.dropdown-item {
    color: rgba(255, 255, 255, 0.75);
    /* Match nav-link color */
    padding: 0.5rem 1.5rem;
    transition: all 0.2s ease;
}

.dropdown-item:hover,
.dropdown-item:focus {
    color: #fff;
    background-color: rgba(255, 255, 255, 0.1);
}

.dropdown-divider {
    border-top-color: rgba(255, 255, 255, 0.1);
}

/* Gallery Styles */
.gallery-container img {
    transition: transform 0.3s ease;
}

.gallery-container .card:hover img {
    transform: scale(1.02);
}

/* Masonry Layout */
.masonry-grid {
    column-count: 1;
    column-gap: 1rem;
}

@media (min-width: 576px) {
    .masonry-grid {
        column-count: 2;
    }
}

@media (min-width: 992px) {
    .masonry-grid {
        column-count: 3;
    }
}

.masonry-item {
    break-inside: avoid;
    margin-bottom: 1rem;
}

/* Lightbox Grid */
.ratio-1x1 {
    --bs-aspect-ratio: 100%;
}

.object-fit-cover {
    object-fit: cover;
    width: 100%;
    height: 100%;
}

/* Carousel Customization */
.carousel-item img {
    max-height: 600px;
}