.home-image-container {
    width: 100%;
    margin: 0 auto;
    text-align: center;
    background-color: black;
}

.home-page-description {
    color: white;
    text-align: start;
    padding: 20px;
}

.home-page-description p {
    margin: 1em 0;
}

.daily-image {
    width: 100%;
    margin: 0 auto;
    aspect-ratio: 4/3;
    object-fit: contain;
    border: 5px solid black;
    max-width: 800px; /* adjust as needed */
}

.image-caption {
    text-align: center;
    padding: 10px;
    color: #ccc;
    font-size: small;
}

/* Search container */

.search-container {
    padding: 8px;
}
.search-container > input {
    width: 100%;
    padding: 8px;
    border: 1px solid #666;
    border-radius: 4px;
    background: #2A2E32;
    color: #fff;
}

.date-header {
    color: white;
    margin: 0;
    padding: 8px 16px;
    display: block;
    font-size: large;
}

div#search-results {
    display: flex;
    flex-direction: column;
    margin-top: 2rem;
}

div.image-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    padding-top: 10px;
    padding-bottom: 10px;
    margin-bottom: 20px;
    background-color: black;
    justify-content: center;  /* Centers the wrapped rows */
}

div.image-wrapper {
    flex: 0 0 200px;         /* Fixed width square */
    height: 200px;           /* Fixed height square */
    display: flex;           /* For centering the image */
    text-align: center;
}

div.species-container {
    width: 200px;
    text-align: center;
}

img.species-thumb {
    width: 200px;
    height: 200px;
    object-fit: contain;
    border-radius: 4px;
}

div.species-name {
    color: white;
    margin-top: 5px;
    font-size: 14px;
    word-wrap: break-word;
}
img.bird-thumbnail {
    height: 200px;
    width: 200px;
    object-fit: contain;
}

.errmsg {
    text-align: center;
    color: white;
}

/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}
.modal-content {
    max-width: 90%;
    max-height: 90vh;
    position: relative;
    text-align: center;
}
.modal-content img {
    max-width: 100%;
    max-height: 80vh;
    object-fit: contain;
}
.modal-caption {
    color: white;
    margin-top: 1rem;
    padding: 0 1rem;
}
.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
}
.nav-button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    color: white;
    font-size: 2rem;
    cursor: pointer;
    padding: 1rem;
}
.prev { left: 1rem; }
.next { right: 1rem; }

.search-container-label {
    display: block;
    margin-top: 15px;
    margin-bottom: 3px;
    color: white;
}

.search-list {
    margin-left: 20px;
}
.search-item {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 4px 0;
    color: white;
}
.search-item a {
    text-decoration: none;
    color: #DDDDDD;
}
.search-link {
    margin-left: auto;  /* This pushes the link to the right */
}
.link-icon {
    width: 16px;
    height: 16px;
}

a {
    color: #CCD4DC;
}