
.gallery_card {
  padding: 1em;
  border: 1px solid #ccc;
  border-radius: 8px;
}

.image_display {
    position: relative;
    margin-top: 5px;
    border-radius: 10px;
    padding-top: 0px;
    display: none;
    justify-content: space-evenly;
    padding: 10px 40px; 
    box-sizing: border-box;
}

.image_display.show {
    display: flex;
}

.image_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

.image_display img {
    margin: 20px;
    display: block;
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.delete-btn {
    position: static;
    margin-top: 10px;
    background-color: #e74c3c;
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background 0.3s;
}

.delete-btn:hover {
    background-color: #c0392b;
}

.image_display button#image_prev,
.image_display button#image_next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgb(1, 1, 120);
    color: rgb(145, 244, 237);
    border: none;
    padding: 10px 15px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    transition: background 0.3s;
}

.image_display button#image_prev {
    left: 10px;
}

.image_display button#image_next {
    right: 10px;
}

.image_display button#image_prev:hover,
.image_display button#image_next:hover {
    background: rgba(90, 91, 93, 0.9);
}

#displayed_image_info {
    text-align: center;
    margin-top: 20px;
    margin-bottom: 0px;
}

.image_title {
    font-weight: bold;
    font-size: 1.1em;
}

.image_author {
    font-style: italic;
    font-size: 0.9em;
    color: #555;
}

.comments {
    margin-top: 20px;
    border-radius: 10px;
    border: 5px groove #d0d7e6;
    padding: 20px 10px 10px 10px;
    display: none;
    flex-direction: column;
}

.comments.show {
    display: flex;
}

.comments_display {
    position: relative;
    margin-top: 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 20px;
    box-sizing: border-box;
}

.comments_display button {
    position: static;
    margin: 0 10px;
    background: rgb(1, 1, 120);
    color: rgb(145, 244, 237);
    border: none;
    padding: 8px 12px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
    transition: background 0.3s;
}

.comments_display button:hover {
    background: rgba(90, 91, 93, 0.9);
}

.form_title {
    font-weight: bold;
    font-size: 1.1em;
    margin-bottom: 5px;
}

.form_element {
    padding: 8px;
    border-radius: 5px;
    border: 1px solid #ccc;
    font-size: 1em;
}

.btn {
    padding: 8px 16px;
    border-radius: 5px;
    background-color: rgb(1, 1, 120);
    color: rgb(145, 244, 237);
    border: none;
    cursor: pointer;
    font-size: 1em;
    transition: background 0.3s;
}

.btn:hover {
    background-color: rgba(90, 91, 93, 0.9);
}