/* --- Masonry Layout --- */
.photography-image-container {
    width: 90%;
    margin: 20px auto 30px auto; /* Centered with margin */
    
    /* The Column Logic */
    column-count: 3;
    column-gap: 1.5rem;
}

/* Responsive Columns */
@media (max-width: 1000px) {
    .photography-image-container { column-count: 2; }
}
@media (max-width: 600px) {
    .photography-image-container { column-count: 1; }
}

.image-container {
    /* Prevents element from splitting across columns */
    break-inside: avoid;
    margin-bottom: 1.5rem;
    
    /* Styling */
    border-radius: 6px;
    overflow: hidden;
    background: #f0f0f0; /* Placeholder color while loading */
    
    /* Hover effect to indicate clickability */
    cursor: pointer;
    transition: box-shadow 0.2s ease;
}

.image-container:hover {
    box-shadow: 0 0 10px black;
}

.image-container img {
    display: block; /* Removes bottom white space */
    width: 100%;
    height: auto;   /* Maintains Aspect Ratio */
}

/* --- Lightbox Styles --- */
.lightbox {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.268);
    justify-content: center;
    align-items: center;
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
}

.lightbox.active {
    display: flex;
}

.lightbox-content-wrapper {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}

.lightbox-image {
    max-width: 100%; /* Ensures it fits on screen */
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    display: block;
}

.close-btn {
    position: absolute;
    top: 19px;
    right: calc(20px + 10px);

    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    height: var(--nav-size);
    aspect-ratio: 1;
    z-index: 2001;

    box-sizing: content-box;

    border: 1px dashed rgb(110, 110, 110);
    border-radius: calc(12.8px);
    background-color: rgba(255, 255, 255, 0.021);
    -webkit-backdrop-filter: blur(8px);
            backdrop-filter: blur(8px);
    background-image: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.1) 75%, transparent 75%, transparent);
    background-size: 6px 6px; /* Adjust the size of the stripes */
    transition: background-color .1s;
}
.close-btn span {
    font-size: 30px;
    text-shadow: 0 0 4px black;
}

@media (max-width: 850px) {
    .close-btn {
        right: 20px;
    }
}

.close-btn:hover {
    background-color: rgba(255, 255, 255, 0.116);
}


.loading-indicator {
    position: absolute;
    bottom: -30px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.7);
    font-size: 0.9rem;
}
.loading-indicator p {
    margin: 0;
}