
body {
  background: #e5e6dd;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 20px;
  color: #3c3d3f;
  text-align: center;

  max-width: 680px;
  min-height: 94vh;
  margin: 20px auto;
  padding: 36px 28px;
  border: 5px solid #425043;
}

footer {
  margin-top: auto;
  padding-top: 24px;
}

#gallery {
    margin: 20px 0;
}

.image {
    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    padding: 20px;
    text-align: center;
	  -webkit-animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;
	          animation: scale-up-center 0.4s cubic-bezier(0.390, 0.575, 0.565, 1.000) both;

}

/* ----------------------------------------------
 * Generated by Animista on 2026-9-29 23:22:43
 * Licensed under FreeBSD License.
 * See http://animista.net/license for more info. 
 * w: http://animista.net, t: @cssanimista
 * ---------------------------------------------- */

/**
 * ----------------------------------------
 * animation scale-up-center
 * ----------------------------------------
 */
@-webkit-keyframes scale-up-center {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}
@keyframes scale-up-center {
  0% {
    -webkit-transform: scale(0.5);
            transform: scale(0.5);
  }
  100% {
    -webkit-transform: scale(1);
            transform: scale(1);
  }
}


.image h2 {
    font-size: 1.5rem;
    color: #0f172a;
    margin-bottom: 4px;
}

.image p {
    font-size: 0.95rem;
    color: #64748b;
    margin-bottom: 16px;
}

.image img {
    max-width: 100%;
    max-height: 420px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
    margin: 0 auto 20px auto;
}

.gallery_button {
    display: flex;
    justify-content: center;
    gap: 12px;
}

.gallery_button button {
    padding: 8px 18px;
    font-size: 0.9rem;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    background-color: #e2e8f0;
    color: #334155;
    font-weight: 500;
    transition: background 0.2s, transform 0.1s;
}

.gallery_button button:hover {
    background-color: #cbd5e1;
    transform: translateY(-1px);
}

.gallery_button button:active {
    transform: translateY(0);
}

.gallery_button .delete_btn {
    background-color: #fee2e2;
    color: #ef4444;
}

.gallery_button .delete_btn:hover {
    background-color: #fecaca;
}

#comments {
    width: 100%;
    max-width: 600px;
    margin-top: 10px;
    text-align: left;
}

.comment {
  background: transparent;
  border: none;
  border-bottom: 1px solid #6b7545;
  padding: 12px 4px;
  margin-bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.comment p:first-child {
    font-size: 0.95rem;
    color: #1e293b;
    line-height: 1.4;
}

.comment p:nth-child(2) {
    font-size: 0.8rem;
    color: #94a3b8;
}

.del_comment_btn {
    align-self: flex-end;
    background: transparent;
    border: none;
    color: #ef4444;
    font-size: 0.8rem;
    cursor: pointer;
}

.del_comment_btn:hover {
    text-decoration: underline;
}

.comment_pagination {
    display: flex;
    justify-content: space-between;
    margin: 15px 0 25px 0;
}

.comment_pagination button {
    padding: 6px 14px;
    border: 1px solid #cbd5e1;
    background-color: #ffffff;
    color: #475569;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.comment_pagination button:hover:not(:disabled) {
    background-color: #f1f5f9;
    color: #0f172a;
}

#error_box {
  background-color: #fee2e2;
  color: #b91c1c;
  border: 1px solid #f87171;
  padding: 10px 16px;
  border-radius: 8px;
  margin: 10px auto;
  max-width: 560px;
  font-size: 0.9rem;
}

#galleries_section {
  width: 100%;
  max-width: 560px;
  margin: 15px auto;
}

.galleries_buttons_box {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: repeat(2, auto);
  gap: 12px;
  width: 100%;
  margin: 15px 0;
}

.gallery_user_btn {
  padding: 8px 12px;
  background-color: #ffffff;
  color: #2a3a2e;
  border: 2px solid #425043;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.85rem;
  transition: all 0.2s;
}

.gallery_user_btn:hover {
  background-color: #425043;
  color: #ffffff;
}

.galleries_pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #425043;
  margin-bottom: 15px;
}

.galleries_pagination button {
  padding: 5px 12px;
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 6px;
  cursor: pointer;
}

.galleries_pagination button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}