:root {
    --grid-gap: 4px;
}

body {
    background-color: #0b0c10;
    color: #ffffff;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
}

.icon {
    width: 1em;
    height: 1em;
    vertical-align: -0.125em;
    filter: invert(1);
}

/* Glassmorphism Navbar */
.navbar {
    background: rgba(11, 12, 16, 0.8) !important;
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
}

/* Carousel */
#carousel-1 {
    border-radius: 0 0 20px 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.carousel-item img {
    filter: brightness(0.8);
    transition: transform 10s ease;
    width: 100%;
    object-fit: cover;
    height: 500px;
}

.carousel-item.active img {
    transform: scale(1.1);
}

/* Photo Grid */
.custom-photo-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: var(--grid-gap);
}

.photo-card {
    position: relative;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #1f2833;
    cursor: pointer;
}

.photo-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), filter 0.4s;
}

.photo-card:hover img {
    transform: scale(1.1);
    filter: brightness(1.1);
}

.photo-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    align-items: flex-end;
    padding: 8px;
}

.photo-card:hover .photo-overlay {
    opacity: 1;
}

/* Search bar */
.search-container {
    position: relative;
    max-width: 400px;
    width: 100%;
}

.search-container .form-control {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: white;
    padding-left: 40px;
    border-radius: 50px;
}

.search-container input {
    padding-left: 2.25rem;
}

.search-container .bi-search {
    position: absolute;
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.5);
}

/* HTMX Loading */
.htmx-indicator {
    display: none;
    text-align: center;
    padding: 20px;
}

.htmx-requesting .htmx-indicator {
    display: block;
}

@media (min-width: 992px) {
    .custom-photo-grid {
        grid-template-columns: repeat(6, 1fr);
    }
}

@media (min-width: 1200px) {
    .custom-photo-grid {
        grid-template-columns: repeat(8, 1fr);
    }
}

@media (max-width: 575.98px) {
    .custom-photo-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}