body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow-x: hidden;
}
img {
    cursor: pointer;
}
.container {
    display: flex;
    flex-wrap: wrap;
    min-height: 100vh;
}
.left-column, .right-column {
    flex: 1 1 300px;
    padding: 10px;
    box-sizing: border-box;
    max-height: 100vh;
    overflow-y: auto;
}
.left-column {
    display: flex;
    flex-direction: column;
}
#photoDisplay {
    flex-grow: 1;
    overflow-y: auto;
}
@media (max-width: 768px) {
    .container {
        flex-direction: column;
    }
    .left-column, .right-column {
        flex-basis: auto;
        max-height: none;
    }
    .left-column {
        height: 50vh;
    }
}
img {
    max-width: 100%;
    height: auto;
    display: block;
}
.htmx-indicator {
    color: red;
    font-weight: bold;
    font-size: 24px;
    text-align: center;
    padding: 20px;
    /* display: none; */
}
.image-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    width: 100%;
}
.image-cell {
    aspect-ratio: 1 / 1;
    border: 1px solid #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-container {
    width: 100%;
    height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
}

#imageDisplay {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

#imageDisplay img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#captionsDisplay {
    margin-top: 20px;
}

#captionsDisplay li {
    margin: 5px 0;
    padding: 5px;
    background-color: #f0f0f0;
    border-radius: 3px;
}

.caption-summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.toggle-description {
    background-color: #4CAF50;
    border: none;
    color: white;
    padding: 2px 6px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 12px;
    margin: 2px;
    cursor: pointer;
    border-radius: 50%;
}

.caption-description {
    margin-top: 5px;
    padding: 5px;
    background-color: #e0e0e0;
    border-radius: 3px;
}
.tip-box {
    background-color: #ffffd0;
    border: 1px solid #e6e600;
    border-radius: 5px;
    padding: 10px;
    margin-top: 20px;
    font-style: italic;
}
