.post {
  margin: 10px;
  padding: 10px;
  border-radius: 5px;
  background-color: #fff2cc;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.post .post-header {
  position: relative;
  box-shadow: none;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.post-header .post-title {
  margin: 0px 10px;
  text-align: left;
  font-size: 1.5em;
  font-weight: bold;
}

.post .post-image {
  box-shadow: none;
  background: transparent;
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: contain;
  background: #fff2cc;
}

.post-header .btn-delete {
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  position: absolute;
  top: 0;
  right: 0;
}

.comments {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: left;
  padding: 10px 0;
}

.comment {
  border: 1px solid #b3a780;
  padding: 10px;
  margin: 5px 0;
  border-radius: 5px;
  background-color: #ecdeb2;
}

.comment .comment-header {
  position: relative;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
}

.comment .comment-author {
  font-weight: bold;
  padding: 10px;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  text-align: left;
}

.comment .comment-date {
  font-size: smaller;
  color: gray;
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
  text-align: right;
  margin-right: 40px;
}

.comment-header .btn-delete-comment {
  position: absolute;
  top: 0;
  right: 0;
  background-color: #ff4d4d;
  color: white;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  border-radius: 5px;
  align-self: flex-end;
}

.comment-header .delete-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.post .delete-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.gallery-nav {
  margin-bottom: 20px;
}

.btn-back-home {
  background-color: #ecdeb2;
  border: 1px solid #b3a780;
}

.btn-back-home:hover {
  background-color: #dfce9f;
}

.view-header {
  margin: 10px 0px;
}

.view-title {
  margin: 0;
}

.view-subtitle {
  color: gray;
  margin-top: 5px;
  font-size: 1.1em;
  font-weight: normal;
}

.gallery-header {
  justify-content: center;
}

.gallery-title {
  text-align: center;
  width: 100%;
}

.gallery-subtitle {
  color: gray;
  font-size: 0.9em;
  margin-top: -10px;
}

.empty-gallery-preview {
  padding: 40px;
  text-align: center;
  color: gray;
}

.post[data-username] {
  cursor: pointer;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.post[data-username]:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}
