/* style.css */
body {
    font-family: 'Segoe UI', sans-serif;
    background-color: #000000;
    margin: 0;
    padding: 20px;
}

h1 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 30px;
    /* EDIT COLOR HERE: Using a deep slate blue */
    color: #ffffff; 
    text-transform: uppercase;
    letter-spacing: 2px;
}

/* --- Back to Top Button --- */
#backToTop {
    display: none; /* Hidden by default, JS reveals it */
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    
    /* EDIT COLORS HERE */
    background-color: #e67e22; /* A vibrant orange */
    color: #ffffff;            /* White arrow */
    
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 20px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    transition: background-color 0.3s, transform 0.2s;
}

#backToTop:hover {
    background-color: #d35400; /* Darker orange on hover */
    transform: translateY(-5px); /* Slight lift effect */
}

.grid {
    margin: 0 auto;
}

/* Fluid columns */
.grid-item {
    width: 30%; /* 3 columns roughly */
    margin-bottom: 15px;
    float: left;
    cursor: pointer;
    overflow: hidden;
    border-radius: 8px;
    transition: transform 0.3s ease;
}

.grid-item:hover {
    transform: scale(1.02);
}

.grid-item img {
    display: block;
    width: 100%;
    height: auto;
}

/* Back to Top Button */
#backToTop {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background-color: #333;
    color: white;
    padding: 15px;
    border-radius: 50%;
    cursor: pointer;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .grid-item { width: 48%; }
}
@media (max-width: 480px) {
    .grid-item { width: 100%; }
}


.grid-item img {
    display: block;
    width: 100%;
    height: auto;
    
    /* Smooth fade-in effect */
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
}

/* When the image is loaded, it becomes visible */
.grid-item img[src] {
    opacity: 1;
}

/* Placeholder background to show something is coming */
.grid-item {
    background: #000000;
    min-height: 200px; /* Gives Masonry a hint before image loads */
}