#photo-gallery {
    
}
.filter-buttons-container {
    
}
.filter-button {
    
}
#spinner-frame {
     text-align:center;
     margin:18px 0;
}
.spinner {
    
}
.spinner-alert {
     font-size:1.5rem;
     font-weight: bold;
     color:#863C5F;
}
#photo-grid {
    width: 100%;
    margin: 0 auto;
}
/** .photo-item contains .photo-comment and .photo-block */
.photo-item {
    width: 290px;
    margin: 1rem;
    box-sizing: border-box;
    border-radius: 10px;
    background: lightgray;
    box-shadow: 0 2px 6px rgba(0,0,0,0.07);
    padding: 1rem;
    display: inline-block;
    vertical-align: top;
}
.photo-comment {
    width: 100%; /** Ensure the comment box spans the full width of the image */
    position: relative;
    padding-bottom:.75rem;
    font-size: 1.5rem;
    font-style: italic;
    font-weight: bold;
    color: #863C5F;
    background-color: transparent; /** Make the background transparent */
    text-align: center; /** need both text-align and right/left */
    right: 50%; /** Horizontally center the comment */
    left: 50%;
    transform: translateX(-50%); /** Offset the comment by half of its width for perfect centering */
    box-sizing: border-box; /** Ensure padding is included in the width calculation */
    z-index: 1; /** Ensure the comment is above the image */
}
.photo-block img {
    display: block;
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 7px;
    margin-bottom: 6px;
}

.photo-block img {
    width: 360px;    /* Set to your desired width */
    height: 240px;   /* Set to your desired height */
    object-fit: contain; /* Ensures the image fills the box, cropping if necessary */
    display: block;
    margin: 0 auto;   /* optional: centers the image */
}

@media (max-width: 700px) {
    .photo-item {
        width: 98vw;
    }
}
