@charset "UTF-8";
html, body {
  font-family: Arial, sans-serif;
  height: 100%;
  margin: 0;
  background: url(/assets/bg_patterns.png);
  background-repeat: repeat;
  background-position: center;
  background-size: cover;
}

header {
  width: 100%;
  text-align: center;
  padding: 5px 0 0;
  background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
  background-size: 400% 400%;
  animation: gradient 15s ease infinite;
}
header h1 {
  font-family: "Ephesis", cursive;
  font-weight: 400;
  font-style: normal;
  color: white;
  font-size: 3rem;
  margin: 0;
}

section.load {
  width: 100%;
  background: #eaeaea;
  text-align: center;
}
section.load .upload input[type=file] {
  margin: 1rem 0;
}

main {
  width: 90%;
  max-width: 1200px;
  margin: 1% auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#verticalGallery, #horizontalGallery {
  display: grid;
  gap: 1rem;
}

#verticalGallery {
  grid-template-columns: repeat(4, 1fr);
}

#horizontalGallery {
  grid-template-columns: repeat(2, 1fr);
}

.item {
  width: 100%;
  overflow: hidden;
  border-radius: 8px;
}

.item img,
.item video {
  width: 100%;
  max-height: 400px;
  display: block;
  border-radius: 8px;
}

.video-thumb {
  background: #000;
  cursor: pointer;
}

.video-thumb:hover {
  filter: brightness(0.9);
}

.slideshow-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.95);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  flex-direction: column;
  padding: 1rem;
}

.slideshow-container {
  text-align: center;
}

#slideshowMediaContainer {
  max-width: 90vw;
  max-height: 90vh;
}

.slideshow-container img {
  max-width: 100%;
  max-height: 90vh;
  width: auto;
  height: auto;
  -o-object-fit: contain;
     object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

#exitSlideshow {
  cursor: pointer;
  background: #fff;
  border: none;
  border-radius: 5px;
  display: block;
}

.comment-meta small {
  font-size: 0.75rem;
  color: #888;
}

.comment-text {
  font-size: 0.95rem;
}

.comment-handle {
  font-style: normal;
  color: lightcoral;
  margin-left: 5px;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none; /* show via JS */
  align-items: center; /* vertical center */
  justify-content: center; /* horizontal center */
  padding: 1rem; /* breathing room */
  z-index: 9999;
  cursor: zoom-out;
}

/* The enlarged image */
.lightbox-overlay img {
  max-width: 90%;
  max-height: 90%;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border-radius: 4px;
}

.lightbox-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: none;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto; /* 👈 enable scrolling */
  padding: 2rem;
  z-index: 9999;
}

.lightbox-content.vertical {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 800px;
  width: 100%;
  margin: 0 auto;
  background: #fff;
  border-radius: 8px;
  padding: 1rem;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.6);
}

.lightbox-content img {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.comments-under-image {
  width: 100%;
}

.comments-under-image textarea {
  width: 100%;
  resize: vertical;
  min-height: 3rem;
  padding: 0.5rem;
  border: 1px solid #ccc;
  border-radius: 4px;
}

.comments-under-image button {
  margin-top: 0.5rem;
  padding: 0.4rem 0.8rem;
  background: #007bff;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

#commentsList .comment {
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

#commentsList .comment {
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #eee;
  font-size: 0.9rem;
}

/* Comment form */
#commentForm {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#commentForm textarea {
  resize: vertical;
  min-height: 3rem;
  padding: 0.5rem;
}

#commentForm button {
  align-self: flex-end;
  padding: 0.4rem 0.8rem;
  cursor: pointer;
}

#commentText {
  width: 98%;
}

@keyframes gradient {
  0% {
    background-position: 0% 50%;
  }
  50% {
    background-position: 100% 50%;
  }
  100% {
    background-position: 0% 50%;
  }
}/*# sourceMappingURL=styles.css.map */