.toggle_btn_wrapper {
    display: none;
    width: 100%;
    justify-content: center;
    margin-top: 20px;
}

.toggle_btn {
    margin: 20px auto;
    padding: 10px 20px;
    width: 80%;
    background-color: #4d2a6b;
    background-image: linear-gradient(to right, #40e0d0, #0096c7, #3a0ca3);
    color: #ffffff;
    font-size: 16px;
    font-weight: bold;
    border: none;
    border-radius: 3px 20px;
    text-align: center;
    transition: transform 0.5s ease, box-shadow 0.5s ease;
}

.toggle_btn:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 0 4px 8px 0 rgba(99, 80, 111, 0.2);
}

.image_display {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 30px auto;
    padding: 15px 20px;
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    transition: box-shadow 0.5s ease;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
}

.image_display:hover {
    box-shadow: 0 8px 12px 0 rgba(0, 0, 0, 0.25);
}

.user_image {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 1px solid #dddddd;
    border-radius: 8px;
    margin-bottom: 15px;
    padding: 5px;
    transition: transform 0.8s ease;
}

.user_image:hover {
    transform: rotate(5deg);
}

.image_title_label {
    font-size: 22px;
    font-weight: bold;
    color: #4d2a6b;
    margin: 5px 0;
    text-align: center;
}

.image_author_label {
    font-size: 15px;
    color: #9f85ab;
    margin-bottom: 15px;
    text-align: center;
}

.image_buttons {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
    width: 100%;
    margin-top: auto;
}

.prev_btn, .next_btn, .image_delete_btn {
    margin: 0 5px;
    padding: 8px 12px;
    background-color: #4d2a6b;
    background-image: linear-gradient(to right, #9f85ab, #925da9 , #4d2a6b);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-weight: bold;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.prev_btn:hover, .next_btn:hover, .image_delete_btn:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 0 4px 8px 0 rgba(99, 80, 111, 0.2);
}

.comments_display {
    display: flex;
    flex-direction: column;
    margin: 20px auto;
    padding: 15px;
    max-width: 600px;
    width: 100%;
    background-color: #ffffff;
    border-radius: 10px;
    box-shadow: 0 4px 8px 0 rgba(99, 80, 111, 0.2);
}

.single_comment {
    background-color: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    padding: 12px 15px;
    margin-bottom: 12px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.single_comment:hover {
    transform: scale(1.02, 1.02);
    box-shadow: 0 4px 6px 0 rgba(0,0,0,0.08);
}

.comment_author_label {
    font-weight: bold;
    font-size: 16px;
    color: #4d2a6b;
    margin: 0 0 4px 0;
}

.comment_date {
    font-size: 12px;
    color: #9276a5;
    margin: 0 0 8px 0;
}

.comment_content {
    font-size: 14px;
    color: #000000;
    margin: 0 0 10px 0;
}

.comment_delete_btn {
    background-color: #4d2a6b;
    background-image: linear-gradient(to right, #9f85ab, #925da9 , #4d2a6b);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-size: 13px;
    font-weight: bold;
    padding: 5px 10px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.comment_delete_btn:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 0 3px 6px 0 rgba(99, 80, 111, 0.2);
}

.navigate_comments {
    display: flex;
    justify-content: space-between;
    margin: 15px auto;
    max-width: 600px;
    width: 100%;
}

.newer_comments, .older_comments {
    margin: 0 5px;
    padding: 8px 16px;
    background-color: #4d2a6b;
    background-image: linear-gradient(to right, #9f85ab, #925da9 , #4d2a6b);
    border: none;
    border-radius: 5px;
    color: #ffffff;
    font-weight: bold;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.newer_comments:hover, .older_comments:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 0 4px 8px 0 rgba(99, 80, 111, 0.2);
}

.auth_btn_wrapper {
    width: 100%;
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 15px;
}

.image_comment_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 25px;
}

img.user_image {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

#gallery_navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 20px auto;
    gap: 10px;
}

#gallery_navigation button {
    padding: 8px 16px;
    background-color: #4d2a6b;
    background-image: linear-gradient(to right, #9f85ab, #925da9, #4d2a6b);
    color: #ffffff;
    font-weight: bold;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#gallery_navigation button:hover {
    transform: scale(1.05, 1.05);
    box-shadow: 0 4px 8px rgba(99, 80, 111, 0.2);
}

#current_gallery_name {
    font-weight: bold;
    color: #4d2a6b;
    font-size: 16px;
    margin: 0 10px;
}